[03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:50]accept exits with 8 [03:22:50]New connection [03:22:50]New thread 3066801508 created [03:22:50]Thread 3066658148 joined [03:22:50]Waiting for new connection... [03:22:50] Sock 8.Parse request [03:22:50]Sock 8.Check first char [03:22:50]Sock 8.First char is OK [03:22:50]request: POST /json_proto HTTP/1.0 [03:22:50]Method: POST [03:22:50]URL: /json_proto [03:22:50]Method is POST - this is cgi request [03:22:50]url: /json_proto [03:22:50]query_string will be loaded in cgi processing [03:22:50]execute_cgi json_proto POST (null) [03:22:50]execute_cgi path=json_proto method=POST [03:22:50]POST find Content-Length [03:22:50]Host: 172.17.57.71:8080 [03:22:50]Content-Length: 647 [03:22:50]Content-Type: application/json [03:22:50] [03:22:50]POST finish read [03:22:50]Found Content-Length = 647 [03:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127284", "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" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:50]execute_script... [03:22: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)127284", "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" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:50]POST & json_proto [03:22:50]process_json_proto [03:22:50]json parsed OK: [03:22:50]protocol is kg_v1.0 [03:22:50]action value=close_receipt [03:22:50]process_action close_receipt [03:22:50]cmd_close_receipt [03:22:50]MH_GetDate [03:22:50]Write to MH i2c: F0 00 00 3C 04 2F [03:22:50]Write i2c OK [03:22:50]MH_I2C_Read... [03:22:50]Read from MH i2c: F0 [03:22:50]MH_I2C_Read... [03:22:50]Read from MH i2c: F0 09 00 [03:22:50]MH_I2C_Read... [03:22:50]Read from MH i2c: F0 09 00 3C 04 00 8B 01 E5 66 33 3A A4 66 86 [03:22:50]GetLastDocTimeStamp 1726282281 [03:22:50]current date 1726284171 [03:22:50]FM_GetShiftState [03:22:50]SAM_PROTO_GetShiftState [03:22:50]wFMCommunicate request_size=4 [03:22:50]MH_SAM_APDU [03:22:50]CAPDU: 80 13 01 00 [03:22:50]Write to MH i2c: E2 08 00 3D 04 80 13 01 00 00 00 00 00 BE [03:22:50]Write i2c OK [03:22:50]MH_I2C_Read... [03:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:50]Read from MH i2c: E2 [03:22:50]MH_I2C_Read... [03:22:50]Read from MH i2c: E2 0E 00 [03:22:50]MH_I2C_Read... [03:22:50]Read from MH i2c: E2 0E 00 3D 04 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 58 [03:22:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [03:22:50]wFMCommunicate OK [03:22:50]SAM_PROTO_GetShiftState done [03:22:50]FM_GetShiftState done [03:22:50]opened in 1726273389 [03:22:50]opened+sec_in_day 1726359789 [03:22:50]quantity*price = 12000 [03:22:50]sum+1 = 12001 [03:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 14 14.09.2024 03:22 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92363 ФПД: 109321377202454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T032251&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92363&fm=109321377202454&tin=02508201610067®Number=0000000000091423&sum=12000 0 [03:22:51]StoreToDocumentArchive [03:22:51]shift 506 fd 92363 [03:22:51]save to /storage/0506/doc_00092363 [03:22:51]save last doc name /storage/0506/doc_00092363 to /storage/kkm_last_doc_name [03:22:51]save OK [03:22:51]Clear old archive folders... [03:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=276 [03:22:51]tlvbuf is 00FB7CF0 [03:22:51]SAM_PROTO_ClearQueue [03:22:51]wFMCommunicate request_size=4 [03:22:51]MH_SAM_APDU [03:22:51]CAPDU: 80 09 00 00 [03:22:51]Write to MH i2c: E2 08 00 4A 04 80 09 00 00 00 00 00 00 C0 [03:22:51]Write i2c OK [03:22:51]MH_I2C_Read... [03:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:22:51]Read from MH i2c: E2 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 03 00 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [03:22:51]RAPDU: 90 00 [03:22:51]wFMCommunicate OK [03:22:51]SAM_PROTO_ClearQueue done [03:22:51]KKMCreateOFDPacket [03:22:51]OFDProtocolAddRootSTLVToBuf [03:22:51]FM_MakeSignedData [03:22:51]FM_MakeSignedData [03:22:51]SAM_PROTO_SignData [03:22:51]wFMCommunicate request_size=4 [03:22:51]MH_SAM_APDU [03:22:51]CAPDU: 80 0D 01 02 [03:22:51]Write to MH i2c: E2 08 00 4B 04 80 0D 01 02 00 00 00 00 C8 [03:22:51]Write i2c OK [03:22:51]MH_I2C_Read... [03:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:22:51]Read from MH i2c: E2 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 03 00 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [03:22:51]RAPDU: 90 00 [03:22:51]wFMCommunicate OK [03:22:51]wFMCommunicate request_size=255 [03:22:51]MH_SAM_APDU [03:22:51]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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8B 01 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [03:22:51]Write to MH i2c: E2 02 01 4C 04 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8B 01 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 12 [03:22:51]Write i2c OK [03:22:51]MH_I2C_Read... [03:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:51]Read from MH i2c: E2 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 03 00 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [03:22:51]RAPDU: 90 00 [03:22:51]wFMCommunicate OK [03:22:51]wFMCommunicate request_size=35 [03:22:51]MH_SAM_APDU [03:22:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CB 68 01 00 35 04 06 00 63 6D 5D DA C1 16 [03:22:51]Write to MH i2c: E2 26 00 4D 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CB 68 01 00 35 04 06 00 63 6D 5D DA C1 16 00 00 D4 [03:22:51]Write i2c OK [03:22:51]MH_I2C_Read... [03:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:51]Read from MH i2c: E2 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 03 00 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [03:22:51]RAPDU: 90 00 [03:22:51]wFMCommunicate OK [03:22:51]wFMCommunicate request_size=4 [03:22:51]MH_SAM_APDU [03:22:51]CAPDU: 80 0D 03 02 [03:22:51]Write to MH i2c: E2 08 00 4E 04 80 0D 03 02 00 00 00 00 CD [03:22:51]Write i2c OK [03:22:51]MH_I2C_Read... [03:22:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:22:51]Read from MH i2c: E2 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 0B 00 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 0B 00 4E 04 00 D1 D6 BF 93 58 E5 2D E6 90 00 17 [03:22:51]RAPDU: D1 D6 BF 93 58 E5 2D E6 90 00 [03:22:51]wFMCommunicate OK [03:22:51]SAM_PROTO_SignData done [03:22:51]FM_MakeSignedData done [03:22:51]CreateOFDProtocolMessage [03:22:51]wFMCommunicate request_size=4 [03:22:51]MH_SAM_APDU [03:22:51]CAPDU: 80 11 00 00 [03:22:51]Write to MH i2c: E2 08 00 4F 04 80 11 00 00 00 00 00 00 CD [03:22:51]Write i2c OK [03:22:51]MH_I2C_Read... [03:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:51]Read from MH i2c: E2 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 17 00 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: E2 17 00 4F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 24 [03:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:22:51]wFMCommunicate OK [03:22:51]CreateOFDProtocolMessage done [03:22:51]OFDSenderStorePacket 92363 [03:22:51]StoreOFDPacket docnum=92363 [03:22:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 1B 63 20 01 27 E2 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8B 01 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CB 68 01 00 35 04 06 00 63 6D 5D DA C1 16 D1 D6 BF 93 58 E5 2D E6 [03:22:51]CheckFolder [03:22:51]dirname=/storage/ofd_packets [03:22:51]CheckFolder done [03:22:51]ProducePacketName [03:22:51]name=ofd_packets/00092363 [03:22:51]NVStorageSaveData ofd_packets/00092363 [03:22:51]File name is /storage/ofd_packets/00092363 [03:22:51]Write 326 bytes [03:22:51]NVStorageSaveData done [03:22:51]OFDSenderStorePacket done [03:22:51]KKMCreateOFDPacket done [03:22:51]NVStorageSaveData kkm_last_timestamp [03:22:51]File name is /storage/kkm_last_timestamp [03:22:51]Write 4 bytes [03:22:51]NVStorageSaveData done [03:22:51]ExternCall_PrintAddStr [03:22:51]wPrintStart [03:22:51]Write to MH i2c: 01 00 00 50 04 54 [03:22:51]Write i2c OK [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: 01 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: 01 07 00 [03:22:51]MH_I2C_Read... [03:22:51]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 FF 0F 69 [03:22:51]RasterBufferAndPrint [03:22:51]line Счет N : (3)127284 [03:22:51]line ИНН: 02508201610067 [03:22:51]line Контрольно-Кассовый Чек [03:22:51]line ПРОДАЖА [03:22:51]line Товар: 4700000310043 [03:22:51]line Вода Жалалабат 27 1л [03:22:51]line 2.000 * 60.00 [03:22:51]line = 120.00 [03:22:51]line НДС 12% НСП 1% [03:22:51]line > о реализуемом товаре [03:22:51]line ИТОГО: 120.00 [03:22:51]line НСП 1% : 1.06 [03:22:51]line НДС 12% : 12.74 [03:22:51]line Наличными: 120.00 [03:22:51]line Безнал.: 0.00 [03:22:51]line Место: АЗС № 5 "Партнер Нефть" [03:22:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:22:51]line СНО: Общий режим [03:22:51]line Чек 14 14.09.2024 03:22 [03:22:51]line Смена: 506 ФФД: 1.0 [03:22:51]line ЗНМ: 03000000022 [03:22:51]line РНМ: 0000000000091423 [03:22:51]line Версия ККМ: 001 [03:22:51]line ФМ: 0000000000874692 [03:22:51]line ФД: 92363 [03:22:51]line ФПД: 109321377202454 [03:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T032251&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92363&fm=109321377202454&tin=02508201610067®Number=0000000000091423&sum=12000 [03:22:52]line 0 [03:22:52]OFD Sender: Processing packet 92363 [packets to send 63, broken 62] [03:22:52]ProducePacketName [03:22:52]name=ofd_packets/00092363 [03:22:52]OFD Sender: To server: pG, [03:22:52]CommunicateWithHost lk.salyk.kg:30040 [03:22:52]ConnectInit lk.salyk.kg [03:22:52]written 0, free lines is 4095 [03:22:52]Connected sock=10 [03:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 1B 63 20 01 27 E2 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8B 01 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CB 68 01 00 35 04 06 00 63 6D 5D DA C1 16 D1 D6 BF 93 58 E5 2D E6 [03:22:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 73 85 47 00 4E 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CB 68 01 00 F4 03 04 00 07 AA E4 66 B6 04 01 00 00 04 CE 64 F9 86 56 8A 17 [03:22:52]CommunicateWithHost err = 0 [03:22:52]CheckOFDResponse [03:22:52]1017 (14) - 77093643461234 [03:22:52]1041 (16) - 0000000000874692 [03:22:52]1040 (4) - 92363 [03:22:52]1012 (4) - 13.09.2024 21:09 [03:22:52]1206 (1) - 0 [03:22:52]OFD Sender: Remove packet 92363 [03:22:52]ProducePacketName [03:22:52]name=ofd_packets/00092363 [03:22:52]NVStorageDeleteData [03:22:52]Write to MH i2c: 01 00 00 78 04 7C [03:22:52]Write i2c OK [03:22:52]MH_I2C_Read... [03:22:52]Read from MH i2c: 01 [03:22:52]MH_I2C_Read... [03:22:52]Read from MH i2c: 01 07 00 [03:22:52]MH_I2C_Read... [03:22:52]Read from MH i2c: 01 07 00 78 04 00 00 00 00 00 24 0D B4 [03:22:52]RasterBufferAndPrint [03:22:52]line [03:22:52]line [03:22:52]line [03:22:52]line [03:22:52]line [03:22:52]written 0, free lines is 3371 [03:22:52]MH_Cut [03:22:52]Write to MH i2c: D1 01 00 7F 04 01 55 [03:22:52]Write i2c OK [03:22:52]MH_I2C_Read... [03:22:52]Read from MH i2c: D1 [03:22:52]MH_I2C_Read... [03:22:52]Read from MH i2c: D1 01 00 [03:22:52]MH_I2C_Read... [03:22:52]Read from MH i2c: D1 01 00 7F 04 00 54 [03:22:52]Write to MH i2c: 01 00 00 80 04 84 [03:22:52]Write i2c OK [03:22:52]MH_I2C_Read... [03:22:53]OFD Sender: No OFD packet to send [03:22:53]*** Cut start [03:22:53]*** Purtial cut [03:22:53]*** Stage 1: CUTSNS_PIN = 1 [03:22:55]Read from MH i2c: 01 [03:22:55]MH_I2C_Read... [03:22:55]*** Stop cut motor [03:22:55]*** Cut end [03:22:55]Read from MH i2c: 01 07 00 [03:22:55]MH_I2C_Read... [03:22:55]Read from MH i2c: 01 07 00 80 04 00 00 00 00 00 FF 0F 99 [03:22:55]process_action close_receipt done [03:22:55]requested_data is exist [03:22:55]produce_requested_data [03:22:55]requested_item fm.sn is exist - process it [03:22:55]wFMCommunicate request_size=4 [03:22:55]MH_SAM_APDU [03:22:55]CAPDU: 80 11 00 00 [03:22:55]Write to MH i2c: E2 08 00 81 04 80 11 00 00 00 00 00 00 FF [03:22:55]Write i2c OK [03:22:55]MH_I2C_Read... [03:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:55]Read from MH i2c: E2 [03:22:55]MH_I2C_Read... [03:22:55]Read from MH i2c: E2 17 00 [03:22:55]MH_I2C_Read... [03:22:55]Read from MH i2c: E2 17 00 81 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 56 [03:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:22:55]wFMCommunicate OK [03:22:55]requested_item fd.num is exist - process it [03:22:55]SAM_PROTO_GetFieldsCounters [03:22:55]wFMCommunicate request_size=4 [03:22:55]MH_SAM_APDU [03:22:55]CAPDU: 80 13 00 00 [03:22:55]Write to MH i2c: E2 08 00 82 04 80 13 00 00 00 00 00 00 02 [03:22:55]Write i2c OK [03:22:55]MH_I2C_Read... [03:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:22:55]Read from MH i2c: E2 [03:22:55]MH_I2C_Read... [03:22:55]Read from MH i2c: E2 62 00 [03:22:55]MH_I2C_Read... [03:22:55]Read from MH i2c: E2 62 00 82 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CB 68 01 00 0E 04 04 00 FA 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 7A [03:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CB 68 01 00 0E 04 04 00 FA 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 [03:22:55]wFMCommunicate OK [03:22:55]SAM_PROTO_GetFieldsCounters done [03:22:55]requested_item shift.num is exist - process it [03:22:55]requested_item shift.opened is exist - process it [03:22:55]req_shift_opened [03:22:55]FM_GetShiftState [03:22:55]SAM_PROTO_GetShiftState [03:22:55]wFMCommunicate request_size=4 [03:22:55]MH_SAM_APDU [03:22:55]CAPDU: 80 13 01 00 [03:22:55]Write to MH i2c: E2 08 00 83 04 80 13 01 00 00 00 00 00 04 [03:22:55]Write i2c OK [03:22:55]MH_I2C_Read... [03:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:55]Read from MH i2c: E2 [03:22:55]MH_I2C_Read... [03:22:55]Read from MH i2c: E2 0E 00 [03:22:55]MH_I2C_Read... [03:22:55]Read from MH i2c: E2 0E 00 83 04 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9E [03:22:55]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [03:22:55]wFMCommunicate OK [03:22:55]SAM_PROTO_GetShiftState done [03:22:55]FM_GetShiftState done [03:22:55]req_shift_opened done [03:22:55]requested_item shift.open_date is exist - process it [03:22:55]req_shift_open_date [03:22:55]req_shift_open_date done [03:22:55]produce_requested_data done [03:22:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92363,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [03:22:55]process_action_free close_receipt [03:22:55]json_value_free [03:22:55]json_value_free done [03:22:55]process_json_proto returns [03:22:55]Send response to host [03:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92363,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [03:22:55]free response buf [03:22:55]execute_script done [03:22:55]execute_script returns [03:22:55]free content buf [03:22:55]Sock 8.Close socket [03:22:55]Sock 8.Thread stoped [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:42]accept exits with 9 [03:32:42]New connection [03:32:42]New thread 3066658148 created [03:32:42]Thread 3066801508 joined [03:32:42]Waiting for new connection... [03:32:42] Sock 9.Parse request [03:32:42]Sock 9.Check first char [03:32:42]Sock 9.First char is OK [03:32:42]request: POST /json_proto HTTP/1.0 [03:32:42]Method: POST [03:32:42]URL: /json_proto [03:32:42]Method is POST - this is cgi request [03:32:42]url: /json_proto [03:32:42]query_string will be loaded in cgi processing [03:32:42]execute_cgi json_proto POST (null) [03:32:42]execute_cgi path=json_proto method=POST [03:32:42]POST find Content-Length [03:32:42]Host: 172.17.57.71:8080 [03:32:42]Content-Length: 675 [03:32:42]Content-Type: application/json [03:32:42] [03:32:42]POST finish read [03:32:42]Found Content-Length = 675 [03:32:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127285", "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 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:32:42]execute_script... [03:32:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127285", "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 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:32:42]POST & json_proto [03:32:42]process_json_proto [03:32:42]json parsed OK: [03:32:42]protocol is kg_v1.0 [03:32:42]action value=close_receipt [03:32:42]process_action close_receipt [03:32:42]cmd_close_receipt [03:32:42]MH_GetDate [03:32:42]Write to MH i2c: F0 00 00 84 04 77 [03:32:42]Write i2c OK [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: F0 [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: F0 09 00 [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: F0 09 00 84 04 00 DB 03 E5 66 33 3A A4 66 20 [03:32:42]GetLastDocTimeStamp 1726284171 [03:32:42]current date 1726284763 [03:32:42]FM_GetShiftState [03:32:42]SAM_PROTO_GetShiftState [03:32:42]wFMCommunicate request_size=4 [03:32:42]MH_SAM_APDU [03:32:42]CAPDU: 80 13 01 00 [03:32:42]Write to MH i2c: E2 08 00 85 04 80 13 01 00 00 00 00 00 06 [03:32:42]Write i2c OK [03:32:42]MH_I2C_Read... [03:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:32:42]Read from MH i2c: E2 [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: E2 0E 00 [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: E2 0E 00 85 04 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A0 [03:32:42]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [03:32:42]wFMCommunicate OK [03:32:42]SAM_PROTO_GetShiftState done [03:32:42]FM_GetShiftState done [03:32:42]opened in 1726273389 [03:32:42]opened+sec_in_day 1726359789 [03:32:42]quantity*price = 10500 [03:32:42]sum+1 = 10501 [03:32:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 15 14.09.2024 03:32 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92364 ФПД: 43113966923160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T033243&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92364&fm=43113966923160&tin=02508201610067®Number=0000000000091423&sum=10500 0 [03:32:43]StoreToDocumentArchive [03:32:43]shift 506 fd 92364 [03:32:43]save to /storage/0506/doc_00092364 [03:32:43]save last doc name /storage/0506/doc_00092364 to /storage/kkm_last_doc_name [03:32:43]save OK [03:32:43]Clear old archive folders... [03:32:43]ProcessDocumentItem done err = 0, tmpTLVsize=287 [03:32:43]tlvbuf is 00FCB220 [03:32:43]SAM_PROTO_ClearQueue [03:32:43]wFMCommunicate request_size=4 [03:32:43]MH_SAM_APDU [03:32:43]CAPDU: 80 09 00 00 [03:32:43]Write to MH i2c: E2 08 00 92 04 80 09 00 00 00 00 00 00 08 [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 03 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [03:32:43]RAPDU: 90 00 [03:32:43]wFMCommunicate OK [03:32:43]SAM_PROTO_ClearQueue done [03:32:43]KKMCreateOFDPacket [03:32:43]OFDProtocolAddRootSTLVToBuf [03:32:43]FM_MakeSignedData [03:32:43]FM_MakeSignedData [03:32:43]SAM_PROTO_SignData [03:32:43]wFMCommunicate request_size=4 [03:32:43]MH_SAM_APDU [03:32:43]CAPDU: 80 0D 01 02 [03:32:43]Write to MH i2c: E2 08 00 93 04 80 0D 01 02 00 00 00 00 10 [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 03 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [03:32:43]RAPDU: 90 00 [03:32:43]wFMCommunicate OK [03:32:43]wFMCommunicate request_size=255 [03:32:43]MH_SAM_APDU [03:32:43]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 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 0F 00 00 00 F4 03 04 00 DB 03 E5 66 0E 04 04 00 FA 01 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:32:43]Write to MH i2c: E2 02 01 94 04 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 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 0F 00 00 00 F4 03 04 00 DB 03 E5 66 0E 04 04 00 FA 01 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 17 [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]OFD Sender: No OFD packet to send [03:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 03 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [03:32:43]RAPDU: 90 00 [03:32:43]wFMCommunicate OK [03:32:43]wFMCommunicate request_size=46 [03:32:43]MH_SAM_APDU [03:32:43]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 68 01 00 35 04 06 00 27 36 40 AE ED 98 [03:32:43]Write to MH i2c: E2 31 00 95 04 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 68 01 00 35 04 06 00 27 36 40 AE ED 98 00 00 A3 [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 03 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [03:32:43]RAPDU: 90 00 [03:32:43]wFMCommunicate OK [03:32:43]wFMCommunicate request_size=4 [03:32:43]MH_SAM_APDU [03:32:43]CAPDU: 80 0D 03 02 [03:32:43]Write to MH i2c: E2 08 00 96 04 80 0D 03 02 00 00 00 00 15 [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 0B 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 0B 00 96 04 00 D7 05 76 FB D7 9F 2E FE 90 00 05 [03:32:43]RAPDU: D7 05 76 FB D7 9F 2E FE 90 00 [03:32:43]wFMCommunicate OK [03:32:43]SAM_PROTO_SignData done [03:32:43]FM_MakeSignedData done [03:32:43]CreateOFDProtocolMessage [03:32:43]wFMCommunicate request_size=4 [03:32:43]MH_SAM_APDU [03:32:43]CAPDU: 80 11 00 00 [03:32:43]Write to MH i2c: E2 08 00 97 04 80 11 00 00 00 00 00 00 15 [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 17 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 17 00 97 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6C [03:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:32:43]wFMCommunicate OK [03:32:43]CreateOFDProtocolMessage done [03:32:43]OFDSenderStorePacket 92364 [03:32:43]StoreOFDPacket docnum=92364 [03:32:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 4D E1 2B 01 F8 3D 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 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 0F 00 00 00 F4 03 04 00 DB 03 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 68 01 00 35 04 06 00 27 36 40 AE ED 98 D7 05 76 FB D7 9F 2E FE [03:32:43]CheckFolder [03:32:43]dirname=/storage/ofd_packets [03:32:43]CheckFolder done [03:32:43]ProducePacketName [03:32:43]name=ofd_packets/00092364 [03:32:43]NVStorageSaveData ofd_packets/00092364 [03:32:43]File name is /storage/ofd_packets/00092364 [03:32:43]Write 337 bytes [03:32:43]NVStorageSaveData done [03:32:43]OFDSenderStorePacket done [03:32:43]KKMCreateOFDPacket done [03:32:43]NVStorageSaveData kkm_last_timestamp [03:32:43]File name is /storage/kkm_last_timestamp [03:32:43]Write 4 bytes [03:32:43]NVStorageSaveData done [03:32:43]ExternCall_PrintAddStr [03:32:43]wPrintStart [03:32:43]Write to MH i2c: 01 00 00 98 04 9C [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: 01 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: 01 07 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: 01 07 00 98 04 00 00 00 00 00 FF 0F B1 [03:32:43]RasterBufferAndPrint [03:32:43]line Счет N : (3)127285 [03:32:43]line ИНН: 02508201610067 [03:32:43]line Контрольно-Кассовый Чек [03:32:43]line ПРОДАЖА [03:32:43]line Товар: 5449000189332 [03:32:43]line Холодный чай Fuse персик 1л [03:32:43]line 1.000 * 105.00 [03:32:43]line = 105.00 [03:32:43]line НДС 12% НСП 1% [03:32:43]line > о реализуемом товаре [03:32:43]line ИТОГО: 105.00 [03:32:43]line НСП 1% : 0.93 [03:32:43]line НДС 12% : 11.15 [03:32:43]line Наличными: 105.00 [03:32:43]line Безнал.: 0.00 [03:32:43]line Место: АЗС № 5 "Партнер Нефть" [03:32:43]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:32:43]line СНО: Общий режим [03:32:43]line Чек 15 14.09.2024 03:32 [03:32:43]line Смена: 506 ФФД: 1.0 [03:32:43]line ЗНМ: 03000000022 [03:32:43]line РНМ: 0000000000091423 [03:32:43]line Версия ККМ: 001 [03:32:43]line ФМ: 0000000000874692 [03:32:43]line ФД: 92364 [03:32:43]line ФПД: 43113966923160 [03:32:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T033243&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92364&fm=43113966923160&tin=02508201610067®Number=0000000000091423&sum=10500 [03:32:44]line 0 [03:32:44]OFD Sender: Processing packet 92364 [packets to send 63, broken 62] [03:32:44]ProducePacketName [03:32:44]name=ofd_packets/00092364 [03:32:44]OFD Sender: To server: pG, [03:32:44]CommunicateWithHost lk.salyk.kg:30040 [03:32:44]ConnectInit lk.salyk.kg [03:32:44]written 0, free lines is 4095 [03:32:44]Connected sock=11 [03:32:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 4D E1 2B 01 F8 3D 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 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 0F 00 00 00 F4 03 04 00 DB 03 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 68 01 00 35 04 06 00 27 36 40 AE ED 98 D7 05 76 FB D7 9F 2E FE [03:32:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1E 66 47 00 4B 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CC 68 01 00 F4 03 04 00 57 AC E4 66 B6 04 01 00 00 21 0D 26 9F 8E D2 16 34 [03:32:44]CommunicateWithHost err = 0 [03:32:44]CheckOFDResponse [03:32:44]1017 (14) - 77093643461234 [03:32:44]1041 (16) - 0000000000874692 [03:32:44]1040 (4) - 92364 [03:32:44]1012 (4) - 13.09.2024 21:19 [03:32:44]1206 (1) - 0 [03:32:44]OFD Sender: Remove packet 92364 [03:32:44]ProducePacketName [03:32:44]name=ofd_packets/00092364 [03:32:44]NVStorageDeleteData [03:32:44]Write to MH i2c: 01 00 00 C0 04 C4 [03:32:44]Write i2c OK [03:32:44]MH_I2C_Read... [03:32:44]Read from MH i2c: 01 [03:32:44]MH_I2C_Read... [03:32:44]Read from MH i2c: 01 07 00 [03:32:44]MH_I2C_Read... [03:32:44]Read from MH i2c: 01 07 00 C0 04 00 00 00 00 00 1E 0D F6 [03:32:44]RasterBufferAndPrint [03:32:44]line [03:32:44]line [03:32:44]line [03:32:44]line [03:32:44]line [03:32:44]written 0, free lines is 3364 [03:32:44]MH_Cut [03:32:44]Write to MH i2c: D1 01 00 C7 04 01 9D [03:32:44]Write i2c OK [03:32:44]MH_I2C_Read... [03:32:44]Read from MH i2c: D1 [03:32:44]MH_I2C_Read... [03:32:44]Read from MH i2c: D1 01 00 [03:32:44]MH_I2C_Read... [03:32:44]Read from MH i2c: D1 01 00 C7 04 00 9C [03:32:44]Write to MH i2c: 01 00 00 C8 04 CC [03:32:44]Write i2c OK [03:32:44]MH_I2C_Read... [03:32:45]OFD Sender: No OFD packet to send [03:32:45]*** Cut start [03:32:45]*** Purtial cut [03:32:45]*** Stage 1: CUTSNS_PIN = 1 [03:32:47]Read from MH i2c: 01 [03:32:47]MH_I2C_Read... [03:32:47]*** Stop cut motor [03:32:47]*** Cut end [03:32:47]Read from MH i2c: 01 07 00 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [03:32:47]process_action close_receipt done [03:32:47]requested_data is exist [03:32:47]produce_requested_data [03:32:47]requested_item fm.sn is exist - process it [03:32:47]wFMCommunicate request_size=4 [03:32:47]MH_SAM_APDU [03:32:47]CAPDU: 80 11 00 00 [03:32:47]Write to MH i2c: E2 08 00 C9 04 80 11 00 00 00 00 00 00 47 [03:32:47]Write i2c OK [03:32:47]MH_I2C_Read... [03:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:32:47]Read from MH i2c: E2 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: E2 17 00 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: E2 17 00 C9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9E [03:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:32:47]wFMCommunicate OK [03:32:47]requested_item fd.num is exist - process it [03:32:47]SAM_PROTO_GetFieldsCounters [03:32:47]wFMCommunicate request_size=4 [03:32:47]MH_SAM_APDU [03:32:47]CAPDU: 80 13 00 00 [03:32:47]Write to MH i2c: E2 08 00 CA 04 80 13 00 00 00 00 00 00 4A [03:32:47]Write i2c OK [03:32:47]MH_I2C_Read... [03:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:32:47]Read from MH i2c: E2 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: E2 62 00 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: E2 62 00 CA 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CC 68 01 00 0E 04 04 00 FA 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 C6 [03:32:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CC 68 01 00 0E 04 04 00 FA 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:32:47]wFMCommunicate OK [03:32:47]SAM_PROTO_GetFieldsCounters done [03:32:47]requested_item shift.num is exist - process it [03:32:47]requested_item shift.opened is exist - process it [03:32:47]req_shift_opened [03:32:47]FM_GetShiftState [03:32:47]SAM_PROTO_GetShiftState [03:32:47]wFMCommunicate request_size=4 [03:32:47]MH_SAM_APDU [03:32:47]CAPDU: 80 13 01 00 [03:32:47]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [03:32:47]Write i2c OK [03:32:47]MH_I2C_Read... [03:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:32:47]Read from MH i2c: E2 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: E2 0E 00 [03:32:47]MH_I2C_Read... [03:32:47]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E6 [03:32:47]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [03:32:47]wFMCommunicate OK [03:32:47]SAM_PROTO_GetShiftState done [03:32:47]FM_GetShiftState done [03:32:47]req_shift_opened done [03:32:47]requested_item shift.open_date is exist - process it [03:32:47]req_shift_open_date [03:32:47]req_shift_open_date done [03:32:47]produce_requested_data done [03:32:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92364,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [03:32:47]process_action_free close_receipt [03:32:47]json_value_free [03:32:47]json_value_free done [03:32:47]process_json_proto returns [03:32:47]Send response to host [03:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92364,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [03:32:47]free response buf [03:32:47]execute_script done [03:32:47]execute_script returns [03:32:47]free content buf [03:32:47]Sock 9.Close socket [03:32:47]Sock 9.Thread stoped [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:08]accept exits with 8 [03:55:08]New connection [03:55:08]New thread 3066801508 created [03:55:08]Thread 3066658148 joined [03:55:08]Waiting for new connection... [03:55:08] Sock 8.Parse request [03:55:08]Sock 8.Check first char [03:55:08]Sock 8.First char is OK [03:55:08]request: POST /json_proto HTTP/1.0 [03:55:08]Method: POST [03:55:08]URL: /json_proto [03:55:08]Method is POST - this is cgi request [03:55:08]url: /json_proto [03:55:08]query_string will be loaded in cgi processing [03:55:08]execute_cgi json_proto POST (null) [03:55:08]execute_cgi path=json_proto method=POST [03:55:08]POST find Content-Length [03:55:08]Host: 172.17.57.71:8080 [03:55:08]Content-Length: 645 [03:55:08]Content-Type: application/json [03:55:08] [03:55:08]POST finish read [03:55:08]Found Content-Length = 645 [03:55:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127286", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:08]execute_script... [03:55: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)127286", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:08]POST & json_proto [03:55:08]process_json_proto [03:55:08]json parsed OK: [03:55:08]protocol is kg_v1.0 [03:55:08]action value=close_receipt [03:55:08]process_action close_receipt [03:55:08]cmd_close_receipt [03:55:08]MH_GetDate [03:55:08]Write to MH i2c: F0 00 00 CC 04 BF [03:55:08]Write i2c OK [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: F0 [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: F0 09 00 [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: F0 09 00 CC 04 00 1D 09 E5 66 33 3A A4 66 B0 [03:55:08]GetLastDocTimeStamp 1726284763 [03:55:08]current date 1726286109 [03:55:08]FM_GetShiftState [03:55:08]SAM_PROTO_GetShiftState [03:55:08]wFMCommunicate request_size=4 [03:55:08]MH_SAM_APDU [03:55:08]CAPDU: 80 13 01 00 [03:55:08]Write to MH i2c: E2 08 00 CD 04 80 13 01 00 00 00 00 00 4E [03:55:08]Write i2c OK [03:55:08]MH_I2C_Read... [03:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:08]Read from MH i2c: E2 [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: E2 0E 00 [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: E2 0E 00 CD 04 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E8 [03:55:08]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [03:55:08]wFMCommunicate OK [03:55:08]SAM_PROTO_GetShiftState done [03:55:08]FM_GetShiftState done [03:55:08]opened in 1726273389 [03:55:08]opened+sec_in_day 1726359789 [03:55:08]quantity*price = 6000 [03:55:08]sum+1 = 6001 [03:55:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 16 14.09.2024 03:55 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92365 ФПД: 254882410850900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T035509&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92365&fm=254882410850900&tin=02508201610067®Number=0000000000091423&sum=6000 0 [03:55:09]StoreToDocumentArchive [03:55:09]shift 506 fd 92365 [03:55:09]save to /storage/0506/doc_00092365 [03:55:09]save last doc name /storage/0506/doc_00092365 to /storage/kkm_last_doc_name [03:55:09]save OK [03:55:09]Clear old archive folders... [03:55:09]ProcessDocumentItem done err = 0, tmpTLVsize=276 [03:55:09]tlvbuf is 00FCB0E0 [03:55:09]SAM_PROTO_ClearQueue [03:55:09]wFMCommunicate request_size=4 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 09 00 00 [03:55:09]Write to MH i2c: E2 08 00 DA 04 80 09 00 00 00 00 00 00 50 [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 03 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [03:55:09]RAPDU: 90 00 [03:55:09]wFMCommunicate OK [03:55:09]SAM_PROTO_ClearQueue done [03:55:09]KKMCreateOFDPacket [03:55:09]OFDProtocolAddRootSTLVToBuf [03:55:09]FM_MakeSignedData [03:55:09]FM_MakeSignedData [03:55:09]SAM_PROTO_SignData [03:55:09]wFMCommunicate request_size=4 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 0D 01 02 [03:55:09]Write to MH i2c: E2 08 00 DB 04 80 0D 01 02 00 00 00 00 58 [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 03 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [03:55:09]RAPDU: 90 00 [03:55:09]wFMCommunicate OK [03:55:09]wFMCommunicate request_size=255 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 1D 09 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [03:55:09]Write to MH i2c: E2 02 01 DC 04 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 1D 09 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 09 [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:09]Read from MH i2c: E2 03 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [03:55:09]RAPDU: 90 00 [03:55:09]wFMCommunicate OK [03:55:09]wFMCommunicate request_size=35 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 68 01 00 35 04 06 00 E7 D0 6F 8E EA 54 [03:55:09]Write to MH i2c: E2 26 00 DD 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 68 01 00 35 04 06 00 E7 D0 6F 8E EA 54 00 00 7A [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 03 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [03:55:09]RAPDU: 90 00 [03:55:09]wFMCommunicate OK [03:55:09]wFMCommunicate request_size=4 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 0D 03 02 [03:55:09]Write to MH i2c: E2 08 00 DE 04 80 0D 03 02 00 00 00 00 5D [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 0B 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 0B 00 DE 04 00 35 44 66 25 B9 5D 0D 07 90 00 8C [03:55:09]RAPDU: 35 44 66 25 B9 5D 0D 07 90 00 [03:55:09]wFMCommunicate OK [03:55:09]SAM_PROTO_SignData done [03:55:09]FM_MakeSignedData done [03:55:09]CreateOFDProtocolMessage [03:55:09]wFMCommunicate request_size=4 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 11 00 00 [03:55:09]Write to MH i2c: E2 08 00 DF 04 80 11 00 00 00 00 00 00 5D [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 17 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 17 00 DF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B4 [03:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:55:09]wFMCommunicate OK [03:55:09]CreateOFDProtocolMessage done [03:55:09]OFDSenderStorePacket 92365 [03:55:09]StoreOFDPacket docnum=92365 [03:55:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 B2 30 20 01 E2 6D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 1D 09 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 68 01 00 35 04 06 00 E7 D0 6F 8E EA 54 35 44 66 25 B9 5D 0D 07 [03:55:09]CheckFolder [03:55:09]dirname=/storage/ofd_packets [03:55:09]CheckFolder done [03:55:09]ProducePacketName [03:55:09]name=ofd_packets/00092365 [03:55:09]NVStorageSaveData ofd_packets/00092365 [03:55:09]File name is /storage/ofd_packets/00092365 [03:55:09]Write 326 bytes [03:55:09]NVStorageSaveData done [03:55:09]OFDSenderStorePacket done [03:55:09]KKMCreateOFDPacket done [03:55:09]NVStorageSaveData kkm_last_timestamp [03:55:09]File name is /storage/kkm_last_timestamp [03:55:09]Write 4 bytes [03:55:09]NVStorageSaveData done [03:55:09]ExternCall_PrintAddStr [03:55:09]wPrintStart [03:55:09]Write to MH i2c: 01 00 00 E0 04 E4 [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: 01 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: 01 07 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 FF 0F F9 [03:55:09]RasterBufferAndPrint [03:55:09]line Счет N : (3)127286 [03:55:09]line ИНН: 02508201610067 [03:55:09]line Контрольно-Кассовый Чек [03:55:09]line ПРОДАЖА [03:55:09]line Товар: 4700000310043 [03:55:09]line Вода Жалалабат 27 1л [03:55:09]line 1.000 * 60.00 [03:55:09]line = 60.00 [03:55:09]line НДС 12% НСП 1% [03:55:09]line > о реализуемом товаре [03:55:09]line ИТОГО: 60.00 [03:55:09]line НСП 1% : 0.53 [03:55:09]line НДС 12% : 6.37 [03:55:09]line Наличными: 60.00 [03:55:09]line Безнал.: 0.00 [03:55:09]line Место: АЗС № 5 "Партнер Нефть" [03:55:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:55:09]line СНО: Общий режим [03:55:09]line Чек 16 14.09.2024 03:55 [03:55:09]line Смена: 506 ФФД: 1.0 [03:55:09]line ЗНМ: 03000000022 [03:55:09]line РНМ: 0000000000091423 [03:55:09]line Версия ККМ: 001 [03:55:09]line ФМ: 0000000000874692 [03:55:09]line ФД: 92365 [03:55:09]line ФПД: 254882410850900 [03:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T035509&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92365&fm=254882410850900&tin=02508201610067®Number=0000000000091423&sum=6000 [03:55:10]line 0 [03:55:10]OFD Sender: Processing packet 92365 [packets to send 63, broken 62] [03:55:10]ProducePacketName [03:55:10]name=ofd_packets/00092365 [03:55:10]OFD Sender: To server: pG, [03:55:10]CommunicateWithHost lk.salyk.kg:30040 [03:55:10]ConnectInit lk.salyk.kg [03:55:10]written 0, free lines is 4095 [03:55:10]Connected sock=9 [03:55:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 B2 30 20 01 E2 6D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 1D 09 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 68 01 00 35 04 06 00 E7 D0 6F 8E EA 54 35 44 66 25 B9 5D 0D 07 [03:55:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C9 F5 47 00 1C 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CD 68 01 00 F4 03 04 00 99 B1 E4 66 B6 04 01 00 00 F1 A5 65 1F A7 EF 03 10 [03:55:10]CommunicateWithHost err = 0 [03:55:10]CheckOFDResponse [03:55:10]1017 (14) - 77093643461234 [03:55:10]1041 (16) - 0000000000874692 [03:55:10]1040 (4) - 92365 [03:55:10]1012 (4) - 13.09.2024 21:41 [03:55:10]1206 (1) - 0 [03:55:10]OFD Sender: Remove packet 92365 [03:55:10]ProducePacketName [03:55:10]name=ofd_packets/00092365 [03:55:10]NVStorageDeleteData [03:55:10]Write to MH i2c: 01 00 00 08 05 0D [03:55:10]Write i2c OK [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: 01 [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: 01 07 00 [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 19 0D 3A [03:55:10]RasterBufferAndPrint [03:55:10]line [03:55:10]line [03:55:10]line [03:55:10]line [03:55:10]line [03:55:10]written 0, free lines is 3361 [03:55:10]MH_Cut [03:55:10]Write to MH i2c: D1 01 00 0F 05 01 E6 [03:55:10]Write i2c OK [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: D1 [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: D1 01 00 [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: D1 01 00 0F 05 00 E5 [03:55:10]Write to MH i2c: 01 00 00 10 05 15 [03:55:10]Write i2c OK [03:55:10]MH_I2C_Read... [03:55:11]OFD Sender: No OFD packet to send [03:55:11]*** Cut start [03:55:11]*** Purtial cut [03:55:11]*** Stage 1: CUTSNS_PIN = 1 [03:55:13]Read from MH i2c: 01 [03:55:13]MH_I2C_Read... [03:55:13]*** Stop cut motor [03:55:13]*** Cut end [03:55:13]Read from MH i2c: 01 07 00 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [03:55:13]process_action close_receipt done [03:55:13]requested_data is exist [03:55:13]produce_requested_data [03:55:13]requested_item fm.sn is exist - process it [03:55:13]wFMCommunicate request_size=4 [03:55:13]MH_SAM_APDU [03:55:13]CAPDU: 80 11 00 00 [03:55:13]Write to MH i2c: E2 08 00 11 05 80 11 00 00 00 00 00 00 90 [03:55:13]Write i2c OK [03:55:13]MH_I2C_Read... [03:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:13]Read from MH i2c: E2 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 17 00 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 17 00 11 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E7 [03:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:55:13]wFMCommunicate OK [03:55:13]requested_item fd.num is exist - process it [03:55:13]SAM_PROTO_GetFieldsCounters [03:55:13]wFMCommunicate request_size=4 [03:55:13]MH_SAM_APDU [03:55:13]CAPDU: 80 13 00 00 [03:55:13]Write to MH i2c: E2 08 00 12 05 80 13 00 00 00 00 00 00 93 [03:55:13]Write i2c OK [03:55:13]MH_I2C_Read... [03:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:55:13]Read from MH i2c: E2 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 62 00 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 62 00 12 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CD 68 01 00 0E 04 04 00 FA 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 13 [03:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CD 68 01 00 0E 04 04 00 FA 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:55:13]wFMCommunicate OK [03:55:13]SAM_PROTO_GetFieldsCounters done [03:55:13]requested_item shift.num is exist - process it [03:55:13]requested_item shift.opened is exist - process it [03:55:13]req_shift_opened [03:55:13]FM_GetShiftState [03:55:13]SAM_PROTO_GetShiftState [03:55:13]wFMCommunicate request_size=4 [03:55:13]MH_SAM_APDU [03:55:13]CAPDU: 80 13 01 00 [03:55:13]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [03:55:13]Write i2c OK [03:55:13]MH_I2C_Read... [03:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:13]Read from MH i2c: E2 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 0E 00 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2F [03:55:13]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [03:55:13]wFMCommunicate OK [03:55:13]SAM_PROTO_GetShiftState done [03:55:13]FM_GetShiftState done [03:55:13]req_shift_opened done [03:55:13]requested_item shift.open_date is exist - process it [03:55:13]req_shift_open_date [03:55:13]req_shift_open_date done [03:55:13]produce_requested_data done [03:55:13]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92365,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [03:55:13]process_action_free close_receipt [03:55:13]json_value_free [03:55:13]json_value_free done [03:55:13]process_json_proto returns [03:55:13]Send response to host [03:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92365,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [03:55:13]free response buf [03:55:13]execute_script done [03:55:13]execute_script returns [03:55:13]free content buf [03:55:13]Sock 8.Close socket [03:55:13]Sock 8.Thread stoped [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:09]accept exits with 10 [04:20:09]New connection [04:20:09]New thread 3066658148 created [04:20:09]Thread 3066801508 joined [04:20:09]Waiting for new connection... [04:20:09] Sock 10.Parse request [04:20:09]Sock 10.Check first char [04:20:09]Sock 10.First char is OK [04:20:09]request: POST /json_proto HTTP/1.0 [04:20:09]Method: POST [04:20:09]URL: /json_proto [04:20:09]Method is POST - this is cgi request [04:20:09]url: /json_proto [04:20:09]query_string will be loaded in cgi processing [04:20:09]execute_cgi json_proto POST (null) [04:20:09]execute_cgi path=json_proto method=POST [04:20:09]POST find Content-Length [04:20:09]Host: 172.17.57.71:8080 [04:20:09]Content-Length: 919 [04:20:09]Content-Type: application/json [04:20:09] [04:20:09]POST finish read [04:20:09]Found Content-Length = 919 [04:20:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127287", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:20:09]execute_script... [04:20: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)127287", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:20:09]POST & json_proto [04:20:09]process_json_proto [04:20:09]json parsed OK: [04:20:09]protocol is kg_v1.0 [04:20:09]action value=close_receipt [04:20:09]process_action close_receipt [04:20:09]cmd_close_receipt [04:20:09]MH_GetDate [04:20:09]Write to MH i2c: F0 00 00 14 05 08 [04:20:09]Write i2c OK [04:20:09]MH_I2C_Read... [04:20:09]Read from MH i2c: F0 [04:20:09]MH_I2C_Read... [04:20:09]Read from MH i2c: F0 09 00 [04:20:09]MH_I2C_Read... [04:20:09]Read from MH i2c: F0 09 00 14 05 00 FA 0E E5 66 33 3A A4 66 DB [04:20:09]GetLastDocTimeStamp 1726286109 [04:20:09]current date 1726287610 [04:20:09]FM_GetShiftState [04:20:09]SAM_PROTO_GetShiftState [04:20:09]wFMCommunicate request_size=4 [04:20:09]MH_SAM_APDU [04:20:09]CAPDU: 80 13 01 00 [04:20:09]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [04:20:09]Write i2c OK [04:20:09]MH_I2C_Read... [04:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:09]Read from MH i2c: E2 [04:20:09]MH_I2C_Read... [04:20:09]Read from MH i2c: E2 0E 00 [04:20:09]MH_I2C_Read... [04:20:09]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 31 [04:20:09]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [04:20:09]wFMCommunicate OK [04:20:09]SAM_PROTO_GetShiftState done [04:20:09]FM_GetShiftState done [04:20:09]opened in 1726273389 [04:20:09]opened+sec_in_day 1726359789 [04:20:09]quantity*price = 12500 [04:20:09]sum+1 = 12501 [04:20:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40052403 Nestle KIT-KAT плоский 41,5г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.91 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 17 14.09.2024 04:20 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92366 ФПД: 88970841726470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T042010&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92366&fm=88970841726470&tin=02508201610067®Number=0000000000091423&sum=21500 0 [04:20:10]StoreToDocumentArchive [04:20:10]shift 506 fd 92366 [04:20:10]save to /storage/0506/doc_00092366 [04:20:10]save last doc name /storage/0506/doc_00092366 to /storage/kkm_last_doc_name [04:20:10]save OK [04:20:10]Clear old archive folders... [04:20:10]ProcessDocumentItem done err = 0, tmpTLVsize=395 [04:20:10]tlvbuf is 00FBB2B0 [04:20:10]SAM_PROTO_ClearQueue [04:20:10]wFMCommunicate request_size=4 [04:20:10]MH_SAM_APDU [04:20:10]CAPDU: 80 09 00 00 [04:20:10]Write to MH i2c: E2 08 00 22 05 80 09 00 00 00 00 00 00 99 [04:20:10]Write i2c OK [04:20:10]MH_I2C_Read... [04:20:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:20:10]Read from MH i2c: E2 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: E2 03 00 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [04:20:10]RAPDU: 90 00 [04:20:10]wFMCommunicate OK [04:20:10]SAM_PROTO_ClearQueue done [04:20:10]KKMCreateOFDPacket [04:20:10]OFDProtocolAddRootSTLVToBuf [04:20:10]FM_MakeSignedData [04:20:10]FM_MakeSignedData [04:20:10]SAM_PROTO_SignData [04:20:10]wFMCommunicate request_size=4 [04:20:10]MH_SAM_APDU [04:20:10]CAPDU: 80 0D 01 02 [04:20:10]Write to MH i2c: E2 08 00 23 05 80 0D 01 02 00 00 00 00 A1 [04:20:10]Write i2c OK [04:20:10]MH_I2C_Read... [04:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:20:10]Read from MH i2c: E2 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: E2 03 00 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [04:20:10]RAPDU: 90 00 [04:20:10]wFMCommunicate OK [04:20:10]wFMCommunicate request_size=255 [04:20:10]MH_SAM_APDU [04:20:10]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 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 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 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 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 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 [04:20:10]Write to MH i2c: E2 02 01 24 05 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 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 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 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 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 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 00 00 8E [04:20:10]Write i2c OK [04:20:10]MH_I2C_Read... [04:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:10]Read from MH i2c: E2 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: E2 03 00 [04:20:10]MH_I2C_Read... [04:20:10]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [04:20:10]RAPDU: 90 00 [04:20:10]wFMCommunicate OK [04:20:10]wFMCommunicate request_size=154 [04:20:10]MH_SAM_APDU [04:20:10]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FA 0E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CE 68 01 00 35 04 06 00 50 EB 23 6A 9E 06 [04:20:10]Write to MH i2c: E2 9D 00 25 05 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FA 0E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CE 68 01 00 35 04 06 00 50 EB 23 6A 9E 06 00 00 06 [04:20:10]Write i2c OK [04:20:10]MH_I2C_Read... [04:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:11]Read from MH i2c: E2 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 03 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [04:20:11]RAPDU: 90 00 [04:20:11]wFMCommunicate OK [04:20:11]wFMCommunicate request_size=4 [04:20:11]MH_SAM_APDU [04:20:11]CAPDU: 80 0D 03 02 [04:20:11]Write to MH i2c: E2 08 00 26 05 80 0D 03 02 00 00 00 00 A6 [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:20:11]Read from MH i2c: E2 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 0B 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 0B 00 26 05 00 DD 8C 20 CA 44 8A 31 70 90 00 69 [04:20:11]RAPDU: DD 8C 20 CA 44 8A 31 70 90 00 [04:20:11]wFMCommunicate OK [04:20:11]SAM_PROTO_SignData done [04:20:11]FM_MakeSignedData done [04:20:11]CreateOFDProtocolMessage [04:20:11]wFMCommunicate request_size=4 [04:20:11]MH_SAM_APDU [04:20:11]CAPDU: 80 11 00 00 [04:20:11]Write to MH i2c: E2 08 00 27 05 80 11 00 00 00 00 00 00 A6 [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:20:11]Read from MH i2c: E2 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 17 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: E2 17 00 27 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FD [04:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:20:11]wFMCommunicate OK [04:20:11]CreateOFDProtocolMessage done [04:20:11]OFDSenderStorePacket 92366 [04:20:11]StoreOFDPacket docnum=92366 [04:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9F 01 00 00 C6 12 97 01 C3 B5 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 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 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 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 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 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FA 0E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CE 68 01 00 35 04 06 00 50 EB 23 6A 9E 06 DD 8C 20 CA 44 8A 31 70 [04:20:11]CheckFolder [04:20:11]dirname=/storage/ofd_packets [04:20:11]CheckFolder done [04:20:11]ProducePacketName [04:20:11]name=ofd_packets/00092366 [04:20:11]NVStorageSaveData ofd_packets/00092366 [04:20:11]File name is /storage/ofd_packets/00092366 [04:20:11]Write 445 bytes [04:20:11]NVStorageSaveData done [04:20:11]OFDSenderStorePacket done [04:20:11]KKMCreateOFDPacket done [04:20:11]NVStorageSaveData kkm_last_timestamp [04:20:11]File name is /storage/kkm_last_timestamp [04:20:11]Write 4 bytes [04:20:11]NVStorageSaveData done [04:20:11]ExternCall_PrintAddStr [04:20:11]wPrintStart [04:20:11]Write to MH i2c: 01 00 00 28 05 2D [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: 01 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: 01 07 00 [04:20:11]MH_I2C_Read... [04:20:11]OFD Sender: Processing packet 92366 [packets to send 63, broken 62] [04:20:11]ProducePacketName [04:20:11]name=ofd_packets/00092366 [04:20:11]Read from MH i2c: OFD Sender: To server: pG, [04:20:11]01 CommunicateWithHost lk.salyk.kg:30040 [04:20:11]07 ConnectInit lk.salyk.kg [04:20:11]00 28 05 00 00 00 00 00 FF 0F 42 [04:20:11]RasterBufferAndPrint [04:20:11]line Счет N : (3)127287 [04:20:11]line ИНН: 02508201610067 [04:20:11]line Контрольно-Кассовый Чек [04:20:11]line ПРОДАЖА [04:20:11]line Товар: 4870202521230 [04:20:11]line Напиток MAXI чай 1,2 черн.лимон [04:20:11]line 1.000 * 125.00 [04:20:11]line = 125.00 [04:20:11]line НДС 12% НСП 1% [04:20:11]line > о реализуемом товаре [04:20:11]line Товар: 40052403 [04:20:11]line Nestle KIT-KAT плоский 41,5г [04:20:11]line 1.000 * 90.00 [04:20:11]line = 90.00 [04:20:11]line НДС 12% НСП 1% [04:20:11]line > о реализуемом товаре [04:20:11]line ИТОГО: 215.00 [04:20:11]line НСП 1% : 1.91 [04:20:11]line НДС 12% : 22.83 [04:20:11]line Наличными: 215.00 [04:20:11]line Безнал.: 0.00 [04:20:11]line Место: АЗС № 5 "Партнер Нефть" [04:20:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [04:20:11]line СНО: Общий режим [04:20:11]line Чек 17 14.09.2024 04:20 [04:20:11]line Смена: 506 ФФД: 1.0 [04:20:11]line ЗНМ: 03000000022 [04:20:11]line РНМ: 0000000000091423 [04:20:11]line Версия ККМ: 001 [04:20:11]line ФМ: 0000000000874692 [04:20:11]line ФД: 92366 [04:20:11]line ФПД: 88970841726470 [04:20:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T042010&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92366&fm=88970841726470&tin=02508201610067®Number=0000000000091423&sum=21500 [04:20:11]line 0 [04:20:11]written 0, free lines is 4095 [04:20:11]Connected sock=9 [04:20:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9F 01 00 00 C6 12 97 01 C3 B5 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 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 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 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 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 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FA 0E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CE 68 01 00 35 04 06 00 50 EB 23 6A 9E 06 DD 8C 20 CA 44 8A 31 70 [04:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9B 75 47 00 7D FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CE 68 01 00 F4 03 04 00 77 B7 E4 66 B6 04 01 00 00 FE 71 10 B4 F6 A4 69 5E [04:20:11]CommunicateWithHost err = 0 [04:20:11]CheckOFDResponse [04:20:11]1017 (14) - 77093643461234 [04:20:11]1041 (16) - 0000000000874692 [04:20:11]1040 (4) - 92366 [04:20:11]1012 (4) - 13.09.2024 22:06 [04:20:11]1206 (1) - 0 [04:20:11]OFD Sender: Remove packet 92366 [04:20:11]ProducePacketName [04:20:11]name=ofd_packets/00092366 [04:20:11]NVStorageDeleteData [04:20:11]Write to MH i2c: 01 00 00 57 05 5C [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: 01 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: 01 07 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: 01 07 00 57 05 00 00 00 00 00 C0 0C 2F [04:20:11]RasterBufferAndPrint [04:20:11]line [04:20:11]line [04:20:11]line [04:20:11]line [04:20:11]line [04:20:11]written 0, free lines is 3272 [04:20:11]MH_Cut [04:20:11]Write to MH i2c: D1 01 00 5E 05 01 35 [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: D1 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: D1 01 00 [04:20:11]MH_I2C_Read... [04:20:11]Read from MH i2c: D1 01 00 5E 05 00 34 [04:20:11]Write to MH i2c: 01 00 00 5F 05 64 [04:20:11]Write i2c OK [04:20:11]MH_I2C_Read... [04:20:12]OFD Sender: No OFD packet to send [04:20:12]*** Cut start [04:20:12]*** Purtial cut [04:20:12]*** Stage 1: CUTSNS_PIN = 1 [04:20:14]Read from MH i2c: 01 [04:20:14]MH_I2C_Read... [04:20:14]*** Stop cut motor [04:20:14]*** Cut end [04:20:14]Read from MH i2c: 01 07 00 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 FF 0F 79 [04:20:14]process_action close_receipt done [04:20:14]requested_data is exist [04:20:14]produce_requested_data [04:20:14]requested_item fm.sn is exist - process it [04:20:14]wFMCommunicate request_size=4 [04:20:14]MH_SAM_APDU [04:20:14]CAPDU: 80 11 00 00 [04:20:14]Write to MH i2c: E2 08 00 60 05 80 11 00 00 00 00 00 00 DF [04:20:14]Write i2c OK [04:20:14]MH_I2C_Read... [04:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:20:14]Read from MH i2c: E2 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 17 00 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 17 00 60 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 36 [04:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:20:14]wFMCommunicate OK [04:20:14]requested_item fd.num is exist - process it [04:20:14]SAM_PROTO_GetFieldsCounters [04:20:14]wFMCommunicate request_size=4 [04:20:14]MH_SAM_APDU [04:20:14]CAPDU: 80 13 00 00 [04:20:14]Write to MH i2c: E2 08 00 61 05 80 13 00 00 00 00 00 00 E2 [04:20:14]Write i2c OK [04:20:14]MH_I2C_Read... [04:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:20:14]Read from MH i2c: E2 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 62 00 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 62 00 61 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CE 68 01 00 0E 04 04 00 FA 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 66 [04:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:20:14]wFMCommunicate OK [04:20:14]SAM_PROTO_GetFieldsCounters done [04:20:14]requested_item shift.num is exist - process it [04:20:14]requested_item shift.opened is exist - process it [04:20:14]req_shift_opened [04:20:14]FM_GetShiftState [04:20:14]SAM_PROTO_GetShiftState [04:20:14]wFMCommunicate request_size=4 [04:20:14]MH_SAM_APDU [04:20:14]CAPDU: 80 13 01 00 [04:20:14]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [04:20:14]Write i2c OK [04:20:14]MH_I2C_Read... [04:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:14]Read from MH i2c: E2 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 0E 00 [04:20:14]MH_I2C_Read... [04:20:14]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7E [04:20:14]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [04:20:14]wFMCommunicate OK [04:20:14]SAM_PROTO_GetShiftState done [04:20:14]FM_GetShiftState done [04:20:14]req_shift_opened done [04:20:14]requested_item shift.open_date is exist - process it [04:20:14]req_shift_open_date [04:20:14]req_shift_open_date done [04:20:14]produce_requested_data done [04:20:14]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92366,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [04:20:14]process_action_free close_receipt [04:20:14]json_value_free [04:20:14]json_value_free done [04:20:14]process_json_proto returns [04:20:14]Send response to host [04:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92366,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [04:20:14]free response buf [04:20:14]execute_script done [04:20:14]execute_script returns [04:20:14]free content buf [04:20:14]Sock 10.Close socket [04:20:14]Sock 10.Thread stoped [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:00]accept exits with 8 [04:38:00]New connection [04:38:00]New thread 3066801508 created [04:38:00]Thread 3066658148 joined [04:38:00]Waiting for new connection... [04:38:00] Sock 8.Parse request [04:38:00]Sock 8.Check first char [04:38:00]Sock 8.First char is OK [04:38:00]request: POST /json_proto HTTP/1.0 [04:38:00]Method: POST [04:38:00]URL: /json_proto [04:38:00]Method is POST - this is cgi request [04:38:00]url: /json_proto [04:38:00]query_string will be loaded in cgi processing [04:38:00]execute_cgi json_proto POST (null) [04:38:00]execute_cgi path=json_proto method=POST [04:38:00]POST find Content-Length [04:38:00]Host: 172.17.57.71:8080 [04:38:00]Content-Length: 1644 [04:38:00]Content-Type: application/json [04:38:00] [04:38:00]POST finish read [04:38:00]Found Content-Length = 1644 [04:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127288", "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 }]} ,{ "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 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:00]execute_script... [04:38: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)127288", "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 }]} ,{ "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 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:00]POST & json_proto [04:38:00]process_json_proto [04:38:00]json parsed OK: [04:38:00]protocol is kg_v1.0 [04:38:00]action value=close_receipt [04:38:00]process_action close_receipt [04:38:00]cmd_close_receipt [04:38:00]MH_GetDate [04:38:00]Write to MH i2c: F0 00 00 63 05 57 [04:38:00]Write i2c OK [04:38:00]MH_I2C_Read... [04:38:00]Read from MH i2c: F0 [04:38:00]MH_I2C_Read... [04:38:00]Read from MH i2c: F0 09 00 [04:38:00]MH_I2C_Read... [04:38:00]Read from MH i2c: F0 09 00 63 05 00 2A 13 E5 66 33 3A A4 66 5F [04:38:00]GetLastDocTimeStamp 1726287610 [04:38:00]current date 1726288682 [04:38:00]FM_GetShiftState [04:38:00]SAM_PROTO_GetShiftState [04:38:00]wFMCommunicate request_size=4 [04:38:00]MH_SAM_APDU [04:38:00]CAPDU: 80 13 01 00 [04:38:00]Write to MH i2c: E2 08 00 64 05 80 13 01 00 00 00 00 00 E6 [04:38:00]Write i2c OK [04:38:00]MH_I2C_Read... [04:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:01]Read from MH i2c: E2 [04:38:01]MH_I2C_Read... [04:38:01]Read from MH i2c: E2 0E 00 [04:38:01]MH_I2C_Read... [04:38:01]Read from MH i2c: E2 0E 00 64 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 80 [04:38:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [04:38:01]wFMCommunicate OK [04:38:01]SAM_PROTO_GetShiftState done [04:38:01]FM_GetShiftState done [04:38:01]opened in 1726273389 [04:38:01]opened+sec_in_day 1726359789 [04:38:01]quantity*price = 13000 [04:38:01]sum+1 = 13001 [04:38:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.40 Наличными: 0.00 Безнал.: 390.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 18 14.09.2024 04:38 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92367 ФПД: 5357422016610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T043802&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92367&fm=5357422016610&tin=02508201610067®Number=0000000000091423&sum=39000 0 [04:38:02]StoreToDocumentArchive [04:38:02]shift 506 fd 92367 [04:38:02]save to /storage/0506/doc_00092367 [04:38:02]save last doc name /storage/0506/doc_00092367 to /storage/kkm_last_doc_name [04:38:02]save OK [04:38:02]Clear old archive folders... [04:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=620 [04:38:02]tlvbuf is 00FBCF60 [04:38:02]SAM_PROTO_ClearQueue [04:38:02]wFMCommunicate request_size=4 [04:38:02]MH_SAM_APDU [04:38:02]CAPDU: 80 09 00 00 [04:38:02]Write to MH i2c: E2 08 00 71 05 80 09 00 00 00 00 00 00 E8 [04:38:02]Write i2c OK [04:38:02]MH_I2C_Read... [04:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:02]Read from MH i2c: E2 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [04:38:02]RAPDU: 90 00 [04:38:02]wFMCommunicate OK [04:38:02]SAM_PROTO_ClearQueue done [04:38:02]KKMCreateOFDPacket [04:38:02]OFDProtocolAddRootSTLVToBuf [04:38:02]FM_MakeSignedData [04:38:02]FM_MakeSignedData [04:38:02]SAM_PROTO_SignData [04:38:02]wFMCommunicate request_size=4 [04:38:02]MH_SAM_APDU [04:38:02]CAPDU: 80 0D 01 02 [04:38:02]Write to MH i2c: E2 08 00 72 05 80 0D 01 02 00 00 00 00 F0 [04:38:02]Write i2c OK [04:38:02]MH_I2C_Read... [04:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:02]Read from MH i2c: E2 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [04:38:02]RAPDU: 90 00 [04:38:02]wFMCommunicate OK [04:38:02]wFMCommunicate request_size=255 [04:38:02]MH_SAM_APDU [04:38:02]CAPDU: 80 0D 02 02 FA 03 00 6C 02 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 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 23 04 69 00 8A 04 0D 00 32 30 30 [04:38:02]Write to MH i2c: E2 02 01 73 05 80 0D 02 02 FA 00 03 00 6C 02 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 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 23 04 69 00 8A 04 0D 00 32 30 30 00 00 FF [04:38:02]Write i2c OK [04:38:02]MH_I2C_Read... [04:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:02]Read from MH i2c: E2 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [04:38:02]RAPDU: 90 00 [04:38:02]wFMCommunicate OK [04:38:02]wFMCommunicate request_size=255 [04:38:02]MH_SAM_APDU [04:38:02]CAPDU: 80 0D 02 02 FA 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 [04:38:02]Write to MH i2c: E2 02 01 74 05 80 0D 02 02 FA 00 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 CD [04:38:02]Write i2c OK [04:38:02]MH_I2C_Read... [04:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:02]Read from MH i2c: E2 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [04:38:02]RAPDU: 90 00 [04:38:02]wFMCommunicate OK [04:38:02]wFMCommunicate request_size=129 [04:38:02]MH_SAM_APDU [04:38:02]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2A 13 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 68 01 00 35 04 06 00 04 DF 5F 3C 78 62 [04:38:02]Write to MH i2c: E2 84 00 75 05 80 0D 02 02 7C 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2A 13 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 68 01 00 35 04 06 00 04 DF 5F 3C 78 62 00 00 72 [04:38:02]Write i2c OK [04:38:02]MH_I2C_Read... [04:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:02]Read from MH i2c: E2 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [04:38:02]RAPDU: 90 00 [04:38:02]wFMCommunicate OK [04:38:02]wFMCommunicate request_size=4 [04:38:02]MH_SAM_APDU [04:38:02]CAPDU: 80 0D 03 02 [04:38:02]Write to MH i2c: E2 08 00 76 05 80 0D 03 02 00 00 00 00 F6 [04:38:02]Write i2c OK [04:38:02]MH_I2C_Read... [04:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:03]Read from MH i2c: E2 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 0B 00 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 0B 00 76 05 00 70 68 64 32 19 71 56 1E 90 00 63 [04:38:03]RAPDU: 70 68 64 32 19 71 56 1E 90 00 [04:38:03]wFMCommunicate OK [04:38:03]SAM_PROTO_SignData done [04:38:03]FM_MakeSignedData done [04:38:03]CreateOFDProtocolMessage [04:38:03]wFMCommunicate request_size=4 [04:38:03]MH_SAM_APDU [04:38:03]CAPDU: 80 11 00 00 [04:38:03]Write to MH i2c: E2 08 00 77 05 80 11 00 00 00 00 00 00 F6 [04:38:03]Write i2c OK [04:38:03]MH_I2C_Read... [04:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:03]Read from MH i2c: E2 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 17 00 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 17 00 77 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4D [04:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:38:03]wFMCommunicate OK [04:38:03]CreateOFDProtocolMessage done [04:38:03]OFDSenderStorePacket 92367 [04:38:03]StoreOFDPacket docnum=92367 [04:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 80 02 00 00 EC 7D 78 02 18 F8 5A 03 01 00 03 00 6C 02 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 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 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2A 13 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 68 01 00 35 04 06 00 04 DF 5F 3C 78 62 70 68 64 32 19 71 56 1E [04:38:03]CheckFolder [04:38:03]dirname=/storage/ofd_packets [04:38:03]CheckFolder done [04:38:03]ProducePacketName [04:38:03]name=ofd_packets/00092367 [04:38:03]NVStorageSaveData ofd_packets/00092367 [04:38:03]File name is /storage/ofd_packets/00092367 [04:38:03]Write 670 bytes [04:38:03]NVStorageSaveData done [04:38:03]OFDSenderStorePacket done [04:38:03]KKMCreateOFDPacket done [04:38:03]NVStorageSaveData kkm_last_timestamp [04:38:03]File name is /storage/kkm_last_timestamp [04:38:03]Write 4 bytes [04:38:03]NVStorageSaveData done [04:38:03]ExternCall_PrintAddStr [04:38:03]wPrintStart [04:38:03]Write to MH i2c: 01 00 00 78 05 7D [04:38:03]Write i2c OK [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: 01 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: 01 07 00 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: 01 07 00 78 05 00 00 00 00 00 FF 0F 92 [04:38:03]RasterBufferAndPrint [04:38:03]line Счет N : (3)127288 [04:38:03]line ИНН: 02508201610067 [04:38:03]line Контрольно-Кассовый Чек [04:38:03]line ПРОДАЖА [04:38:03]line Товар: 2000036230011 [04:38:03]line Кофе Латте XL(GABB TRADE) [04:38:03]line 1.000 * 130.00 [04:38:03]line = 130.00 [04:38:03]line НДС 12% НСП 1% [04:38:03]line > о реализуемом товаре [04:38:03]line Товар: 2000032760017 [04:38:03]line Слойка DC треугольная мясо110г [04:38:03]line 2.000 * 65.00 [04:38:03]line = 130.00 [04:38:03]line НДС 12% НСП 1% [04:38:03]line > о реализуемом товаре [04:38:03]line Товар: 2000032780025 [04:38:03]line Сосиска в тесте DC 110г [04:38:03]line 1.000 * 60.00 [04:38:03]line = 60.00 [04:38:03]line НДС 12% НСП 1% [04:38:03]line > о реализуемом товаре [04:38:03]line Товар: 4607065000868 [04:38:03]line Шок M&M`s с шоколадом 45г [04:38:03]line 1.000 * 70.00 [04:38:03]line = 70.00 [04:38:03]line НДС 12% НСП 1% [04:38:03]line > о реализуемом товаре [04:38:03]line ИТОГО: 390.00 [04:38:03]line НСП 1% : 3.45 [04:38:03]line НДС 12% : 41.40 [04:38:03]line Наличными: 0.00 [04:38:03]line Безнал.: 390.00 [04:38:03]line Место: АЗС № 5 "Партнер Нефть" [04:38:03]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [04:38:03]line СНО: Общий режим [04:38:03]line Чек 18 14.09.2024 04:38 [04:38:03]line Смена: 506 ФФД: 1.0 [04:38:03]line ЗНМ: 03000000022 [04:38:03]line РНМ: 0000000000091423 [04:38:03]line Версия ККМ: 001 [04:38:03]line Платежная система: О! деньги [04:38:03]line ФМ: 0000000000874692 [04:38:03]line ФД: 92367 [04:38:03]line ФПД: 5357422016610 [04:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T043802&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92367&fm=5357422016610&tin=02508201610067®Number=0000000000091423&sum=39000 [04:38:03]line 0 [04:38:03]OFD Sender: Processing packet 92367 [packets to send 63, broken 62] [04:38:03]ProducePacketName [04:38:03]name=ofd_packets/00092367 [04:38:03]OFD Sender: To server: pG, [04:38:03]CommunicateWithHost lk.salyk.kg:30040 [04:38:03]ConnectInit lk.salyk.kg [04:38:03]written 0, free lines is 4095 [04:38:03]Connected sock=10 [04:38:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 80 02 00 00 EC 7D 78 02 18 F8 5A 03 01 00 03 00 6C 02 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 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 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2A 13 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 68 01 00 35 04 06 00 04 DF 5F 3C 78 62 70 68 64 32 19 71 56 1E [04:38:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9F AF 47 00 F0 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 CF 68 01 00 F4 03 04 00 A7 BB E4 66 B6 04 01 00 00 33 14 94 AE DA 4E 06 94 [04:38:03]CommunicateWithHost err = 0 [04:38:03]CheckOFDResponse [04:38:03]1017 (14) - 77093643461234 [04:38:03]1041 (16) - 0000000000874692 [04:38:03]1040 (4) - 92367 [04:38:03]1012 (4) - 13.09.2024 22:24 [04:38:03]1206 (1) - 0 [04:38:03]OFD Sender: Remove packet 92367 [04:38:03]ProducePacketName [04:38:03]name=ofd_packets/00092367 [04:38:03]NVStorageDeleteData [04:38:04]Write to MH i2c: 01 00 00 B5 05 BA [04:38:04]Write i2c OK [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 07 00 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 2C 0C F9 [04:38:04]RasterBufferAndPrint [04:38:04]line [04:38:04]line [04:38:04]line [04:38:04]line [04:38:04]line [04:38:04]written 0, free lines is 3123 [04:38:04]MH_Cut [04:38:04]Write to MH i2c: D1 01 00 BC 05 01 93 [04:38:04]Write i2c OK [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: D1 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: D1 01 00 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: D1 01 00 BC 05 00 92 [04:38:04]Write to MH i2c: 01 00 00 BD 05 C2 [04:38:04]Write i2c OK [04:38:04]MH_I2C_Read... [04:38:04]OFD Sender: No OFD packet to send [04:38:04]*** Cut start [04:38:04]*** Purtial cut [04:38:04]*** Stage 1: CUTSNS_PIN = 1 [04:38:06]Read from MH i2c: 01 [04:38:06]MH_I2C_Read... [04:38:06]*** Stop cut motor [04:38:06]*** Cut end [04:38:06]Read from MH i2c: 01 07 00 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 FF 0F D7 [04:38:06]process_action close_receipt done [04:38:06]requested_data is exist [04:38:06]produce_requested_data [04:38:06]requested_item fm.sn is exist - process it [04:38:06]wFMCommunicate request_size=4 [04:38:06]MH_SAM_APDU [04:38:06]CAPDU: 80 11 00 00 [04:38:06]Write to MH i2c: E2 08 00 BE 05 80 11 00 00 00 00 00 00 3D [04:38:06]Write i2c OK [04:38:06]MH_I2C_Read... [04:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:06]Read from MH i2c: E2 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: E2 17 00 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: E2 17 00 BE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 94 [04:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:38:06]wFMCommunicate OK [04:38:06]requested_item fd.num is exist - process it [04:38:06]SAM_PROTO_GetFieldsCounters [04:38:06]wFMCommunicate request_size=4 [04:38:06]MH_SAM_APDU [04:38:06]CAPDU: 80 13 00 00 [04:38:06]Write to MH i2c: E2 08 00 BF 05 80 13 00 00 00 00 00 00 40 [04:38:06]Write i2c OK [04:38:06]MH_I2C_Read... [04:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:07]Read from MH i2c: E2 [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: E2 62 00 [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: E2 62 00 BF 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CF 68 01 00 0E 04 04 00 FA 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 C8 [04:38:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 CF 68 01 00 0E 04 04 00 FA 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 [04:38:07]wFMCommunicate OK [04:38:07]SAM_PROTO_GetFieldsCounters done [04:38:07]requested_item shift.num is exist - process it [04:38:07]requested_item shift.opened is exist - process it [04:38:07]req_shift_opened [04:38:07]FM_GetShiftState [04:38:07]SAM_PROTO_GetShiftState [04:38:07]wFMCommunicate request_size=4 [04:38:07]MH_SAM_APDU [04:38:07]CAPDU: 80 13 01 00 [04:38:07]Write to MH i2c: E2 08 00 C0 05 80 13 01 00 00 00 00 00 42 [04:38:07]Write i2c OK [04:38:07]MH_I2C_Read... [04:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:07]Read from MH i2c: E2 [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: E2 0E 00 [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: E2 0E 00 C0 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DC [04:38:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [04:38:07]wFMCommunicate OK [04:38:07]SAM_PROTO_GetShiftState done [04:38:07]FM_GetShiftState done [04:38:07]req_shift_opened done [04:38:07]requested_item shift.open_date is exist - process it [04:38:07]req_shift_open_date [04:38:07]req_shift_open_date done [04:38:07]produce_requested_data done [04:38:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92367,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [04:38:07]process_action_free close_receipt [04:38:07]json_value_free [04:38:07]json_value_free done [04:38:07]process_json_proto returns [04:38:07]Send response to host [04:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92367,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [04:38:07]free response buf [04:38:07]execute_script done [04:38:07]execute_script returns [04:38:07]free content buf [04:38:07]Sock 8.Close socket [04:38:07]Sock 8.Thread stoped [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]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:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:37]accept exits with 9 [04:56:37]New connection [04:56:37]New thread 3066658148 created [04:56:37]Thread 3066801508 joined [04:56:37]Waiting for new connection... [04:56:37] Sock 9.Parse request [04:56:37]Sock 9.Check first char [04:56:37]Sock 9.First char is OK [04:56:37]request: POST /json_proto HTTP/1.0 [04:56:37]Method: POST [04:56:37]URL: /json_proto [04:56:37]Method is POST - this is cgi request [04:56:37]url: /json_proto [04:56:37]query_string will be loaded in cgi processing [04:56:37]execute_cgi json_proto POST (null) [04:56:37]execute_cgi path=json_proto method=POST [04:56:37]POST find Content-Length [04:56:37]Host: 172.17.57.71:8080 [04:56:37]Content-Length: 642 [04:56:37]Content-Type: application/json [04:56:37] [04:56:37]POST finish read [04:56:37]Found Content-Length = 642 [04:56:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127289", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:37]execute_script... [04:56:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127289", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:37]POST & json_proto [04:56:37]process_json_proto [04:56:37]json parsed OK: [04:56:37]protocol is kg_v1.0 [04:56:37]action value=close_receipt [04:56:37]process_action close_receipt [04:56:37]cmd_close_receipt [04:56:37]MH_GetDate [04:56:37]Write to MH i2c: F0 00 00 C1 05 B5 [04:56:37]Write i2c OK [04:56:37]MH_I2C_Read... [04:56:37]Read from MH i2c: F0 [04:56:37]MH_I2C_Read... [04:56:37]Read from MH i2c: F0 09 00 [04:56:37]MH_I2C_Read... [04:56:37]Read from MH i2c: F0 09 00 C1 05 00 86 17 E5 66 33 3A A4 66 1D [04:56:37]GetLastDocTimeStamp 1726288682 [04:56:37]current date 1726289798 [04:56:37]FM_GetShiftState [04:56:37]SAM_PROTO_GetShiftState [04:56:37]wFMCommunicate request_size=4 [04:56:37]MH_SAM_APDU [04:56:37]CAPDU: 80 13 01 00 [04:56:37]Write to MH i2c: E2 08 00 C2 05 80 13 01 00 00 00 00 00 44 [04:56:37]Write i2c OK [04:56:37]MH_I2C_Read... [04:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:37]Read from MH i2c: E2 [04:56:37]MH_I2C_Read... [04:56:37]Read from MH i2c: E2 0E 00 [04:56:37]MH_I2C_Read... [04:56:37]Read from MH i2c: E2 0E 00 C2 05 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DE [04:56:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [04:56:37]wFMCommunicate OK [04:56:37]SAM_PROTO_GetShiftState done [04:56:37]FM_GetShiftState done [04:56:37]opened in 1726273389 [04:56:37]opened+sec_in_day 1726359789 [04:56:37]quantity*price = 5900 [04:56:37]sum+1 = 5901 [04:56:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 19 14.09.2024 04:56 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92368 ФПД: 190198755849908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T045638&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92368&fm=190198755849908&tin=02508201610067®Number=0000000000091423&sum=5900 0 [04:56:38]StoreToDocumentArchive [04:56:38]shift 506 fd 92368 [04:56:38]save to /storage/0506/doc_00092368 [04:56:38]save last doc name /storage/0506/doc_00092368 to /storage/kkm_last_doc_name [04:56:38]save OK [04:56:38]Clear old archive folders... [04:56:38]ProcessDocumentItem done err = 0, tmpTLVsize=281 [04:56:38]tlvbuf is 00FB2110 [04:56:38]SAM_PROTO_ClearQueue [04:56:38]wFMCommunicate request_size=4 [04:56:38]MH_SAM_APDU [04:56:38]CAPDU: 80 09 00 00 [04:56:38]Write to MH i2c: E2 08 00 CF 05 80 09 00 00 00 00 00 00 46 [04:56:38]Write i2c OK [04:56:38]MH_I2C_Read... [04:56:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:56:38]Read from MH i2c: E2 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 03 00 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 03 00 CF 05 00 90 00 48 [04:56:38]RAPDU: 90 00 [04:56:38]wFMCommunicate OK [04:56:38]SAM_PROTO_ClearQueue done [04:56:38]KKMCreateOFDPacket [04:56:38]OFDProtocolAddRootSTLVToBuf [04:56:38]FM_MakeSignedData [04:56:38]FM_MakeSignedData [04:56:38]SAM_PROTO_SignData [04:56:38]wFMCommunicate request_size=4 [04:56:38]MH_SAM_APDU [04:56:38]CAPDU: 80 0D 01 02 [04:56:38]Write to MH i2c: E2 08 00 D0 05 80 0D 01 02 00 00 00 00 4E [04:56:38]Write i2c OK [04:56:38]MH_I2C_Read... [04:56:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:56:38]Read from MH i2c: E2 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 03 00 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 03 00 D0 05 00 90 00 49 [04:56:38]RAPDU: 90 00 [04:56:38]wFMCommunicate OK [04:56:38]wFMCommunicate request_size=255 [04:56:38]MH_SAM_APDU [04:56:38]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 86 17 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 [04:56:38]Write to MH i2c: E2 02 01 D1 05 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 86 17 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 CB [04:56:38]Write i2c OK [04:56:38]MH_I2C_Read... [04:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:38]Read from MH i2c: E2 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 03 00 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 03 00 D1 05 00 90 00 4A [04:56:38]RAPDU: 90 00 [04:56:38]wFMCommunicate OK [04:56:38]wFMCommunicate request_size=40 [04:56:38]MH_SAM_APDU [04:56:38]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 68 01 00 35 04 06 00 AC FC 19 47 76 B4 [04:56:38]Write to MH i2c: E2 2B 00 D2 05 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 68 01 00 35 04 06 00 AC FC 19 47 76 B4 00 00 7D [04:56:38]Write i2c OK [04:56:38]MH_I2C_Read... [04:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:38]Read from MH i2c: E2 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 03 00 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 03 00 D2 05 00 90 00 4B [04:56:38]RAPDU: 90 00 [04:56:38]wFMCommunicate OK [04:56:38]wFMCommunicate request_size=4 [04:56:38]MH_SAM_APDU [04:56:38]CAPDU: 80 0D 03 02 [04:56:38]Write to MH i2c: E2 08 00 D3 05 80 0D 03 02 00 00 00 00 53 [04:56:38]Write i2c OK [04:56:38]MH_I2C_Read... [04:56:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:56:38]Read from MH i2c: E2 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 0B 00 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 0B 00 D3 05 00 2C 38 B9 5A AD 27 2F 46 90 00 14 [04:56:38]RAPDU: 2C 38 B9 5A AD 27 2F 46 90 00 [04:56:38]wFMCommunicate OK [04:56:38]SAM_PROTO_SignData done [04:56:38]FM_MakeSignedData done [04:56:38]CreateOFDProtocolMessage [04:56:38]wFMCommunicate request_size=4 [04:56:38]MH_SAM_APDU [04:56:38]CAPDU: 80 11 00 00 [04:56:38]Write to MH i2c: E2 08 00 D4 05 80 11 00 00 00 00 00 00 53 [04:56:38]Write i2c OK [04:56:38]MH_I2C_Read... [04:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:38]Read from MH i2c: E2 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 17 00 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: E2 17 00 D4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AA [04:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:56:38]wFMCommunicate OK [04:56:38]CreateOFDProtocolMessage done [04:56:38]OFDSenderStorePacket 92368 [04:56:38]StoreOFDPacket docnum=92368 [04:56:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 1A F4 25 01 B1 83 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 86 17 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 68 01 00 35 04 06 00 AC FC 19 47 76 B4 2C 38 B9 5A AD 27 2F 46 [04:56:38]CheckFolder [04:56:38]dirname=/storage/ofd_packets [04:56:38]CheckFolder done [04:56:38]ProducePacketName [04:56:38]name=ofd_packets/00092368 [04:56:38]NVStorageSaveData ofd_packets/00092368 [04:56:38]File name is /storage/ofd_packets/00092368 [04:56:38]Write 331 bytes [04:56:38]NVStorageSaveData done [04:56:38]OFDSenderStorePacket done [04:56:38]KKMCreateOFDPacket done [04:56:38]NVStorageSaveData kkm_last_timestamp [04:56:38]File name is /storage/kkm_last_timestamp [04:56:38]Write 4 bytes [04:56:38]NVStorageSaveData done [04:56:38]ExternCall_PrintAddStr [04:56:38]wPrintStart [04:56:38]Write to MH i2c: 01 00 00 D5 05 DA [04:56:38]Write i2c OK [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: 01 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: 01 07 00 [04:56:38]MH_I2C_Read... [04:56:38]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 FF 0F EF [04:56:38]RasterBufferAndPrint [04:56:38]line Счет N : (3)127289 [04:56:38]line ИНН: 02508201610067 [04:56:38]line Контрольно-Кассовый Чек [04:56:38]line ПРОДАЖА [04:56:38]line Товар: 4607065001445 [04:56:38]line Шок батончик Snickers 50,5г [04:56:38]line 1.000 * 59.00 [04:56:38]line = 59.00 [04:56:38]line НДС 12% НСП 1% [04:56:38]line > о реализуемом товаре [04:56:38]line ИТОГО: 59.00 [04:56:38]line НСП 1% : 0.52 [04:56:38]line НДС 12% : 6.26 [04:56:38]line Наличными: 59.00 [04:56:38]line Безнал.: 0.00 [04:56:38]line Место: АЗС № 5 "Партнер Нефть" [04:56:38]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [04:56:38]line СНО: Общий режим [04:56:38]line Чек 19 14.09.2024 04:56 [04:56:38]line Смена: 506 ФФД: 1.0 [04:56:38]line ЗНМ: 03000000022 [04:56:38]line РНМ: 0000000000091423 [04:56:38]line Версия ККМ: 001 [04:56:38]line ФМ: 0000000000874692 [04:56:38]line ФД: 92368 [04:56:38]line ФПД: 190198755849908 [04:56:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T045638&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92368&fm=190198755849908&tin=02508201610067®Number=0000000000091423&sum=5900 [04:56:39]line 0 [04:56:39]OFD Sender: Processing packet 92368 [packets to send 63, broken 62] [04:56:39]ProducePacketName [04:56:39]name=ofd_packets/00092368 [04:56:39]OFD Sender: To server: pG, [04:56:39]CommunicateWithHost lk.salyk.kg:30040 [04:56:39]ConnectInit lk.salyk.kg [04:56:39]written 0, free lines is 4095 [04:56:39]Connected sock=10 [04:56:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 1A F4 25 01 B1 83 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 86 17 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 68 01 00 35 04 06 00 AC FC 19 47 76 B4 2C 38 B9 5A AD 27 2F 46 [04:56:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FF 81 47 00 DC 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D0 68 01 00 F4 03 04 00 02 C0 E4 66 B6 04 01 00 00 9C 3A 43 98 78 1B 13 C5 [04:56:39]CommunicateWithHost err = 0 [04:56:39]CheckOFDResponse [04:56:39]1017 (14) - 77093643461234 [04:56:39]1041 (16) - 0000000000874692 [04:56:39]1040 (4) - 92368 [04:56:39]1012 (4) - 13.09.2024 22:43 [04:56:39]1206 (1) - 0 [04:56:39]OFD Sender: Remove packet 92368 [04:56:39]ProducePacketName [04:56:39]name=ofd_packets/00092368 [04:56:39]NVStorageDeleteData [04:56:39]Write to MH i2c: 01 00 00 FD 05 02 [04:56:39]Write i2c OK [04:56:39]MH_I2C_Read... [04:56:39]Read from MH i2c: 01 [04:56:39]MH_I2C_Read... [04:56:39]Read from MH i2c: 01 07 00 [04:56:39]MH_I2C_Read... [04:56:39]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 2C 0D 42 [04:56:39]RasterBufferAndPrint [04:56:39]line [04:56:39]line [04:56:39]line [04:56:39]line [04:56:39]line [04:56:39]written 0, free lines is 3379 [04:56:39]MH_Cut [04:56:39]Write to MH i2c: D1 01 00 04 06 01 DC [04:56:39]Write i2c OK [04:56:39]MH_I2C_Read... [04:56:39]Read from MH i2c: D1 [04:56:39]MH_I2C_Read... [04:56:39]Read from MH i2c: D1 01 00 [04:56:39]MH_I2C_Read... [04:56:39]Read from MH i2c: D1 01 00 04 06 00 DB [04:56:39]Write to MH i2c: 01 00 00 05 06 0B [04:56:39]Write i2c OK [04:56:39]MH_I2C_Read... [04:56:39]OFD Sender: No OFD packet to send [04:56:40]*** Cut start [04:56:40]*** Purtial cut [04:56:40]*** Stage 1: CUTSNS_PIN = 1 [04:56:42]Read from MH i2c: 01 [04:56:42]MH_I2C_Read... [04:56:42]*** Stop cut motor [04:56:42]*** Cut end [04:56:42]Read from MH i2c: 01 07 00 [04:56:42]MH_I2C_Read... [04:56:42]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [04:56:42]process_action close_receipt done [04:56:42]requested_data is exist [04:56:42]produce_requested_data [04:56:42]requested_item fm.sn is exist - process it [04:56:42]wFMCommunicate request_size=4 [04:56:42]MH_SAM_APDU [04:56:42]CAPDU: 80 11 00 00 [04:56:42]Write to MH i2c: E2 08 00 06 06 80 11 00 00 00 00 00 00 86 [04:56:42]Write i2c OK [04:56:42]MH_I2C_Read... [04:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:42]Read from MH i2c: E2 [04:56:42]MH_I2C_Read... [04:56:42]Read from MH i2c: E2 17 00 [04:56:42]MH_I2C_Read... [04:56:42]Read from MH i2c: E2 17 00 06 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [04:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [04:56:42]wFMCommunicate OK [04:56:42]requested_item fd.num is exist - process it [04:56:42]SAM_PROTO_GetFieldsCounters [04:56:42]wFMCommunicate request_size=4 [04:56:42]MH_SAM_APDU [04:56:42]CAPDU: 80 13 00 00 [04:56:42]Write to MH i2c: E2 08 00 07 06 80 13 00 00 00 00 00 00 89 [04:56:42]Write i2c OK [04:56:42]MH_I2C_Read... [04:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:42]Read from MH i2c: E2 [04:56:42]MH_I2C_Read... [04:56:42]Read from MH i2c: E2 62 00 [04:56:42]MH_I2C_Read... [04:56:42]Read from MH i2c: E2 62 00 07 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D0 68 01 00 0E 04 04 00 FA 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 15 [04:56:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D0 68 01 00 0E 04 04 00 FA 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 [04:56:42]wFMCommunicate OK [04:56:42]SAM_PROTO_GetFieldsCounters done [04:56:42]requested_item shift.num is exist - process it [04:56:42]requested_item shift.opened is exist - process it [04:56:42]req_shift_opened [04:56:42]FM_GetShiftState [04:56:42]SAM_PROTO_GetShiftState [04:56:42]wFMCommunicate request_size=4 [04:56:42]MH_SAM_APDU [04:56:42]CAPDU: 80 13 01 00 [04:56:42]Write to MH i2c: E2 08 00 08 06 80 13 01 00 00 00 00 00 8B [04:56:42]Write i2c OK [04:56:42]MH_I2C_Read... [04:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:42]Read from MH i2c: E2 [04:56:42]MH_I2C_Read... [04:56:42]Read from MH i2c: E2 0E 00 [04:56:42]MH_I2C_Read... [04:56:42]Read from MH i2c: E2 0E 00 08 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 25 [04:56:42]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [04:56:42]wFMCommunicate OK [04:56:42]SAM_PROTO_GetShiftState done [04:56:42]FM_GetShiftState done [04:56:42]req_shift_opened done [04:56:42]requested_item shift.open_date is exist - process it [04:56:42]req_shift_open_date [04:56:42]req_shift_open_date done [04:56:42]produce_requested_data done [04:56:42]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92368,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [04:56:42]process_action_free close_receipt [04:56:42]json_value_free [04:56:42]json_value_free done [04:56:42]process_json_proto returns [04:56:42]Send response to host [04:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92368,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [04:56:42]free response buf [04:56:42]execute_script done [04:56:42]execute_script returns [04:56:42]free content buf [04:56:42]Sock 9.Close socket [04:56:42]Sock 9.Thread stoped [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]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:11]accept exits with 8 [05:00:11]New connection [05:00:11]New thread 3066801508 created [05:00:11]Thread 3066658148 joined [05:00:11]Waiting for new connection... [05:00:11] Sock 8.Parse request [05:00:11]Sock 8.Check first char [05:00:11]Sock 8.First char is OK [05:00:11]request: POST /json_proto HTTP/1.0 [05:00:11]Method: POST [05:00:11]URL: /json_proto [05:00:11]Method is POST - this is cgi request [05:00:11]url: /json_proto [05:00:11]query_string will be loaded in cgi processing [05:00:11]execute_cgi json_proto POST (null) [05:00:11]execute_cgi path=json_proto method=POST [05:00:11]POST find Content-Length [05:00:11]Host: 172.17.57.71:8080 [05:00:11]Content-Length: 1098 [05:00:11]Content-Type: application/json [05:00:11] [05:00:11]POST finish read [05:00:11]Found Content-Length = 1098 [05:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127290", "tax_sys" : 0, "items" : [ { "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 121.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:11]execute_script... [05:00: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)127290", "tax_sys" : 0, "items" : [ { "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 121.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:11]POST & json_proto [05:00:11]process_json_proto [05:00:11]json parsed OK: [05:00:11]protocol is kg_v1.0 [05:00:11]action value=close_receipt [05:00:11]process_action close_receipt [05:00:11]cmd_close_receipt [05:00:11]MH_GetDate [05:00:11]Write to MH i2c: F0 00 00 09 06 FE [05:00:11]Write i2c OK [05:00:11]MH_I2C_Read... [05:00:11]Read from MH i2c: F0 [05:00:11]MH_I2C_Read... [05:00:11]Read from MH i2c: F0 09 00 [05:00:11]MH_I2C_Read... [05:00:11]Read from MH i2c: F0 09 00 09 06 00 5C 18 E5 66 33 3A A4 66 3D [05:00:11]GetLastDocTimeStamp 1726289798 [05:00:11]current date 1726290012 [05:00:11]FM_GetShiftState [05:00:11]SAM_PROTO_GetShiftState [05:00:11]wFMCommunicate request_size=4 [05:00:11]MH_SAM_APDU [05:00:11]CAPDU: 80 13 01 00 [05:00:11]Write to MH i2c: E2 08 00 0A 06 80 13 01 00 00 00 00 00 8D [05:00:11]Write i2c OK [05:00:11]MH_I2C_Read... [05:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:11]Read from MH i2c: E2 [05:00:11]MH_I2C_Read... [05:00:11]Read from MH i2c: E2 0E 00 [05:00:11]MH_I2C_Read... [05:00:11]Read from MH i2c: E2 0E 00 0A 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 27 [05:00:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [05:00:11]wFMCommunicate OK [05:00:11]SAM_PROTO_GetShiftState done [05:00:11]FM_GetShiftState done [05:00:11]opened in 1726273389 [05:00:11]opened+sec_in_day 1726359789 [05:00:11]quantity*price = 5100 [05:00:11]sum+1 = 5101 [05:00:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 121.00 НСП 1% : 1.07 НДС 12% : 12.85 Наличными: 0.00 Безнал.: 121.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 20 14.09.2024 05:00 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92369 ФПД: 114103261416965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T050012&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92369&fm=114103261416965&tin=02508201610067®Number=0000000000091423&sum=12100 0 [05:00:12]StoreToDocumentArchive [05:00:12]shift 506 fd 92369 [05:00:12]save to /storage/0506/doc_00092369 [05:00:12]save last doc name /storage/0506/doc_00092369 to /storage/kkm_last_doc_name [05:00:12]save OK [05:00:12]Clear old archive folders... [05:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=397 [05:00:12]tlvbuf is 00FBB6C0 [05:00:12]SAM_PROTO_ClearQueue [05:00:12]wFMCommunicate request_size=4 [05:00:12]MH_SAM_APDU [05:00:12]CAPDU: 80 09 00 00 [05:00:12]Write to MH i2c: E2 08 00 17 06 80 09 00 00 00 00 00 00 8F [05:00:12]Write i2c OK [05:00:12]MH_I2C_Read... [05:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:12]Read from MH i2c: E2 [05:00:12]MH_I2C_Read... [05:00:12]Read from MH i2c: E2 03 00 [05:00:12]MH_I2C_Read... [05:00:12]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [05:00:12]RAPDU: 90 00 [05:00:12]wFMCommunicate OK [05:00:12]SAM_PROTO_ClearQueue done [05:00:12]KKMCreateOFDPacket [05:00:12]OFDProtocolAddRootSTLVToBuf [05:00:12]FM_MakeSignedData [05:00:12]FM_MakeSignedData [05:00:12]SAM_PROTO_SignData [05:00:12]wFMCommunicate request_size=4 [05:00:12]MH_SAM_APDU [05:00:12]CAPDU: 80 0D 01 02 [05:00:12]Write to MH i2c: E2 08 00 18 06 80 0D 01 02 00 00 00 00 97 [05:00:12]Write i2c OK [05:00:12]MH_I2C_Read... [05:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:12]Read from MH i2c: E2 [05:00:12]MH_I2C_Read... [05:00:12]Read from MH i2c: E2 03 00 [05:00:12]MH_I2C_Read... [05:00:12]Read from MH i2c: E2 03 00 18 06 00 90 00 92 [05:00:12]RAPDU: 90 00 [05:00:12]wFMCommunicate OK [05:00:12]wFMCommunicate request_size=255 [05:00:12]MH_SAM_APDU [05:00:12]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 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 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 44 2F 00 00 00 00 EB 03 26 00 [05:00:12]Write to MH i2c: E2 02 01 19 06 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 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 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 44 2F 00 00 00 00 EB 03 26 00 00 00 83 [05:00:12]Write i2c OK [05:00:12]MH_I2C_Read... [05:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:12]Read from MH i2c: E2 [05:00:12]MH_I2C_Read... [05:00:12]Read from MH i2c: E2 03 00 [05:00:12]MH_I2C_Read... [05:00:12]Read from MH i2c: E2 03 00 19 06 00 90 00 93 [05:00:12]RAPDU: 90 00 [05:00:12]wFMCommunicate OK [05:00:12]wFMCommunicate request_size=156 [05:00:12]MH_SAM_APDU [05:00:12]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 2F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5C 18 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 68 01 00 35 04 06 00 67 C6 BC 5D 4E 05 [05:00:12]Write to MH i2c: E2 9F 00 1A 06 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 2F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5C 18 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 68 01 00 35 04 06 00 67 C6 BC 5D 4E 05 00 00 78 [05:00:12]Write i2c OK [05:00:12]MH_I2C_Read... [05:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:13]Read from MH i2c: E2 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: E2 03 00 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: E2 03 00 1A 06 00 90 00 94 [05:00:13]RAPDU: 90 00 [05:00:13]wFMCommunicate OK [05:00:13]wFMCommunicate request_size=4 [05:00:13]MH_SAM_APDU [05:00:13]CAPDU: 80 0D 03 02 [05:00:13]Write to MH i2c: E2 08 00 1B 06 80 0D 03 02 00 00 00 00 9C [05:00:13]Write i2c OK [05:00:13]MH_I2C_Read... [05:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:13]Read from MH i2c: E2 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: E2 0B 00 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: E2 0B 00 1B 06 00 7C 40 F8 33 B5 B4 81 AD 90 00 1B [05:00:13]RAPDU: 7C 40 F8 33 B5 B4 81 AD 90 00 [05:00:13]wFMCommunicate OK [05:00:13]SAM_PROTO_SignData done [05:00:13]FM_MakeSignedData done [05:00:13]CreateOFDProtocolMessage [05:00:13]wFMCommunicate request_size=4 [05:00:13]MH_SAM_APDU [05:00:13]CAPDU: 80 11 00 00 [05:00:13]Write to MH i2c: E2 08 00 1C 06 80 11 00 00 00 00 00 00 9C [05:00:13]Write i2c OK [05:00:13]MH_I2C_Read... [05:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:13]Read from MH i2c: E2 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: E2 17 00 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: E2 17 00 1C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F3 [05:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [05:00:13]wFMCommunicate OK [05:00:13]CreateOFDProtocolMessage done [05:00:13]OFDSenderStorePacket 92369 [05:00:13]StoreOFDPacket docnum=92369 [05:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 78 2F 99 01 A3 DA 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 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 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 44 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 2F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5C 18 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 68 01 00 35 04 06 00 67 C6 BC 5D 4E 05 7C 40 F8 33 B5 B4 81 AD [05:00:13]CheckFolder [05:00:13]dirname=/storage/ofd_packets [05:00:13]CheckFolder done [05:00:13]ProducePacketName [05:00:13]name=ofd_packets/00092369 [05:00:13]NVStorageSaveData ofd_packets/00092369 [05:00:13]File name is /storage/ofd_packets/00092369 [05:00:13]Write 447 bytes [05:00:13]NVStorageSaveData done [05:00:13]OFDSenderStorePacket done [05:00:13]KKMCreateOFDPacket done [05:00:13]NVStorageSaveData kkm_last_timestamp [05:00:13]File name is /storage/kkm_last_timestamp [05:00:13]Write 4 bytes [05:00:13]NVStorageSaveData done [05:00:13]ExternCall_PrintAddStr [05:00:13]wPrintStart [05:00:13]Write to MH i2c: 01 00 00 1D 06 23 [05:00:13]OFD Sender: Processing packet 92369 [packets to send 63, broken 62] [05:00:13]ProducePacketName [05:00:13]name=ofd_packets/00092369 [05:00:13]OFD Sender: To server: pG, [05:00:13]CommunicateWithHost lk.salyk.kg:30040 [05:00:13]ConnectInit lk.salyk.kg [05:00:13]Write i2c OK [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: 01 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: 01 07 00 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 FF 0F 38 [05:00:13]RasterBufferAndPrint [05:00:13]line Счет N : (3)127290 [05:00:13]line ИНН: 02508201610067 [05:00:13]line Контрольно-Кассовый Чек [05:00:13]line ПРОДАЖА [05:00:13]line Товар: 4700041420152 [05:00:13]line Салфетки влажн BEST GOLD 20шт [05:00:13]line 1.000 * 51.00 [05:00:13]line = 51.00 [05:00:13]line НДС 12% НСП 1% [05:00:13]line > о реализуемом товаре [05:00:13]line Товар: 4607065000868 [05:00:13]line Шок M&M`s с шоколадом 45г [05:00:13]line 1.000 * 70.00 [05:00:13]line = 70.00 [05:00:13]line НДС 12% НСП 1% [05:00:13]line > о реализуемом товаре [05:00:13]line ИТОГО: 121.00 [05:00:13]line НСП 1% : 1.07 [05:00:13]line НДС 12% : 12.85 [05:00:13]line Наличными: 0.00 [05:00:13]line Безнал.: 121.00 [05:00:13]line Место: АЗС № 5 "Партнер Нефть" [05:00:13]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [05:00:13]line СНО: Общий режим [05:00:13]line Чек 20 14.09.2024 05:00 [05:00:13]line Смена: 506 ФФД: 1.0 [05:00:13]line ЗНМ: 03000000022 [05:00:13]line РНМ: 0000000000091423 [05:00:13]line Версия ККМ: 001 [05:00:13]line Платежная система: О! деньги [05:00:13]line ФМ: 0000000000874692 [05:00:13]line ФД: 92369 [05:00:13]line ФПД: 114103261416965 [05:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T050012&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92369&fm=114103261416965&tin=02508201610067®Number=0000000000091423&sum=12100 [05:00:13]line 0 [05:00:13]written 0, free lines is 4095 [05:00:13]Write to MH i2c: 01 00 00 4E 06 54 [05:00:13]Write i2c OK [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: 01 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: 01 07 00 [05:00:13]MH_I2C_Read... [05:00:13]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 A1 0C 08 [05:00:13]RasterBufferAndPrint [05:00:13]line [05:00:13]line [05:00:13]line [05:00:13]line [05:00:13]line [05:00:13]written 0, free lines is 3241 [05:00:14]MH_Cut [05:00:14]Write to MH i2c: D1 01 00 55 06 01 2D [05:00:14]Write i2c OK [05:00:14]MH_I2C_Read... [05:00:14]Read from MH i2c: D1 [05:00:14]MH_I2C_Read... [05:00:14]Read from MH i2c: D1 01 00 [05:00:14]MH_I2C_Read... [05:00:14]Read from MH i2c: D1 01 00 55 06 00 2C [05:00:14]Write to MH i2c: 01 00 00 56 06 5C [05:00:14]Write i2c OK [05:00:14]MH_I2C_Read... [05:00:14]*** Cut start [05:00:14]*** Purtial cut [05:00:14]*** Stage 1: CUTSNS_PIN = 1 [05:00:16]Read from MH i2c: 01 [05:00:16]MH_I2C_Read... [05:00:16]*** Stop cut motor [05:00:16]*** Cut end [05:00:16]Read from MH i2c: 01 07 00 [05:00:16]MH_I2C_Read... [05:00:16]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [05:00:16]process_action close_receipt done [05:00:16]requested_data is exist [05:00:16]produce_requested_data [05:00:16]requested_item fm.sn is exist - process it [05:00:16]wFMCommunicate request_size=4 [05:00:16]MH_SAM_APDU [05:00:16]CAPDU: 80 11 00 00 [05:00:16]Write to MH i2c: E2 08 00 57 06 80 11 00 00 00 00 00 00 D7 [05:00:16]Write i2c OK [05:00:16]MH_I2C_Read... [05:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:16]Read from MH i2c: E2 [05:00:16]MH_I2C_Read... [05:00:16]Read from MH i2c: E2 17 00 [05:00:16]MH_I2C_Read... [05:00:16]Read from MH i2c: E2 17 00 57 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [05:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [05:00:16]wFMCommunicate OK [05:00:16]requested_item fd.num is exist - process it [05:00:16]SAM_PROTO_GetFieldsCounters [05:00:16]wFMCommunicate request_size=4 [05:00:16]MH_SAM_APDU [05:00:16]CAPDU: 80 13 00 00 [05:00:16]Write to MH i2c: E2 08 00 58 06 80 13 00 00 00 00 00 00 DA [05:00:16]Write i2c OK [05:00:16]MH_I2C_Read... [05:00:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:16]Read from MH i2c: E2 [05:00:16]MH_I2C_Read... [05:00:16]Read from MH i2c: E2 62 00 [05:00:16]MH_I2C_Read... [05:00:16]Read from MH i2c: E2 62 00 58 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D1 68 01 00 0E 04 04 00 FA 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 6A [05:00:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D1 68 01 00 0E 04 04 00 FA 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 [05:00:16]wFMCommunicate OK [05:00:16]SAM_PROTO_GetFieldsCounters done [05:00:16]requested_item shift.num is exist - process it [05:00:16]requested_item shift.opened is exist - process it [05:00:16]req_shift_opened [05:00:16]FM_GetShiftState [05:00:16]SAM_PROTO_GetShiftState [05:00:16]wFMCommunicate request_size=4 [05:00:16]MH_SAM_APDU [05:00:16]CAPDU: 80 13 01 00 [05:00:16]Write to MH i2c: E2 08 00 59 06 80 13 01 00 00 00 00 00 DC [05:00:16]Write i2c OK [05:00:16]MH_I2C_Read... [05:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:16]Read from MH i2c: E2 [05:00:16]MH_I2C_Read... [05:00:16]Read from MH i2c: E2 0E 00 [05:00:16]MH_I2C_Read... [05:00:16]Read from MH i2c: E2 0E 00 59 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 76 [05:00:16]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [05:00:16]wFMCommunicate OK [05:00:16]SAM_PROTO_GetShiftState done [05:00:16]FM_GetShiftState done [05:00:16]req_shift_opened done [05:00:16]requested_item shift.open_date is exist - process it [05:00:16]req_shift_open_date [05:00:16]req_shift_open_date done [05:00:16]produce_requested_data done [05:00:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92369,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [05:00:16]process_action_free close_receipt [05:00:16]json_value_free [05:00:16]json_value_free done [05:00:16]process_json_proto returns [05:00:16]Send response to host [05:00:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92369,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [05:00:16]free response buf [05:00:16]execute_script done [05:00:16]execute_script returns [05:00:16]free content buf [05:00:16]Sock 8.Close socket [05:00:16]Sock 8.Thread stoped [05:02:24]ConnectInit Can't connect to host [05:02:24]CommunicateWithHost connect error [05:02:24]CommunicateWithHost err = -1 [05:02:24]OFD Sender: Server communicate error [05:02:29]OFD Sender: Processing packet 92369 [packets to send 63, broken 62] [05:02:29]ProducePacketName [05:02:29]name=ofd_packets/00092369 [05:02:29]OFD Sender: To server: pG, [05:02:29]CommunicateWithHost lk.salyk.kg:30040 [05:02:29]ConnectInit lk.salyk.kg [05:02:29]Connected sock=8 [05:02:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 78 2F 99 01 A3 DA 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 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 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 44 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 2F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5C 18 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D1 68 01 00 35 04 06 00 67 C6 BC 5D 4E 05 7C 40 F8 33 B5 B4 81 AD [05:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 33 69 47 00 FF 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 34 36 39 32 10 04 04 00 D1 68 01 00 F4 03 04 00 60 C1 E4 66 B6 04 01 00 00 84 72 C1 56 2F 53 87 B9 [05:02:29]CommunicateWithHost err = 0 [05:02:29]CheckOFDResponse [05:02:29]1017 (14) - 77093643461234 [05:02:29]1041 (16) - 0000000000874692 [05:02:29]1040 (4) - 92369 [05:02:29]1012 (4) - 13.09.2024 22:49 [05:02:29]1206 (1) - 0 [05:02:29]OFD Sender: Remove packet 92369 [05:02:29]ProducePacketName [05:02:29]name=ofd_packets/00092369 [05:02:29]NVStorageDeleteData [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:05]accept exits with 9 [05:29:05]New connection [05:29:05]New thread 3066658148 created [05:29:05]Thread 3066801508 joined [05:29:05]Waiting for new connection... [05:29:05] Sock 9.Parse request [05:29:05]Sock 9.Check first char [05:29:05]Sock 9.First char is OK [05:29:05]request: POST /json_proto HTTP/1.0 [05:29:05]Method: POST [05:29:05]URL: /json_proto [05:29:05]Method is POST - this is cgi request [05:29:05]url: /json_proto [05:29:05]query_string will be loaded in cgi processing [05:29:05]execute_cgi json_proto POST (null) [05:29:05]execute_cgi path=json_proto method=POST [05:29:05]POST find Content-Length [05:29:05]Host: 172.17.57.71:8080 [05:29:05]Content-Length: 655 [05:29:05]Content-Type: application/json [05:29:05] [05:29:05]POST finish read [05:29:05]Found Content-Length = 655 [05:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127291", "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" : 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" ] } } [05:29:05]execute_script... [05:29: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)127291", "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" : 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" ] } } [05:29:05]POST & json_proto [05:29:05]process_json_proto [05:29:05]json parsed OK: [05:29:05]protocol is kg_v1.0 [05:29:05]action value=close_receipt [05:29:05]process_action close_receipt [05:29:05]cmd_close_receipt [05:29:05]MH_GetDate [05:29:05]Write to MH i2c: F0 00 00 5A 06 4F [05:29:05]Write i2c OK [05:29:05]MH_I2C_Read... [05:29:05]Read from MH i2c: F0 [05:29:05]MH_I2C_Read... [05:29:05]Read from MH i2c: F0 09 00 [05:29:05]MH_I2C_Read... [05:29:05]Read from MH i2c: F0 09 00 5A 06 00 23 1F E5 66 33 3A A4 66 5C [05:29:05]GetLastDocTimeStamp 1726290012 [05:29:05]current date 1726291747 [05:29:05]FM_GetShiftState [05:29:05]SAM_PROTO_GetShiftState [05:29:05]wFMCommunicate request_size=4 [05:29:05]MH_SAM_APDU [05:29:05]CAPDU: 80 13 01 00 [05:29:05]Write to MH i2c: E2 08 00 5B 06 80 13 01 00 00 00 00 00 DE [05:29:05]Write i2c OK [05:29:05]MH_I2C_Read... [05:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:29:05]Read from MH i2c: E2 [05:29:05]MH_I2C_Read... [05:29:05]Read from MH i2c: E2 0E 00 [05:29:05]MH_I2C_Read... [05:29:05]Read from MH i2c: E2 0E 00 5B 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 78 [05:29:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [05:29:05]wFMCommunicate OK [05:29:05]SAM_PROTO_GetShiftState done [05:29:05]FM_GetShiftState done [05:29:05]opened in 1726273389 [05:29:05]opened+sec_in_day 1726359789 [05:29:05]quantity*price = 16500 [05:29:05]sum+1 = 16501 [05:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 21 14.09.2024 05:29 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92370 ФПД: 164257080619365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T052907&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92370&fm=164257080619365&tin=02508201610067®Number=0000000000091423&sum=16500 0 [05:29:07]StoreToDocumentArchive [05:29:07]shift 506 fd 92370 [05:29:07]save to /storage/0506/doc_00092370 [05:29:07]save last doc name /storage/0506/doc_00092370 to /storage/kkm_last_doc_name [05:29:07]save OK [05:29:07]Clear old archive folders... [05:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=279 [05:29:07]tlvbuf is 00FB5D00 [05:29:07]SAM_PROTO_ClearQueue [05:29:07]wFMCommunicate request_size=4 [05:29:07]MH_SAM_APDU [05:29:07]CAPDU: 80 09 00 00 [05:29:07]Write to MH i2c: E2 08 00 68 06 80 09 00 00 00 00 00 00 E0 [05:29:07]Write i2c OK [05:29:07]MH_I2C_Read... [05:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:29:07]Read from MH i2c: E2 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 03 00 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [05:29:07]RAPDU: 90 00 [05:29:07]wFMCommunicate OK [05:29:07]SAM_PROTO_ClearQueue done [05:29:07]KKMCreateOFDPacket [05:29:07]OFDProtocolAddRootSTLVToBuf [05:29:07]FM_MakeSignedData [05:29:07]FM_MakeSignedData [05:29:07]SAM_PROTO_SignData [05:29:07]wFMCommunicate request_size=4 [05:29:07]MH_SAM_APDU [05:29:07]CAPDU: 80 0D 01 02 [05:29:07]Write to MH i2c: E2 08 00 69 06 80 0D 01 02 00 00 00 00 E8 [05:29:07]Write i2c OK [05:29:07]MH_I2C_Read... [05:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:29:07]Read from MH i2c: E2 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 03 00 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [05:29:07]RAPDU: 90 00 [05:29:07]wFMCommunicate OK [05:29:07]wFMCommunicate request_size=255 [05:29:07]MH_SAM_APDU [05:29:07]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 15 00 00 00 F4 03 04 00 23 1F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 [05:29:07]Write to MH i2c: E2 02 01 6A 06 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 15 00 00 00 F4 03 04 00 23 1F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 00 00 57 [05:29:07]Write i2c OK [05:29:07]MH_I2C_Read... [05:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:29:07]Read from MH i2c: E2 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 03 00 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [05:29:07]RAPDU: 90 00 [05:29:07]wFMCommunicate OK [05:29:07]wFMCommunicate request_size=38 [05:29:07]MH_SAM_APDU [05:29:07]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 68 01 00 35 04 06 00 95 64 14 F1 31 65 [05:29:07]Write to MH i2c: E2 29 00 6B 06 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 68 01 00 35 04 06 00 95 64 14 F1 31 65 00 00 47 [05:29:07]Write i2c OK [05:29:07]MH_I2C_Read... [05:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:29:07]Read from MH i2c: E2 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 03 00 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 03 00 6B 06 00 90 00 E5 [05:29:07]RAPDU: 90 00 [05:29:07]wFMCommunicate OK [05:29:07]wFMCommunicate request_size=4 [05:29:07]MH_SAM_APDU [05:29:07]CAPDU: 80 0D 03 02 [05:29:07]Write to MH i2c: E2 08 00 6C 06 80 0D 03 02 00 00 00 00 ED [05:29:07]Write i2c OK [05:29:07]MH_I2C_Read... [05:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:29:07]Read from MH i2c: E2 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 0B 00 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 0B 00 6C 06 00 9B C1 B6 0F A0 FC 52 26 90 00 23 [05:29:07]RAPDU: 9B C1 B6 0F A0 FC 52 26 90 00 [05:29:07]wFMCommunicate OK [05:29:07]SAM_PROTO_SignData done [05:29:07]FM_MakeSignedData done [05:29:07]CreateOFDProtocolMessage [05:29:07]wFMCommunicate request_size=4 [05:29:07]MH_SAM_APDU [05:29:07]CAPDU: 80 11 00 00 [05:29:07]Write to MH i2c: E2 08 00 6D 06 80 11 00 00 00 00 00 00 ED [05:29:07]Write i2c OK [05:29:07]MH_I2C_Read... [05:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:29:07]Read from MH i2c: E2 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 17 00 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: E2 17 00 6D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [05:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [05:29:07]wFMCommunicate OK [05:29:07]CreateOFDProtocolMessage done [05:29:07]OFDSenderStorePacket 92370 [05:29:07]StoreOFDPacket docnum=92370 [05:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 43 23 23 01 72 A5 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 15 00 00 00 F4 03 04 00 23 1F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 68 01 00 35 04 06 00 95 64 14 F1 31 65 9B C1 B6 0F A0 FC 52 26 [05:29:07]CheckFolder [05:29:07]dirname=/storage/ofd_packets [05:29:07]CheckFolder done [05:29:07]ProducePacketName [05:29:07]name=ofd_packets/00092370 [05:29:07]NVStorageSaveData ofd_packets/00092370 [05:29:07]File name is /storage/ofd_packets/00092370 [05:29:07]Write 329 bytes [05:29:07]NVStorageSaveData done [05:29:07]OFDSenderStorePacket done [05:29:07]KKMCreateOFDPacket done [05:29:07]NVStorageSaveData kkm_last_timestamp [05:29:07]File name is /storage/kkm_last_timestamp [05:29:07]Write 4 bytes [05:29:07]NVStorageSaveData done [05:29:07]ExternCall_PrintAddStr [05:29:07]wPrintStart [05:29:07]Write to MH i2c: 01 00 00 6E 06 74 [05:29:07]Write i2c OK [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: 01 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: 01 07 00 [05:29:07]MH_I2C_Read... [05:29:07]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [05:29:07]RasterBufferAndPrint [05:29:07]line Счет N : (3)127291 [05:29:07]line ИНН: 02508201610067 [05:29:07]line Контрольно-Кассовый Чек [05:29:07]line ПРОДАЖА [05:29:07]line Товар: 4860019001414 [05:29:07]line Вода Боржоми 0,75л ПЭТ [05:29:07]line 1.000 * 165.00 [05:29:07]line = 165.00 [05:29:07]line НДС 12% НСП 1% [05:29:07]line > о реализуемом товаре [05:29:07]line ИТОГО: 165.00 [05:29:07]line НСП 1% : 1.46 [05:29:07]line НДС 12% : 17.52 [05:29:07]line Наличными: 165.00 [05:29:07]line Безнал.: 0.00 [05:29:07]line Место: АЗС № 5 "Партнер Нефть" [05:29:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [05:29:07]line СНО: Общий режим [05:29:07]line Чек 21 14.09.2024 05:29 [05:29:07]line Смена: 506 ФФД: 1.0 [05:29:07]line ЗНМ: 03000000022 [05:29:07]line РНМ: 0000000000091423 [05:29:07]line Версия ККМ: 001 [05:29:07]line ФМ: 0000000000874692 [05:29:07]line ФД: 92370 [05:29:07]line ФПД: 164257080619365 [05:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T052907&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92370&fm=164257080619365&tin=02508201610067®Number=0000000000091423&sum=16500 [05:29:08]OFD Sender: Processing packet 92370 [packets to send 63, broken 62] [05:29:08]ProducePacketName [05:29:08]name=ofd_packets/00092370 [05:29:08]OFD Sender: To server: pG, [05:29:08]CommunicateWithHost lk.salyk.kg:30040 [05:29:08]ConnectInit lk.salyk.kg [05:29:08]line 0 [05:29:08]written 0, free lines is 4095 [05:29:08]Connected sock=11 [05:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 43 23 23 01 72 A5 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 15 00 00 00 F4 03 04 00 23 1F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 68 01 00 35 04 06 00 95 64 14 F1 31 65 9B C1 B6 0F A0 FC 52 26 [05:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 07 AE 47 00 63 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D2 68 01 00 F4 03 04 00 9F C7 E4 66 B6 04 01 00 00 0D BE 9B E0 BB 18 00 97 [05:29:08]CommunicateWithHost err = 0 [05:29:08]CheckOFDResponse [05:29:08]1017 (14) - 77093643461234 [05:29:08]1041 (16) - 0000000000874692 [05:29:08]1040 (4) - 92370 [05:29:08]1012 (4) - 13.09.2024 23:15 [05:29:08]1206 (1) - 0 [05:29:08]OFD Sender: Remove packet 92370 [05:29:08]ProducePacketName [05:29:08]name=ofd_packets/00092370 [05:29:08]NVStorageDeleteData [05:29:08]Write to MH i2c: 01 00 00 96 06 9C [05:29:08]Write i2c OK [05:29:08]MH_I2C_Read... [05:29:08]Read from MH i2c: 01 [05:29:08]MH_I2C_Read... [05:29:08]Read from MH i2c: 01 07 00 [05:29:08]MH_I2C_Read... [05:29:08]Read from MH i2c: 01 07 00 96 06 00 00 00 00 00 1D 0D CD [05:29:08]RasterBufferAndPrint [05:29:08]line [05:29:08]line [05:29:08]line [05:29:08]line [05:29:08]line [05:29:08]written 0, free lines is 3362 [05:29:08]MH_Cut [05:29:08]Write to MH i2c: D1 01 00 9D 06 01 75 [05:29:08]Write i2c OK [05:29:08]MH_I2C_Read... [05:29:08]Read from MH i2c: D1 [05:29:08]MH_I2C_Read... [05:29:08]Read from MH i2c: D1 01 00 [05:29:08]MH_I2C_Read... [05:29:08]Read from MH i2c: D1 01 00 9D 06 00 74 [05:29:08]Write to MH i2c: 01 00 00 9E 06 A4 [05:29:08]Write i2c OK [05:29:08]MH_I2C_Read... [05:29:08]OFD Sender: No OFD packet to send [05:29:09]*** Cut start [05:29:09]*** Purtial cut [05:29:09]*** Stage 1: CUTSNS_PIN = 1 [05:29:11]Read from MH i2c: 01 [05:29:11]MH_I2C_Read... [05:29:11]*** Stop cut motor [05:29:11]*** Cut end [05:29:11]Read from MH i2c: 01 07 00 [05:29:11]MH_I2C_Read... [05:29:11]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 FF 0F B9 [05:29:11]process_action close_receipt done [05:29:11]requested_data is exist [05:29:11]produce_requested_data [05:29:11]requested_item fm.sn is exist - process it [05:29:11]wFMCommunicate request_size=4 [05:29:11]MH_SAM_APDU [05:29:11]CAPDU: 80 11 00 00 [05:29:11]Write to MH i2c: E2 08 00 9F 06 80 11 00 00 00 00 00 00 1F [05:29:11]Write i2c OK [05:29:11]MH_I2C_Read... [05:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:29:11]Read from MH i2c: E2 [05:29:11]MH_I2C_Read... [05:29:11]Read from MH i2c: E2 17 00 [05:29:11]MH_I2C_Read... [05:29:11]Read from MH i2c: E2 17 00 9F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 76 [05:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [05:29:11]wFMCommunicate OK [05:29:11]requested_item fd.num is exist - process it [05:29:11]SAM_PROTO_GetFieldsCounters [05:29:11]wFMCommunicate request_size=4 [05:29:11]MH_SAM_APDU [05:29:11]CAPDU: 80 13 00 00 [05:29:11]Write to MH i2c: E2 08 00 A0 06 80 13 00 00 00 00 00 00 22 [05:29:11]Write i2c OK [05:29:11]MH_I2C_Read... [05:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:29:11]Read from MH i2c: E2 [05:29:11]MH_I2C_Read... [05:29:11]Read from MH i2c: E2 62 00 [05:29:11]MH_I2C_Read... [05:29:11]Read from MH i2c: E2 62 00 A0 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D2 68 01 00 0E 04 04 00 FA 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 B6 [05:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D2 68 01 00 0E 04 04 00 FA 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 [05:29:11]wFMCommunicate OK [05:29:11]SAM_PROTO_GetFieldsCounters done [05:29:11]requested_item shift.num is exist - process it [05:29:11]requested_item shift.opened is exist - process it [05:29:11]req_shift_opened [05:29:11]FM_GetShiftState [05:29:11]SAM_PROTO_GetShiftState [05:29:11]wFMCommunicate request_size=4 [05:29:11]MH_SAM_APDU [05:29:11]CAPDU: 80 13 01 00 [05:29:11]Write to MH i2c: E2 08 00 A1 06 80 13 01 00 00 00 00 00 24 [05:29:11]Write i2c OK [05:29:11]MH_I2C_Read... [05:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:29:11]Read from MH i2c: E2 [05:29:11]MH_I2C_Read... [05:29:11]Read from MH i2c: E2 0E 00 [05:29:11]MH_I2C_Read... [05:29:11]Read from MH i2c: E2 0E 00 A1 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BE [05:29:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [05:29:11]wFMCommunicate OK [05:29:11]SAM_PROTO_GetShiftState done [05:29:11]FM_GetShiftState done [05:29:11]req_shift_opened done [05:29:11]requested_item shift.open_date is exist - process it [05:29:11]req_shift_open_date [05:29:11]req_shift_open_date done [05:29:11]produce_requested_data done [05:29:11]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92370,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [05:29:11]process_action_free close_receipt [05:29:11]json_value_free [05:29:11]json_value_free done [05:29:11]process_json_proto returns [05:29:11]Send response to host [05:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92370,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [05:29:11]free response buf [05:29:11]execute_script done [05:29:11]execute_script returns [05:29:11]free content buf [05:29:11]Sock 9.Close socket [05:29:11]Sock 9.Thread stoped [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:22]accept exits with 8 [06:17:22]New connection [06:17:22]New thread 3066801508 created [06:17:22]Thread 3066658148 joined [06:17:22]Waiting for new connection... [06:17:22] Sock 8.Parse request [06:17:22]Sock 8.Check first char [06:17:22]Sock 8.First char is OK [06:17:22]request: POST /json_proto HTTP/1.0 [06:17:22]Method: POST [06:17:22]URL: /json_proto [06:17:22]Method is POST - this is cgi request [06:17:22]url: /json_proto [06:17:22]query_string will be loaded in cgi processing [06:17:22]execute_cgi json_proto POST (null) [06:17:22]execute_cgi path=json_proto method=POST [06:17:22]POST find Content-Length [06:17:22]Host: 172.17.57.71:8080 [06:17:22]Content-Length: 823 [06:17:22]Content-Type: application/json [06:17:22] [06:17:22]POST finish read [06:17:22]Found Content-Length = 823 [06:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127292", "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: \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" ] } } [06:17:22]execute_script... [06:17: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 : (3)127292", "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: \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" ] } } [06:17:22]POST & json_proto [06:17:22]process_json_proto [06:17:22]json parsed OK: [06:17:22]protocol is kg_v1.0 [06:17:22]action value=close_receipt [06:17:22]process_action close_receipt [06:17:22]cmd_close_receipt [06:17:22]MH_GetDate [06:17:22]Write to MH i2c: F0 00 00 A2 06 97 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: F0 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: F0 09 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: F0 09 00 A2 06 00 74 2A E5 66 33 3A A4 66 00 [06:17:22]GetLastDocTimeStamp 1726291747 [06:17:22]current date 1726294644 [06:17:22]FM_GetShiftState [06:17:22]SAM_PROTO_GetShiftState [06:17:22]wFMCommunicate request_size=4 [06:17:22]MH_SAM_APDU [06:17:22]CAPDU: 80 13 01 00 [06:17:22]Write to MH i2c: E2 08 00 A3 06 80 13 01 00 00 00 00 00 26 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:22]Read from MH i2c: E2 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 0E 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 0E 00 A3 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C0 [06:17:22]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [06:17:22]wFMCommunicate OK [06:17:22]SAM_PROTO_GetShiftState done [06:17:22]FM_GetShiftState done [06:17:22]opened in 1726273389 [06:17:22]opened+sec_in_day 1726359789 [06:17:22]quantity*price = 26000 [06:17:22]sum+1 = 26001 [06:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 22 14.09.2024 06:17 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92371 ФПД: 113255985460907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T061724&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92371&fm=113255985460907&tin=02508201610067®Number=0000000000091423&sum=26000 0 [06:17:24]StoreToDocumentArchive [06:17:24]shift 506 fd 92371 [06:17:24]save to /storage/0506/doc_00092371 [06:17:24]save last doc name /storage/0506/doc_00092371 to /storage/kkm_last_doc_name [06:17:24]save OK [06:17:24]Clear old archive folders... [06:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=282 [06:17:24]tlvbuf is 00FBCDD0 [06:17:24]SAM_PROTO_ClearQueue [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 09 00 00 [06:17:24]Write to MH i2c: E2 08 00 B0 06 80 09 00 00 00 00 00 00 28 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 03 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [06:17:24]RAPDU: 90 00 [06:17:24]wFMCommunicate OK [06:17:24]SAM_PROTO_ClearQueue done [06:17:24]KKMCreateOFDPacket [06:17:24]OFDProtocolAddRootSTLVToBuf [06:17:24]FM_MakeSignedData [06:17:24]FM_MakeSignedData [06:17:24]SAM_PROTO_SignData [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 0D 01 02 [06:17:24]Write to MH i2c: E2 08 00 B1 06 80 0D 01 02 00 00 00 00 30 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 03 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [06:17:24]RAPDU: 90 00 [06:17:24]wFMCommunicate OK [06:17:24]wFMCommunicate request_size=255 [06:17:24]MH_SAM_APDU [06:17:24]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 16 00 00 00 F4 03 04 00 74 2A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [06:17:24]Write to MH i2c: E2 02 01 B2 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 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 16 00 00 00 F4 03 04 00 74 2A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 ED [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 03 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [06:17:24]RAPDU: 90 00 [06:17:24]wFMCommunicate OK [06:17:24]wFMCommunicate request_size=41 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 68 01 00 35 04 06 00 67 01 76 C8 36 AB [06:17:24]Write to MH i2c: E2 2C 00 B3 06 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 68 01 00 35 04 06 00 67 01 76 C8 36 AB 00 00 C9 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 03 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [06:17:24]RAPDU: 90 00 [06:17:24]wFMCommunicate OK [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 0D 03 02 [06:17:24]Write to MH i2c: E2 08 00 B4 06 80 0D 03 02 00 00 00 00 35 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 0B 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 0B 00 B4 06 00 84 D9 E9 FD 3E 61 66 A0 90 00 1E [06:17:24]RAPDU: 84 D9 E9 FD 3E 61 66 A0 90 00 [06:17:24]wFMCommunicate OK [06:17:24]SAM_PROTO_SignData done [06:17:24]FM_MakeSignedData done [06:17:24]CreateOFDProtocolMessage [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 11 00 00 [06:17:24]Write to MH i2c: E2 08 00 B5 06 80 11 00 00 00 00 00 00 35 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 17 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 17 00 B5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8C [06:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:17:24]wFMCommunicate OK [06:17:24]CreateOFDProtocolMessage done [06:17:24]OFDSenderStorePacket 92371 [06:17:24]StoreOFDPacket docnum=92371 [06:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 4D FA 26 01 4B 26 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 16 00 00 00 F4 03 04 00 74 2A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 68 01 00 35 04 06 00 67 01 76 C8 36 AB 84 D9 E9 FD 3E 61 66 A0 [06:17:24]CheckFolder [06:17:24]dirname=/storage/ofd_packets [06:17:24]CheckFolder done [06:17:24]ProducePacketName [06:17:24]name=ofd_packets/00092371 [06:17:24]NVStorageSaveData ofd_packets/00092371 [06:17:24]File name is /storage/ofd_packets/00092371 [06:17:24]Write 332 bytes [06:17:24]NVStorageSaveData done [06:17:24]OFDSenderStorePacket done [06:17:24]KKMCreateOFDPacket done [06:17:24]NVStorageSaveData kkm_last_timestamp [06:17:24]File name is /storage/kkm_last_timestamp [06:17:24]Write 4 bytes [06:17:24]NVStorageSaveData done [06:17:24]ExternCall_PrintAddStr [06:17:24]wPrintStart [06:17:24]Write to MH i2c: 01 00 00 B6 06 BC [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: 01 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: 01 07 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: 01 07 00 B6 06 00 00 00 00 00 FF 0F D1 [06:17:24]RasterBufferAndPrint [06:17:24]line Счет N : (3)127292 [06:17:24]line ИНН: 02508201610067 [06:17:24]line Контрольно-Кассовый Чек [06:17:24]line ПРОДАЖА [06:17:24]line Товар: 2000036220012 [06:17:24]line Кофе Капучино XL(GABB TRADE) [06:17:24]line 2.000 * 130.00 [06:17:24]line = 260.00 [06:17:24]line НДС 12% НСП 1% [06:17:24]line > о реализуемом товаре [06:17:24]line ИТОГО: 260.00 [06:17:24]line НСП 1% : 2.30 [06:17:24]line НДС 12% : 27.61 [06:17:24]line Наличными: 0.00 [06:17:24]line Безнал.: 260.00 [06:17:24]line Место: АЗС № 5 "Партнер Нефть" [06:17:24]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [06:17:24]line СНО: Общий режим [06:17:24]line Чек 22 14.09.2024 06:17 [06:17:24]line Смена: 506 ФФД: 1.0 [06:17:24]line ЗНМ: 03000000022 [06:17:24]line РНМ: 0000000000091423 [06:17:24]line Версия ККМ: 001 [06:17:24]line Платежная система: Бакай Банк [06:17:24]line ФМ: 0000000000874692 [06:17:24]line ФД: 92371 [06:17:24]line ФПД: 113255985460907 [06:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T061724&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92371&fm=113255985460907&tin=02508201610067®Number=0000000000091423&sum=26000 [06:17:24]line 0 [06:17:24]OFD Sender: Processing packet 92371 [packets to send 63, broken 62] [06:17:24]ProducePacketName [06:17:24]name=ofd_packets/00092371 [06:17:24]OFD Sender: To server: pG, [06:17:24]CommunicateWithHost lk.salyk.kg:30040 [06:17:24]ConnectInit lk.salyk.kg [06:17:24]written 0, free lines is 4095 [06:17:25]Connected sock=10 [06:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 4D FA 26 01 4B 26 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 16 00 00 00 F4 03 04 00 74 2A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 68 01 00 35 04 06 00 67 01 76 C8 36 AB 84 D9 E9 FD 3E 61 66 A0 [06:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CF 65 47 00 73 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D3 68 01 00 F4 03 04 00 F0 D2 E4 66 B6 04 01 00 00 E2 EF 96 0D C6 F3 4D 8D [06:17:25]CommunicateWithHost err = 0 [06:17:25]CheckOFDResponse [06:17:25]1017 (14) - 77093643461234 [06:17:25]1041 (16) - 0000000000874692 [06:17:25]1040 (4) - 92371 [06:17:25]1012 (4) - 14.09.2024 00:04 [06:17:25]1206 (1) - 0 [06:17:25]OFD Sender: Remove packet 92371 [06:17:25]ProducePacketName [06:17:25]name=ofd_packets/00092371 [06:17:25]NVStorageDeleteData [06:17:25]Write to MH i2c: 01 00 00 E1 06 E7 [06:17:25]Write i2c OK [06:17:25]MH_I2C_Read... [06:17:25]Read from MH i2c: 01 [06:17:25]MH_I2C_Read... [06:17:25]Read from MH i2c: 01 07 00 [06:17:25]MH_I2C_Read... [06:17:25]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 EE 0C E8 [06:17:25]RasterBufferAndPrint [06:17:25]line [06:17:25]line [06:17:25]line [06:17:25]line [06:17:25]line [06:17:25]written 0, free lines is 3317 [06:17:25]MH_Cut [06:17:25]Write to MH i2c: D1 01 00 E8 06 01 C0 [06:17:25]Write i2c OK [06:17:25]MH_I2C_Read... [06:17:25]Read from MH i2c: D1 [06:17:25]MH_I2C_Read... [06:17:25]Read from MH i2c: D1 01 00 [06:17:25]MH_I2C_Read... [06:17:25]Read from MH i2c: D1 01 00 E8 06 00 BF [06:17:25]Write to MH i2c: 01 00 00 E9 06 EF [06:17:25]Write i2c OK [06:17:25]MH_I2C_Read... [06:17:25]OFD Sender: No OFD packet to send [06:17:26]*** Cut start [06:17:26]*** Purtial cut [06:17:26]*** Stage 1: CUTSNS_PIN = 1 [06:17:28]Read from MH i2c: 01 [06:17:28]MH_I2C_Read... [06:17:28]*** Stop cut motor [06:17:28]*** Cut end [06:17:28]Read from MH i2c: 01 07 00 [06:17:28]MH_I2C_Read... [06:17:28]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [06:17:28]process_action close_receipt done [06:17:28]requested_data is exist [06:17:28]produce_requested_data [06:17:28]requested_item fm.sn is exist - process it [06:17:28]wFMCommunicate request_size=4 [06:17:28]MH_SAM_APDU [06:17:28]CAPDU: 80 11 00 00 [06:17:28]Write to MH i2c: E2 08 00 EA 06 80 11 00 00 00 00 00 00 6A [06:17:28]Write i2c OK [06:17:28]MH_I2C_Read... [06:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:28]Read from MH i2c: E2 [06:17:28]MH_I2C_Read... [06:17:28]Read from MH i2c: E2 17 00 [06:17:28]MH_I2C_Read... [06:17:28]Read from MH i2c: E2 17 00 EA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C1 [06:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:17:28]wFMCommunicate OK [06:17:28]requested_item fd.num is exist - process it [06:17:28]SAM_PROTO_GetFieldsCounters [06:17:28]wFMCommunicate request_size=4 [06:17:28]MH_SAM_APDU [06:17:28]CAPDU: 80 13 00 00 [06:17:28]Write to MH i2c: E2 08 00 EB 06 80 13 00 00 00 00 00 00 6D [06:17:28]Write i2c OK [06:17:28]MH_I2C_Read... [06:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:28]Read from MH i2c: E2 [06:17:28]MH_I2C_Read... [06:17:28]Read from MH i2c: E2 62 00 [06:17:28]MH_I2C_Read... [06:17:28]Read from MH i2c: E2 62 00 EB 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D3 68 01 00 0E 04 04 00 FA 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 05 [06:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D3 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:17:28]wFMCommunicate OK [06:17:28]SAM_PROTO_GetFieldsCounters done [06:17:28]requested_item shift.num is exist - process it [06:17:28]requested_item shift.opened is exist - process it [06:17:28]req_shift_opened [06:17:28]FM_GetShiftState [06:17:28]SAM_PROTO_GetShiftState [06:17:28]wFMCommunicate request_size=4 [06:17:28]MH_SAM_APDU [06:17:28]CAPDU: 80 13 01 00 [06:17:28]Write to MH i2c: E2 08 00 EC 06 80 13 01 00 00 00 00 00 6F [06:17:28]Write i2c OK [06:17:28]MH_I2C_Read... [06:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:28]Read from MH i2c: E2 [06:17:28]MH_I2C_Read... [06:17:28]Read from MH i2c: E2 0E 00 [06:17:28]MH_I2C_Read... [06:17:28]Read from MH i2c: E2 0E 00 EC 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 09 [06:17:28]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [06:17:28]wFMCommunicate OK [06:17:28]SAM_PROTO_GetShiftState done [06:17:28]FM_GetShiftState done [06:17:28]req_shift_opened done [06:17:28]requested_item shift.open_date is exist - process it [06:17:28]req_shift_open_date [06:17:28]req_shift_open_date done [06:17:28]produce_requested_data done [06:17:28]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92371,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [06:17:28]process_action_free close_receipt [06:17:28]json_value_free [06:17:28]json_value_free done [06:17:28]process_json_proto returns [06:17:28]Send response to host [06:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92371,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [06:17:28]free response buf [06:17:28]execute_script done [06:17:28]execute_script returns [06:17:28]free content buf [06:17:28]Sock 8.Close socket [06:17:28]Sock 8.Thread stoped [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:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]accept exits with 9 [06:28:26]New connection [06:28:26]New thread 3066658148 created [06:28:26]Thread 3066801508 joined [06:28:26]Waiting for new connection... [06:28:26] Sock 9.Parse request [06:28:26]Sock 9.Check first char [06:28:26]Sock 9.First char is OK [06:28:26]request: POST /json_proto HTTP/1.0 [06:28:26]Method: POST [06:28:26]URL: /json_proto [06:28:26]Method is POST - this is cgi request [06:28:26]url: /json_proto [06:28:26]query_string will be loaded in cgi processing [06:28:26]execute_cgi json_proto POST (null) [06:28:26]execute_cgi path=json_proto method=POST [06:28:26]POST find Content-Length [06:28:26]Host: 172.17.57.71:8080 [06:28:26]Content-Length: 1036 [06:28:26]Content-Type: application/json [06:28:26] [06:28:26]POST finish read [06:28:26]Found Content-Length = 1036 [06:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127293", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:26]execute_script... [06:28: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)127293", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:26]POST & json_proto [06:28:26]process_json_proto [06:28:26]json parsed OK: [06:28:26]protocol is kg_v1.0 [06:28:26]action value=close_receipt [06:28:26]process_action close_receipt [06:28:26]cmd_close_receipt [06:28:26]MH_GetDate [06:28:26]Write to MH i2c: F0 00 00 ED 06 E2 [06:28:26]Write i2c OK [06:28:26]MH_I2C_Read... [06:28:26]Read from MH i2c: F0 [06:28:26]MH_I2C_Read... [06:28:26]Read from MH i2c: F0 09 00 [06:28:26]MH_I2C_Read... [06:28:26]Read from MH i2c: F0 09 00 ED 06 00 0B 2D E5 66 33 3A A4 66 E5 [06:28:26]GetLastDocTimeStamp 1726294644 [06:28:26]current date 1726295307 [06:28:26]FM_GetShiftState [06:28:26]SAM_PROTO_GetShiftState [06:28:26]wFMCommunicate request_size=4 [06:28:26]MH_SAM_APDU [06:28:26]CAPDU: 80 13 01 00 [06:28:26]Write to MH i2c: E2 08 00 EE 06 80 13 01 00 00 00 00 00 71 [06:28:26]Write i2c OK [06:28:26]MH_I2C_Read... [06:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:26]Read from MH i2c: E2 [06:28:26]MH_I2C_Read... [06:28:26]Read from MH i2c: E2 0E 00 [06:28:26]MH_I2C_Read... [06:28:26]Read from MH i2c: E2 0E 00 EE 06 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0B [06:28:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [06:28:26]wFMCommunicate OK [06:28:26]SAM_PROTO_GetShiftState done [06:28:26]FM_GetShiftState done [06:28:26]opened in 1726273389 [06:28:26]opened+sec_in_day 1726359789 [06:28:26]quantity*price = 11500 [06:28:26]sum+1 = 11501 [06:28:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 23 14.09.2024 06:28 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92372 ФПД: 55027879491804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T062828&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92372&fm=55027879491804&tin=02508201610067®Number=0000000000091423&sum=24500 0 [06:28:27]StoreToDocumentArchive [06:28:27]shift 506 fd 92372 [06:28:27]save to /storage/0506/doc_00092372 [06:28:27]save last doc name /storage/0506/doc_00092372 to /storage/kkm_last_doc_name [06:28:27]save OK [06:28:27]Clear old archive folders... [06:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=380 [06:28:27]tlvbuf is 00FA55C0 [06:28:27]SAM_PROTO_ClearQueue [06:28:27]wFMCommunicate request_size=4 [06:28:27]MH_SAM_APDU [06:28:27]CAPDU: 80 09 00 00 [06:28:27]Write to MH i2c: E2 08 00 FB 06 80 09 00 00 00 00 00 00 73 [06:28:27]Write i2c OK [06:28:27]MH_I2C_Read... [06:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:27]Read from MH i2c: E2 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 03 00 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [06:28:27]RAPDU: 90 00 [06:28:27]wFMCommunicate OK [06:28:27]SAM_PROTO_ClearQueue done [06:28:27]KKMCreateOFDPacket [06:28:27]OFDProtocolAddRootSTLVToBuf [06:28:27]FM_MakeSignedData [06:28:27]FM_MakeSignedData [06:28:27]SAM_PROTO_SignData [06:28:27]wFMCommunicate request_size=4 [06:28:27]MH_SAM_APDU [06:28:27]CAPDU: 80 0D 01 02 [06:28:27]Write to MH i2c: E2 08 00 FC 06 80 0D 01 02 00 00 00 00 7B [06:28:27]Write i2c OK [06:28:27]MH_I2C_Read... [06:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:27]Read from MH i2c: E2 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 03 00 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [06:28:27]RAPDU: 90 00 [06:28:27]wFMCommunicate OK [06:28:27]wFMCommunicate request_size=255 [06:28:27]MH_SAM_APDU [06:28:27]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 [06:28:27]Write to MH i2c: E2 02 01 FD 06 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 C5 [06:28:27]Write i2c OK [06:28:27]MH_I2C_Read... [06:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:27]Read from MH i2c: E2 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 03 00 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 03 00 FD 06 00 90 00 77 [06:28:27]RAPDU: 90 00 [06:28:27]wFMCommunicate OK [06:28:27]wFMCommunicate request_size=139 [06:28:27]MH_SAM_APDU [06:28:27]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 0C 2D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 68 01 00 35 04 06 00 32 0C 2D 35 B8 DC [06:28:27]Write to MH i2c: E2 8E 00 FE 06 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 0C 2D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 68 01 00 35 04 06 00 32 0C 2D 35 B8 DC 00 00 02 [06:28:27]Write i2c OK [06:28:27]MH_I2C_Read... [06:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:27]Read from MH i2c: E2 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 03 00 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 03 00 FE 06 00 90 00 78 [06:28:27]RAPDU: 90 00 [06:28:27]wFMCommunicate OK [06:28:27]wFMCommunicate request_size=4 [06:28:27]MH_SAM_APDU [06:28:27]CAPDU: 80 0D 03 02 [06:28:27]Write to MH i2c: E2 08 00 FF 06 80 0D 03 02 00 00 00 00 80 [06:28:27]Write i2c OK [06:28:27]MH_I2C_Read... [06:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:27]Read from MH i2c: E2 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 0B 00 [06:28:27]MH_I2C_Read... [06:28:27]Read from MH i2c: E2 0B 00 FF 06 00 DC E7 EA A0 DF 55 AA 1A 90 00 C6 [06:28:27]RAPDU: DC E7 EA A0 DF 55 AA 1A 90 00 [06:28:27]wFMCommunicate OK [06:28:27]SAM_PROTO_SignData done [06:28:27]FM_MakeSignedData done [06:28:27]CreateOFDProtocolMessage [06:28:27]wFMCommunicate request_size=4 [06:28:27]MH_SAM_APDU [06:28:27]CAPDU: 80 11 00 00 [06:28:27]Write to MH i2c: E2 08 00 00 07 80 11 00 00 00 00 00 00 81 [06:28:27]Write i2c OK [06:28:27]MH_I2C_Read... [06:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:28]Read from MH i2c: E2 [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: E2 17 00 [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: E2 17 00 00 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D8 [06:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:28:28]wFMCommunicate OK [06:28:28]CreateOFDProtocolMessage done [06:28:28]OFDSenderStorePacket 92372 [06:28:28]StoreOFDPacket docnum=92372 [06:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 01 00 00 D6 07 88 01 8E B0 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 0C 2D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 68 01 00 35 04 06 00 32 0C 2D 35 B8 DC DC E7 EA A0 DF 55 AA 1A [06:28:28]CheckFolder [06:28:28]dirname=/storage/ofd_packets [06:28:28]CheckFolder done [06:28:28]ProducePacketName [06:28:28]name=ofd_packets/00092372 [06:28:28]NVStorageSaveData ofd_packets/00092372 [06:28:28]File name is /storage/ofd_packets/00092372 [06:28:28]Write 430 bytes [06:28:28]NVStorageSaveData done [06:28:28]OFDSenderStorePacket done [06:28:28]KKMCreateOFDPacket done [06:28:28]NVStorageSaveData kkm_last_timestamp [06:28:28]File name is /storage/kkm_last_timestamp [06:28:28]Write 4 bytes [06:28:28]NVStorageSaveData done [06:28:28]ExternCall_PrintAddStr [06:28:28]wPrintStart [06:28:28]Write to MH i2c: 01 00 00 01 07 08 [06:28:28]OFD Sender: Processing packet 92372 [packets to send 63, broken 62] [06:28:28]ProducePacketName [06:28:28]name=ofd_packets/00092372 [06:28:28]Write i2c OK [06:28:28]MH_I2C_Read... [06:28:28]OFD Sender: To server: pG, [06:28:28]CommunicateWithHost lk.salyk.kg:30040 [06:28:28]ConnectInit lk.salyk.kg [06:28:28]Read from MH i2c: 01 [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: 01 07 00 [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [06:28:28]RasterBufferAndPrint [06:28:28]line Счет N : (3)127293 [06:28:28]line ИНН: 02508201610067 [06:28:28]line Контрольно-Кассовый Чек [06:28:28]line ПРОДАЖА [06:28:28]line Товар: 2000036240010 [06:28:28]line Кофе Латте (GABB TRADE) [06:28:28]line 1.000 * 115.00 [06:28:28]line = 115.00 [06:28:28]line НДС 12% НСП 1% [06:28:28]line > о реализуемом товаре [06:28:28]line Товар: 2000036230011 [06:28:28]line Кофе Латте XL(GABB TRADE) [06:28:28]line 1.000 * 130.00 [06:28:28]line = 130.00 [06:28:28]line НДС 12% НСП 1% [06:28:28]line > о реализуемом товаре [06:28:28]line ИТОГО: 245.00 [06:28:28]line НСП 1% : 2.17 [06:28:28]line НДС 12% : 26.01 [06:28:28]line Наличными: 0.00 [06:28:28]line Безнал.: 245.00 [06:28:28]line Место: АЗС № 5 "Партнер Нефть" [06:28:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [06:28:28]line СНО: Общий режим [06:28:28]line Чек 23 14.09.2024 06:28 [06:28:28]line Смена: 506 ФФД: 1.0 [06:28:28]line ЗНМ: 03000000022 [06:28:28]line РНМ: 0000000000091423 [06:28:28]line Версия ККМ: 001 [06:28:28]line Платежная система: О! деньги [06:28:28]line ФМ: 0000000000874692 [06:28:28]line ФД: 92372 [06:28:28]line ФПД: 55027879491804 [06:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T062828&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92372&fm=55027879491804&tin=02508201610067®Number=0000000000091423&sum=24500 [06:28:28]line 0 [06:28:28]written 0, free lines is 4095 [06:28:28]Connected sock=8 [06:28:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 01 00 00 D6 07 88 01 8E B0 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 0C 2D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 68 01 00 35 04 06 00 32 0C 2D 35 B8 DC DC E7 EA A0 DF 55 AA 1A [06:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F3 36 47 00 99 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D4 68 01 00 F4 03 04 00 88 D5 E4 66 B6 04 01 00 00 32 00 A9 2D 49 E4 92 CE [06:28:28]CommunicateWithHost err = 0 [06:28:28]CheckOFDResponse [06:28:28]1017 (14) - 77093643461234 [06:28:28]1041 (16) - 0000000000874692 [06:28:28]1040 (4) - 92372 [06:28:28]1012 (4) - 14.09.2024 00:15 [06:28:28]1206 (1) - 0 [06:28:28]OFD Sender: Remove packet 92372 [06:28:28]ProducePacketName [06:28:28]name=ofd_packets/00092372 [06:28:28]NVStorageDeleteData [06:28:28]Write to MH i2c: 01 00 00 31 07 38 [06:28:28]Write i2c OK [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: 01 [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: 01 07 00 [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: 01 07 00 31 07 00 00 00 00 00 CC 0C 17 [06:28:28]RasterBufferAndPrint [06:28:28]line [06:28:28]line [06:28:28]line [06:28:28]line [06:28:28]line [06:28:28]written 0, free lines is 3283 [06:28:28]MH_Cut [06:28:28]Write to MH i2c: D1 01 00 38 07 01 11 [06:28:28]Write i2c OK [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: D1 [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: D1 01 00 [06:28:28]MH_I2C_Read... [06:28:28]Read from MH i2c: D1 01 00 38 07 00 10 [06:28:28]Write to MH i2c: 01 00 00 39 07 40 [06:28:28]Write i2c OK [06:28:28]MH_I2C_Read... [06:28:29]OFD Sender: No OFD packet to send [06:28:29]*** Cut start [06:28:29]*** Purtial cut [06:28:29]*** Stage 1: CUTSNS_PIN = 1 [06:28:31]Read from MH i2c: 01 [06:28:31]MH_I2C_Read... [06:28:31]*** Stop cut motor [06:28:31]*** Cut end [06:28:31]Read from MH i2c: 01 07 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: 01 07 00 39 07 00 00 00 00 00 FF 0F 55 [06:28:31]process_action close_receipt done [06:28:31]requested_data is exist [06:28:31]produce_requested_data [06:28:31]requested_item fm.sn is exist - process it [06:28:31]wFMCommunicate request_size=4 [06:28:31]MH_SAM_APDU [06:28:31]CAPDU: 80 11 00 00 [06:28:31]Write to MH i2c: E2 08 00 3A 07 80 11 00 00 00 00 00 00 BB [06:28:31]Write i2c OK [06:28:31]MH_I2C_Read... [06:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:31]Read from MH i2c: E2 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 17 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 17 00 3A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 12 [06:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:28:31]wFMCommunicate OK [06:28:31]requested_item fd.num is exist - process it [06:28:31]SAM_PROTO_GetFieldsCounters [06:28:31]wFMCommunicate request_size=4 [06:28:31]MH_SAM_APDU [06:28:31]CAPDU: 80 13 00 00 [06:28:31]Write to MH i2c: E2 08 00 3B 07 80 13 00 00 00 00 00 00 BE [06:28:31]Write i2c OK [06:28:31]MH_I2C_Read... [06:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:31]Read from MH i2c: E2 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 62 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 62 00 3B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D4 68 01 00 0E 04 04 00 FA 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 5A [06:28:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D4 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:31]wFMCommunicate OK [06:28:31]SAM_PROTO_GetFieldsCounters done [06:28:31]requested_item shift.num is exist - process it [06:28:31]requested_item shift.opened is exist - process it [06:28:31]req_shift_opened [06:28:31]FM_GetShiftState [06:28:31]SAM_PROTO_GetShiftState [06:28:31]wFMCommunicate request_size=4 [06:28:31]MH_SAM_APDU [06:28:31]CAPDU: 80 13 01 00 [06:28:31]Write to MH i2c: E2 08 00 3C 07 80 13 01 00 00 00 00 00 C0 [06:28:31]Write i2c OK [06:28:31]MH_I2C_Read... [06:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:31]Read from MH i2c: E2 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 0E 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 0E 00 3C 07 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5A [06:28:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [06:28:31]wFMCommunicate OK [06:28:31]SAM_PROTO_GetShiftState done [06:28:31]FM_GetShiftState done [06:28:31]req_shift_opened done [06:28:31]requested_item shift.open_date is exist - process it [06:28:31]req_shift_open_date [06:28:31]req_shift_open_date done [06:28:31]produce_requested_data done [06:28:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92372,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [06:28:31]process_action_free close_receipt [06:28:31]json_value_free [06:28:31]json_value_free done [06:28:31]process_json_proto returns [06:28:31]Send response to host [06:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92372,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [06:28:31]free response buf [06:28:31]execute_script done [06:28:31]execute_script returns [06:28:31]free content buf [06:28:31]Sock 9.Close socket [06:28:31]Sock 9.Thread stoped [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:02]accept exits with 10 [06:37:02]New connection [06:37:02]New thread 3066801508 created [06:37:02]Thread 3066658148 joined [06:37:02]Waiting for new connection... [06:37:02] Sock 10.Parse request [06:37:02]Sock 10.Check first char [06:37:02]Sock 10.First char is OK [06:37:02]request: POST /json_proto HTTP/1.0 [06:37:02]Method: POST [06:37:02]URL: /json_proto [06:37:02]Method is POST - this is cgi request [06:37:02]url: /json_proto [06:37:02]query_string will be loaded in cgi processing [06:37:02]execute_cgi json_proto POST (null) [06:37:02]execute_cgi path=json_proto method=POST [06:37:02]POST find Content-Length [06:37:02]Host: 172.17.57.71:8080 [06:37:02]Content-Length: 791 [06:37:02]Content-Type: application/json [06:37:02] [06:37:02]POST finish read [06:37:02]Found Content-Length = 791 [06:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127294", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:02]execute_script... [06:37: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)127294", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:02]POST & json_proto [06:37:02]process_json_proto [06:37:02]json parsed OK: [06:37:02]protocol is kg_v1.0 [06:37:02]action value=close_receipt [06:37:02]process_action close_receipt [06:37:02]cmd_close_receipt [06:37:02]MH_GetDate [06:37:02]Write to MH i2c: F0 00 00 3D 07 33 [06:37:02]Write i2c OK [06:37:02]MH_I2C_Read... [06:37:02]Read from MH i2c: F0 [06:37:02]MH_I2C_Read... [06:37:02]Read from MH i2c: F0 09 00 [06:37:02]MH_I2C_Read... [06:37:02]Read from MH i2c: F0 09 00 3D 07 00 10 2F E5 66 33 3A A4 66 3D [06:37:02]GetLastDocTimeStamp 1726295308 [06:37:02]current date 1726295824 [06:37:02]FM_GetShiftState [06:37:02]SAM_PROTO_GetShiftState [06:37:02]wFMCommunicate request_size=4 [06:37:02]MH_SAM_APDU [06:37:02]CAPDU: 80 13 01 00 [06:37:02]Write to MH i2c: E2 08 00 3E 07 80 13 01 00 00 00 00 00 C2 [06:37:02]Write i2c OK [06:37:02]MH_I2C_Read... [06:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:03]Read from MH i2c: E2 [06:37:03]MH_I2C_Read... [06:37:03]Read from MH i2c: E2 0E 00 [06:37:03]MH_I2C_Read... [06:37:03]Read from MH i2c: E2 0E 00 3E 07 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5C [06:37:03]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [06:37:03]wFMCommunicate OK [06:37:03]SAM_PROTO_GetShiftState done [06:37:03]FM_GetShiftState done [06:37:03]opened in 1726273389 [06:37:03]opened+sec_in_day 1726359789 [06:37:03]quantity*price = 15400 [06:37:03]sum+1 = 15401 [06:37:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 0.00 Безнал.: 154.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 24 14.09.2024 06:37 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92373 ФПД: 78979983596744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T063704&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92373&fm=78979983596744&tin=02508201610067®Number=0000000000091423&sum=15400 0 [06:37:04]StoreToDocumentArchive [06:37:04]shift 506 fd 92373 [06:37:04]save to /storage/0506/doc_00092373 [06:37:04]save last doc name /storage/0506/doc_00092373 to /storage/kkm_last_doc_name [06:37:04]save OK [06:37:04]Clear old archive folders... [06:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=277 [06:37:04]tlvbuf is 00FC9D90 [06:37:04]SAM_PROTO_ClearQueue [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 09 00 00 [06:37:04]Write to MH i2c: E2 08 00 4B 07 80 09 00 00 00 00 00 00 C4 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 4B 07 00 90 00 C6 [06:37:04]RAPDU: 90 00 [06:37:04]wFMCommunicate OK [06:37:04]SAM_PROTO_ClearQueue done [06:37:04]KKMCreateOFDPacket [06:37:04]OFDProtocolAddRootSTLVToBuf [06:37:04]FM_MakeSignedData [06:37:04]FM_MakeSignedData [06:37:04]SAM_PROTO_SignData [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 0D 01 02 [06:37:04]Write to MH i2c: E2 08 00 4C 07 80 0D 01 02 00 00 00 00 CC [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 4C 07 00 90 00 C7 [06:37:04]RAPDU: 90 00 [06:37:04]wFMCommunicate OK [06:37:04]wFMCommunicate request_size=255 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 0D 02 02 FA 03 00 15 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 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 00 00 00 00 00 00 39 04 06 00 28 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 10 2F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [06:37:04]Write to MH i2c: E2 02 01 4D 07 80 0D 02 02 FA 00 03 00 15 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 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 00 00 00 00 00 00 39 04 06 00 28 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 10 2F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 C0 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 4D 07 00 90 00 C8 [06:37:04]RAPDU: 90 00 [06:37:04]wFMCommunicate OK [06:37:04]wFMCommunicate request_size=36 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 68 01 00 35 04 06 00 47 D4 F5 DD DC C8 [06:37:04]Write to MH i2c: E2 27 00 4E 07 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 68 01 00 35 04 06 00 47 D4 F5 DD DC C8 00 00 C7 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [06:37:04]RAPDU: 90 00 [06:37:04]wFMCommunicate OK [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 0D 03 02 [06:37:04]Write to MH i2c: E2 08 00 4F 07 80 0D 03 02 00 00 00 00 D1 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 0B 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 0B 00 4F 07 00 8F C2 90 67 4F 38 B2 5E 90 00 B1 [06:37:04]RAPDU: 8F C2 90 67 4F 38 B2 5E 90 00 [06:37:04]wFMCommunicate OK [06:37:04]SAM_PROTO_SignData done [06:37:04]FM_MakeSignedData done [06:37:04]CreateOFDProtocolMessage [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 11 00 00 [06:37:04]Write to MH i2c: E2 08 00 50 07 80 11 00 00 00 00 00 00 D1 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]OFD Sender: No OFD packet to send [06:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 17 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 17 00 50 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 28 [06:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:37:04]wFMCommunicate OK [06:37:04]CreateOFDProtocolMessage done [06:37:04]OFDSenderStorePacket 92373 [06:37:04]StoreOFDPacket docnum=92373 [06:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 16 50 21 01 C7 4E 5A 03 01 00 03 00 15 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 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 00 00 00 00 00 00 39 04 06 00 28 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 10 2F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 68 01 00 35 04 06 00 47 D4 F5 DD DC C8 8F C2 90 67 4F 38 B2 5E [06:37:04]CheckFolder [06:37:04]dirname=/storage/ofd_packets [06:37:04]CheckFolder done [06:37:04]ProducePacketName [06:37:04]name=ofd_packets/00092373 [06:37:04]NVStorageSaveData ofd_packets/00092373 [06:37:04]File name is /storage/ofd_packets/00092373 [06:37:04]Write 327 bytes [06:37:04]NVStorageSaveData done [06:37:04]OFDSenderStorePacket done [06:37:04]KKMCreateOFDPacket done [06:37:04]NVStorageSaveData kkm_last_timestamp [06:37:04]File name is /storage/kkm_last_timestamp [06:37:04]Write 4 bytes [06:37:04]NVStorageSaveData done [06:37:04]ExternCall_PrintAddStr [06:37:04]wPrintStart [06:37:04]Write to MH i2c: 01 00 00 51 07 58 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: 01 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: 01 07 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 FF 0F 6D [06:37:04]RasterBufferAndPrint [06:37:04]line Счет N : (3)127294 [06:37:04]line ИНН: 02508201610067 [06:37:04]line Контрольно-Кассовый Чек [06:37:04]line ПРОДАЖА [06:37:04]line Товар: 46230607 [06:37:04]line Сигареты Richmond Bronze Edition [06:37:04]line 1.000 * 154.00 [06:37:04]line = 154.00 [06:37:04]line НДС 12% НСП 1% [06:37:04]line > о реализуемом товаре [06:37:04]line ИТОГО: 154.00 [06:37:04]line НСП 1% : 1.36 [06:37:04]line НДС 12% : 16.35 [06:37:04]line Наличными: 0.00 [06:37:04]line Безнал.: 154.00 [06:37:04]line Место: АЗС № 5 "Партнер Нефть" [06:37:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [06:37:04]line СНО: Общий режим [06:37:04]line Чек 24 14.09.2024 06:37 [06:37:04]line Смена: 506 ФФД: 1.0 [06:37:04]line ЗНМ: 03000000022 [06:37:04]line РНМ: 0000000000091423 [06:37:04]line Версия ККМ: 001 [06:37:04]line Платежная система: О! деньги [06:37:04]line ФМ: 0000000000874692 [06:37:04]line ФД: 92373 [06:37:04]line ФПД: 78979983596744 [06:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T063704&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92373&fm=78979983596744&tin=02508201610067®Number=0000000000091423&sum=15400 [06:37:05]line 0 [06:37:05]OFD Sender: Processing packet 92373 [packets to send 63, broken 62] [06:37:05]ProducePacketName [06:37:05]name=ofd_packets/00092373 [06:37:05]OFD Sender: To server: pG, [06:37:05]CommunicateWithHost lk.salyk.kg:30040 [06:37:05]ConnectInit lk.salyk.kg [06:37:05]written 0, free lines is 4095 [06:37:05]Connected sock=9 [06:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 16 50 21 01 C7 4E 5A 03 01 00 03 00 15 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 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 00 00 00 00 00 00 39 04 06 00 28 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 10 2F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 68 01 00 35 04 06 00 47 D4 F5 DD DC C8 8F C2 90 67 4F 38 B2 5E [06:37:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 39 E8 47 00 13 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D5 68 01 00 F4 03 04 00 8C D7 E4 66 B6 04 01 00 00 F5 5A 5A 64 7B FB E8 40 [06:37:05]CommunicateWithHost err = 0 [06:37:05]CheckOFDResponse [06:37:05]1017 (14) - 77093643461234 [06:37:05]1041 (16) - 0000000000874692 [06:37:05]1040 (4) - 92373 [06:37:05]1012 (4) - 14.09.2024 00:23 [06:37:05]1206 (1) - 0 [06:37:05]OFD Sender: Remove packet 92373 [06:37:05]ProducePacketName [06:37:05]name=ofd_packets/00092373 [06:37:05]NVStorageDeleteData [06:37:05]Write to MH i2c: 01 00 00 7C 07 83 [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 07 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 EA 0C 80 [06:37:05]RasterBufferAndPrint [06:37:05]line [06:37:05]line [06:37:05]line [06:37:05]line [06:37:05]line [06:37:05]written 0, free lines is 3314 [06:37:05]MH_Cut [06:37:05]Write to MH i2c: D1 01 00 83 07 01 5C [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: D1 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: D1 01 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: D1 01 00 83 07 00 5B [06:37:05]Write to MH i2c: 01 00 00 84 07 8B [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]OFD Sender: No OFD packet to send [06:37:06]*** Cut start [06:37:06]*** Purtial cut [06:37:06]*** Stage 1: CUTSNS_PIN = 1 [06:37:08]Read from MH i2c: 01 [06:37:08]MH_I2C_Read... [06:37:08]*** Stop cut motor [06:37:08]*** Cut end [06:37:08]Read from MH i2c: 01 07 00 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: 01 07 00 84 07 00 00 00 00 00 FF 0F A0 [06:37:08]process_action close_receipt done [06:37:08]requested_data is exist [06:37:08]produce_requested_data [06:37:08]requested_item fm.sn is exist - process it [06:37:08]wFMCommunicate request_size=4 [06:37:08]MH_SAM_APDU [06:37:08]CAPDU: 80 11 00 00 [06:37:08]Write to MH i2c: E2 08 00 85 07 80 11 00 00 00 00 00 00 06 [06:37:08]Write i2c OK [06:37:08]MH_I2C_Read... [06:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:08]Read from MH i2c: E2 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 17 00 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 17 00 85 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5D [06:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [06:37:08]wFMCommunicate OK [06:37:08]requested_item fd.num is exist - process it [06:37:08]SAM_PROTO_GetFieldsCounters [06:37:08]wFMCommunicate request_size=4 [06:37:08]MH_SAM_APDU [06:37:08]CAPDU: 80 13 00 00 [06:37:08]Write to MH i2c: E2 08 00 86 07 80 13 00 00 00 00 00 00 09 [06:37:08]Write i2c OK [06:37:08]MH_I2C_Read... [06:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:08]Read from MH i2c: E2 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 62 00 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 62 00 86 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D5 68 01 00 0E 04 04 00 FA 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 A9 [06:37:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D5 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:37:08]wFMCommunicate OK [06:37:08]SAM_PROTO_GetFieldsCounters done [06:37:08]requested_item shift.num is exist - process it [06:37:08]requested_item shift.opened is exist - process it [06:37:08]req_shift_opened [06:37:08]FM_GetShiftState [06:37:08]SAM_PROTO_GetShiftState [06:37:08]wFMCommunicate request_size=4 [06:37:08]MH_SAM_APDU [06:37:08]CAPDU: 80 13 01 00 [06:37:08]Write to MH i2c: E2 08 00 87 07 80 13 01 00 00 00 00 00 0B [06:37:08]Write i2c OK [06:37:08]MH_I2C_Read... [06:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:08]Read from MH i2c: E2 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 0E 00 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 0E 00 87 07 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A5 [06:37:08]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [06:37:08]wFMCommunicate OK [06:37:08]SAM_PROTO_GetShiftState done [06:37:08]FM_GetShiftState done [06:37:08]req_shift_opened done [06:37:08]requested_item shift.open_date is exist - process it [06:37:08]req_shift_open_date [06:37:08]req_shift_open_date done [06:37:08]produce_requested_data done [06:37:08]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92373,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [06:37:08]process_action_free close_receipt [06:37:08]json_value_free [06:37:08]json_value_free done [06:37:08]process_json_proto returns [06:37:08]Send response to host [06:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92373,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [06:37:08]free response buf [06:37:08]execute_script done [06:37:08]execute_script returns [06:37:08]free content buf [06:37:08]Sock 10.Close socket [06:37:08]Sock 10.Thread stoped [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: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:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]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:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:40]accept exits with 8 [07:06:40]New connection [07:06:40]New thread 3066658148 created [07:06:40]Thread 3066801508 joined [07:06:40]Waiting for new connection... [07:06:40] Sock 8.Parse request [07:06:40]Sock 8.Check first char [07:06:40]Sock 8.First char is OK [07:06:40]request: POST /json_proto HTTP/1.0 [07:06:40]Method: POST [07:06:40]URL: /json_proto [07:06:40]Method is POST - this is cgi request [07:06:40]url: /json_proto [07:06:40]query_string will be loaded in cgi processing [07:06:40]execute_cgi json_proto POST (null) [07:06:40]execute_cgi path=json_proto method=POST [07:06:40]POST find Content-Length [07:06:40]Host: 172.17.57.71:8080 [07:06:40]Content-Length: 682 [07:06:40]Content-Type: application/json [07:06:40] [07:06:40]POST finish read [07:06:40]Found Content-Length = 682 [07:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:40]execute_script... [07:06: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)647296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:40]POST & json_proto [07:06:40]process_json_proto [07:06:40]json parsed OK: [07:06:40]protocol is kg_v1.0 [07:06:40]action value=close_receipt [07:06:40]process_action close_receipt [07:06:40]cmd_close_receipt [07:06:40]MH_GetDate [07:06:40]Write to MH i2c: F0 00 00 88 07 7E [07:06:40]Write i2c OK [07:06:40]MH_I2C_Read... [07:06:40]Read from MH i2c: F0 [07:06:40]MH_I2C_Read... [07:06:40]Read from MH i2c: F0 09 00 [07:06:40]MH_I2C_Read... [07:06:40]Read from MH i2c: F0 09 00 88 07 00 01 36 E5 66 33 3A A4 66 80 [07:06:40]GetLastDocTimeStamp 1726295824 [07:06:40]current date 1726297601 [07:06:40]FM_GetShiftState [07:06:40]SAM_PROTO_GetShiftState [07:06:40]wFMCommunicate request_size=4 [07:06:40]MH_SAM_APDU [07:06:40]CAPDU: 80 13 01 00 [07:06:40]Write to MH i2c: E2 08 00 89 07 80 13 01 00 00 00 00 00 0D [07:06:40]Write i2c OK [07:06:40]MH_I2C_Read... [07:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:40]Read from MH i2c: E2 [07:06:40]MH_I2C_Read... [07:06:40]Read from MH i2c: E2 0E 00 [07:06:40]MH_I2C_Read... [07:06:40]Read from MH i2c: E2 0E 00 89 07 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A7 [07:06:40]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:06:40]wFMCommunicate OK [07:06:40]SAM_PROTO_GetShiftState done [07:06:40]FM_GetShiftState done [07:06:40]opened in 1726273389 [07:06:40]opened+sec_in_day 1726359789 [07:06:40]quantity*price = 150056 [07:06:40]sum+1 = 150058 [07:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 25 14.09.2024 07:06 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92374 ФПД: 16905994028481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T070642&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92374&fm=16905994028481&tin=02508201610067®Number=0000000000091423&sum=150000 [07:06:41]StoreToDocumentArchive [07:06:41]shift 506 fd 92374 [07:06:41]save to /storage/0506/doc_00092374 [07:06:41]save last doc name /storage/0506/doc_00092374 to /storage/kkm_last_doc_name [07:06:41]save OK [07:06:41]Clear old archive folders... [07:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:41]tlvbuf is 00FCB340 [07:06:41]SAM_PROTO_ClearQueue [07:06:41]wFMCommunicate request_size=4 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 09 00 00 [07:06:41]Write to MH i2c: E2 08 00 96 07 80 09 00 00 00 00 00 00 0F [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 96 07 00 90 00 11 [07:06:41]RAPDU: 90 00 [07:06:41]wFMCommunicate OK [07:06:41]SAM_PROTO_ClearQueue done [07:06:41]KKMCreateOFDPacket [07:06:41]OFDProtocolAddRootSTLVToBuf [07:06:41]FM_MakeSignedData [07:06:41]FM_MakeSignedData [07:06:41]SAM_PROTO_SignData [07:06:41]wFMCommunicate request_size=4 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 0D 01 02 [07:06:41]Write to MH i2c: E2 08 00 97 07 80 0D 01 02 00 00 00 00 17 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 97 07 00 90 00 12 [07:06:41]RAPDU: 90 00 [07:06:41]wFMCommunicate OK [07:06:41]wFMCommunicate request_size=255 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 02 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D6 68 01 00 35 04 06 00 0F [07:06:41]Write to MH i2c: E2 02 01 98 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 02 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D6 68 01 00 35 04 06 00 0F 00 00 D2 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 98 07 00 90 00 13 [07:06:41]RAPDU: 90 00 [07:06:41]wFMCommunicate OK [07:06:41]wFMCommunicate request_size=10 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 0D 02 02 05 60 3B C4 C5 C1 [07:06:41]Write to MH i2c: E2 0D 00 99 07 80 0D 02 02 05 00 60 3B C4 C5 C1 00 00 09 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 99 07 00 90 00 14 [07:06:41]RAPDU: 90 00 [07:06:41]wFMCommunicate OK [07:06:41]wFMCommunicate request_size=4 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 0D 03 02 [07:06:41]Write to MH i2c: E2 08 00 9A 07 80 0D 03 02 00 00 00 00 1C [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 0B 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 0B 00 9A 07 00 69 15 69 00 A4 73 4C 7F 90 00 E6 [07:06:41]RAPDU: 69 15 69 00 A4 73 4C 7F 90 00 [07:06:41]wFMCommunicate OK [07:06:41]SAM_PROTO_SignData done [07:06:41]FM_MakeSignedData done [07:06:41]CreateOFDProtocolMessage [07:06:41]wFMCommunicate request_size=4 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 11 00 00 [07:06:41]Write to MH i2c: E2 08 00 9B 07 80 11 00 00 00 00 00 00 1C [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 17 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 17 00 9B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 73 [07:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:06:41]wFMCommunicate OK [07:06:41]CreateOFDProtocolMessage done [07:06:41]OFDSenderStorePacket 92374 [07:06:41]StoreOFDPacket docnum=92374 [07:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 15 25 07 01 E9 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 02 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D6 68 01 00 35 04 06 00 0F 60 3B C4 C5 C1 69 15 69 00 A4 73 4C 7F [07:06:41]CheckFolder [07:06:41]dirname=/storage/ofd_packets [07:06:41]CheckFolder done [07:06:41]ProducePacketName [07:06:41]name=ofd_packets/00092374 [07:06:41]NVStorageSaveData ofd_packets/00092374 [07:06:41]File name is /storage/ofd_packets/00092374 [07:06:41]Write 301 bytes [07:06:41]NVStorageSaveData done [07:06:41]OFDSenderStorePacket done [07:06:41]KKMCreateOFDPacket done [07:06:41]NVStorageSaveData kkm_last_timestamp [07:06:41]File name is /storage/kkm_last_timestamp [07:06:41]Write 4 bytes [07:06:41]NVStorageSaveData done [07:06:41]ExternCall_PrintAddStr [07:06:41]wPrintStart [07:06:41]Write to MH i2c: 01 00 00 9C 07 A3 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: 01 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: 01 07 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [07:06:41]RasterBufferAndPrint [07:06:41]line Счет N : (1)647296 [07:06:41]line ИНН: 02508201610067 [07:06:41]line Контрольно-Кассовый Чек [07:06:41]line ПРОДАЖА [07:06:41]line ТРК (МРК, ГНК) : 23 [07:06:41]line Товар: 2710124130 [07:06:41]line Аи-92-К-5 [07:06:41]line 22.430 * 66.90 [07:06:41]line = 1500.57 [07:06:41]line НДС 12% НСП 1% [07:06:41]line > о реализуемом товаре [07:06:41]line ОКРУГЛЕНИЕ: -0.57 [07:06:41]line ИТОГО: 1500.00 [07:06:41]line Внесено: 1500.00 [07:06:41]line СДАЧА: 0.00 [07:06:41]line НСП 1% : 13.28 [07:06:41]line НДС 12% : 159.35 [07:06:41]line Наличными: 1500.00 [07:06:41]line Безнал.: 0.00 [07:06:41]line Место: АЗС № 5 "Партнер Нефть" [07:06:41]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:06:41]line СНО: Общий режим [07:06:41]line Чек 25 14.09.2024 07:06 [07:06:41]line Смена: 506 ФФД: 1.0 [07:06:41]line ЗНМ: 03000000022 [07:06:41]line РНМ: 0000000000091423 [07:06:41]line Версия ККМ: 001 [07:06:41]line ФМ: 0000000000874692 [07:06:41]line ФД: 92374 [07:06:41]line ФПД: 16905994028481 [07:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T070642&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92374&fm=16905994028481&tin=02508201610067®Number=0000000000091423&sum=150000 [07:06:41]written 0, free lines is 4095 [07:06:41]OFD Sender: Processing packet 92374 [packets to send 63, broken 62] [07:06:41]ProducePacketName [07:06:41]name=ofd_packets/00092374 [07:06:41]OFD Sender: To server: pG, [07:06:41]CommunicateWithHost lk.salyk.kg:30040 [07:06:41]ConnectInit lk.salyk.kg [07:06:41]Connected sock=10 [07:06:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 15 25 07 01 E9 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 02 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D6 68 01 00 35 04 06 00 0F 60 3B C4 C5 C1 69 15 69 00 A4 73 4C 7F [07:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F3 BB 47 00 F1 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D6 68 01 00 F4 03 04 00 7D DE E4 66 B6 04 01 00 00 D7 3D 90 54 46 C3 00 C6 [07:06:42]CommunicateWithHost err = 0 [07:06:42]CheckOFDResponse [07:06:42]1017 (14) - 77093643461234 [07:06:42]1041 (16) - 0000000000874692 [07:06:42]1040 (4) - 92374 [07:06:42]1012 (4) - 14.09.2024 00:53 [07:06:42]1206 (1) - 0 [07:06:42]OFD Sender: Remove packet 92374 [07:06:42]ProducePacketName [07:06:42]name=ofd_packets/00092374 [07:06:42]NVStorageDeleteData [07:06:42]Write to MH i2c: 01 00 00 C7 07 CE [07:06:42]Write i2c OK [07:06:42]MH_I2C_Read... [07:06:42]Read from MH i2c: 01 [07:06:42]MH_I2C_Read... [07:06:42]Read from MH i2c: 01 07 00 [07:06:42]MH_I2C_Read... [07:06:42]Read from MH i2c: 01 07 00 C7 07 00 00 00 00 00 FC 0C DD [07:06:42]RasterBufferAndPrint [07:06:42]line [07:06:42]line [07:06:42]line [07:06:42]line [07:06:42]line [07:06:42]written 0, free lines is 3332 [07:06:42]MH_Cut [07:06:42]Write to MH i2c: D1 01 00 CE 07 01 A7 [07:06:42]Write i2c OK [07:06:42]MH_I2C_Read... [07:06:42]Read from MH i2c: D1 [07:06:42]MH_I2C_Read... [07:06:42]Read from MH i2c: D1 01 00 [07:06:42]MH_I2C_Read... [07:06:42]Read from MH i2c: D1 01 00 CE 07 00 A6 [07:06:42]Write to MH i2c: 01 00 00 CF 07 D6 [07:06:42]Write i2c OK [07:06:42]MH_I2C_Read... [07:06:42]OFD Sender: No OFD packet to send [07:06:42]*** Cut start [07:06:42]*** Purtial cut [07:06:42]*** Stage 1: CUTSNS_PIN = 1 [07:06:44]Read from MH i2c: 01 [07:06:44]MH_I2C_Read... [07:06:44]*** Stop cut motor [07:06:44]*** Cut end [07:06:44]Read from MH i2c: 01 07 00 [07:06:44]MH_I2C_Read... [07:06:44]Read from MH i2c: 01 07 00 CF 07 00 00 00 00 00 FF 0F EB [07:06:44]process_action close_receipt done [07:06:44]requested_data is exist [07:06:44]produce_requested_data [07:06:44]requested_item fm.sn is exist - process it [07:06:44]wFMCommunicate request_size=4 [07:06:44]MH_SAM_APDU [07:06:44]CAPDU: 80 11 00 00 [07:06:44]Write to MH i2c: E2 08 00 D0 07 80 11 00 00 00 00 00 00 51 [07:06:44]Write i2c OK [07:06:44]MH_I2C_Read... [07:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:45]Read from MH i2c: E2 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 17 00 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 17 00 D0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [07:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:06:45]wFMCommunicate OK [07:06:45]requested_item fd.num is exist - process it [07:06:45]SAM_PROTO_GetFieldsCounters [07:06:45]wFMCommunicate request_size=4 [07:06:45]MH_SAM_APDU [07:06:45]CAPDU: 80 13 00 00 [07:06:45]Write to MH i2c: E2 08 00 D1 07 80 13 00 00 00 00 00 00 54 [07:06:45]Write i2c OK [07:06:45]MH_I2C_Read... [07:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:45]Read from MH i2c: E2 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 62 00 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 62 00 D1 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D6 68 01 00 0E 04 04 00 FA 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 F8 [07:06:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D6 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:45]wFMCommunicate OK [07:06:45]SAM_PROTO_GetFieldsCounters done [07:06:45]requested_item shift.num is exist - process it [07:06:45]requested_item shift.opened is exist - process it [07:06:45]req_shift_opened [07:06:45]FM_GetShiftState [07:06:45]SAM_PROTO_GetShiftState [07:06:45]wFMCommunicate request_size=4 [07:06:45]MH_SAM_APDU [07:06:45]CAPDU: 80 13 01 00 [07:06:45]Write to MH i2c: E2 08 00 D2 07 80 13 01 00 00 00 00 00 56 [07:06:45]Write i2c OK [07:06:45]MH_I2C_Read... [07:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:45]Read from MH i2c: E2 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 0E 00 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 0E 00 D2 07 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F0 [07:06:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:06:45]wFMCommunicate OK [07:06:45]SAM_PROTO_GetShiftState done [07:06:45]FM_GetShiftState done [07:06:45]req_shift_opened done [07:06:45]requested_item shift.open_date is exist - process it [07:06:45]req_shift_open_date [07:06:45]req_shift_open_date done [07:06:45]produce_requested_data done [07:06:45]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92374,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:06:45]process_action_free close_receipt [07:06:45]json_value_free [07:06:45]json_value_free done [07:06:45]process_json_proto returns [07:06:45]Send response to host [07:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92374,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:06:45]free response buf [07:06:45]execute_script done [07:06:45]execute_script returns [07:06:45]free content buf [07:06:45]Sock 8.Close socket [07:06:45]Sock 8.Thread stoped [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:54]accept exits with 9 [07:06:54]New connection [07:06:54]New thread 3066801508 created [07:06:54]Thread 3066658148 joined [07:06:54]Waiting for new connection... [07:06:54] Sock 9.Parse request [07:06:54]Sock 9.Check first char [07:06:54]Sock 9.First char is OK [07:06:54]request: POST /json_proto HTTP/1.0 [07:06:54]Method: POST [07:06:54]URL: /json_proto [07:06:54]Method is POST - this is cgi request [07:06:54]url: /json_proto [07:06:54]query_string will be loaded in cgi processing [07:06:54]execute_cgi json_proto POST (null) [07:06:54]execute_cgi path=json_proto method=POST [07:06:54]POST find Content-Length [07:06:54]Host: 172.17.57.71:8080 [07:06:54]Content-Length: 679 [07:06:54]Content-Type: application/json [07:06:54] [07:06:54]POST finish read [07:06:54]Found Content-Length = 679 [07:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:54]execute_script... [07:06:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:54]POST & json_proto [07:06:54]process_json_proto [07:06:54]json parsed OK: [07:06:54]protocol is kg_v1.0 [07:06:54]action value=close_receipt [07:06:54]process_action close_receipt [07:06:54]cmd_close_receipt [07:06:54]MH_GetDate [07:06:54]Write to MH i2c: F0 00 00 D3 07 C9 [07:06:54]Write i2c OK [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: F0 [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: F0 09 00 [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: F0 09 00 D3 07 00 10 36 E5 66 33 3A A4 66 DA [07:06:54]GetLastDocTimeStamp 1726297602 [07:06:54]current date 1726297616 [07:06:54]FM_GetShiftState [07:06:54]SAM_PROTO_GetShiftState [07:06:54]wFMCommunicate request_size=4 [07:06:54]MH_SAM_APDU [07:06:54]CAPDU: 80 13 01 00 [07:06:54]Write to MH i2c: E2 08 00 D4 07 80 13 01 00 00 00 00 00 58 [07:06:54]Write i2c OK [07:06:54]MH_I2C_Read... [07:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:54]Read from MH i2c: E2 [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: E2 0E 00 [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: E2 0E 00 D4 07 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F2 [07:06:54]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:06:54]wFMCommunicate OK [07:06:54]SAM_PROTO_GetShiftState done [07:06:54]FM_GetShiftState done [07:06:54]opened in 1726273389 [07:06:54]opened+sec_in_day 1726359789 [07:06:54]quantity*price = 200061 [07:06:54]sum+1 = 200063 [07:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 26 14.09.2024 07:06 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92375 ФПД: 188861062404670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T070656&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92375&fm=188861062404670&tin=02508201610067®Number=0000000000091423&sum=200000 [07:06:55]StoreToDocumentArchive [07:06:55]shift 506 fd 92375 [07:06:55]save to /storage/0506/doc_00092375 [07:06:55]save last doc name /storage/0506/doc_00092375 to /storage/kkm_last_doc_name [07:06:55]save OK [07:06:55]Clear old archive folders... [07:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:06:55]tlvbuf is 00FBBF00 [07:06:55]SAM_PROTO_ClearQueue [07:06:55]wFMCommunicate request_size=4 [07:06:55]MH_SAM_APDU [07:06:55]CAPDU: 80 09 00 00 [07:06:55]Write to MH i2c: E2 08 00 E1 07 80 09 00 00 00 00 00 00 5A [07:06:55]Write i2c OK [07:06:55]MH_I2C_Read... [07:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:55]Read from MH i2c: E2 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: E2 03 00 [07:06:55]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 03 00 E1 07 00 90 00 5C [07:06:56]RAPDU: 90 00 [07:06:56]wFMCommunicate OK [07:06:56]SAM_PROTO_ClearQueue done [07:06:56]KKMCreateOFDPacket [07:06:56]OFDProtocolAddRootSTLVToBuf [07:06:56]FM_MakeSignedData [07:06:56]FM_MakeSignedData [07:06:56]SAM_PROTO_SignData [07:06:56]wFMCommunicate request_size=4 [07:06:56]MH_SAM_APDU [07:06:56]CAPDU: 80 0D 01 02 [07:06:56]Write to MH i2c: E2 08 00 E2 07 80 0D 01 02 00 00 00 00 62 [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:56]Read from MH i2c: E2 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 03 00 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 03 00 E2 07 00 90 00 5D [07:06:56]RAPDU: 90 00 [07:06:56]wFMCommunicate OK [07:06:56]wFMCommunicate request_size=255 [07:06:56]MH_SAM_APDU [07:06:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 10 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 68 01 00 35 04 06 00 AB C4 A4 89 [07:06:56]Write to MH i2c: E2 02 01 E3 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 10 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 68 01 00 35 04 06 00 AB C4 A4 89 00 00 4C [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:56]Read from MH i2c: E2 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 03 00 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 03 00 E3 07 00 90 00 5E [07:06:56]RAPDU: 90 00 [07:06:56]wFMCommunicate OK [07:06:56]wFMCommunicate request_size=7 [07:06:56]MH_SAM_APDU [07:06:56]CAPDU: 80 0D 02 02 02 5A 3E [07:06:56]Write to MH i2c: E2 0A 00 E4 07 80 0D 02 02 02 00 5A 3E 00 00 01 [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:56]Read from MH i2c: E2 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 03 00 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 03 00 E4 07 00 90 00 5F [07:06:56]RAPDU: 90 00 [07:06:56]wFMCommunicate OK [07:06:56]wFMCommunicate request_size=4 [07:06:56]MH_SAM_APDU [07:06:56]CAPDU: 80 0D 03 02 [07:06:56]Write to MH i2c: E2 08 00 E5 07 80 0D 03 02 00 00 00 00 67 [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:56]Read from MH i2c: E2 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 0B 00 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 0B 00 E5 07 00 6C F3 01 12 33 33 C0 06 90 00 06 [07:06:56]RAPDU: 6C F3 01 12 33 33 C0 06 90 00 [07:06:56]wFMCommunicate OK [07:06:56]SAM_PROTO_SignData done [07:06:56]FM_MakeSignedData done [07:06:56]CreateOFDProtocolMessage [07:06:56]wFMCommunicate request_size=4 [07:06:56]MH_SAM_APDU [07:06:56]CAPDU: 80 11 00 00 [07:06:56]Write to MH i2c: E2 08 00 E6 07 80 11 00 00 00 00 00 00 67 [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:56]Read from MH i2c: E2 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 17 00 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: E2 17 00 E6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BE [07:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:06:56]wFMCommunicate OK [07:06:56]CreateOFDProtocolMessage done [07:06:56]OFDSenderStorePacket 92375 [07:06:56]StoreOFDPacket docnum=92375 [07:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 5F 9F 04 01 10 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 10 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 68 01 00 35 04 06 00 AB C4 A4 89 5A 3E 6C F3 01 12 33 33 C0 06 [07:06:56]CheckFolder [07:06:56]dirname=/storage/ofd_packets [07:06:56]CheckFolder done [07:06:56]ProducePacketName [07:06:56]name=ofd_packets/00092375 [07:06:56]NVStorageSaveData ofd_packets/00092375 [07:06:56]File name is /storage/ofd_packets/00092375 [07:06:56]Write 298 bytes [07:06:56]NVStorageSaveData done [07:06:56]OFDSenderStorePacket done [07:06:56]KKMCreateOFDPacket done [07:06:56]NVStorageSaveData kkm_last_timestamp [07:06:56]File name is /storage/kkm_last_timestamp [07:06:56]Write 4 bytes [07:06:56]NVStorageSaveData done [07:06:56]ExternCall_PrintAddStr [07:06:56]wPrintStart [07:06:56]Write to MH i2c: 01 00 00 E7 07 EE [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: 01 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: 01 07 00 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: 01 07 00 E7 07 00 00 00 00 00 FF 0F 03 [07:06:56]RasterBufferAndPrint [07:06:56]line Счет N : (1)647297 [07:06:56]line ИНН: 02508201610067 [07:06:56]line Контрольно-Кассовый Чек [07:06:56]line ПРОДАЖА [07:06:56]line ТРК (МРК, ГНК) : 54 [07:06:56]line Товар: 2710194210 [07:06:56]line ДТ-К-5 [07:06:56]line 26.890 * 74.40 [07:06:56]line = 2000.62 [07:06:56]line НДС 12% НСП 1% [07:06:56]line > о реализуемом товаре [07:06:56]line ОКРУГЛЕНИЕ: -0.62 [07:06:56]line ИТОГО: 2000.00 [07:06:56]line Внесено: 2000.00 [07:06:56]line СДАЧА: 0.00 [07:06:56]line НСП 1% : 17.70 [07:06:56]line НДС 12% : 212.45 [07:06:56]line Наличными: 2000.00 [07:06:56]line Безнал.: 0.00 [07:06:56]line Место: АЗС № 5 "Партнер Нефть" [07:06:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:06:56]line СНО: Общий режим [07:06:56]line Чек 26 14.09.2024 07:06 [07:06:56]line Смена: 506 ФФД: 1.0 [07:06:56]line ЗНМ: 03000000022 [07:06:56]line РНМ: 0000000000091423 [07:06:56]line Версия ККМ: 001 [07:06:56]line ФМ: 0000000000874692 [07:06:56]line ФД: 92375 [07:06:56]line ФПД: 188861062404670 [07:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T070656&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92375&fm=188861062404670&tin=02508201610067®Number=0000000000091423&sum=200000 [07:06:56]OFD Sender: Processing packet 92375 [packets to send 63, broken 62] [07:06:56]ProducePacketName [07:06:56]name=ofd_packets/00092375 [07:06:56]OFD Sender: To server: pG, [07:06:56]CommunicateWithHost lk.salyk.kg:30040 [07:06:56]ConnectInit lk.salyk.kg [07:06:56]written 0, free lines is 4095 [07:06:56]Connected sock=10 [07:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 5F 9F 04 01 10 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 10 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 68 01 00 35 04 06 00 AB C4 A4 89 5A 3E 6C F3 01 12 33 33 C0 06 [07:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6C E1 47 00 38 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D7 68 01 00 F4 03 04 00 8C DE E4 66 B6 04 01 00 00 99 6A B3 D5 3B 0C E7 54 [07:06:57]CommunicateWithHost err = 0 [07:06:57]CheckOFDResponse [07:06:57]1017 (14) - 77093643461234 [07:06:57]1041 (16) - 0000000000874692 [07:06:57]1040 (4) - 92375 [07:06:57]1012 (4) - 14.09.2024 00:53 [07:06:57]1206 (1) - 0 [07:06:57]OFD Sender: Remove packet 92375 [07:06:57]ProducePacketName [07:06:57]name=ofd_packets/00092375 [07:06:57]NVStorageDeleteData [07:06:57]Write to MH i2c: 01 00 00 12 08 1A [07:06:57]Write i2c OK [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: 01 [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: 01 07 00 [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: 01 07 00 12 08 00 00 00 00 00 FC 0C 29 [07:06:57]RasterBufferAndPrint [07:06:57]line [07:06:57]line [07:06:57]line [07:06:57]line [07:06:57]line [07:06:57]written 0, free lines is 3332 [07:06:57]MH_Cut [07:06:57]Write to MH i2c: D1 01 00 19 08 01 F3 [07:06:57]Write i2c OK [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: D1 [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: D1 01 00 [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: D1 01 00 19 08 00 F2 [07:06:57]Write to MH i2c: 01 00 00 1A 08 22 [07:06:57]Write i2c OK [07:06:57]MH_I2C_Read... [07:06:57]OFD Sender: No OFD packet to send [07:06:57]*** Cut start [07:06:57]*** Purtial cut [07:06:57]*** Stage 1: CUTSNS_PIN = 1 [07:06:59]Read from MH i2c: 01 [07:06:59]MH_I2C_Read... [07:06:59]*** Stop cut motor [07:06:59]*** Cut end [07:06:59]Read from MH i2c: 01 07 00 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 FF 0F 37 [07:06:59]process_action close_receipt done [07:06:59]requested_data is exist [07:06:59]produce_requested_data [07:06:59]requested_item fm.sn is exist - process it [07:06:59]wFMCommunicate request_size=4 [07:06:59]MH_SAM_APDU [07:06:59]CAPDU: 80 11 00 00 [07:06:59]Write to MH i2c: E2 08 00 1B 08 80 11 00 00 00 00 00 00 9D [07:06:59]Write i2c OK [07:06:59]MH_I2C_Read... [07:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:59]Read from MH i2c: E2 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: E2 17 00 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: E2 17 00 1B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F4 [07:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:06:59]wFMCommunicate OK [07:06:59]requested_item fd.num is exist - process it [07:06:59]SAM_PROTO_GetFieldsCounters [07:06:59]wFMCommunicate request_size=4 [07:06:59]MH_SAM_APDU [07:06:59]CAPDU: 80 13 00 00 [07:06:59]Write to MH i2c: E2 08 00 1C 08 80 13 00 00 00 00 00 00 A0 [07:06:59]Write i2c OK [07:06:59]MH_I2C_Read... [07:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:00]Read from MH i2c: E2 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 62 00 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 62 00 1C 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D7 68 01 00 0E 04 04 00 FA 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 48 [07:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D7 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:00]wFMCommunicate OK [07:07:00]SAM_PROTO_GetFieldsCounters done [07:07:00]requested_item shift.num is exist - process it [07:07:00]requested_item shift.opened is exist - process it [07:07:00]req_shift_opened [07:07:00]FM_GetShiftState [07:07:00]SAM_PROTO_GetShiftState [07:07:00]wFMCommunicate request_size=4 [07:07:00]MH_SAM_APDU [07:07:00]CAPDU: 80 13 01 00 [07:07:00]Write to MH i2c: E2 08 00 1D 08 80 13 01 00 00 00 00 00 A2 [07:07:00]Write i2c OK [07:07:00]MH_I2C_Read... [07:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:00]Read from MH i2c: E2 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 0E 00 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 0E 00 1D 08 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3C [07:07:00]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:07:00]wFMCommunicate OK [07:07:00]SAM_PROTO_GetShiftState done [07:07:00]FM_GetShiftState done [07:07:00]req_shift_opened done [07:07:00]requested_item shift.open_date is exist - process it [07:07:00]req_shift_open_date [07:07:00]req_shift_open_date done [07:07:00]produce_requested_data done [07:07:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92375,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:07:00]process_action_free close_receipt [07:07:00]json_value_free [07:07:00]json_value_free done [07:07:00]process_json_proto returns [07:07:00]Send response to host [07:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92375,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:07:00]free response buf [07:07:00]execute_script done [07:07:00]execute_script returns [07:07:00]free content buf [07:07:00]Sock 9.Close socket [07:07:00]Sock 9.Thread stoped [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]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:44]accept exits with 8 [07:09:44]New connection [07:09:44]New thread 3066658148 created [07:09:44]Thread 3066801508 joined [07:09:44]Waiting for new connection... [07:09:44] Sock 8.Parse request [07:09:44]Sock 8.Check first char [07:09:44]Sock 8.First char is OK [07:09:44]request: POST /json_proto HTTP/1.0 [07:09:44]Method: POST [07:09:44]URL: /json_proto [07:09:44]Method is POST - this is cgi request [07:09:44]url: /json_proto [07:09:44]query_string will be loaded in cgi processing [07:09:44]execute_cgi json_proto POST (null) [07:09:44]execute_cgi path=json_proto method=POST [07:09:44]POST find Content-Length [07:09:44]Host: 172.17.57.71:8080 [07:09:44]Content-Length: 679 [07:09:44]Content-Type: application/json [07:09:44] [07:09:44]POST finish read [07:09:44]Found Content-Length = 679 [07:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:44]execute_script... [07:09:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:44]POST & json_proto [07:09:44]process_json_proto [07:09:44]json parsed OK: [07:09:44]protocol is kg_v1.0 [07:09:44]action value=close_receipt [07:09:44]process_action close_receipt [07:09:44]cmd_close_receipt [07:09:44]MH_GetDate [07:09:44]Write to MH i2c: F0 00 00 1E 08 15 [07:09:44]Write i2c OK [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: F0 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: F0 09 00 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: F0 09 00 1E 08 00 BA 36 E5 66 33 3A A4 66 D0 [07:09:44]GetLastDocTimeStamp 1726297616 [07:09:44]current date 1726297786 [07:09:44]FM_GetShiftState [07:09:44]SAM_PROTO_GetShiftState [07:09:44]wFMCommunicate request_size=4 [07:09:44]MH_SAM_APDU [07:09:44]CAPDU: 80 13 01 00 [07:09:44]Write to MH i2c: E2 08 00 1F 08 80 13 01 00 00 00 00 00 A4 [07:09:44]Write i2c OK [07:09:44]MH_I2C_Read... [07:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:44]Read from MH i2c: E2 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 0E 00 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 0E 00 1F 08 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3E [07:09:44]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:09:44]wFMCommunicate OK [07:09:44]SAM_PROTO_GetShiftState done [07:09:44]FM_GetShiftState done [07:09:44]opened in 1726273389 [07:09:44]opened+sec_in_day 1726359789 [07:09:44]quantity*price = 100068 [07:09:44]sum+1 = 100069 [07:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 27 14.09.2024 07:09 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92376 ФПД: 202477695739497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T070946&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92376&fm=202477695739497&tin=02508201610067®Number=0000000000091423&sum=100000 [07:09:46]StoreToDocumentArchive [07:09:46]shift 506 fd 92376 [07:09:46]save to /storage/0506/doc_00092376 [07:09:46]save last doc name /storage/0506/doc_00092376 to /storage/kkm_last_doc_name [07:09:46]save OK [07:09:46]Clear old archive folders... [07:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:09:46]tlvbuf is 00FC6110 [07:09:46]SAM_PROTO_ClearQueue [07:09:46]wFMCommunicate request_size=4 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 09 00 00 [07:09:46]Write to MH i2c: E2 08 00 2C 08 80 09 00 00 00 00 00 00 A6 [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 03 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 03 00 2C 08 00 90 00 A8 [07:09:46]RAPDU: 90 00 [07:09:46]wFMCommunicate OK [07:09:46]SAM_PROTO_ClearQueue done [07:09:46]KKMCreateOFDPacket [07:09:46]OFDProtocolAddRootSTLVToBuf [07:09:46]FM_MakeSignedData [07:09:46]FM_MakeSignedData [07:09:46]SAM_PROTO_SignData [07:09:46]wFMCommunicate request_size=4 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 0D 01 02 [07:09:46]Write to MH i2c: E2 08 00 2D 08 80 0D 01 02 00 00 00 00 AE [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 03 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 03 00 2D 08 00 90 00 A9 [07:09:46]RAPDU: 90 00 [07:09:46]wFMCommunicate OK [07:09:46]wFMCommunicate request_size=255 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 BA 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 68 01 00 35 04 06 00 B8 27 03 21 [07:09:46]Write to MH i2c: E2 02 01 2E 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 BA 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 68 01 00 35 04 06 00 B8 27 03 21 00 00 67 [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 03 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 03 00 2E 08 00 90 00 AA [07:09:46]RAPDU: 90 00 [07:09:46]wFMCommunicate OK [07:09:46]wFMCommunicate request_size=7 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 0D 02 02 02 26 69 [07:09:46]Write to MH i2c: E2 0A 00 2F 08 80 0D 02 02 02 00 26 69 00 00 44 [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 03 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 03 00 2F 08 00 90 00 AB [07:09:46]RAPDU: 90 00 [07:09:46]wFMCommunicate OK [07:09:46]wFMCommunicate request_size=4 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 0D 03 02 [07:09:46]Write to MH i2c: E2 08 00 30 08 80 0D 03 02 00 00 00 00 B3 [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 0B 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 0B 00 30 08 00 7A FE C9 A9 D4 02 F6 5E 90 00 C8 [07:09:46]RAPDU: 7A FE C9 A9 D4 02 F6 5E 90 00 [07:09:46]wFMCommunicate OK [07:09:46]SAM_PROTO_SignData done [07:09:46]FM_MakeSignedData done [07:09:46]CreateOFDProtocolMessage [07:09:46]wFMCommunicate request_size=4 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 11 00 00 [07:09:46]Write to MH i2c: E2 08 00 31 08 80 11 00 00 00 00 00 00 B3 [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 17 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 17 00 31 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0A [07:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:09:46]wFMCommunicate OK [07:09:46]CreateOFDProtocolMessage done [07:09:46]OFDSenderStorePacket 92376 [07:09:46]StoreOFDPacket docnum=92376 [07:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 29 AD 04 01 CA 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 BA 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 68 01 00 35 04 06 00 B8 27 03 21 26 69 7A FE C9 A9 D4 02 F6 5E [07:09:46]CheckFolder [07:09:46]dirname=/storage/ofd_packets [07:09:46]CheckFolder done [07:09:46]ProducePacketName [07:09:46]name=ofd_packets/00092376 [07:09:46]NVStorageSaveData ofd_packets/00092376 [07:09:46]File name is /storage/ofd_packets/00092376 [07:09:46]Write 298 bytes [07:09:46]NVStorageSaveData done [07:09:46]OFDSenderStorePacket done [07:09:46]KKMCreateOFDPacket done [07:09:46]NVStorageSaveData kkm_last_timestamp [07:09:46]File name is /storage/kkm_last_timestamp [07:09:46]Write 4 bytes [07:09:46]NVStorageSaveData done [07:09:46]ExternCall_PrintAddStr [07:09:46]wPrintStart [07:09:46]Write to MH i2c: 01 00 00 32 08 3A [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: 01 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: 01 07 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: 01 07 00 32 08 00 00 00 00 00 FF 0F 4F [07:09:46]RasterBufferAndPrint [07:09:46]line Счет N : (1)647298 [07:09:46]line ИНН: 02508201610067 [07:09:46]line Контрольно-Кассовый Чек [07:09:46]line ПРОДАЖА [07:09:46]line ТРК (МРК, ГНК) : 14 [07:09:46]line Товар: 2710194210 [07:09:46]line ДТ-К-5 [07:09:46]line 13.450 * 74.40 [07:09:46]line = 1000.68 [07:09:46]line НДС 12% НСП 1% [07:09:46]line > о реализуемом товаре [07:09:46]line ОКРУГЛЕНИЕ: -0.68 [07:09:46]line ИТОГО: 1000.00 [07:09:46]line Внесено: 1000.00 [07:09:46]line СДАЧА: 0.00 [07:09:46]line НСП 1% : 8.86 [07:09:46]line НДС 12% : 106.27 [07:09:46]line Наличными: 1000.00 [07:09:46]line Безнал.: 0.00 [07:09:46]line Место: АЗС № 5 "Партнер Нефть" [07:09:46]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:09:46]line СНО: Общий режим [07:09:46]line Чек 27 14.09.2024 07:09 [07:09:46]line Смена: 506 ФФД: 1.0 [07:09:46]line ЗНМ: 03000000022 [07:09:46]line РНМ: 0000000000091423 [07:09:46]line Версия ККМ: 001 [07:09:46]line ФМ: 0000000000874692 [07:09:46]line ФД: 92376 [07:09:46]line ФПД: 202477695739497 [07:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T070946&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92376&fm=202477695739497&tin=02508201610067®Number=0000000000091423&sum=100000 [07:09:46]OFD Sender: Processing packet 92376 [packets to send 63, broken 62] [07:09:46]ProducePacketName [07:09:46]name=ofd_packets/00092376 [07:09:46]OFD Sender: To server: pG, [07:09:46]CommunicateWithHost lk.salyk.kg:30040 [07:09:46]ConnectInit lk.salyk.kg [07:09:46]written 0, free lines is 4095 [07:09:46]Connected sock=10 [07:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 29 AD 04 01 CA 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 BA 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 68 01 00 35 04 06 00 B8 27 03 21 26 69 7A FE C9 A9 D4 02 F6 5E [07:09:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 44 88 47 00 35 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D8 68 01 00 F4 03 04 00 36 DF E4 66 B6 04 01 00 00 F2 34 7D D1 1A AA 32 EF [07:09:47]CommunicateWithHost err = 0 [07:09:47]CheckOFDResponse [07:09:47]1017 (14) - 77093643461234 [07:09:47]1041 (16) - 0000000000874692 [07:09:47]1040 (4) - 92376 [07:09:47]1012 (4) - 14.09.2024 00:56 [07:09:47]1206 (1) - 0 [07:09:47]OFD Sender: Remove packet 92376 [07:09:47]ProducePacketName [07:09:47]name=ofd_packets/00092376 [07:09:47]NVStorageDeleteData [07:09:47]Write to MH i2c: 01 00 00 5D 08 65 [07:09:47]Write i2c OK [07:09:47]MH_I2C_Read... [07:09:47]Read from MH i2c: 01 [07:09:47]MH_I2C_Read... [07:09:47]Read from MH i2c: 01 07 00 [07:09:47]MH_I2C_Read... [07:09:47]Read from MH i2c: 01 07 00 5D 08 00 00 00 00 00 EA 0C 62 [07:09:47]RasterBufferAndPrint [07:09:47]line [07:09:47]line [07:09:47]line [07:09:47]line [07:09:47]line [07:09:47]written 0, free lines is 3312 [07:09:47]MH_Cut [07:09:47]Write to MH i2c: D1 01 00 64 08 01 3E [07:09:47]Write i2c OK [07:09:47]MH_I2C_Read... [07:09:47]Read from MH i2c: D1 [07:09:47]MH_I2C_Read... [07:09:47]Read from MH i2c: D1 01 00 [07:09:47]MH_I2C_Read... [07:09:47]Read from MH i2c: D1 01 00 64 08 00 3D [07:09:47]Write to MH i2c: 01 00 00 65 08 6D [07:09:47]Write i2c OK [07:09:47]MH_I2C_Read... [07:09:47]OFD Sender: No OFD packet to send [07:09:48]*** Cut start [07:09:48]*** Purtial cut [07:09:48]*** Stage 1: CUTSNS_PIN = 1 [07:09:50]Read from MH i2c: 01 [07:09:50]MH_I2C_Read... [07:09:50]*** Stop cut motor [07:09:50]*** Cut end [07:09:50]Read from MH i2c: 01 07 00 [07:09:50]MH_I2C_Read... [07:09:50]Read from MH i2c: 01 07 00 65 08 00 00 00 00 00 FF 0F 82 [07:09:50]process_action close_receipt done [07:09:50]requested_data is exist [07:09:50]produce_requested_data [07:09:50]requested_item fm.sn is exist - process it [07:09:50]wFMCommunicate request_size=4 [07:09:50]MH_SAM_APDU [07:09:50]CAPDU: 80 11 00 00 [07:09:50]Write to MH i2c: E2 08 00 66 08 80 11 00 00 00 00 00 00 E8 [07:09:50]Write i2c OK [07:09:50]MH_I2C_Read... [07:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:50]Read from MH i2c: E2 [07:09:50]MH_I2C_Read... [07:09:50]Read from MH i2c: E2 17 00 [07:09:50]MH_I2C_Read... [07:09:50]Read from MH i2c: E2 17 00 66 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3F [07:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:09:50]wFMCommunicate OK [07:09:50]requested_item fd.num is exist - process it [07:09:50]SAM_PROTO_GetFieldsCounters [07:09:50]wFMCommunicate request_size=4 [07:09:50]MH_SAM_APDU [07:09:50]CAPDU: 80 13 00 00 [07:09:50]Write to MH i2c: E2 08 00 67 08 80 13 00 00 00 00 00 00 EB [07:09:50]Write i2c OK [07:09:50]MH_I2C_Read... [07:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:50]Read from MH i2c: E2 [07:09:50]MH_I2C_Read... [07:09:50]Read from MH i2c: E2 62 00 [07:09:50]MH_I2C_Read... [07:09:50]Read from MH i2c: E2 62 00 67 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D8 68 01 00 0E 04 04 00 FA 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 97 [07:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D8 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:09:50]wFMCommunicate OK [07:09:50]SAM_PROTO_GetFieldsCounters done [07:09:50]requested_item shift.num is exist - process it [07:09:50]requested_item shift.opened is exist - process it [07:09:50]req_shift_opened [07:09:50]FM_GetShiftState [07:09:50]SAM_PROTO_GetShiftState [07:09:50]wFMCommunicate request_size=4 [07:09:50]MH_SAM_APDU [07:09:50]CAPDU: 80 13 01 00 [07:09:50]Write to MH i2c: E2 08 00 68 08 80 13 01 00 00 00 00 00 ED [07:09:50]Write i2c OK [07:09:50]MH_I2C_Read... [07:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:50]Read from MH i2c: E2 [07:09:50]MH_I2C_Read... [07:09:50]Read from MH i2c: E2 0E 00 [07:09:50]MH_I2C_Read... [07:09:50]Read from MH i2c: E2 0E 00 68 08 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 87 [07:09:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:09:50]wFMCommunicate OK [07:09:50]SAM_PROTO_GetShiftState done [07:09:50]FM_GetShiftState done [07:09:50]req_shift_opened done [07:09:50]requested_item shift.open_date is exist - process it [07:09:50]req_shift_open_date [07:09:50]req_shift_open_date done [07:09:50]produce_requested_data done [07:09:50]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92376,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:09:50]process_action_free close_receipt [07:09:50]json_value_free [07:09:50]json_value_free done [07:09:50]process_json_proto returns [07:09:50]Send response to host [07:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92376,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:09:50]free response buf [07:09:50]execute_script done [07:09:50]execute_script returns [07:09:50]free content buf [07:09:50]Sock 8.Close socket [07:09:50]Sock 8.Thread stoped [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:11]accept exits with 9 [07:10:11]New connection [07:10:11]New thread 3066801508 created [07:10:11]Thread 3066658148 joined [07:10:11]Waiting for new connection... [07:10:11] Sock 9.Parse request [07:10:11]Sock 9.Check first char [07:10:11]Sock 9.First char is OK [07:10:11]request: POST /json_proto HTTP/1.0 [07:10:11]Method: POST [07:10:11]URL: /json_proto [07:10:11]Method is POST - this is cgi request [07:10:11]url: /json_proto [07:10:11]query_string will be loaded in cgi processing [07:10:11]execute_cgi json_proto POST (null) [07:10:11]execute_cgi path=json_proto method=POST [07:10:11]POST find Content-Length [07:10:11]Host: 172.17.57.71:8080 [07:10:11]Content-Length: 625 [07:10:11]Content-Type: application/json [07:10:11] [07:10:11]POST finish read [07:10:11]Found Content-Length = 625 [07:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127295", "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 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:11]execute_script... [07:10: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)127295", "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 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:11]POST & json_proto [07:10:11]process_json_proto [07:10:11]json parsed OK: [07:10:11]protocol is kg_v1.0 [07:10:11]action value=close_receipt [07:10:11]process_action close_receipt [07:10:11]cmd_close_receipt [07:10:11]MH_GetDate [07:10:11]Write to MH i2c: F0 00 00 69 08 60 [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: F0 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: F0 09 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: F0 09 00 69 08 00 D5 36 E5 66 33 3A A4 66 36 [07:10:11]GetLastDocTimeStamp 1726297786 [07:10:11]current date 1726297813 [07:10:11]FM_GetShiftState [07:10:11]SAM_PROTO_GetShiftState [07:10:11]wFMCommunicate request_size=4 [07:10:11]MH_SAM_APDU [07:10:11]CAPDU: 80 13 01 00 [07:10:11]Write to MH i2c: E2 08 00 6A 08 80 13 01 00 00 00 00 00 EF [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 0E 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 0E 00 6A 08 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 89 [07:10:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:10:11]wFMCommunicate OK [07:10:11]SAM_PROTO_GetShiftState done [07:10:11]FM_GetShiftState done [07:10:11]opened in 1726273389 [07:10:11]opened+sec_in_day 1726359789 [07:10:11]quantity*price = 15400 [07:10:11]sum+1 = 15401 [07:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 28 14.09.2024 07:10 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92377 ФПД: 261766496600578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T071013&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92377&fm=261766496600578&tin=02508201610067®Number=0000000000091423&sum=15400 0 [07:10:12]StoreToDocumentArchive [07:10:12]shift 506 fd 92377 [07:10:12]save to /storage/0506/doc_00092377 [07:10:12]save last doc name /storage/0506/doc_00092377 to /storage/kkm_last_doc_name [07:10:12]save OK [07:10:12]Clear old archive folders... [07:10:12]ProcessDocumentItem done err = 0, tmpTLVsize=277 [07:10:12]tlvbuf is 00FA4C40 [07:10:12]SAM_PROTO_ClearQueue [07:10:12]wFMCommunicate request_size=4 [07:10:12]MH_SAM_APDU [07:10:12]CAPDU: 80 09 00 00 [07:10:12]Write to MH i2c: E2 08 00 77 08 80 09 00 00 00 00 00 00 F1 [07:10:12]Write i2c OK [07:10:12]MH_I2C_Read... [07:10:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:12]Read from MH i2c: E2 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 77 08 00 90 00 F3 [07:10:12]RAPDU: 90 00 [07:10:12]wFMCommunicate OK [07:10:12]SAM_PROTO_ClearQueue done [07:10:12]KKMCreateOFDPacket [07:10:12]OFDProtocolAddRootSTLVToBuf [07:10:12]FM_MakeSignedData [07:10:12]FM_MakeSignedData [07:10:12]SAM_PROTO_SignData [07:10:12]wFMCommunicate request_size=4 [07:10:12]MH_SAM_APDU [07:10:12]CAPDU: 80 0D 01 02 [07:10:12]Write to MH i2c: E2 08 00 78 08 80 0D 01 02 00 00 00 00 F9 [07:10:12]Write i2c OK [07:10:12]MH_I2C_Read... [07:10:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:12]Read from MH i2c: E2 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 78 08 00 90 00 F4 [07:10:12]RAPDU: 90 00 [07:10:12]wFMCommunicate OK [07:10:12]wFMCommunicate request_size=255 [07:10:12]MH_SAM_APDU [07:10:12]CAPDU: 80 0D 02 02 FA 03 00 15 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 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 1C 00 00 00 F4 03 04 00 D5 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [07:10:13]Write to MH i2c: E2 02 01 79 08 80 0D 02 02 FA 00 03 00 15 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 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 1C 00 00 00 F4 03 04 00 D5 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 BD [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 79 08 00 90 00 F5 [07:10:13]RAPDU: 90 00 [07:10:13]wFMCommunicate OK [07:10:13]wFMCommunicate request_size=36 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 68 01 00 35 04 06 00 EE 13 43 0B 42 02 [07:10:13]Write to MH i2c: E2 27 00 7A 08 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 68 01 00 35 04 06 00 EE 13 43 0B 42 02 00 00 FA [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [07:10:13]RAPDU: 90 00 [07:10:13]wFMCommunicate OK [07:10:13]wFMCommunicate request_size=4 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 0D 03 02 [07:10:13]Write to MH i2c: E2 08 00 7B 08 80 0D 03 02 00 00 00 00 FE [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 0B 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 0B 00 7B 08 00 CB AA 3B 97 21 E8 F3 14 90 00 56 [07:10:13]RAPDU: CB AA 3B 97 21 E8 F3 14 90 00 [07:10:13]wFMCommunicate OK [07:10:13]SAM_PROTO_SignData done [07:10:13]FM_MakeSignedData done [07:10:13]CreateOFDProtocolMessage [07:10:13]wFMCommunicate request_size=4 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 11 00 00 [07:10:13]Write to MH i2c: E2 08 00 7C 08 80 11 00 00 00 00 00 00 FE [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 17 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 17 00 7C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 55 [07:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:10:13]wFMCommunicate OK [07:10:13]CreateOFDProtocolMessage done [07:10:13]OFDSenderStorePacket 92377 [07:10:13]StoreOFDPacket docnum=92377 [07:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 06 E9 21 01 BC E6 5A 03 01 00 03 00 15 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 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 1C 00 00 00 F4 03 04 00 D5 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 68 01 00 35 04 06 00 EE 13 43 0B 42 02 CB AA 3B 97 21 E8 F3 14 [07:10:13]CheckFolder [07:10:13]dirname=/storage/ofd_packets [07:10:13]CheckFolder done [07:10:13]ProducePacketName [07:10:13]name=ofd_packets/00092377 [07:10:13]NVStorageSaveData ofd_packets/00092377 [07:10:13]File name is /storage/ofd_packets/00092377 [07:10:13]Write 327 bytes [07:10:13]NVStorageSaveData done [07:10:13]OFDSenderStorePacket done [07:10:13]KKMCreateOFDPacket done [07:10:13]NVStorageSaveData kkm_last_timestamp [07:10:13]File name is /storage/kkm_last_timestamp [07:10:13]Write 4 bytes [07:10:13]NVStorageSaveData done [07:10:13]ExternCall_PrintAddStr [07:10:13]wPrintStart [07:10:13]Write to MH i2c: 01 00 00 7D 08 85 [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 07 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 07 00 7D 08 00 00 00 00 00 FF 0F 9A [07:10:13]RasterBufferAndPrint [07:10:13]line Счет N : (3)127295 [07:10:13]line ИНН: 02508201610067 [07:10:13]line Контрольно-Кассовый Чек [07:10:13]line ПРОДАЖА [07:10:13]line Товар: 46230607 [07:10:13]line Сигареты Richmond Bronze Edition [07:10:13]line 1.000 * 154.00 [07:10:13]line = 154.00 [07:10:13]line НДС 12% НСП 1% [07:10:13]line > о реализуемом товаре [07:10:13]line ИТОГО: 154.00 [07:10:13]line НСП 1% : 1.36 [07:10:13]line НДС 12% : 16.35 [07:10:13]line Наличными: 154.00 [07:10:13]line Безнал.: 0.00 [07:10:13]line Место: АЗС № 5 "Партнер Нефть" [07:10:13]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:10:13]line СНО: Общий режим [07:10:13]line Чек 28 14.09.2024 07:10 [07:10:13]line Смена: 506 ФФД: 1.0 [07:10:13]line ЗНМ: 03000000022 [07:10:13]line РНМ: 0000000000091423 [07:10:13]line Версия ККМ: 001 [07:10:13]line ФМ: 0000000000874692 [07:10:13]line ФД: 92377 [07:10:13]line ФПД: 261766496600578 [07:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T071013&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92377&fm=261766496600578&tin=02508201610067®Number=0000000000091423&sum=15400 [07:10:13]line 0 [07:10:13]OFD Sender: Processing packet 92377 [packets to send 63, broken 62] [07:10:13]ProducePacketName [07:10:13]name=ofd_packets/00092377 [07:10:13]OFD Sender: To server: pG, [07:10:13]CommunicateWithHost lk.salyk.kg:30040 [07:10:13]ConnectInit lk.salyk.kg [07:10:13]written 0, free lines is 4095 [07:10:13]Connected sock=10 [07:10:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 06 E9 21 01 BC E6 5A 03 01 00 03 00 15 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 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 1C 00 00 00 F4 03 04 00 D5 36 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 D9 68 01 00 35 04 06 00 EE 13 43 0B 42 02 CB AA 3B 97 21 E8 F3 14 [07:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 64 19 47 00 CB 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 34 36 39 32 10 04 04 00 D9 68 01 00 F4 03 04 00 51 DF E4 66 B6 04 01 00 00 91 97 98 A0 83 19 FB CA [07:10:14]CommunicateWithHost err = 0 [07:10:14]CheckOFDResponse [07:10:14]1017 (14) - 77093643461234 [07:10:14]1041 (16) - 0000000000874692 [07:10:14]1040 (4) - 92377 [07:10:14]1012 (4) - 14.09.2024 00:56 [07:10:14]1206 (1) - 0 [07:10:14]OFD Sender: Remove packet 92377 [07:10:14]ProducePacketName [07:10:14]name=ofd_packets/00092377 [07:10:14]NVStorageDeleteData [07:10:14]Write to MH i2c: 01 00 00 A6 08 AE [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 07 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 0C 0D CE [07:10:14]RasterBufferAndPrint [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]written 0, free lines is 3348 [07:10:14]MH_Cut [07:10:14]Write to MH i2c: D1 01 00 AD 08 01 87 [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 01 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 01 00 AD 08 00 86 [07:10:14]Write to MH i2c: 01 00 00 AE 08 B6 [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]OFD Sender: No OFD packet to send [07:10:14]*** Cut start [07:10:14]*** Purtial cut [07:10:14]*** Stage 1: CUTSNS_PIN = 1 [07:10:16]Read from MH i2c: 01 [07:10:16]MH_I2C_Read... [07:10:16]*** Stop cut motor [07:10:16]*** Cut end [07:10:16]Read from MH i2c: 01 07 00 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: 01 07 00 AE 08 00 00 00 00 00 FF 0F CB [07:10:16]process_action close_receipt done [07:10:16]requested_data is exist [07:10:16]produce_requested_data [07:10:16]requested_item fm.sn is exist - process it [07:10:16]wFMCommunicate request_size=4 [07:10:16]MH_SAM_APDU [07:10:16]CAPDU: 80 11 00 00 [07:10:16]Write to MH i2c: E2 08 00 AF 08 80 11 00 00 00 00 00 00 31 [07:10:16]Write i2c OK [07:10:16]MH_I2C_Read... [07:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:16]Read from MH i2c: E2 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: E2 17 00 [07:10:16]MH_I2C_Read... [07:10:16]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 34 36 39 32 90 00 88 [07:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:10:16]wFMCommunicate OK [07:10:16]requested_item fd.num is exist - process it [07:10:16]SAM_PROTO_GetFieldsCounters [07:10:16]wFMCommunicate request_size=4 [07:10:16]MH_SAM_APDU [07:10:16]CAPDU: 80 13 00 00 [07:10:16]Write to MH i2c: E2 08 00 B0 08 80 13 00 00 00 00 00 00 34 [07:10:16]Write i2c OK [07:10:16]MH_I2C_Read... [07:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:17]Read from MH i2c: E2 [07:10:17]MH_I2C_Read... [07:10:17]Read from MH i2c: E2 62 00 [07:10:17]MH_I2C_Read... [07:10:17]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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D9 68 01 00 0E 04 04 00 FA 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 E4 [07:10:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 D9 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:17]wFMCommunicate OK [07:10:17]SAM_PROTO_GetFieldsCounters done [07:10:17]requested_item shift.num is exist - process it [07:10:17]requested_item shift.opened is exist - process it [07:10:17]req_shift_opened [07:10:17]FM_GetShiftState [07:10:17]SAM_PROTO_GetShiftState [07:10:17]wFMCommunicate request_size=4 [07:10:17]MH_SAM_APDU [07:10:17]CAPDU: 80 13 01 00 [07:10:17]Write to MH i2c: E2 08 00 B1 08 80 13 01 00 00 00 00 00 36 [07:10:17]Write i2c OK [07:10:17]MH_I2C_Read... [07:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:17]Read from MH i2c: E2 [07:10:17]MH_I2C_Read... [07:10:17]Read from MH i2c: E2 0E 00 [07:10:17]MH_I2C_Read... [07:10:17]Read from MH i2c: E2 0E 00 B1 08 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D0 [07:10:17]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:10:17]wFMCommunicate OK [07:10:17]SAM_PROTO_GetShiftState done [07:10:17]FM_GetShiftState done [07:10:17]req_shift_opened done [07:10:17]requested_item shift.open_date is exist - process it [07:10:17]req_shift_open_date [07:10:17]req_shift_open_date done [07:10:17]produce_requested_data done [07:10:17]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92377,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:10:17]process_action_free close_receipt [07:10:17]json_value_free [07:10:17]json_value_free done [07:10:17]process_json_proto returns [07:10:17]Send response to host [07:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92377,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:10:17]free response buf [07:10:17]execute_script done [07:10:17]execute_script returns [07:10:17]free content buf [07:10:17]Sock 9.Close socket [07:10:17]Sock 9.Thread stoped [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:40]accept exits with 8 [07:11:40]New connection [07:11:40]New thread 3066658148 created [07:11:40]Thread 3066801508 joined [07:11:40]Waiting for new connection... [07:11:40] Sock 8.Parse request [07:11:40]Sock 8.Check first char [07:11:40]Sock 8.First char is OK [07:11:40]request: POST /json_proto HTTP/1.0 [07:11:40]Method: POST [07:11:40]URL: /json_proto [07:11:40]Method is POST - this is cgi request [07:11:40]url: /json_proto [07:11:40]query_string will be loaded in cgi processing [07:11:40]execute_cgi json_proto POST (null) [07:11:40]execute_cgi path=json_proto method=POST [07:11:40]POST find Content-Length [07:11:40]Host: 172.17.57.71:8080 [07:11:40]Content-Length: 1052 [07:11:40]Content-Type: application/json [07:11:40] [07:11:40]POST finish read [07:11:40]Found Content-Length = 1052 [07:11:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127296", "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 }]} ,{ "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:40]execute_script... [07:11: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)127296", "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 }]} ,{ "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:40]POST & json_proto [07:11:40]process_json_proto [07:11:40]json parsed OK: [07:11:40]protocol is kg_v1.0 [07:11:40]action value=close_receipt [07:11:40]process_action close_receipt [07:11:40]cmd_close_receipt [07:11:40]MH_GetDate [07:11:40]Write to MH i2c: F0 00 00 B2 08 A9 [07:11:40]Write i2c OK [07:11:40]MH_I2C_Read... [07:11:40]Read from MH i2c: F0 [07:11:40]MH_I2C_Read... [07:11:40]Read from MH i2c: F0 09 00 [07:11:40]MH_I2C_Read... [07:11:40]Read from MH i2c: F0 09 00 B2 08 00 2E 37 E5 66 33 3A A4 66 D9 [07:11:40]GetLastDocTimeStamp 1726297813 [07:11:40]current date 1726297902 [07:11:40]FM_GetShiftState [07:11:40]SAM_PROTO_GetShiftState [07:11:40]wFMCommunicate request_size=4 [07:11:40]MH_SAM_APDU [07:11:40]CAPDU: 80 13 01 00 [07:11:40]Write to MH i2c: E2 08 00 B3 08 80 13 01 00 00 00 00 00 38 [07:11:40]Write i2c OK [07:11:40]MH_I2C_Read... [07:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:41]Read from MH i2c: E2 [07:11:41]MH_I2C_Read... [07:11:41]Read from MH i2c: E2 0E 00 [07:11:41]MH_I2C_Read... [07:11:41]Read from MH i2c: E2 0E 00 B3 08 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D2 [07:11:41]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:11:41]wFMCommunicate OK [07:11:41]SAM_PROTO_GetShiftState done [07:11:41]FM_GetShiftState done [07:11:41]opened in 1726273389 [07:11:41]opened+sec_in_day 1726359789 [07:11:41]quantity*price = 13000 [07:11:41]sum+1 = 13001 [07:11:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 58411125749 Те самые макарон 1.000 * 195.00 = 195.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.88 НДС 12% : 34.51 Наличными: 0.00 Безнал.: 325.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 29 14.09.2024 07:11 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92378 ФПД: 166212840479335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T071142&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92378&fm=166212840479335&tin=02508201610067®Number=0000000000091423&sum=32500 0 [07:11:42]StoreToDocumentArchive [07:11:42]shift 506 fd 92378 [07:11:42]save to /storage/0506/doc_00092378 [07:11:42]save last doc name /storage/0506/doc_00092378 to /storage/kkm_last_doc_name [07:11:42]save OK [07:11:42]Clear old archive folders... [07:11:42]ProcessDocumentItem done err = 0, tmpTLVsize=376 [07:11:42]tlvbuf is 00FCA3B0 [07:11:42]SAM_PROTO_ClearQueue [07:11:42]wFMCommunicate request_size=4 [07:11:42]MH_SAM_APDU [07:11:42]CAPDU: 80 09 00 00 [07:11:42]Write to MH i2c: E2 08 00 C0 08 80 09 00 00 00 00 00 00 3A [07:11:42]Write i2c OK [07:11:42]MH_I2C_Read... [07:11:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:42]Read from MH i2c: E2 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 03 00 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 03 00 C0 08 00 90 00 3C [07:11:42]RAPDU: 90 00 [07:11:42]wFMCommunicate OK [07:11:42]SAM_PROTO_ClearQueue done [07:11:42]KKMCreateOFDPacket [07:11:42]OFDProtocolAddRootSTLVToBuf [07:11:42]FM_MakeSignedData [07:11:42]FM_MakeSignedData [07:11:42]SAM_PROTO_SignData [07:11:42]wFMCommunicate request_size=4 [07:11:42]MH_SAM_APDU [07:11:42]CAPDU: 80 0D 01 02 [07:11:42]Write to MH i2c: E2 08 00 C1 08 80 0D 01 02 00 00 00 00 42 [07:11:42]Write i2c OK [07:11:42]MH_I2C_Read... [07:11:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:42]Read from MH i2c: E2 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 03 00 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 03 00 C1 08 00 90 00 3D [07:11:42]RAPDU: 90 00 [07:11:42]wFMCommunicate OK [07:11:42]wFMCommunicate request_size=255 [07:11:42]MH_SAM_APDU [07:11:42]CAPDU: 80 0D 02 02 FA 03 00 78 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 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 [07:11:42]Write to MH i2c: E2 02 01 C2 08 80 0D 02 02 FA 00 03 00 78 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 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 00 00 78 [07:11:42]Write i2c OK [07:11:42]MH_I2C_Read... [07:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:42]Read from MH i2c: E2 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 03 00 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 03 00 C2 08 00 90 00 3E [07:11:42]RAPDU: 90 00 [07:11:42]wFMCommunicate OK [07:11:42]wFMCommunicate request_size=135 [07:11:42]MH_SAM_APDU [07:11:42]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2E 37 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DA 68 01 00 35 04 06 00 97 2B 71 50 5A 67 [07:11:42]Write to MH i2c: E2 8A 00 C3 08 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2E 37 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DA 68 01 00 35 04 06 00 97 2B 71 50 5A 67 00 00 CC [07:11:42]Write i2c OK [07:11:42]MH_I2C_Read... [07:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:42]Read from MH i2c: E2 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 03 00 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [07:11:42]RAPDU: 90 00 [07:11:42]wFMCommunicate OK [07:11:42]wFMCommunicate request_size=4 [07:11:42]MH_SAM_APDU [07:11:42]CAPDU: 80 0D 03 02 [07:11:42]Write to MH i2c: E2 08 00 C4 08 80 0D 03 02 00 00 00 00 47 [07:11:42]Write i2c OK [07:11:42]MH_I2C_Read... [07:11:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:42]Read from MH i2c: E2 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 0B 00 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 0B 00 C4 08 00 8D 02 CE 17 B1 02 63 5A 90 00 2C [07:11:42]RAPDU: 8D 02 CE 17 B1 02 63 5A 90 00 [07:11:42]wFMCommunicate OK [07:11:42]SAM_PROTO_SignData done [07:11:42]FM_MakeSignedData done [07:11:42]CreateOFDProtocolMessage [07:11:42]wFMCommunicate request_size=4 [07:11:42]MH_SAM_APDU [07:11:42]CAPDU: 80 11 00 00 [07:11:42]Write to MH i2c: E2 08 00 C5 08 80 11 00 00 00 00 00 00 47 [07:11:42]Write i2c OK [07:11:42]MH_I2C_Read... [07:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:42]Read from MH i2c: E2 [07:11:42]MH_I2C_Read... [07:11:42]Read from MH i2c: E2 17 00 [07:11:42]MH_I2C_Read... [07:11:42]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 34 36 39 32 90 00 9E [07:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:11:42]wFMCommunicate OK [07:11:42]CreateOFDProtocolMessage done [07:11:42]OFDSenderStorePacket 92378 [07:11:42]StoreOFDPacket docnum=92378 [07:11:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8C 01 00 00 BD 43 84 01 03 F9 5A 03 01 00 03 00 78 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 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2E 37 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DA 68 01 00 35 04 06 00 97 2B 71 50 5A 67 8D 02 CE 17 B1 02 63 5A [07:11:42]CheckFolder [07:11:42]dirname=/storage/ofd_packets [07:11:42]CheckFolder done [07:11:42]ProducePacketName [07:11:42]name=ofd_packets/00092378 [07:11:42]NVStorageSaveData ofd_packets/00092378 [07:11:42]File name is /storage/ofd_packets/00092378 [07:11:42]Write 426 bytes [07:11:42]NVStorageSaveData done [07:11:42]OFDSenderStorePacket done [07:11:42]KKMCreateOFDPacket done [07:11:42]NVStorageSaveData kkm_last_timestamp [07:11:42]File name is /storage/kkm_last_timestamp [07:11:42]Write 4 bytes [07:11:42]NVStorageSaveData done [07:11:42]ExternCall_PrintAddStr [07:11:42]wPrintStart [07:11:42]Write to MH i2c: 01 00 00 C6 08 CE [07:11:43]OFD Sender: Processing packet 92378 [packets to send 63, broken 62] [07:11:43]ProducePacketName [07:11:43]name=ofd_packets/00092378 [07:11:43]OFD Sender: To server: pG, [07:11:43]CommunicateWithHost lk.salyk.kg:30040 [07:11:43]ConnectInit lk.salyk.kg [07:11:43]Write i2c OK [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: 01 [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: 01 07 00 [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [07:11:43]RasterBufferAndPrint [07:11:43]line Счет N : (3)127296 [07:11:43]line ИНН: 02508201610067 [07:11:43]line Контрольно-Кассовый Чек [07:11:43]line ПРОДАЖА [07:11:43]line Товар: 2000036230011 [07:11:43]line Кофе Латте XL(GABB TRADE) [07:11:43]line 1.000 * 130.00 [07:11:43]line = 130.00 [07:11:43]line НДС 12% НСП 1% [07:11:43]line > о реализуемом товаре [07:11:43]line Товар: 58411125749 [07:11:43]line Те самые макарон [07:11:43]line 1.000 * 195.00 [07:11:43]line = 195.00 [07:11:43]line НДС 12% НСП 1% [07:11:43]line > о реализуемом товаре [07:11:43]line ИТОГО: 325.00 [07:11:43]line НСП 1% : 2.88 [07:11:43]line НДС 12% : 34.51 [07:11:43]line Наличными: 0.00 [07:11:43]line Безнал.: 325.00 [07:11:43]line Место: АЗС № 5 "Партнер Нефть" [07:11:43]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:11:43]line СНО: Общий режим [07:11:43]line Чек 29 14.09.2024 07:11 [07:11:43]line Смена: 506 ФФД: 1.0 [07:11:43]line ЗНМ: 03000000022 [07:11:43]line РНМ: 0000000000091423 [07:11:43]line Версия ККМ: 001 [07:11:43]line Платежная система: О! деньги [07:11:43]line ФМ: 0000000000874692 [07:11:43]line ФД: 92378 [07:11:43]line ФПД: 166212840479335 [07:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T071142&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92378&fm=166212840479335&tin=02508201610067®Number=0000000000091423&sum=32500 [07:11:43]line 0 [07:11:43]written 0, free lines is 4095 [07:11:43]Connected sock=10 [07:11:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8C 01 00 00 BD 43 84 01 03 F9 5A 03 01 00 03 00 78 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 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2E 37 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DA 68 01 00 35 04 06 00 97 2B 71 50 5A 67 8D 02 CE 17 B1 02 63 5A [07:11:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DD B8 47 00 FA 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DA 68 01 00 F4 03 04 00 AB DF E4 66 B6 04 01 00 00 E9 E5 95 E1 5C 3D B5 F9 [07:11:43]CommunicateWithHost err = 0 [07:11:43]CheckOFDResponse [07:11:43]1017 (14) - 77093643461234 [07:11:43]1041 (16) - 0000000000874692 [07:11:43]1040 (4) - 92378 [07:11:43]1012 (4) - 14.09.2024 00:58 [07:11:43]1206 (1) - 0 [07:11:43]OFD Sender: Remove packet 92378 [07:11:43]ProducePacketName [07:11:43]name=ofd_packets/00092378 [07:11:43]NVStorageDeleteData [07:11:43]Write to MH i2c: 01 00 00 F6 08 FE [07:11:43]Write i2c OK [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: 01 [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: 01 07 00 [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: 01 07 00 F6 08 00 00 00 00 00 CA 0C DB [07:11:43]RasterBufferAndPrint [07:11:43]line [07:11:43]line [07:11:43]line [07:11:43]line [07:11:43]line [07:11:43]written 0, free lines is 3280 [07:11:43]MH_Cut [07:11:43]Write to MH i2c: D1 01 00 FD 08 01 D7 [07:11:43]Write i2c OK [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: D1 [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: D1 01 00 [07:11:43]MH_I2C_Read... [07:11:43]Read from MH i2c: D1 01 00 FD 08 00 D6 [07:11:43]Write to MH i2c: 01 00 00 FE 08 06 [07:11:43]Write i2c OK [07:11:43]MH_I2C_Read... [07:11:43]OFD Sender: No OFD packet to send [07:11:44]*** Cut start [07:11:44]*** Purtial cut [07:11:44]*** Stage 1: CUTSNS_PIN = 1 [07:11:46]Read from MH i2c: 01 [07:11:46]MH_I2C_Read... [07:11:46]*** Stop cut motor [07:11:46]*** Cut end [07:11:46]Read from MH i2c: 01 07 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: 01 07 00 FE 08 00 00 00 00 00 FF 0F 1B [07:11:46]process_action close_receipt done [07:11:46]requested_data is exist [07:11:46]produce_requested_data [07:11:46]requested_item fm.sn is exist - process it [07:11:46]wFMCommunicate request_size=4 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 11 00 00 [07:11:46]Write to MH i2c: E2 08 00 FF 08 80 11 00 00 00 00 00 00 81 [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 17 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 17 00 FF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D8 [07:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:11:46]wFMCommunicate OK [07:11:46]requested_item fd.num is exist - process it [07:11:46]SAM_PROTO_GetFieldsCounters [07:11:46]wFMCommunicate request_size=4 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 13 00 00 [07:11:46]Write to MH i2c: E2 08 00 00 09 80 13 00 00 00 00 00 00 85 [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 62 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 62 00 00 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DA 68 01 00 0E 04 04 00 FA 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 39 [07:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DA 68 01 00 0E 04 04 00 FA 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 [07:11:46]wFMCommunicate OK [07:11:46]SAM_PROTO_GetFieldsCounters done [07:11:46]requested_item shift.num is exist - process it [07:11:46]requested_item shift.opened is exist - process it [07:11:46]req_shift_opened [07:11:46]FM_GetShiftState [07:11:46]SAM_PROTO_GetShiftState [07:11:46]wFMCommunicate request_size=4 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 13 01 00 [07:11:46]Write to MH i2c: E2 08 00 01 09 80 13 01 00 00 00 00 00 87 [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 0E 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 0E 00 01 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 21 [07:11:46]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:11:46]wFMCommunicate OK [07:11:46]SAM_PROTO_GetShiftState done [07:11:46]FM_GetShiftState done [07:11:46]req_shift_opened done [07:11:46]requested_item shift.open_date is exist - process it [07:11:46]req_shift_open_date [07:11:46]req_shift_open_date done [07:11:46]produce_requested_data done [07:11:46]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92378,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:11:46]process_action_free close_receipt [07:11:46]json_value_free [07:11:46]json_value_free done [07:11:46]process_json_proto returns [07:11:46]Send response to host [07:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92378,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:11:46]free response buf [07:11:46]execute_script done [07:11:46]execute_script returns [07:11:46]free content buf [07:11:46]Sock 8.Close socket [07:11:46]Sock 8.Thread stoped [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:48]accept exits with 9 [07:13:48]New connection [07:13:48]New thread 3066801508 created [07:13:48]Thread 3066658148 joined [07:13:48]Waiting for new connection... [07:13:48] Sock 9.Parse request [07:13:48]Sock 9.Check first char [07:13:48]Sock 9.First char is OK [07:13:48]request: POST /json_proto HTTP/1.0 [07:13:48]Method: POST [07:13:48]URL: /json_proto [07:13:48]Method is POST - this is cgi request [07:13:48]url: /json_proto [07:13:48]query_string will be loaded in cgi processing [07:13:48]execute_cgi json_proto POST (null) [07:13:48]execute_cgi path=json_proto method=POST [07:13:48]POST find Content-Length [07:13:48]Host: 172.17.57.71:8080 [07:13:48]Content-Length: 215 [07:13:48]Content-Type: application/json [07:13:48] [07:13:48]POST finish read [07:13:48]Found Content-Length = 215 [07:13:48]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" ] } } [07:13:48]execute_script... [07:13:48]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" ] } } [07:13:48]POST & json_proto [07:13:48]process_json_proto [07:13:48]json parsed OK: [07:13:48]protocol is kg_v1.0 [07:13:48]action value=get_value [07:13:48]process_action get_value [07:13:48]cmd_get_value [07:13:48]process_action get_value done [07:13:48]requested_data is exist [07:13:48]produce_requested_data [07:13:48]requested_item kkm.sn is exist - process it [07:13:48]requested_item kkm.ver is exist - process it [07:13:48]requested_item fm.sn is exist - process it [07:13:48]wFMCommunicate request_size=4 [07:13:48]MH_SAM_APDU [07:13:48]CAPDU: 80 11 00 00 [07:13:48]Write to MH i2c: E2 08 00 02 09 80 11 00 00 00 00 00 00 85 [07:13:48]Write i2c OK [07:13:48]MH_I2C_Read... [07:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:49]Read from MH i2c: E2 [07:13:49]MH_I2C_Read... [07:13:49]Read from MH i2c: E2 17 00 [07:13:49]MH_I2C_Read... [07:13:49]Read from MH i2c: E2 17 00 02 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DC [07:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:13:49]wFMCommunicate OK [07:13:49]requested_item fd.num is exist - process it [07:13:49]SAM_PROTO_GetFieldsCounters [07:13:49]wFMCommunicate request_size=4 [07:13:49]MH_SAM_APDU [07:13:49]CAPDU: 80 13 00 00 [07:13:49]Write to MH i2c: E2 08 00 03 09 80 13 00 00 00 00 00 00 88 [07:13:49]Write i2c OK [07:13:49]MH_I2C_Read... [07:13:49]OFD Sender: No OFD packet to send [07:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:49]Read from MH i2c: E2 [07:13:49]MH_I2C_Read... [07:13:49]Read from MH i2c: E2 62 00 [07:13:49]MH_I2C_Read... [07:13:49]Read from MH i2c: E2 62 00 03 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DA 68 01 00 0E 04 04 00 FA 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 3C [07:13:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DA 68 01 00 0E 04 04 00 FA 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 [07:13:49]wFMCommunicate OK [07:13:49]SAM_PROTO_GetFieldsCounters done [07:13:49]requested_item shift.num is exist - process it [07:13:49]requested_item shift.opened is exist - process it [07:13:49]req_shift_opened [07:13:49]FM_GetShiftState [07:13:49]SAM_PROTO_GetShiftState [07:13:49]wFMCommunicate request_size=4 [07:13:49]MH_SAM_APDU [07:13:49]CAPDU: 80 13 01 00 [07:13:49]Write to MH i2c: E2 08 00 04 09 80 13 01 00 00 00 00 00 8A [07:13:49]Write i2c OK [07:13:49]MH_I2C_Read... [07:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:49]Read from MH i2c: E2 [07:13:49]MH_I2C_Read... [07:13:49]Read from MH i2c: E2 0E 00 [07:13:49]MH_I2C_Read... [07:13:49]Read from MH i2c: E2 0E 00 04 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 24 [07:13:49]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:13:49]wFMCommunicate OK [07:13:49]SAM_PROTO_GetShiftState done [07:13:49]FM_GetShiftState done [07:13:49]req_shift_opened done [07:13:49]requested_item shift.open_date is exist - process it [07:13:49]req_shift_open_date [07:13:49]req_shift_open_date done [07:13:49]produce_requested_data done [07:13:49]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92378,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:13:49]process_action_free get_value [07:13:49]json_value_free [07:13:49]json_value_free done [07:13:49]process_json_proto returns [07:13:49]Send response to host [07:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92378,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:13:49]free response buf [07:13:49]execute_script done [07:13:49]execute_script returns [07:13:49]free content buf [07:13:49]Sock 9.Close socket [07:13:49]Sock 9.Thread stoped [07:13:49]accept exits with 8 [07:13:49]New connection [07:13:49]New thread 3066658148 created [07:13:49]Thread 3066801508 joined [07:13:49]Waiting for new connection... [07:13:49] Sock 8.Parse request [07:13:49]Sock 8.Check first char [07:13:49]Sock 8.First char is OK [07:13:49]request: POST /json_proto HTTP/1.0 [07:13:49]Method: POST [07:13:49]URL: /json_proto [07:13:49]Method is POST - this is cgi request [07:13:49]url: /json_proto [07:13:49]query_string will be loaded in cgi processing [07:13:49]execute_cgi json_proto POST (null) [07:13:49]execute_cgi path=json_proto method=POST [07:13:49]POST find Content-Length [07:13:49]Host: 172.17.57.71:8080 [07:13:49]Content-Length: 331 [07:13:49]Content-Type: application/json [07:13:49] [07:13:49]POST finish read [07:13:49]Found Content-Length = 331 [07:13: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" ] } } [07:13:49]execute_script... [07:13:49]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" ] } } [07:13:49]POST & json_proto [07:13:49]process_json_proto [07:13:49]json parsed OK: [07:13:49]protocol is kg_v1.0 [07:13:49]action value=get_value [07:13:49]process_action get_value [07:13:49]cmd_get_value [07:13:49]process_action get_value done [07:13:49]requested_data is exist [07:13:49]produce_requested_data [07:13:49]requested_item fm.sale.total is exist - process it [07:13:49]SAM_PROTO_GetFMData [07:13:49]wFMCommunicate request_size=4 [07:13:49]MH_SAM_APDU [07:13:49]CAPDU: 80 13 03 00 [07:13:49]Write to MH i2c: E2 08 00 05 09 80 13 03 00 00 00 00 00 8D [07:13:49]Write i2c OK [07:13:49]MH_I2C_Read... [07:13:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:13:49]Read from MH i2c: E2 [07:13:49]MH_I2C_Read... [07:13:49]Read from MH i2c: E2 FD 00 [07:13:49]MH_I2C_Read... [07:13:49]Read from MH i2c: E2 FD 00 05 09 00 C5 04 85 04 C1 04 6E 04 04 00 E6 64 01 00 69 04 A1 00 6F 04 04 00 97 61 01 00 B1 04 04 00 6F 15 8A B2 70 04 04 00 60 B6 29 83 72 04 04 00 0F 5F 60 2F 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 CD 12 F6 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 22 5B 94 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 2C [07:13:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E6 64 01 00 69 04 A1 00 6F 04 04 00 97 61 01 00 B1 04 04 00 6F 15 8A B2 70 04 04 00 60 B6 29 83 72 04 04 00 0F 5F 60 2F 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 CD 12 F6 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 22 5B 94 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 9E 00 6F 04 04 00 4F 03 00 00 B1 04 04 00 D4 83 76 04 70 04 04 00 1C 00 3F 04 72 04 03 00 B8 83 37 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 FC 58 79 EF 03 09 90 00 [07:13:49]wFMCommunicate OK [07:13:49]wFMCommunicate request_size=4 [07:13:49]MH_SAM_APDU [07:13:49]CAPDU: 80 17 00 00 [07:13:49]Write to MH i2c: E2 08 00 06 09 80 17 00 00 00 00 00 00 8F [07:13:49]Write i2c OK [07:13:49]MH_I2C_Read... [07:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:13:50]Read from MH i2c: E2 [07:13:50]MH_I2C_Read... [07:13:50]Read from MH i2c: E2 FD 00 [07:13:50]MH_I2C_Read... [07:13:50]Read from MH i2c: E2 FD 00 06 09 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 69 1C 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D4 [07:13: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 69 1C 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [07:13:50]wFMCommunicate OK [07:13:50]wFMCommunicate request_size=4 [07:13:50]MH_SAM_APDU [07:13:50]CAPDU: 80 17 00 00 [07:13:50]Write to MH i2c: E2 08 00 07 09 80 17 00 00 00 00 00 00 90 [07:13:50]Write i2c OK [07:13:50]MH_I2C_Read... [07:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:13:50]Read from MH i2c: E2 [07:13:50]MH_I2C_Read... [07:13:50]Read from MH i2c: E2 FD 00 [07:13:50]MH_I2C_Read... [07:13:50]Read from MH i2c: E2 FD 00 07 09 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 A2 [07:13:50]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 [07:13:50]wFMCommunicate OK [07:13:50]wFMCommunicate request_size=4 [07:13:50]MH_SAM_APDU [07:13:50]CAPDU: 80 17 00 00 [07:13:50]Write to MH i2c: E2 08 00 08 09 80 17 00 00 00 00 00 00 91 [07:13:50]Write i2c OK [07:13:50]MH_I2C_Read... [07:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:13:50]Read from MH i2c: E2 [07:13:50]MH_I2C_Read... [07:13:50]Read from MH i2c: E2 FD 00 [07:13:50]MH_I2C_Read... [07:13:50]Read from MH i2c: E2 FD 00 08 09 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 1D [07:13:50]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 [07:13:50]wFMCommunicate OK [07:13:50]wFMCommunicate request_size=4 [07:13:50]MH_SAM_APDU [07:13:50]CAPDU: 80 17 00 00 [07:13:50]Write to MH i2c: E2 08 00 09 09 80 17 00 00 00 00 00 00 92 [07:13:50]Write i2c OK [07:13:50]MH_I2C_Read... [07:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [07:13:50]Read from MH i2c: E2 [07:13:50]MH_I2C_Read... [07:13:50]Read from MH i2c: E2 E2 00 [07:13:50]MH_I2C_Read... [07:13:50]Read from MH i2c: E2 E2 00 09 09 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 [07:13: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 [07:13:51]wFMCommunicate OK [07:13:51]SAM_PROTO_GetFMData done [07:13:51]requested_item fm.sale_refund.total is exist - process it [07:13:51]requested_item fm.buy.total is exist - process it [07:13:51]requested_item shift.sale.total is exist - process it [07:13:51]SAM_PROTO_GetShiftData [07:13:51]wFMCommunicate request_size=4 [07:13:51]MH_SAM_APDU [07:13:51]CAPDU: 80 13 02 00 [07:13:51]Write to MH i2c: E2 08 00 0A 09 80 13 02 00 00 00 00 00 91 [07:13:51]Write i2c OK [07:13:51]MH_I2C_Read... [07:13:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:13:51]Read from MH i2c: E2 [07:13:51]MH_I2C_Read... [07:13:51]Read from MH i2c: E2 FD 00 [07:13:51]MH_I2C_Read... [07:13:51]Read from MH i2c: E2 FD 00 0A 09 00 B5 04 AA 04 B1 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 12 25 0E 70 04 03 00 58 0B 0B 72 04 03 00 BA 19 03 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 A0 80 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 0C 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 72 04 00 00 00 04 78 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 97 [07:13:51]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 12 25 0E 70 04 03 00 58 0B 0B 72 04 03 00 BA 19 03 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 A0 80 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 0C 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 21 70 04 02 00 98 21 72 04 00 00 00 04 78 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 91 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [07:13:51]wFMCommunicate OK [07:13:51]wFMCommunicate request_size=4 [07:13:51]MH_SAM_APDU [07:13:51]CAPDU: 80 17 00 00 [07:13:51]Write to MH i2c: E2 08 00 0B 09 80 17 00 00 00 00 00 00 94 [07:13:51]Write i2c OK [07:13:51]MH_I2C_Read... [07:13:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:13:51]Read from MH i2c: E2 [07:13:51]MH_I2C_Read... [07:13:51]Read from MH i2c: E2 FD 00 [07:13:51]MH_I2C_Read... [07:13:51]Read from MH i2c: E2 FD 00 0B 09 00 F6 03 01 00 01 F7 03 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [07:13:51]RAPDU: F6 03 01 00 01 F7 03 01 00 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:13:51]wFMCommunicate OK [07:13:51]wFMCommunicate request_size=4 [07:13:51]MH_SAM_APDU [07:13:51]CAPDU: 80 17 00 00 [07:13:51]Write to MH i2c: E2 08 00 0C 09 80 17 00 00 00 00 00 00 95 [07:13:51]Write i2c OK [07:13:51]MH_I2C_Read... [07:13:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:13:51]Read from MH i2c: E2 [07:13:51]MH_I2C_Read... [07:13:51]Read from MH i2c: E2 FD 00 [07:13:51]MH_I2C_Read... [07:13:51]Read from MH i2c: E2 FD 00 0C 09 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [07:13:52]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:13:52]wFMCommunicate OK [07:13:52]wFMCommunicate request_size=4 [07:13:52]MH_SAM_APDU [07:13:52]CAPDU: 80 17 00 00 [07:13:52]Write to MH i2c: E2 08 00 0D 09 80 17 00 00 00 00 00 00 96 [07:13:52]Write i2c OK [07:13:52]MH_I2C_Read... [07:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:13:52]Read from MH i2c: E2 [07:13:52]MH_I2C_Read... [07:13:52]Read from MH i2c: E2 FD 00 [07:13:52]MH_I2C_Read... [07:13:52]Read from MH i2c: E2 FD 00 0D 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 90 00 0E [07:13:52]RAPDU: 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 90 00 [07:13:52]wFMCommunicate OK [07:13:52]wFMCommunicate request_size=4 [07:13:52]MH_SAM_APDU [07:13:52]CAPDU: 80 17 00 00 [07:13:52]Write to MH i2c: E2 08 00 0E 09 80 17 00 00 00 00 00 00 97 [07:13:52]Write i2c OK [07:13:52]MH_I2C_Read... [07:13:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [07:13:52]Read from MH i2c: E2 [07:13:52]MH_I2C_Read... [07:13:52]Read from MH i2c: E2 D2 00 [07:13:52]MH_I2C_Read... [07:13:52]Read from MH i2c: E2 D2 00 0E 09 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [07:13:52]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:52]wFMCommunicate OK [07:13:52]SAM_PROTO_GetShiftData done [07:13:52]requested_item shift.sale.total_cash is exist - process it [07:13:52]requested_item shift.sale_refund.total is exist - process it [07:13:52]requested_item shift.sale_refund.total_cash is exist - process it [07:13:52]requested_item shift.buy.total is exist - process it [07:13:52]requested_item shift.buy.total_cash is exist - process it [07:13:52]produce_requested_data done [07:13:52]produce_requested_data return {"fm.sale.total":29953939.03,"fm.sale_refund.total":748758.60,"fm.buy.total":0.00,"shift.sale.total":9269.94,"shift.sale.total_cash":7238.00,"shift.sale_refund.total":86.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:13:52]process_action_free get_value [07:13:52]json_value_free [07:13:52]json_value_free done [07:13:52]process_json_proto returns [07:13:52]Send response to host [07:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29953939.03,"fm.sale_refund.total":748758.60,"fm.buy.total":0.00,"shift.sale.total":9269.94,"shift.sale.total_cash":7238.00,"shift.sale_refund.total":86.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:13:52]free response buf [07:13:52]execute_script done [07:13:52]execute_script returns [07:13:52]free content buf [07:13:52]Sock 8.Close socket [07:13:52]Sock 8.Thread stoped [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:47]accept exits with 9 [07:15:47]New connection [07:15:47]New thread 3066801508 created [07:15:47]Thread 3066658148 joined [07:15:47]Waiting for new connection... [07:15:47] Sock 9.Parse request [07:15:47]Sock 9.Check first char [07:15:47]Sock 9.First char is OK [07:15:47]request: POST /json_proto HTTP/1.0 [07:15:47]Method: POST [07:15:47]URL: /json_proto [07:15:47]Method is POST - this is cgi request [07:15:47]url: /json_proto [07:15:47]query_string will be loaded in cgi processing [07:15:47]execute_cgi json_proto POST (null) [07:15:47]execute_cgi path=json_proto method=POST [07:15:47]POST find Content-Length [07:15:47]Host: 172.17.57.71:8080 [07:15:47]Content-Length: 621 [07:15:47]Content-Type: application/json [07:15:47] [07:15:47]POST finish read [07:15:47]Found Content-Length = 621 [07:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127297", "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" ] } } [07:15:47]execute_script... [07:15:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127297", "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" ] } } [07:15:47]POST & json_proto [07:15:47]process_json_proto [07:15:47]json parsed OK: [07:15:47]protocol is kg_v1.0 [07:15:47]action value=close_receipt [07:15:47]process_action close_receipt [07:15:47]cmd_close_receipt [07:15:47]MH_GetDate [07:15:47]Write to MH i2c: F0 00 00 0F 09 07 [07:15:47]Write i2c OK [07:15:47]MH_I2C_Read... [07:15:47]Read from MH i2c: F0 [07:15:47]MH_I2C_Read... [07:15:47]Read from MH i2c: F0 09 00 [07:15:47]MH_I2C_Read... [07:15:47]Read from MH i2c: F0 09 00 0F 09 00 25 38 E5 66 33 3A A4 66 2F [07:15:47]GetLastDocTimeStamp 1726297902 [07:15:47]current date 1726298149 [07:15:47]FM_GetShiftState [07:15:47]SAM_PROTO_GetShiftState [07:15:47]wFMCommunicate request_size=4 [07:15:47]MH_SAM_APDU [07:15:47]CAPDU: 80 13 01 00 [07:15:47]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [07:15:47]Write i2c OK [07:15:47]MH_I2C_Read... [07:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:47]Read from MH i2c: E2 [07:15:47]MH_I2C_Read... [07:15:47]Read from MH i2c: E2 0E 00 [07:15:47]MH_I2C_Read... [07:15:47]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 30 [07:15:47]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:15:47]wFMCommunicate OK [07:15:47]SAM_PROTO_GetShiftState done [07:15:47]FM_GetShiftState done [07:15:47]opened in 1726273389 [07:15:47]opened+sec_in_day 1726359789 [07:15:47]quantity*price = 14400 [07:15:47]sum+1 = 14401 [07:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 30 14.09.2024 07:15 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92379 ФПД: 204880830059854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T071549&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92379&fm=204880830059854&tin=02508201610067®Number=0000000000091423&sum=14400 0 [07:15:48]StoreToDocumentArchive [07:15:48]shift 506 fd 92379 [07:15:48]save to /storage/0506/doc_00092379 [07:15:48]save last doc name /storage/0506/doc_00092379 to /storage/kkm_last_doc_name [07:15:48]save OK [07:15:48]Clear old archive folders... [07:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:15:48]tlvbuf is 00FBB270 [07:15:48]SAM_PROTO_ClearQueue [07:15:48]wFMCommunicate request_size=4 [07:15:48]MH_SAM_APDU [07:15:48]CAPDU: 80 09 00 00 [07:15:48]Write to MH i2c: E2 08 00 1D 09 80 09 00 00 00 00 00 00 98 [07:15:48]Write i2c OK [07:15:48]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [07:15:49]RAPDU: 90 00 [07:15:49]wFMCommunicate OK [07:15:49]SAM_PROTO_ClearQueue done [07:15:49]KKMCreateOFDPacket [07:15:49]OFDProtocolAddRootSTLVToBuf [07:15:49]FM_MakeSignedData [07:15:49]FM_MakeSignedData [07:15:49]SAM_PROTO_SignData [07:15:49]wFMCommunicate request_size=4 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 0D 01 02 [07:15:49]Write to MH i2c: E2 08 00 1E 09 80 0D 01 02 00 00 00 00 A0 [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [07:15:49]RAPDU: 90 00 [07:15:49]wFMCommunicate OK [07:15:49]wFMCommunicate request_size=255 [07:15:49]MH_SAM_APDU [07:15:49]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 1E 00 00 00 F4 03 04 00 25 38 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [07:15:49]Write to MH i2c: E2 02 01 1F 09 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 1E 00 00 00 F4 03 04 00 25 38 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 C5 [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]OFD Sender: No OFD packet to send [07:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [07:15:49]RAPDU: 90 00 [07:15:49]wFMCommunicate OK [07:15:49]wFMCommunicate request_size=32 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 68 01 00 35 04 06 00 BA 56 89 18 D5 4E [07:15:49]Write to MH i2c: E2 23 00 20 09 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 68 01 00 35 04 06 00 BA 56 89 18 D5 4E 00 00 1C [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [07:15:49]RAPDU: 90 00 [07:15:49]wFMCommunicate OK [07:15:49]wFMCommunicate request_size=4 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 0D 03 02 [07:15:49]Write to MH i2c: E2 08 00 21 09 80 0D 03 02 00 00 00 00 A5 [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 0B 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 0B 00 21 09 00 C3 54 06 C8 87 72 9E 54 90 00 76 [07:15:49]RAPDU: C3 54 06 C8 87 72 9E 54 90 00 [07:15:49]wFMCommunicate OK [07:15:49]SAM_PROTO_SignData done [07:15:49]FM_MakeSignedData done [07:15:49]CreateOFDProtocolMessage [07:15:49]wFMCommunicate request_size=4 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 11 00 00 [07:15:49]Write to MH i2c: E2 08 00 22 09 80 11 00 00 00 00 00 00 A5 [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 17 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 17 00 22 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FC [07:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:15:49]wFMCommunicate OK [07:15:49]CreateOFDProtocolMessage done [07:15:49]OFDSenderStorePacket 92379 [07:15:49]StoreOFDPacket docnum=92379 [07:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 B4 62 1D 01 A7 4D 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 1E 00 00 00 F4 03 04 00 25 38 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 68 01 00 35 04 06 00 BA 56 89 18 D5 4E C3 54 06 C8 87 72 9E 54 [07:15:49]CheckFolder [07:15:49]dirname=/storage/ofd_packets [07:15:49]CheckFolder done [07:15:49]ProducePacketName [07:15:49]name=ofd_packets/00092379 [07:15:49]NVStorageSaveData ofd_packets/00092379 [07:15:49]File name is /storage/ofd_packets/00092379 [07:15:49]Write 323 bytes [07:15:49]NVStorageSaveData done [07:15:49]OFDSenderStorePacket done [07:15:49]KKMCreateOFDPacket done [07:15:49]NVStorageSaveData kkm_last_timestamp [07:15:49]File name is /storage/kkm_last_timestamp [07:15:49]Write 4 bytes [07:15:49]NVStorageSaveData done [07:15:49]ExternCall_PrintAddStr [07:15:49]wPrintStart [07:15:49]Write to MH i2c: 01 00 00 23 09 2C [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: 01 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: 01 07 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0F 41 [07:15:49]RasterBufferAndPrint [07:15:49]line Счет N : (3)127297 [07:15:49]line ИНН: 02508201610067 [07:15:49]line Контрольно-Кассовый Чек [07:15:49]line ПРОДАЖА [07:15:49]line Товар: 48743570 [07:15:49]line Сигареты Winston XStyle Blue [07:15:49]line 1.000 * 144.00 [07:15:49]line = 144.00 [07:15:49]line НДС 12% НСП 1% [07:15:49]line > о реализуемом товаре [07:15:49]line ИТОГО: 144.00 [07:15:49]line НСП 1% : 1.27 [07:15:49]line НДС 12% : 15.29 [07:15:49]line Наличными: 144.00 [07:15:49]line Безнал.: 0.00 [07:15:49]line Место: АЗС № 5 "Партнер Нефть" [07:15:49]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:15:49]line СНО: Общий режим [07:15:49]line Чек 30 14.09.2024 07:15 [07:15:49]line Смена: 506 ФФД: 1.0 [07:15:49]line ЗНМ: 03000000022 [07:15:49]line РНМ: 0000000000091423 [07:15:49]line Версия ККМ: 001 [07:15:49]line ФМ: 0000000000874692 [07:15:49]line ФД: 92379 [07:15:49]line ФПД: 204880830059854 [07:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T071549&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92379&fm=204880830059854&tin=02508201610067®Number=0000000000091423&sum=14400 [07:15:49]OFD Sender: Processing packet 92379 [packets to send 63, broken 62] [07:15:49]ProducePacketName [07:15:49]name=ofd_packets/00092379 [07:15:49]OFD Sender: To server: pG, [07:15:49]CommunicateWithHost lk.salyk.kg:30040 [07:15:49]ConnectInit lk.salyk.kg [07:15:49]line 0 [07:15:49]written 0, free lines is 4095 [07:15:49]Connected sock=10 [07:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 B4 62 1D 01 A7 4D 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 1E 00 00 00 F4 03 04 00 25 38 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 68 01 00 35 04 06 00 BA 56 89 18 D5 4E C3 54 06 C8 87 72 9E 54 [07:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 49 1A 47 00 01 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DB 68 01 00 F4 03 04 00 A1 E0 E4 66 B6 04 01 00 00 0E 61 3B 8E 69 65 5F CF [07:15:50]CommunicateWithHost err = 0 [07:15:50]CheckOFDResponse [07:15:50]1017 (14) - 77093643461234 [07:15:50]1041 (16) - 0000000000874692 [07:15:50]1040 (4) - 92379 [07:15:50]1012 (4) - 14.09.2024 01:02 [07:15:50]1206 (1) - 0 [07:15:50]OFD Sender: Remove packet 92379 [07:15:50]ProducePacketName [07:15:50]name=ofd_packets/00092379 [07:15:50]NVStorageDeleteData [07:15:50]Write to MH i2c: 01 00 00 4B 09 54 [07:15:50]Write i2c OK [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: 01 [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: 01 07 00 [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 18 0D 80 [07:15:50]RasterBufferAndPrint [07:15:50]line [07:15:50]line [07:15:50]line [07:15:50]line [07:15:50]line [07:15:50]written 0, free lines is 3360 [07:15:50]MH_Cut [07:15:50]Write to MH i2c: D1 01 00 52 09 01 2D [07:15:50]Write i2c OK [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: D1 [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: D1 01 00 [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: D1 01 00 52 09 00 2C [07:15:50]Write to MH i2c: 01 00 00 53 09 5C [07:15:50]Write i2c OK [07:15:50]MH_I2C_Read... [07:15:50]OFD Sender: No OFD packet to send [07:15:50]*** Cut start [07:15:50]*** Purtial cut [07:15:50]*** Stage 1: CUTSNS_PIN = 1 [07:15:52]Read from MH i2c: 01 [07:15:52]MH_I2C_Read... [07:15:52]*** Stop cut motor [07:15:52]*** Cut end [07:15:52]Read from MH i2c: 01 07 00 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 FF 0F 71 [07:15:52]process_action close_receipt done [07:15:52]requested_data is exist [07:15:52]produce_requested_data [07:15:52]requested_item fm.sn is exist - process it [07:15:52]wFMCommunicate request_size=4 [07:15:52]MH_SAM_APDU [07:15:52]CAPDU: 80 11 00 00 [07:15:52]Write to MH i2c: E2 08 00 54 09 80 11 00 00 00 00 00 00 D7 [07:15:52]Write i2c OK [07:15:52]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 17 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 17 00 54 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [07:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:15:53]wFMCommunicate OK [07:15:53]requested_item fd.num is exist - process it [07:15:53]SAM_PROTO_GetFieldsCounters [07:15:53]wFMCommunicate request_size=4 [07:15:53]MH_SAM_APDU [07:15:53]CAPDU: 80 13 00 00 [07:15:53]Write to MH i2c: E2 08 00 55 09 80 13 00 00 00 00 00 00 DA [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 62 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 62 00 55 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DB 68 01 00 0E 04 04 00 FA 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 92 [07:15:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DB 68 01 00 0E 04 04 00 FA 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 [07:15:53]wFMCommunicate OK [07:15:53]SAM_PROTO_GetFieldsCounters done [07:15:53]requested_item shift.num is exist - process it [07:15:53]requested_item shift.opened is exist - process it [07:15:53]req_shift_opened [07:15:53]FM_GetShiftState [07:15:53]SAM_PROTO_GetShiftState [07:15:53]wFMCommunicate request_size=4 [07:15:53]MH_SAM_APDU [07:15:53]CAPDU: 80 13 01 00 [07:15:53]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 0E 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 76 [07:15:53]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:15:53]wFMCommunicate OK [07:15:53]SAM_PROTO_GetShiftState done [07:15:53]FM_GetShiftState done [07:15:53]req_shift_opened done [07:15:53]requested_item shift.open_date is exist - process it [07:15:53]req_shift_open_date [07:15:53]req_shift_open_date done [07:15:53]produce_requested_data done [07:15:53]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92379,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:15:53]process_action_free close_receipt [07:15:53]json_value_free [07:15:53]json_value_free done [07:15:53]process_json_proto returns [07:15:53]Send response to host [07:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92379,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:15:53]free response buf [07:15:53]execute_script done [07:15:53]execute_script returns [07:15:53]free content buf [07:15:53]Sock 9.Close socket [07:15:53]Sock 9.Thread stoped [07:15:53]accept exits with 8 [07:15:53]New connection [07:15:53]New thread 3066658148 created [07:15:53]Thread 3066801508 joined [07:15:53]Waiting for new connection... [07:15:53] Sock 8.Parse request [07:15:53]Sock 8.Check first char [07:15:53]Sock 8.First char is OK [07:15:53]request: POST /json_proto HTTP/1.0 [07:15:53]Method: POST [07:15:53]URL: /json_proto [07:15:53]Method is POST - this is cgi request [07:15:53]url: /json_proto [07:15:53]query_string will be loaded in cgi processing [07:15:53]execute_cgi json_proto POST (null) [07:15:53]execute_cgi path=json_proto method=POST [07:15:53]POST find Content-Length [07:15:53]Host: 172.17.57.71:8080 [07:15:53]Content-Length: 640 [07:15:53]Content-Type: application/json [07:15:53] [07:15:53]POST finish read [07:15:53]Found Content-Length = 640 [07:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647302", "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" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:53]execute_script... [07:15:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647302", "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" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:53]POST & json_proto [07:15:53]process_json_proto [07:15:53]json parsed OK: [07:15:53]protocol is kg_v1.0 [07:15:53]action value=close_receipt [07:15:53]process_action close_receipt [07:15:53]cmd_close_receipt [07:15:53]MH_GetDate [07:15:53]Write to MH i2c: F0 00 00 57 09 4F [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: F0 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: F0 09 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: F0 09 00 57 09 00 2B 38 E5 66 33 3A A4 66 7D [07:15:53]GetLastDocTimeStamp 1726298149 [07:15:53]current date 1726298155 [07:15:53]FM_GetShiftState [07:15:53]SAM_PROTO_GetShiftState [07:15:53]wFMCommunicate request_size=4 [07:15:53]MH_SAM_APDU [07:15:53]CAPDU: 80 13 01 00 [07:15:53]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [07:15:53]Write i2c OK [07:15:53]MH_I2C_Read... [07:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:53]Read from MH i2c: E2 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 0E 00 [07:15:53]MH_I2C_Read... [07:15:53]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 78 [07:15:53]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:15:53]wFMCommunicate OK [07:15:53]SAM_PROTO_GetShiftState done [07:15:53]FM_GetShiftState done [07:15:53]opened in 1726273389 [07:15:53]opened+sec_in_day 1726359789 [07:15:53]quantity*price = 66900 [07:15:53]sum+1 = 66901 [07:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 31 14.09.2024 07:15 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92380 ФПД: 93156522846268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T071555&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92380&fm=93156522846268&tin=02508201610067®Number=0000000000091423&sum=66900 [07:15:55]StoreToDocumentArchive [07:15:55]shift 506 fd 92380 [07:15:55]save to /storage/0506/doc_00092380 [07:15:55]save last doc name /storage/0506/doc_00092380 to /storage/kkm_last_doc_name [07:15:55]save OK [07:15:55]Clear old archive folders... [07:15:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:15:55]tlvbuf is 00F8AFC0 [07:15:55]SAM_PROTO_ClearQueue [07:15:55]wFMCommunicate request_size=4 [07:15:55]MH_SAM_APDU [07:15:55]CAPDU: 80 09 00 00 [07:15:55]Write to MH i2c: E2 08 00 65 09 80 09 00 00 00 00 00 00 E0 [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:55]Read from MH i2c: E2 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 03 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [07:15:55]RAPDU: 90 00 [07:15:55]wFMCommunicate OK [07:15:55]SAM_PROTO_ClearQueue done [07:15:55]KKMCreateOFDPacket [07:15:55]OFDProtocolAddRootSTLVToBuf [07:15:55]FM_MakeSignedData [07:15:55]FM_MakeSignedData [07:15:55]SAM_PROTO_SignData [07:15:55]wFMCommunicate request_size=4 [07:15:55]MH_SAM_APDU [07:15:55]CAPDU: 80 0D 01 02 [07:15:55]Write to MH i2c: E2 08 00 66 09 80 0D 01 02 00 00 00 00 E8 [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:55]Read from MH i2c: E2 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 03 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [07:15:55]RAPDU: 90 00 [07:15:55]wFMCommunicate OK [07:15:55]wFMCommunicate request_size=255 [07:15:55]MH_SAM_APDU [07:15:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2B 38 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 68 01 00 35 04 06 00 54 [07:15:55]Write to MH i2c: E2 02 01 67 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2B 38 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 68 01 00 35 04 06 00 54 00 00 FF [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:55]Read from MH i2c: E2 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 03 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [07:15:55]RAPDU: 90 00 [07:15:55]wFMCommunicate OK [07:15:55]wFMCommunicate request_size=10 [07:15:55]MH_SAM_APDU [07:15:55]CAPDU: 80 0D 02 02 05 B9 B1 73 E8 3C [07:15:55]Write to MH i2c: E2 0D 00 68 09 80 0D 02 02 05 00 B9 B1 73 E8 3C 00 00 F6 [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:55]Read from MH i2c: E2 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 03 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [07:15:55]RAPDU: 90 00 [07:15:55]wFMCommunicate OK [07:15:55]wFMCommunicate request_size=4 [07:15:55]MH_SAM_APDU [07:15:55]CAPDU: 80 0D 03 02 [07:15:55]Write to MH i2c: E2 08 00 69 09 80 0D 03 02 00 00 00 00 ED [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:55]Read from MH i2c: E2 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 0B 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 0B 00 69 09 00 3B E3 8B 21 B5 7C 21 EE 90 00 F8 [07:15:55]RAPDU: 3B E3 8B 21 B5 7C 21 EE 90 00 [07:15:55]wFMCommunicate OK [07:15:55]SAM_PROTO_SignData done [07:15:55]FM_MakeSignedData done [07:15:55]CreateOFDProtocolMessage [07:15:55]wFMCommunicate request_size=4 [07:15:55]MH_SAM_APDU [07:15:55]CAPDU: 80 11 00 00 [07:15:55]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:55]Read from MH i2c: E2 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 17 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [07:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:15:55]wFMCommunicate OK [07:15:55]CreateOFDProtocolMessage done [07:15:55]OFDSenderStorePacket 92380 [07:15:55]StoreOFDPacket docnum=92380 [07:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 27 DB 07 01 64 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2B 38 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 68 01 00 35 04 06 00 54 B9 B1 73 E8 3C 3B E3 8B 21 B5 7C 21 EE [07:15:55]CheckFolder [07:15:55]dirname=/storage/ofd_packets [07:15:55]CheckFolder done [07:15:55]ProducePacketName [07:15:55]name=ofd_packets/00092380 [07:15:55]NVStorageSaveData ofd_packets/00092380 [07:15:55]File name is /storage/ofd_packets/00092380 [07:15:55]Write 301 bytes [07:15:55]NVStorageSaveData done [07:15:55]OFDSenderStorePacket done [07:15:55]KKMCreateOFDPacket done [07:15:55]NVStorageSaveData kkm_last_timestamp [07:15:55]File name is /storage/kkm_last_timestamp [07:15:55]Write 4 bytes [07:15:55]NVStorageSaveData done [07:15:55]ExternCall_PrintAddStr [07:15:55]wPrintStart [07:15:55]Write to MH i2c: 01 00 00 6B 09 74 [07:15:55]Write i2c OK [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: 01 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: 01 07 00 [07:15:55]MH_I2C_Read... [07:15:55]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 FF 0F 89 [07:15:55]RasterBufferAndPrint [07:15:55]line Счет N : (1)647302 [07:15:55]line ИНН: 02508201610067 [07:15:55]line Контрольно-Кассовый Чек [07:15:55]line ПРОДАЖА [07:15:55]line ТРК (МРК, ГНК) : 53 [07:15:55]line Товар: 2710124130 [07:15:55]line Аи-92-К-5 [07:15:55]line 10.000 * 66.90 [07:15:55]line = 669.00 [07:15:55]line НДС 12% НСП 1% [07:15:55]line > о реализуемом товаре [07:15:55]line ИТОГО: 669.00 [07:15:55]line НСП 1% : 5.92 [07:15:55]line НДС 12% : 71.04 [07:15:55]line Наличными: 669.00 [07:15:55]line Безнал.: 0.00 [07:15:55]line Место: АЗС № 5 "Партнер Нефть" [07:15:55]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:15:55]line СНО: Общий режим [07:15:55]line Чек 31 14.09.2024 07:15 [07:15:55]line Смена: 506 ФФД: 1.0 [07:15:55]line ЗНМ: 03000000022 [07:15:55]line РНМ: 0000000000091423 [07:15:55]line Версия ККМ: 001 [07:15:55]line ФМ: 0000000000874692 [07:15:55]line ФД: 92380 [07:15:55]line ФПД: 93156522846268 [07:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T071555&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92380&fm=93156522846268&tin=02508201610067®Number=0000000000091423&sum=66900 [07:15:55]OFD Sender: Processing packet 92380 [packets to send 63, broken 62] [07:15:55]ProducePacketName [07:15:55]name=ofd_packets/00092380 [07:15:55]OFD Sender: To server: pG, [07:15:55]CommunicateWithHost lk.salyk.kg:30040 [07:15:55]ConnectInit lk.salyk.kg [07:15:55]written 0, free lines is 4095 [07:15:56]Connected sock=10 [07:15:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 27 DB 07 01 64 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2B 38 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 68 01 00 35 04 06 00 54 B9 B1 73 E8 3C 3B E3 8B 21 B5 7C 21 EE [07:15:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EA EA 47 00 F9 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DC 68 01 00 F4 03 04 00 A7 E0 E4 66 B6 04 01 00 00 87 74 5F 6A FC A5 68 B9 [07:15:56]CommunicateWithHost err = 0 [07:15:56]CheckOFDResponse [07:15:56]1017 (14) - 77093643461234 [07:15:56]1041 (16) - 0000000000874692 [07:15:56]1040 (4) - 92380 [07:15:56]1012 (4) - 14.09.2024 01:02 [07:15:56]1206 (1) - 0 [07:15:56]OFD Sender: Remove packet 92380 [07:15:56]ProducePacketName [07:15:56]name=ofd_packets/00092380 [07:15:56]NVStorageDeleteData [07:15:56]Write to MH i2c: 01 00 00 93 09 9C [07:15:56]Write i2c OK [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: 01 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: 01 07 00 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 32 0D E2 [07:15:56]RasterBufferAndPrint [07:15:56]line [07:15:56]line [07:15:56]line [07:15:56]line [07:15:56]line [07:15:56]written 0, free lines is 3392 [07:15:56]MH_Cut [07:15:56]Write to MH i2c: D1 01 00 9A 09 01 75 [07:15:56]Write i2c OK [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: D1 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: D1 01 00 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: D1 01 00 9A 09 00 74 [07:15:56]Write to MH i2c: 01 00 00 9B 09 A4 [07:15:56]Write i2c OK [07:15:56]MH_I2C_Read... [07:15:56]OFD Sender: No OFD packet to send [07:15:57]*** Cut start [07:15:57]*** Purtial cut [07:15:57]*** Stage 1: CUTSNS_PIN = 1 [07:15:59]Read from MH i2c: 01 [07:15:59]MH_I2C_Read... [07:15:59]*** Stop cut motor [07:15:59]*** Cut end [07:15:59]Read from MH i2c: 01 07 00 [07:15:59]MH_I2C_Read... [07:15:59]Read from MH i2c: 01 07 00 9B 09 00 00 00 00 00 FF 0F B9 [07:15:59]process_action close_receipt done [07:15:59]requested_data is exist [07:15:59]produce_requested_data [07:15:59]requested_item fm.sn is exist - process it [07:15:59]wFMCommunicate request_size=4 [07:15:59]MH_SAM_APDU [07:15:59]CAPDU: 80 11 00 00 [07:15:59]Write to MH i2c: E2 08 00 9C 09 80 11 00 00 00 00 00 00 1F [07:15:59]Write i2c OK [07:15:59]MH_I2C_Read... [07:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:59]Read from MH i2c: E2 [07:15:59]MH_I2C_Read... [07:15:59]Read from MH i2c: E2 17 00 [07:15:59]MH_I2C_Read... [07:15:59]Read from MH i2c: E2 17 00 9C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 76 [07:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:15:59]wFMCommunicate OK [07:15:59]requested_item fd.num is exist - process it [07:15:59]SAM_PROTO_GetFieldsCounters [07:15:59]wFMCommunicate request_size=4 [07:15:59]MH_SAM_APDU [07:15:59]CAPDU: 80 13 00 00 [07:15:59]Write to MH i2c: E2 08 00 9D 09 80 13 00 00 00 00 00 00 22 [07:15:59]Write i2c OK [07:15:59]MH_I2C_Read... [07:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:59]Read from MH i2c: E2 [07:15:59]MH_I2C_Read... [07:15:59]Read from MH i2c: E2 62 00 [07:15:59]MH_I2C_Read... [07:15:59]Read from MH i2c: E2 62 00 9D 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DC 68 01 00 0E 04 04 00 FA 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 DE [07:15:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DC 68 01 00 0E 04 04 00 FA 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 [07:15:59]wFMCommunicate OK [07:15:59]SAM_PROTO_GetFieldsCounters done [07:15:59]requested_item shift.num is exist - process it [07:15:59]requested_item shift.opened is exist - process it [07:15:59]req_shift_opened [07:15:59]FM_GetShiftState [07:15:59]SAM_PROTO_GetShiftState [07:15:59]wFMCommunicate request_size=4 [07:15:59]MH_SAM_APDU [07:15:59]CAPDU: 80 13 01 00 [07:15:59]Write to MH i2c: E2 08 00 9E 09 80 13 01 00 00 00 00 00 24 [07:15:59]Write i2c OK [07:15:59]MH_I2C_Read... [07:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:59]Read from MH i2c: E2 [07:15:59]MH_I2C_Read... [07:15:59]Read from MH i2c: E2 0E 00 [07:15:59]MH_I2C_Read... [07:15:59]Read from MH i2c: E2 0E 00 9E 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BE [07:15:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:15:59]wFMCommunicate OK [07:15:59]SAM_PROTO_GetShiftState done [07:15:59]FM_GetShiftState done [07:15:59]req_shift_opened done [07:15:59]requested_item shift.open_date is exist - process it [07:15:59]req_shift_open_date [07:15:59]req_shift_open_date done [07:15:59]produce_requested_data done [07:15:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92380,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:15:59]process_action_free close_receipt [07:15:59]json_value_free [07:15:59]json_value_free done [07:15:59]process_json_proto returns [07:15:59]Send response to host [07:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92380,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:15:59]free response buf [07:15:59]execute_script done [07:15:59]execute_script returns [07:15:59]free content buf [07:15:59]Sock 8.Close socket [07:15:59]Sock 8.Thread stoped [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:29]accept exits with 9 [07:38:29]New connection [07:38:29]New thread 3066801508 created [07:38:29]Thread 3066658148 joined [07:38:29]Waiting for new connection... [07:38:29] Sock 9.Parse request [07:38:29]Sock 9.Check first char [07:38:29]Sock 9.First char is OK [07:38:29]request: POST /json_proto HTTP/1.0 [07:38:29]Method: POST [07:38:29]URL: /json_proto [07:38:29]Method is POST - this is cgi request [07:38:29]url: /json_proto [07:38:29]query_string will be loaded in cgi processing [07:38:29]execute_cgi json_proto POST (null) [07:38:29]execute_cgi path=json_proto method=POST [07:38:29]POST find Content-Length [07:38:29]Host: 172.17.57.71:8080 [07:38:29]Content-Length: 622 [07:38:29]Content-Type: application/json [07:38:29] [07:38:29]POST finish read [07:38:29]Found Content-Length = 622 [07:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127298", "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" ] } } [07:38:29]execute_script... [07:38: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)127298", "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" ] } } [07:38:29]POST & json_proto [07:38:29]process_json_proto [07:38:29]json parsed OK: [07:38:29]protocol is kg_v1.0 [07:38:29]action value=close_receipt [07:38:29]process_action close_receipt [07:38:29]cmd_close_receipt [07:38:29]MH_GetDate [07:38:29]Write to MH i2c: F0 00 00 9F 09 97 [07:38:29]Write i2c OK [07:38:29]MH_I2C_Read... [07:38:29]Read from MH i2c: F0 [07:38:29]MH_I2C_Read... [07:38:29]Read from MH i2c: F0 09 00 [07:38:29]MH_I2C_Read... [07:38:29]Read from MH i2c: F0 09 00 9F 09 00 77 3D E5 66 33 3A A4 66 16 [07:38:29]GetLastDocTimeStamp 1726298155 [07:38:29]current date 1726299511 [07:38:29]FM_GetShiftState [07:38:29]SAM_PROTO_GetShiftState [07:38:29]wFMCommunicate request_size=4 [07:38:29]MH_SAM_APDU [07:38:29]CAPDU: 80 13 01 00 [07:38:29]Write to MH i2c: E2 08 00 A0 09 80 13 01 00 00 00 00 00 26 [07:38:29]Write i2c OK [07:38:29]MH_I2C_Read... [07:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:29]Read from MH i2c: E2 [07:38:29]MH_I2C_Read... [07:38:29]Read from MH i2c: E2 0E 00 [07:38:29]MH_I2C_Read... [07:38:29]Read from MH i2c: E2 0E 00 A0 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C0 [07:38:29]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:38:29]wFMCommunicate OK [07:38:29]SAM_PROTO_GetShiftState done [07:38:29]FM_GetShiftState done [07:38:29]opened in 1726273389 [07:38:29]opened+sec_in_day 1726359789 [07:38:29]quantity*price = 15000 [07:38:29]sum+1 = 15001 [07:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 32 14.09.2024 07:38 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92381 ФПД: 269519249599311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T073831&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92381&fm=269519249599311&tin=02508201610067®Number=0000000000091423&sum=15000 0 [07:38:30]StoreToDocumentArchive [07:38:30]shift 506 fd 92381 [07:38:30]save to /storage/0506/doc_00092381 [07:38:30]save last doc name /storage/0506/doc_00092381 to /storage/kkm_last_doc_name [07:38:30]save OK [07:38:30]Clear old archive folders... [07:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=274 [07:38:30]tlvbuf is 00F7B270 [07:38:30]SAM_PROTO_ClearQueue [07:38:30]wFMCommunicate request_size=4 [07:38:30]MH_SAM_APDU [07:38:30]CAPDU: 80 09 00 00 [07:38:30]Write to MH i2c: E2 08 00 AD 09 80 09 00 00 00 00 00 00 28 [07:38:30]Write i2c OK [07:38:30]MH_I2C_Read... [07:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:30]Read from MH i2c: E2 [07:38:30]MH_I2C_Read... [07:38:30]Read from MH i2c: E2 03 00 [07:38:30]MH_I2C_Read... [07:38:30]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [07:38:30]RAPDU: 90 00 [07:38:30]wFMCommunicate OK [07:38:30]SAM_PROTO_ClearQueue done [07:38:30]KKMCreateOFDPacket [07:38:30]OFDProtocolAddRootSTLVToBuf [07:38:30]FM_MakeSignedData [07:38:30]FM_MakeSignedData [07:38:30]SAM_PROTO_SignData [07:38:30]wFMCommunicate request_size=4 [07:38:30]MH_SAM_APDU [07:38:30]CAPDU: 80 0D 01 02 [07:38:30]Write to MH i2c: E2 08 00 AE 09 80 0D 01 02 00 00 00 00 30 [07:38:30]Write i2c OK [07:38:30]MH_I2C_Read... [07:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:31]Read from MH i2c: E2 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 03 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 03 00 AE 09 00 90 00 2B [07:38:31]RAPDU: 90 00 [07:38:31]wFMCommunicate OK [07:38:31]wFMCommunicate request_size=255 [07:38:31]MH_SAM_APDU [07:38:31]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 20 00 00 00 F4 03 04 00 77 3D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [07:38:31]Write to MH i2c: E2 02 01 AF 09 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 20 00 00 00 F4 03 04 00 77 3D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 E1 [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:31]Read from MH i2c: E2 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 03 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 03 00 AF 09 00 90 00 2C [07:38:31]RAPDU: 90 00 [07:38:31]wFMCommunicate OK [07:38:31]wFMCommunicate request_size=33 [07:38:31]MH_SAM_APDU [07:38:31]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 68 01 00 35 04 06 00 F5 20 57 21 EB 4F [07:38:31]Write to MH i2c: E2 24 00 B0 09 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 68 01 00 35 04 06 00 F5 20 57 21 EB 4F 00 00 D3 [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:31]Read from MH i2c: E2 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 03 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [07:38:31]RAPDU: 90 00 [07:38:31]wFMCommunicate OK [07:38:31]wFMCommunicate request_size=4 [07:38:31]MH_SAM_APDU [07:38:31]CAPDU: 80 0D 03 02 [07:38:31]Write to MH i2c: E2 08 00 B1 09 80 0D 03 02 00 00 00 00 35 [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:31]Read from MH i2c: E2 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 0B 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 0B 00 B1 09 00 51 9D C7 5E 75 EF 3E 29 90 00 14 [07:38:31]RAPDU: 51 9D C7 5E 75 EF 3E 29 90 00 [07:38:31]wFMCommunicate OK [07:38:31]SAM_PROTO_SignData done [07:38:31]FM_MakeSignedData done [07:38:31]CreateOFDProtocolMessage [07:38:31]wFMCommunicate request_size=4 [07:38:31]MH_SAM_APDU [07:38:31]CAPDU: 80 11 00 00 [07:38:31]Write to MH i2c: E2 08 00 B2 09 80 11 00 00 00 00 00 00 35 [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:31]Read from MH i2c: E2 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 17 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 17 00 B2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8C [07:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:38:31]wFMCommunicate OK [07:38:31]CreateOFDProtocolMessage done [07:38:31]OFDSenderStorePacket 92381 [07:38:31]StoreOFDPacket docnum=92381 [07:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 A2 09 1E 01 48 A0 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 20 00 00 00 F4 03 04 00 77 3D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 68 01 00 35 04 06 00 F5 20 57 21 EB 4F 51 9D C7 5E 75 EF 3E 29 [07:38:31]CheckFolder [07:38:31]dirname=/storage/ofd_packets [07:38:31]CheckFolder done [07:38:31]ProducePacketName [07:38:31]name=ofd_packets/00092381 [07:38:31]NVStorageSaveData ofd_packets/00092381 [07:38:31]File name is /storage/ofd_packets/00092381 [07:38:31]Write 324 bytes [07:38:31]NVStorageSaveData done [07:38:31]OFDSenderStorePacket done [07:38:31]KKMCreateOFDPacket done [07:38:31]NVStorageSaveData kkm_last_timestamp [07:38:31]File name is /storage/kkm_last_timestamp [07:38:31]Write 4 bytes [07:38:31]NVStorageSaveData done [07:38:31]ExternCall_PrintAddStr [07:38:31]wPrintStart [07:38:31]Write to MH i2c: 01 00 00 B3 09 BC [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: 01 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: 01 07 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 FF 0F D1 [07:38:31]RasterBufferAndPrint [07:38:31]line Счет N : (3)127298 [07:38:31]line ИНН: 02508201610067 [07:38:31]line Контрольно-Кассовый Чек [07:38:31]line ПРОДАЖА [07:38:31]line Товар: 4640030091645 [07:38:31]line Сигареты ESSE Exchange M [07:38:31]line 1.000 * 150.00 [07:38:31]line = 150.00 [07:38:31]line НДС 12% НСП 1% [07:38:31]line > о реализуемом товаре [07:38:31]line ИТОГО: 150.00 [07:38:31]line НСП 1% : 1.33 [07:38:31]line НДС 12% : 15.93 [07:38:31]line Наличными: 150.00 [07:38:31]line Безнал.: 0.00 [07:38:31]line Место: АЗС № 5 "Партнер Нефть" [07:38:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:38:31]line СНО: Общий режим [07:38:31]line Чек 32 14.09.2024 07:38 [07:38:31]line Смена: 506 ФФД: 1.0 [07:38:31]line ЗНМ: 03000000022 [07:38:31]line РНМ: 0000000000091423 [07:38:31]line Версия ККМ: 001 [07:38:31]line ФМ: 0000000000874692 [07:38:31]line ФД: 92381 [07:38:31]line ФПД: 269519249599311 [07:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T073831&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92381&fm=269519249599311&tin=02508201610067®Number=0000000000091423&sum=15000 [07:38:31]line 0 [07:38:31]OFD Sender: Processing packet 92381 [packets to send 63, broken 62] [07:38:31]ProducePacketName [07:38:31]name=ofd_packets/00092381 [07:38:31]OFD Sender: To server: pG, [07:38:31]CommunicateWithHost lk.salyk.kg:30040 [07:38:31]ConnectInit lk.salyk.kg [07:38:31]written 0, free lines is 4095 [07:38:31]Connected sock=11 [07:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 A2 09 1E 01 48 A0 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 20 00 00 00 F4 03 04 00 77 3D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 68 01 00 35 04 06 00 F5 20 57 21 EB 4F 51 9D C7 5E 75 EF 3E 29 [07:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 24 BD 47 00 BE 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DD 68 01 00 F4 03 04 00 F3 E5 E4 66 B6 04 01 00 00 55 DE DF 60 B5 EF 27 ED [07:38:32]CommunicateWithHost err = 0 [07:38:32]CheckOFDResponse [07:38:32]1017 (14) - 77093643461234 [07:38:32]1041 (16) - 0000000000874692 [07:38:32]1040 (4) - 92381 [07:38:32]1012 (4) - 14.09.2024 01:25 [07:38:32]1206 (1) - 0 [07:38:32]OFD Sender: Remove packet 92381 [07:38:32]ProducePacketName [07:38:32]name=ofd_packets/00092381 [07:38:32]NVStorageDeleteData [07:38:32]Write to MH i2c: 01 00 00 DB 09 E4 [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: 01 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: 01 07 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: 01 07 00 DB 09 00 00 00 00 00 20 0D 18 [07:38:32]RasterBufferAndPrint [07:38:32]line [07:38:32]line [07:38:32]line [07:38:32]line [07:38:32]line [07:38:32]written 0, free lines is 3365 [07:38:32]MH_Cut [07:38:32]Write to MH i2c: D1 01 00 E2 09 01 BD [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: D1 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: D1 01 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: D1 01 00 E2 09 00 BC [07:38:32]Write to MH i2c: 01 00 00 E3 09 EC [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]OFD Sender: No OFD packet to send [07:38:32]*** Cut start [07:38:32]*** Purtial cut [07:38:32]*** Stage 1: CUTSNS_PIN = 1 [07:38:34]Read from MH i2c: 01 [07:38:34]MH_I2C_Read... [07:38:34]*** Stop cut motor [07:38:34]*** Cut end [07:38:34]Read from MH i2c: 01 07 00 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: 01 07 00 E3 09 00 00 00 00 00 FF 0F 01 [07:38:34]process_action close_receipt done [07:38:34]requested_data is exist [07:38:34]produce_requested_data [07:38:34]requested_item fm.sn is exist - process it [07:38:34]wFMCommunicate request_size=4 [07:38:34]MH_SAM_APDU [07:38:34]CAPDU: 80 11 00 00 [07:38:34]Write to MH i2c: E2 08 00 E4 09 80 11 00 00 00 00 00 00 67 [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:34]Read from MH i2c: E2 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: E2 17 00 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: E2 17 00 E4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BE [07:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:38:34]wFMCommunicate OK [07:38:34]requested_item fd.num is exist - process it [07:38:34]SAM_PROTO_GetFieldsCounters [07:38:34]wFMCommunicate request_size=4 [07:38:34]MH_SAM_APDU [07:38:34]CAPDU: 80 13 00 00 [07:38:34]Write to MH i2c: E2 08 00 E5 09 80 13 00 00 00 00 00 00 6A [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 62 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 62 00 E5 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DD 68 01 00 0E 04 04 00 FA 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 2A [07:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DD 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:38:35]wFMCommunicate OK [07:38:35]SAM_PROTO_GetFieldsCounters done [07:38:35]requested_item shift.num is exist - process it [07:38:35]requested_item shift.opened is exist - process it [07:38:35]req_shift_opened [07:38:35]FM_GetShiftState [07:38:35]SAM_PROTO_GetShiftState [07:38:35]wFMCommunicate request_size=4 [07:38:35]MH_SAM_APDU [07:38:35]CAPDU: 80 13 01 00 [07:38:35]Write to MH i2c: E2 08 00 E6 09 80 13 01 00 00 00 00 00 6C [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 0E 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 0E 00 E6 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 06 [07:38:35]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:38:35]wFMCommunicate OK [07:38:35]SAM_PROTO_GetShiftState done [07:38:35]FM_GetShiftState done [07:38:35]req_shift_opened done [07:38:35]requested_item shift.open_date is exist - process it [07:38:35]req_shift_open_date [07:38:35]req_shift_open_date done [07:38:35]produce_requested_data done [07:38:35]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92381,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:38:35]process_action_free close_receipt [07:38:35]json_value_free [07:38:35]json_value_free done [07:38:35]process_json_proto returns [07:38:35]Send response to host [07:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92381,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:38:35]free response buf [07:38:35]execute_script done [07:38:35]execute_script returns [07:38:35]free content buf [07:38:35]Sock 9.Close socket [07:38:35]Sock 9.Thread stoped [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44: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:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:17]accept exits with 8 [07:52:17]New connection [07:52:17]New thread 3066658148 created [07:52:17]Thread 3066801508 joined [07:52:17]Waiting for new connection... [07:52:17] Sock 8.Parse request [07:52:17]Sock 8.Check first char [07:52:17]Sock 8.First char is OK [07:52:17]request: POST /json_proto HTTP/1.0 [07:52:17]Method: POST [07:52:17]URL: /json_proto [07:52:17]Method is POST - this is cgi request [07:52:17]url: /json_proto [07:52:17]query_string will be loaded in cgi processing [07:52:17]execute_cgi json_proto POST (null) [07:52:17]execute_cgi path=json_proto method=POST [07:52:17]POST find Content-Length [07:52:17]Host: 172.17.57.71:8080 [07:52:17]Content-Length: 655 [07:52:17]Content-Type: application/json [07:52:17] [07:52:17]POST finish read [07:52:17]Found Content-Length = 655 [07:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127299", "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:52:17]execute_script... [07:52: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)127299", "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:52:17]POST & json_proto [07:52:17]process_json_proto [07:52:17]json parsed OK: [07:52:17]protocol is kg_v1.0 [07:52:17]action value=close_receipt [07:52:17]process_action close_receipt [07:52:17]cmd_close_receipt [07:52:17]MH_GetDate [07:52:17]Write to MH i2c: F0 00 00 E7 09 DF [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: F0 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: F0 09 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: F0 09 00 E7 09 00 B3 40 E5 66 33 3A A4 66 9D [07:52:17]GetLastDocTimeStamp 1726299511 [07:52:17]current date 1726300339 [07:52:17]FM_GetShiftState [07:52:17]SAM_PROTO_GetShiftState [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 13 01 00 [07:52:17]Write to MH i2c: E2 08 00 E8 09 80 13 01 00 00 00 00 00 6E [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 0E 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 0E 00 E8 09 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 08 [07:52:17]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:52:17]wFMCommunicate OK [07:52:17]SAM_PROTO_GetShiftState done [07:52:17]FM_GetShiftState done [07:52:17]opened in 1726273389 [07:52:17]opened+sec_in_day 1726359789 [07:52:17]quantity*price = 8500 [07:52:17]sum+1 = 8501 [07:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 33 14.09.2024 07:52 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92382 ФПД: 69870063353782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T075219&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92382&fm=69870063353782&tin=02508201610067®Number=0000000000091423&sum=8500 0 [07:52:18]StoreToDocumentArchive [07:52:18]shift 506 fd 92382 [07:52:18]save to /storage/0506/doc_00092382 [07:52:18]save last doc name /storage/0506/doc_00092382 to /storage/kkm_last_doc_name [07:52:18]save OK [07:52:18]Clear old archive folders... [07:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=294 [07:52:18]tlvbuf is 00FC1410 [07:52:18]SAM_PROTO_ClearQueue [07:52:18]wFMCommunicate request_size=4 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 09 00 00 [07:52:18]Write to MH i2c: E2 08 00 F5 09 80 09 00 00 00 00 00 00 70 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 F5 09 00 90 00 72 [07:52:18]RAPDU: 90 00 [07:52:18]wFMCommunicate OK [07:52:18]SAM_PROTO_ClearQueue done [07:52:18]KKMCreateOFDPacket [07:52:18]OFDProtocolAddRootSTLVToBuf [07:52:18]FM_MakeSignedData [07:52:18]FM_MakeSignedData [07:52:18]SAM_PROTO_SignData [07:52:18]wFMCommunicate request_size=4 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 0D 01 02 [07:52:18]Write to MH i2c: E2 08 00 F6 09 80 0D 01 02 00 00 00 00 78 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 F6 09 00 90 00 73 [07:52:18]RAPDU: 90 00 [07:52:18]wFMCommunicate OK [07:52:18]wFMCommunicate request_size=255 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 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 21 00 00 00 F4 03 04 00 B3 40 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [07:52:18]Write to MH i2c: E2 02 01 F7 09 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 21 00 00 00 F4 03 04 00 B3 40 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 B6 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:19]Read from MH i2c: E2 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 03 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [07:52:19]RAPDU: 90 00 [07:52:19]wFMCommunicate OK [07:52:19]wFMCommunicate request_size=53 [07:52:19]MH_SAM_APDU [07:52:19]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 68 01 00 35 04 06 00 3F 8B E4 4E 7F B6 [07:52:19]Write to MH i2c: E2 38 00 F8 09 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 68 01 00 35 04 06 00 3F 8B E4 4E 7F B6 00 00 E6 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:19]Read from MH i2c: E2 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 03 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 03 00 F8 09 00 90 00 75 [07:52:19]RAPDU: 90 00 [07:52:19]wFMCommunicate OK [07:52:19]wFMCommunicate request_size=4 [07:52:19]MH_SAM_APDU [07:52:19]CAPDU: 80 0D 03 02 [07:52:19]Write to MH i2c: E2 08 00 F9 09 80 0D 03 02 00 00 00 00 7D [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:19]Read from MH i2c: E2 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 0B 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 0B 00 F9 09 00 56 EC 95 23 5C 6C 72 FA 90 00 AC [07:52:19]RAPDU: 56 EC 95 23 5C 6C 72 FA 90 00 [07:52:19]wFMCommunicate OK [07:52:19]SAM_PROTO_SignData done [07:52:19]FM_MakeSignedData done [07:52:19]CreateOFDProtocolMessage [07:52:19]wFMCommunicate request_size=4 [07:52:19]MH_SAM_APDU [07:52:19]CAPDU: 80 11 00 00 [07:52:19]Write to MH i2c: E2 08 00 FA 09 80 11 00 00 00 00 00 00 7D [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:19]Read from MH i2c: E2 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 17 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: E2 17 00 FA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D4 [07:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:52:19]wFMCommunicate OK [07:52:19]CreateOFDProtocolMessage done [07:52:19]OFDSenderStorePacket 92382 [07:52:19]StoreOFDPacket docnum=92382 [07:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 F9 DE 32 01 4A 45 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 21 00 00 00 F4 03 04 00 B3 40 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 68 01 00 35 04 06 00 3F 8B E4 4E 7F B6 56 EC 95 23 5C 6C 72 FA [07:52:19]CheckFolder [07:52:19]dirname=/storage/ofd_packets [07:52:19]CheckFolder done [07:52:19]ProducePacketName [07:52:19]name=ofd_packets/00092382 [07:52:19]NVStorageSaveData ofd_packets/00092382 [07:52:19]File name is /storage/ofd_packets/00092382 [07:52:19]Write 344 bytes [07:52:19]NVStorageSaveData done [07:52:19]OFDSenderStorePacket done [07:52:19]KKMCreateOFDPacket done [07:52:19]NVStorageSaveData kkm_last_timestamp [07:52:19]File name is /storage/kkm_last_timestamp [07:52:19]Write 4 bytes [07:52:19]NVStorageSaveData done [07:52:19]ExternCall_PrintAddStr [07:52:19]wPrintStart [07:52:19]Write to MH i2c: 01 00 00 FB 09 04 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 07 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: 01 07 00 FB 09 00 00 00 00 00 FF 0F 19 [07:52:19]RasterBufferAndPrint [07:52:19]line Счет N : (3)127299 [07:52:19]line ИНН: 02508201610067 [07:52:19]line Контрольно-Кассовый Чек [07:52:19]line ПРОДАЖА [07:52:19]line Товар: 4600682557456 [07:52:19]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:52:19]line 1.000 * 85.00 [07:52:19]line = 85.00 [07:52:19]line НДС 12% НСП 1% [07:52:19]line > о реализуемом товаре [07:52:19]line ИТОГО: 85.00 [07:52:19]line НСП 1% : 0.75 [07:52:19]line НДС 12% : 9.03 [07:52:19]line Наличными: 85.00 [07:52:19]line Безнал.: 0.00 [07:52:19]line Место: АЗС № 5 "Партнер Нефть" [07:52:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:52:19]line СНО: Общий режим [07:52:19]line Чек 33 14.09.2024 07:52 [07:52:19]line Смена: 506 ФФД: 1.0 [07:52:19]line ЗНМ: 03000000022 [07:52:19]line РНМ: 0000000000091423 [07:52:19]line Версия ККМ: 001 [07:52:19]line ФМ: 0000000000874692 [07:52:19]line ФД: 92382 [07:52:19]line ФПД: 69870063353782 [07:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T075219&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92382&fm=69870063353782&tin=02508201610067®Number=0000000000091423&sum=8500 [07:52:19]OFD Sender: Processing packet 92382 [packets to send 63, broken 62] [07:52:19]ProducePacketName [07:52:19]name=ofd_packets/00092382 [07:52:19]OFD Sender: To server: pG, [07:52:19]CommunicateWithHost lk.salyk.kg:30040 [07:52:19]ConnectInit lk.salyk.kg [07:52:19]line 0 [07:52:19]written 0, free lines is 4095 [07:52:19]Connected sock=11 [07:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 F9 DE 32 01 4A 45 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 21 00 00 00 F4 03 04 00 B3 40 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 68 01 00 35 04 06 00 3F 8B E4 4E 7F B6 56 EC 95 23 5C 6C 72 FA [07:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EF D3 47 00 5D 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DE 68 01 00 F4 03 04 00 2F E9 E4 66 B6 04 01 00 00 93 08 CB 9D 26 7B B9 F7 [07:52:20]CommunicateWithHost err = 0 [07:52:20]CheckOFDResponse [07:52:20]1017 (14) - 77093643461234 [07:52:20]1041 (16) - 0000000000874692 [07:52:20]1040 (4) - 92382 [07:52:20]1012 (4) - 14.09.2024 01:38 [07:52:20]1206 (1) - 0 [07:52:20]OFD Sender: Remove packet 92382 [07:52:20]ProducePacketName [07:52:20]name=ofd_packets/00092382 [07:52:20]NVStorageDeleteData [07:52:20]Write to MH i2c: 01 00 00 24 0A 2E [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 07 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 07 00 24 0A 00 00 00 00 00 09 0D 4B [07:52:20]RasterBufferAndPrint [07:52:20]line [07:52:20]line [07:52:20]line [07:52:20]line [07:52:20]line [07:52:20]written 0, free lines is 3342 [07:52:20]MH_Cut [07:52:20]Write to MH i2c: D1 01 00 2B 0A 01 07 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: D1 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: D1 01 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: D1 01 00 2B 0A 00 06 [07:52:20]Write to MH i2c: 01 00 00 2C 0A 36 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]OFD Sender: No OFD packet to send [07:52:20]*** Cut start [07:52:20]*** Purtial cut [07:52:20]*** Stage 1: CUTSNS_PIN = 1 [07:52:22]Read from MH i2c: 01 [07:52:22]MH_I2C_Read... [07:52:22]*** Stop cut motor [07:52:22]*** Cut end [07:52:22]Read from MH i2c: 01 07 00 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: 01 07 00 2C 0A 00 00 00 00 00 FF 0F 4B [07:52:22]process_action close_receipt done [07:52:22]requested_data is exist [07:52:22]produce_requested_data [07:52:22]requested_item fm.sn is exist - process it [07:52:22]wFMCommunicate request_size=4 [07:52:22]MH_SAM_APDU [07:52:22]CAPDU: 80 11 00 00 [07:52:22]Write to MH i2c: E2 08 00 2D 0A 80 11 00 00 00 00 00 00 B1 [07:52:22]Write i2c OK [07:52:22]MH_I2C_Read... [07:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:22]Read from MH i2c: E2 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 17 00 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 17 00 2D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 08 [07:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:52:22]wFMCommunicate OK [07:52:22]requested_item fd.num is exist - process it [07:52:22]SAM_PROTO_GetFieldsCounters [07:52:22]wFMCommunicate request_size=4 [07:52:22]MH_SAM_APDU [07:52:22]CAPDU: 80 13 00 00 [07:52:22]Write to MH i2c: E2 08 00 2E 0A 80 13 00 00 00 00 00 00 B4 [07:52:22]Write i2c OK [07:52:22]MH_I2C_Read... [07:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:23]Read from MH i2c: E2 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 62 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 62 00 2E 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DE 68 01 00 0E 04 04 00 FA 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 78 [07:52:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:23]wFMCommunicate OK [07:52:23]SAM_PROTO_GetFieldsCounters done [07:52:23]requested_item shift.num is exist - process it [07:52:23]requested_item shift.opened is exist - process it [07:52:23]req_shift_opened [07:52:23]FM_GetShiftState [07:52:23]SAM_PROTO_GetShiftState [07:52:23]wFMCommunicate request_size=4 [07:52:23]MH_SAM_APDU [07:52:23]CAPDU: 80 13 01 00 [07:52:23]Write to MH i2c: E2 08 00 2F 0A 80 13 01 00 00 00 00 00 B6 [07:52:23]Write i2c OK [07:52:23]MH_I2C_Read... [07:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:23]Read from MH i2c: E2 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 0E 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 0E 00 2F 0A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 50 [07:52:23]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:52:23]wFMCommunicate OK [07:52:23]SAM_PROTO_GetShiftState done [07:52:23]FM_GetShiftState done [07:52:23]req_shift_opened done [07:52:23]requested_item shift.open_date is exist - process it [07:52:23]req_shift_open_date [07:52:23]req_shift_open_date done [07:52:23]produce_requested_data done [07:52:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92382,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:52:23]process_action_free close_receipt [07:52:23]json_value_free [07:52:23]json_value_free done [07:52:23]process_json_proto returns [07:52:23]Send response to host [07:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92382,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:52:23]free response buf [07:52:23]execute_script done [07:52:23]execute_script returns [07:52:23]free content buf [07:52:23]Sock 8.Close socket [07:52:23]Sock 8.Thread stoped [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:38]accept exits with 9 [07:52:38]New connection [07:52:38]New thread 3066801508 created [07:52:38]Thread 3066658148 joined [07:52:38]Waiting for new connection... [07:52:38] Sock 9.Parse request [07:52:38]Sock 9.Check first char [07:52:38]Sock 9.First char is OK [07:52:38]request: POST /json_proto HTTP/1.0 [07:52:38]Method: POST [07:52:38]URL: /json_proto [07:52:38]Method is POST - this is cgi request [07:52:38]url: /json_proto [07:52:38]query_string will be loaded in cgi processing [07:52:38]execute_cgi json_proto POST (null) [07:52:38]execute_cgi path=json_proto method=POST [07:52:38]POST find Content-Length [07:52:38]Host: 172.17.57.71:8080 [07:52:38]Content-Length: 680 [07:52:38]Content-Type: application/json [07:52:38] [07:52:38]POST finish read [07:52:38]Found Content-Length = 680 [07:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127300", "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 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:38]execute_script... [07: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)127300", "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 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:38]POST & json_proto [07:52:38]process_json_proto [07:52:38]json parsed OK: [07:52:38]protocol is kg_v1.0 [07:52:38]action value=close_receipt [07:52:38]process_action close_receipt [07:52:38]cmd_close_receipt [07:52:38]MH_GetDate [07:52:38]Write to MH i2c: F0 00 00 30 0A 29 [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 09 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 09 00 30 0A 00 C8 40 E5 66 33 3A A4 66 FC [07:52:38]GetLastDocTimeStamp 1726300339 [07:52:38]current date 1726300360 [07:52:38]FM_GetShiftState [07:52:38]SAM_PROTO_GetShiftState [07:52:38]wFMCommunicate request_size=4 [07:52:38]MH_SAM_APDU [07:52:38]CAPDU: 80 13 01 00 [07:52:38]Write to MH i2c: E2 08 00 31 0A 80 13 01 00 00 00 00 00 B8 [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:38]int [07:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:38]*** FLAG_PRN_KEY set [07:52:38]Read from MH i2c: E2 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 0E 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 0E 00 31 0A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 52 [07:52:38]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:52:38]wFMCommunicate OK [07:52:38]SAM_PROTO_GetShiftState done [07:52:38]FM_GetShiftState done [07:52:38]opened in 1726273389 [07:52:38]opened+sec_in_day 1726359789 [07:52:38]quantity*price = 5500 [07:52:38]sum+1 = 5501 [07:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 34 14.09.2024 07:52 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92383 ФПД: 72715856716722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T075240&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92383&fm=72715856716722&tin=02508201610067®Number=0000000000091423&sum=5500 0 [07:52:39]StoreToDocumentArchive [07:52:39]shift 506 fd 92383 [07:52:39]save to /storage/0506/doc_00092383 [07:52:39]save last doc name /storage/0506/doc_00092383 to /storage/kkm_last_doc_name [07:52:39]save OK [07:52:39]Clear old archive folders... [07:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=299 [07:52:39]tlvbuf is 00FB2670 [07:52:39]SAM_PROTO_ClearQueue [07:52:39]wFMCommunicate request_size=4 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 09 00 00 [07:52:39]Write to MH i2c: E2 08 00 3F 0A 80 09 00 00 00 00 00 00 BB [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 3F 0A 00 90 00 BD [07:52:39]RAPDU: 90 00 [07:52:39]wFMCommunicate OK [07:52:39]SAM_PROTO_ClearQueue done [07:52:39]KKMCreateOFDPacket [07:52:39]OFDProtocolAddRootSTLVToBuf [07:52:39]FM_MakeSignedData [07:52:39]FM_MakeSignedData [07:52:39]SAM_PROTO_SignData [07:52:39]wFMCommunicate request_size=4 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 0D 01 02 [07:52:39]Write to MH i2c: E2 08 00 40 0A 80 0D 01 02 00 00 00 00 C3 [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 40 0A 00 90 00 BE [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]wFMCommunicate request_size=255 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 0D 02 02 FA 03 00 2B 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C8 40 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [07:52:40]Write to MH i2c: E2 02 01 41 0A 80 0D 02 02 FA 00 03 00 2B 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C8 40 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 F2 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]wFMCommunicate request_size=58 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DF 68 01 00 35 04 06 00 42 22 7A CF 23 B2 [07:52:40]Write to MH i2c: E2 3D 00 42 0A 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DF 68 01 00 35 04 06 00 42 22 7A CF 23 B2 00 00 7D [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 0D 03 02 [07:52:40]Write to MH i2c: E2 08 00 43 0A 80 0D 03 02 00 00 00 00 C8 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 0B 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 0B 00 43 0A 00 D3 BE E8 1B D0 0A 5E FB 90 00 90 [07:52:40]RAPDU: D3 BE E8 1B D0 0A 5E FB 90 00 [07:52:40]wFMCommunicate OK [07:52:40]SAM_PROTO_SignData done [07:52:40]FM_MakeSignedData done [07:52:40]CreateOFDProtocolMessage [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 11 00 00 [07:52:40]Write to MH i2c: E2 08 00 44 0A 80 11 00 00 00 00 00 00 C8 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 17 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 17 00 44 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1F [07:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:52:40]wFMCommunicate OK [07:52:40]CreateOFDProtocolMessage done [07:52:40]OFDSenderStorePacket 92383 [07:52:40]StoreOFDPacket docnum=92383 [07:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3F 01 00 00 8A 9D 37 01 79 A7 5A 03 01 00 03 00 2B 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C8 40 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DF 68 01 00 35 04 06 00 42 22 7A CF 23 B2 D3 BE E8 1B D0 0A 5E FB [07:52:40]CheckFolder [07:52:40]dirname=/storage/ofd_packets [07:52:40]CheckFolder done [07:52:40]ProducePacketName [07:52:40]name=ofd_packets/00092383 [07:52:40]NVStorageSaveData ofd_packets/00092383 [07:52:40]File name is /storage/ofd_packets/00092383 [07:52:40]Write 349 bytes [07:52:40]NVStorageSaveData done [07:52:40]OFDSenderStorePacket done [07:52:40]KKMCreateOFDPacket done [07:52:40]NVStorageSaveData kkm_last_timestamp [07:52:40]File name is /storage/kkm_last_timestamp [07:52:40]Write 4 bytes [07:52:40]NVStorageSaveData done [07:52:40]ExternCall_PrintAddStr [07:52:40]wPrintStart [07:52:40]Write to MH i2c: 01 00 00 45 0A 4F [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 07 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 07 00 45 0A 00 00 00 00 00 FF 0F 64 [07:52:40]RasterBufferAndPrint [07:52:40]line Счет N : (3)127300 [07:52:40]line ИНН: 02508201610067 [07:52:40]line Контрольно-Кассовый Чек [07:52:40]line ПРОДАЖА [07:52:40]line Товар: 4620016300305 [07:52:40]line Салфетки Absolut classic вл а/бакт 20 шт [07:52:40]line 1.000 * 55.00 [07:52:40]line = 55.00 [07:52:40]line НДС 12% НСП 1% [07:52:40]line > о реализуемом товаре [07:52:40]line ИТОГО: 55.00 [07:52:40]line НСП 1% : 0.49 [07:52:40]line НДС 12% : 5.84 [07:52:40]line Наличными: 55.00 [07:52:40]line Безнал.: 0.00 [07:52:40]line Место: АЗС № 5 "Партнер Нефть" [07:52:40]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:52:40]line СНО: Общий режим [07:52:40]line Чек 34 14.09.2024 07:52 [07:52:40]line Смена: 506 ФФД: 1.0 [07:52:40]line ЗНМ: 03000000022 [07:52:40]line РНМ: 0000000000091423 [07:52:40]line Версия ККМ: 001 [07:52:40]line ФМ: 0000000000874692 [07:52:40]line ФД: 92383 [07:52:40]line ФПД: 72715856716722 [07:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T075240&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92383&fm=72715856716722&tin=02508201610067®Number=0000000000091423&sum=5500 [07:52:40]line 0 [07:52:40]OFD Sender: Processing packet 92383 [packets to send 63, broken 62] [07:52:40]ProducePacketName [07:52:40]name=ofd_packets/00092383 [07:52:40]OFD Sender: To server: pG, [07:52:40]CommunicateWithHost lk.salyk.kg:30040 [07:52:40]ConnectInit lk.salyk.kg [07:52:40]written 0, free lines is 4095 [07:52:40]Connected sock=11 [07: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 34 36 39 32 3F 01 00 00 8A 9D 37 01 79 A7 5A 03 01 00 03 00 2B 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C8 40 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DF 68 01 00 35 04 06 00 42 22 7A CF 23 B2 D3 BE E8 1B D0 0A 5E FB [07:52:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7A F2 47 00 57 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 DF 68 01 00 F4 03 04 00 44 E9 E4 66 B6 04 01 00 00 B7 3A 68 68 7B D8 9D 61 [07:52:41]CommunicateWithHost err = 0 [07:52:41]CheckOFDResponse [07:52:41]1017 (14) - 77093643461234 [07:52:41]1041 (16) - 0000000000874692 [07:52:41]1040 (4) - 92383 [07:52:41]1012 (4) - 14.09.2024 01:39 [07:52:41]1206 (1) - 0 [07:52:41]OFD Sender: Remove packet 92383 [07:52:41]ProducePacketName [07:52:41]name=ofd_packets/00092383 [07:52:41]NVStorageDeleteData [07:52:41]Write to MH i2c: 01 00 00 6E 0A 78 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 07 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 07 00 6E 0A 00 00 00 00 00 06 0D 92 [07:52:41]RasterBufferAndPrint [07:52:41]line [07:52:41]line [07:52:41]line [07:52:41]line [07:52:41]line [07:52:41]written 0, free lines is 3338 [07:52:41]MH_Cut [07:52:41]Write to MH i2c: D1 01 00 75 0A 01 51 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: D1 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: D1 01 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: D1 01 00 75 0A 00 50 [07:52:41]Write to MH i2c: 01 00 00 76 0A 80 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]OFD Sender: No OFD packet to send [07:52:41]*** Cut start [07:52:41]*** Purtial cut [07:52:41]*** Stage 1: CUTSNS_PIN = 1 [07:52:43]Read from MH i2c: 01 [07:52:43]MH_I2C_Read... [07:52:43]*** Stop cut motor [07:52:43]*** Cut end [07:52:43]Read from MH i2c: 01 07 00 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: 01 07 00 76 0A 00 00 00 00 00 FF 0F 95 [07:52:43]process_action close_receipt done [07:52:43]requested_data is exist [07:52:43]produce_requested_data [07:52:43]requested_item fm.sn is exist - process it [07:52:43]wFMCommunicate request_size=4 [07:52:43]MH_SAM_APDU [07:52:43]CAPDU: 80 11 00 00 [07:52:43]Write to MH i2c: E2 08 00 77 0A 80 11 00 00 00 00 00 00 FB [07:52:43]Write i2c OK [07:52:43]MH_I2C_Read... [07:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:44]Read from MH i2c: E2 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 17 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 17 00 77 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 52 [07:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:52:44]wFMCommunicate OK [07:52:44]requested_item fd.num is exist - process it [07:52:44]SAM_PROTO_GetFieldsCounters [07:52:44]wFMCommunicate request_size=4 [07:52:44]MH_SAM_APDU [07:52:44]CAPDU: 80 13 00 00 [07:52:44]Write to MH i2c: E2 08 00 78 0A 80 13 00 00 00 00 00 00 FE [07:52:44]Write i2c OK [07:52:44]MH_I2C_Read... [07:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:44]Read from MH i2c: E2 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 62 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 62 00 78 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DF 68 01 00 0E 04 04 00 FA 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 C6 [07:52:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 DF 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:44]wFMCommunicate OK [07:52:44]SAM_PROTO_GetFieldsCounters done [07:52:44]requested_item shift.num is exist - process it [07:52:44]requested_item shift.opened is exist - process it [07:52:44]req_shift_opened [07:52:44]FM_GetShiftState [07:52:44]SAM_PROTO_GetShiftState [07:52:44]wFMCommunicate request_size=4 [07:52:44]MH_SAM_APDU [07:52:44]CAPDU: 80 13 01 00 [07:52:44]Write to MH i2c: E2 08 00 79 0A 80 13 01 00 00 00 00 00 00 [07:52:44]Write i2c OK [07:52:44]MH_I2C_Read... [07:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:44]Read from MH i2c: E2 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 0E 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 0E 00 79 0A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9A [07:52:44]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:52:44]wFMCommunicate OK [07:52:44]SAM_PROTO_GetShiftState done [07:52:44]FM_GetShiftState done [07:52:44]req_shift_opened done [07:52:44]requested_item shift.open_date is exist - process it [07:52:44]req_shift_open_date [07:52:44]req_shift_open_date done [07:52:44]produce_requested_data done [07:52:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92383,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:52:44]process_action_free close_receipt [07:52:44]json_value_free [07:52:44]json_value_free done [07:52:44]process_json_proto returns [07:52:44]Send response to host [07:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92383,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:52:44]free response buf [07:52:44]execute_script done [07:52:44]execute_script returns [07:52:44]free content buf [07:52:44]Sock 9.Close socket [07:52:44]Sock 9.Thread stoped [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:27]accept exits with 8 [07:57:27]New connection [07:57:27]New thread 3066658148 created [07:57:27]Thread 3066801508 joined [07:57:27]Waiting for new connection... [07:57:27] Sock 8.Parse request [07:57:27]Sock 8.Check first char [07:57:27]Sock 8.First char is OK [07:57:27]request: POST /json_proto HTTP/1.0 [07:57:27]Method: POST [07:57:27]URL: /json_proto [07:57:27]Method is POST - this is cgi request [07:57:27]url: /json_proto [07:57:27]query_string will be loaded in cgi processing [07:57:27]execute_cgi json_proto POST (null) [07:57:27]execute_cgi path=json_proto method=POST [07:57:27]POST find Content-Length [07:57:27]Host: 172.17.57.71:8080 [07:57:27]Content-Length: 682 [07:57:27]Content-Type: application/json [07:57:27] [07:57:27]POST finish read [07:57:27]Found Content-Length = 682 [07:57:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.240, "sum" : 1220.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1220.00, "total" : 1220.00, "payments": [ { "type": 0, "sum" : 1220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:27]execute_script... [07:57:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.240, "sum" : 1220.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1220.00, "total" : 1220.00, "payments": [ { "type": 0, "sum" : 1220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:27]POST & json_proto [07:57:27]process_json_proto [07:57:27]json parsed OK: [07:57:27]protocol is kg_v1.0 [07:57:27]action value=close_receipt [07:57:27]process_action close_receipt [07:57:27]cmd_close_receipt [07:57:27]MH_GetDate [07:57:27]Write to MH i2c: F0 00 00 7A 0A 73 [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: F0 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: F0 09 00 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: F0 09 00 7A 0A 00 E9 41 E5 66 33 3A A4 66 68 [07:57:27]GetLastDocTimeStamp 1726300360 [07:57:27]current date 1726300649 [07:57:27]FM_GetShiftState [07:57:27]SAM_PROTO_GetShiftState [07:57:27]wFMCommunicate request_size=4 [07:57:27]MH_SAM_APDU [07:57:27]CAPDU: 80 13 01 00 [07:57:27]Write to MH i2c: E2 08 00 7B 0A 80 13 01 00 00 00 00 00 02 [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:27]Read from MH i2c: E2 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: E2 0E 00 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: E2 0E 00 7B 0A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9C [07:57:27]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:57:27]wFMCommunicate OK [07:57:27]SAM_PROTO_GetShiftState done [07:57:27]FM_GetShiftState done [07:57:27]opened in 1726273389 [07:57:27]opened+sec_in_day 1726359789 [07:57:27]quantity*price = 122025 [07:57:27]sum+1 = 122027 [07:57:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1220.00 Внесено: 1220.00 СДАЧА: 0.00 НСП 1% : 10.80 НДС 12% : 129.58 Наличными: 1220.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 35 14.09.2024 07:57 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92384 ФПД: 275616656071303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T075729&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92384&fm=275616656071303&tin=02508201610067®Number=0000000000091423&sum=122000 [07:57:28]StoreToDocumentArchive [07:57:28]shift 506 fd 92384 [07:57:28]save to /storage/0506/doc_00092384 [07:57:28]save last doc name /storage/0506/doc_00092384 to /storage/kkm_last_doc_name [07:57:28]save OK [07:57:28]Clear old archive folders... [07:57:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:28]tlvbuf is 00F7B1D0 [07:57:28]SAM_PROTO_ClearQueue [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 09 00 00 [07:57:28]Write to MH i2c: E2 08 00 88 0A 80 09 00 00 00 00 00 00 04 [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 03 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 03 00 88 0A 00 90 00 06 [07:57:28]RAPDU: 90 00 [07:57:28]wFMCommunicate OK [07:57:28]SAM_PROTO_ClearQueue done [07:57:28]KKMCreateOFDPacket [07:57:28]OFDProtocolAddRootSTLVToBuf [07:57:28]FM_MakeSignedData [07:57:28]FM_MakeSignedData [07:57:28]SAM_PROTO_SignData [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 0D 01 02 [07:57:28]Write to MH i2c: E2 08 00 89 0A 80 0D 01 02 00 00 00 00 0C [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 03 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 03 00 89 0A 00 90 00 07 [07:57:28]RAPDU: 90 00 [07:57:28]wFMCommunicate OK [07:57:28]wFMCommunicate request_size=255 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E9 41 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E0 68 01 00 35 04 06 00 FA [07:57:28]Write to MH i2c: E2 02 01 8A 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E9 41 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E0 68 01 00 35 04 06 00 FA 00 00 1A [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 8A 0A 00 90 00 08 [07:57:29]RAPDU: 90 00 [07:57:29]wFMCommunicate OK [07:57:29]wFMCommunicate request_size=10 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 0D 02 02 05 AC 00 E1 1A 87 [07:57:29]Write to MH i2c: E2 0D 00 8B 0A 80 0D 02 02 05 00 AC 00 E1 1A 87 00 00 47 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [07:57:29]RAPDU: 90 00 [07:57:29]wFMCommunicate OK [07:57:29]wFMCommunicate request_size=4 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 0D 03 02 [07:57:29]Write to MH i2c: E2 08 00 8C 0A 80 0D 03 02 00 00 00 00 11 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 0B 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 0B 00 8C 0A 00 48 51 70 17 72 C7 65 AC 90 00 7C [07:57:29]RAPDU: 48 51 70 17 72 C7 65 AC 90 00 [07:57:29]wFMCommunicate OK [07:57:29]SAM_PROTO_SignData done [07:57:29]FM_MakeSignedData done [07:57:29]CreateOFDProtocolMessage [07:57:29]wFMCommunicate request_size=4 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 11 00 00 [07:57:29]Write to MH i2c: E2 08 00 8D 0A 80 11 00 00 00 00 00 00 11 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 17 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 17 00 8D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 68 [07:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:57:29]wFMCommunicate OK [07:57:29]CreateOFDProtocolMessage done [07:57:29]OFDSenderStorePacket 92384 [07:57:29]StoreOFDPacket docnum=92384 [07:57:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 FC 3C 07 01 9A 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E9 41 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E0 68 01 00 35 04 06 00 FA AC 00 E1 1A 87 48 51 70 17 72 C7 65 AC [07:57:29]CheckFolder [07:57:29]dirname=/storage/ofd_packets [07:57:29]CheckFolder done [07:57:29]ProducePacketName [07:57:29]name=ofd_packets/00092384 [07:57:29]NVStorageSaveData ofd_packets/00092384 [07:57:29]File name is /storage/ofd_packets/00092384 [07:57:29]Write 301 bytes [07:57:29]NVStorageSaveData done [07:57:29]OFDSenderStorePacket done [07:57:29]KKMCreateOFDPacket done [07:57:29]NVStorageSaveData kkm_last_timestamp [07:57:29]File name is /storage/kkm_last_timestamp [07:57:29]Write 4 bytes [07:57:29]NVStorageSaveData done [07:57:29]ExternCall_PrintAddStr [07:57:29]wPrintStart [07:57:29]Write to MH i2c: 01 00 00 8E 0A 98 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: 01 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: 01 07 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 FF 0F AD [07:57:29]RasterBufferAndPrint [07:57:29]line Счет N : (1)647314 [07:57:29]line ИНН: 02508201610067 [07:57:29]line Контрольно-Кассовый Чек [07:57:29]line ПРОДАЖА [07:57:29]line ТРК (МРК, ГНК) : 23 [07:57:29]line Товар: 2710124130 [07:57:29]line Аи-92-К-5 [07:57:29]line 18.240 * 66.90 [07:57:29]line = 1220.26 [07:57:29]line НДС 12% НСП 1% [07:57:29]line > о реализуемом товаре [07:57:29]line ОКРУГЛЕНИЕ: -0.26 [07:57:29]line ИТОГО: 1220.00 [07:57:29]line Внесено: 1220.00 [07:57:29]line СДАЧА: 0.00 [07:57:29]line НСП 1% : 10.80 [07:57:29]line НДС 12% : 129.58 [07:57:29]line Наличными: 1220.00 [07:57:29]line Безнал.: 0.00 [07:57:29]line Место: АЗС № 5 "Партнер Нефть" [07:57:29]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [07:57:29]line СНО: Общий режим [07:57:29]line Чек 35 14.09.2024 07:57 [07:57:29]line Смена: 506 ФФД: 1.0 [07:57:29]line ЗНМ: 03000000022 [07:57:29]line РНМ: 0000000000091423 [07:57:29]line Версия ККМ: 001 [07:57:29]line ФМ: 0000000000874692 [07:57:29]line ФД: 92384 [07:57:29]line ФПД: 275616656071303 [07:57:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T075729&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92384&fm=275616656071303&tin=02508201610067®Number=0000000000091423&sum=122000 [07:57:29]OFD Sender: Processing packet 92384 [packets to send 63, broken 62] [07:57:29]ProducePacketName [07:57:29]name=ofd_packets/00092384 [07:57:29]OFD Sender: To server: pG, [07:57:29]CommunicateWithHost lk.salyk.kg:30040 [07:57:29]ConnectInit lk.salyk.kg [07:57:29]written 0, free lines is 4095 [07:57:29]Connected sock=10 [07:57:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 FC 3C 07 01 9A 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E9 41 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E0 68 01 00 35 04 06 00 FA AC 00 E1 1A 87 48 51 70 17 72 C7 65 AC [07:57:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 57 D5 47 00 9A 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E0 68 01 00 F4 03 04 00 65 EA E4 66 B6 04 01 00 00 D5 B7 37 2E 15 37 CF 60 [07:57:29]CommunicateWithHost err = 0 [07:57:29]CheckOFDResponse [07:57:29]1017 (14) - 77093643461234 [07:57:29]1041 (16) - 0000000000874692 [07:57:29]1040 (4) - 92384 [07:57:29]1012 (4) - 14.09.2024 01:44 [07:57:29]1206 (1) - 0 [07:57:29]OFD Sender: Remove packet 92384 [07:57:29]ProducePacketName [07:57:29]name=ofd_packets/00092384 [07:57:29]NVStorageDeleteData [07:57:30]Write to MH i2c: 01 00 00 B9 0A C3 [07:57:30]Write i2c OK [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: 01 [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: 01 07 00 [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: 01 07 00 B9 0A 00 00 00 00 00 FC 0C D2 [07:57:30]RasterBufferAndPrint [07:57:30]line [07:57:30]line [07:57:30]line [07:57:30]line [07:57:30]line [07:57:30]written 0, free lines is 3332 [07:57:30]MH_Cut [07:57:30]Write to MH i2c: D1 01 00 C0 0A 01 9C [07:57:30]Write i2c OK [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: D1 [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: D1 01 00 [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: D1 01 00 C0 0A 00 9B [07:57:30]Write to MH i2c: 01 00 00 C1 0A CB [07:57:30]Write i2c OK [07:57:30]MH_I2C_Read... [07:57:30]OFD Sender: No OFD packet to send [07:57:30]*** Cut start [07:57:30]*** Purtial cut [07:57:30]*** Stage 1: CUTSNS_PIN = 1 [07:57:32]Read from MH i2c: 01 [07:57:32]MH_I2C_Read... [07:57:32]*** Stop cut motor [07:57:32]*** Cut end [07:57:32]Read from MH i2c: 01 07 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 FF 0F E0 [07:57:32]process_action close_receipt done [07:57:32]requested_data is exist [07:57:32]produce_requested_data [07:57:32]requested_item fm.sn is exist - process it [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 11 00 00 [07:57:32]Write to MH i2c: E2 08 00 C2 0A 80 11 00 00 00 00 00 00 46 [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 17 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 17 00 C2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9D [07:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [07:57:32]wFMCommunicate OK [07:57:32]requested_item fd.num is exist - process it [07:57:32]SAM_PROTO_GetFieldsCounters [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 13 00 00 [07:57:32]Write to MH i2c: E2 08 00 C3 0A 80 13 00 00 00 00 00 00 49 [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:33]Read from MH i2c: E2 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 62 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 62 00 C3 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E0 68 01 00 0E 04 04 00 FA 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 15 [07:57:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E0 68 01 00 0E 04 04 00 FA 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:57:33]wFMCommunicate OK [07:57:33]SAM_PROTO_GetFieldsCounters done [07:57:33]requested_item shift.num is exist - process it [07:57:33]requested_item shift.opened is exist - process it [07:57:33]req_shift_opened [07:57:33]FM_GetShiftState [07:57:33]SAM_PROTO_GetShiftState [07:57:33]wFMCommunicate request_size=4 [07:57:33]MH_SAM_APDU [07:57:33]CAPDU: 80 13 01 00 [07:57:33]Write to MH i2c: E2 08 00 C4 0A 80 13 01 00 00 00 00 00 4B [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:33]Read from MH i2c: E2 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 0E 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 0E 00 C4 0A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E5 [07:57:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [07:57:33]wFMCommunicate OK [07:57:33]SAM_PROTO_GetShiftState done [07:57:33]FM_GetShiftState done [07:57:33]req_shift_opened done [07:57:33]requested_item shift.open_date is exist - process it [07:57:33]req_shift_open_date [07:57:33]req_shift_open_date done [07:57:33]produce_requested_data done [07:57:33]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92384,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [07:57:33]process_action_free close_receipt [07:57:33]json_value_free [07:57:33]json_value_free done [07:57:33]process_json_proto returns [07:57:33]Send response to host [07:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92384,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [07:57:33]free response buf [07:57:33]execute_script done [07:57:33]execute_script returns [07:57:33]free content buf [07:57:33]Sock 8.Close socket [07:57:33]Sock 8.Thread stoped [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:18]accept exits with 9 [08:09:18]New connection [08:09:18]New thread 3066801508 created [08:09:18]Thread 3066658148 joined [08:09:18]Waiting for new connection... [08:09:18] Sock 9.Parse request [08:09:18]Sock 9.Check first char [08:09:18]Sock 9.First char is OK [08:09:18]request: POST /json_proto HTTP/1.0 [08:09:18]Method: POST [08:09:18]URL: /json_proto [08:09:18]Method is POST - this is cgi request [08:09:18]url: /json_proto [08:09:18]query_string will be loaded in cgi processing [08:09:18]execute_cgi json_proto POST (null) [08:09:18]execute_cgi path=json_proto method=POST [08:09:18]POST find Content-Length [08:09:18]Host: 172.17.57.71:8080 [08:09:18]Content-Length: 917 [08:09:18]Content-Type: application/json [08:09:18] [08:09:18]POST finish read [08:09:18]Found Content-Length = 917 [08:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127301", "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": "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" : 137.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:18]execute_script... [08:09: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)127301", "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": "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" : 137.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:18]POST & json_proto [08:09:18]process_json_proto [08:09:18]json parsed OK: [08:09:18]protocol is kg_v1.0 [08:09:18]action value=close_receipt [08:09:18]process_action close_receipt [08:09:18]cmd_close_receipt [08:09:18]MH_GetDate [08:09:18]Write to MH i2c: F0 00 00 C5 0A BE [08:09:18]Write i2c OK [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: F0 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: F0 09 00 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: F0 09 00 C5 0A 00 B1 44 E5 66 33 3A A4 66 7E [08:09:18]GetLastDocTimeStamp 1726300649 [08:09:18]current date 1726301361 [08:09:18]FM_GetShiftState [08:09:18]SAM_PROTO_GetShiftState [08:09:18]wFMCommunicate request_size=4 [08:09:18]MH_SAM_APDU [08:09:18]CAPDU: 80 13 01 00 [08:09:18]Write to MH i2c: E2 08 00 C6 0A 80 13 01 00 00 00 00 00 4D [08:09:18]Write i2c OK [08:09:18]MH_I2C_Read... [08:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:18]Read from MH i2c: E2 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: E2 0E 00 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: E2 0E 00 C6 0A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E7 [08:09:18]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:09:18]wFMCommunicate OK [08:09:18]SAM_PROTO_GetShiftState done [08:09:18]FM_GetShiftState done [08:09:18]opened in 1726273389 [08:09:18]opened+sec_in_day 1726359789 [08:09:18]quantity*price = 6000 [08:09:18]sum+1 = 6001 [08:09:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 137.00 НСП 1% : 1.21 НДС 12% : 14.55 Наличными: 137.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 36 14.09.2024 08:09 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92385 ФПД: 3663240158204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T080921&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92385&fm=3663240158204&tin=02508201610067®Number=0000000000091423&sum=13700 0 [08:09:20]StoreToDocumentArchive [08:09:20]shift 506 fd 92385 [08:09:20]save to /storage/0506/doc_00092385 [08:09:20]save last doc name /storage/0506/doc_00092385 to /storage/kkm_last_doc_name [08:09:20]save OK [08:09:20]Clear old archive folders... [08:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=399 [08:09:20]tlvbuf is 00FC1380 [08:09:20]SAM_PROTO_ClearQueue [08:09:20]wFMCommunicate request_size=4 [08:09:20]MH_SAM_APDU [08:09:20]CAPDU: 80 09 00 00 [08:09:20]Write to MH i2c: E2 08 00 D3 0A 80 09 00 00 00 00 00 00 4F [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:20]Read from MH i2c: E2 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 03 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [08:09:20]RAPDU: 90 00 [08:09:20]wFMCommunicate OK [08:09:20]SAM_PROTO_ClearQueue done [08:09:20]KKMCreateOFDPacket [08:09:20]OFDProtocolAddRootSTLVToBuf [08:09:20]FM_MakeSignedData [08:09:20]FM_MakeSignedData [08:09:20]SAM_PROTO_SignData [08:09:20]wFMCommunicate request_size=4 [08:09:20]MH_SAM_APDU [08:09:20]CAPDU: 80 0D 01 02 [08:09:20]Write to MH i2c: E2 08 00 D4 0A 80 0D 01 02 00 00 00 00 57 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:20]Read from MH i2c: E2 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 03 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [08:09:20]RAPDU: 90 00 [08:09:20]wFMCommunicate OK [08:09:20]wFMCommunicate request_size=255 [08:09:20]MH_SAM_APDU [08:09:20]CAPDU: 80 0D 02 02 FA 03 00 8F 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 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 84 35 00 00 00 00 EB 03 [08:09:20]Write to MH i2c: E2 02 01 D5 0A 80 0D 02 02 FA 00 03 00 8F 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 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 84 35 00 00 00 00 EB 03 00 00 03 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:20]Read from MH i2c: E2 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 03 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [08:09:20]RAPDU: 90 00 [08:09:20]wFMCommunicate OK [08:09:20]wFMCommunicate request_size=158 [08:09:20]MH_SAM_APDU [08:09:20]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 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 B1 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E1 68 01 00 35 04 06 00 03 54 EA 20 DB FC [08:09:20]Write to MH i2c: E2 A1 00 D6 0A 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 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 B1 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E1 68 01 00 35 04 06 00 03 54 EA 20 DB FC 00 00 A0 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:20]Read from MH i2c: E2 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 03 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [08:09:20]RAPDU: 90 00 [08:09:20]wFMCommunicate OK [08:09:20]wFMCommunicate request_size=4 [08:09:20]MH_SAM_APDU [08:09:20]CAPDU: 80 0D 03 02 [08:09:20]Write to MH i2c: E2 08 00 D7 0A 80 0D 03 02 00 00 00 00 5C [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:20]Read from MH i2c: E2 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 0B 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 0B 00 D7 0A 00 07 28 45 D8 2A 30 47 48 90 00 92 [08:09:20]RAPDU: 07 28 45 D8 2A 30 47 48 90 00 [08:09:20]wFMCommunicate OK [08:09:20]SAM_PROTO_SignData done [08:09:20]FM_MakeSignedData done [08:09:20]CreateOFDProtocolMessage [08:09:20]wFMCommunicate request_size=4 [08:09:20]MH_SAM_APDU [08:09:20]CAPDU: 80 11 00 00 [08:09:20]Write to MH i2c: E2 08 00 D8 0A 80 11 00 00 00 00 00 00 5C [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:20]Read from MH i2c: E2 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 17 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 17 00 D8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B3 [08:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:09:20]wFMCommunicate OK [08:09:20]CreateOFDProtocolMessage done [08:09:20]OFDSenderStorePacket 92385 [08:09:20]StoreOFDPacket docnum=92385 [08:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A3 01 00 00 2F 2C 9B 01 27 53 5A 03 01 00 03 00 8F 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 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 84 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 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 B1 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E1 68 01 00 35 04 06 00 03 54 EA 20 DB FC 07 28 45 D8 2A 30 47 48 [08:09:20]CheckFolder [08:09:20]dirname=/storage/ofd_packets [08:09:20]CheckFolder done [08:09:20]ProducePacketName [08:09:20]name=ofd_packets/00092385 [08:09:20]NVStorageSaveData ofd_packets/00092385 [08:09:20]File name is /storage/ofd_packets/00092385 [08:09:20]Write 449 bytes [08:09:20]NVStorageSaveData done [08:09:20]OFDSenderStorePacket done [08:09:20]KKMCreateOFDPacket done [08:09:20]NVStorageSaveData kkm_last_timestamp [08:09:20]File name is /storage/kkm_last_timestamp [08:09:20]Write 4 bytes [08:09:20]NVStorageSaveData done [08:09:20]ExternCall_PrintAddStr [08:09:20]wPrintStart [08:09:20]Write to MH i2c: 01 00 00 D9 0A E3 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 07 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [08:09:20]RasterBufferAndPrint [08:09:20]line Счет N : (3)127301 [08:09:20]line ИНН: 02508201610067 [08:09:20]line Контрольно-Кассовый Чек [08:09:20]line ПРОДАЖА [08:09:21]line Товар: 4700000310043 [08:09:21]line Вода Жалалабат 27 1л [08:09:21]line 1.000 * 60.00 [08:09:21]line = 60.00 [08:09:21]line НДС 12% НСП 1% [08:09:21]line > о реализуемом товаре [08:09:21]line Товар: 4700000480050 [08:09:21]line Напиток Nitro Energy эн green ж/б 0,45л [08:09:21]line 1.000 * 77.00 [08:09:21]line = 77.00 [08:09:21]line НДС 12% НСП 1% [08:09:21]line > о реализуемом товаре [08:09:21]line ИТОГО: 137.00 [08:09:21]line НСП 1% : 1.21 [08:09:21]line НДС 12% : 14.55 [08:09:21]line Наличными: 137.00 [08:09:21]line Безнал.: 0.00 [08:09:21]line Место: АЗС № 5 "Партнер Нефть" [08:09:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:09:21]line СНО: Общий режим [08:09:21]line Чек 36 14.09.2024 08:09 [08:09:21]line Смена: 506 ФФД: 1.0 [08:09:21]line ЗНМ: 03000000022 [08:09:21]line РНМ: 0000000000091423 [08:09:21]line Версия ККМ: 001 [08:09:21]line ФМ: 0000000000874692 [08:09:21]line ФД: 92385 [08:09:21]line ФПД: 3663240158204 [08:09:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T080921&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92385&fm=3663240158204&tin=02508201610067®Number=0000000000091423&sum=13700 [08:09:21]OFD Sender: Processing packet 92385 [packets to send 63, broken 62] [08:09:21]ProducePacketName [08:09:21]name=ofd_packets/00092385 [08:09:21]OFD Sender: To server: pG, [08:09:21]CommunicateWithHost lk.salyk.kg:30040 [08:09:21]ConnectInit lk.salyk.kg [08:09:21]line 0 [08:09:21]written 0, free lines is 4095 [08:09:21]Connected sock=10 [08:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A3 01 00 00 2F 2C 9B 01 27 53 5A 03 01 00 03 00 8F 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 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 84 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 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 B1 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E1 68 01 00 35 04 06 00 03 54 EA 20 DB FC 07 28 45 D8 2A 30 47 48 [08:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 95 87 47 00 50 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E1 68 01 00 F4 03 04 00 2D ED E4 66 B6 04 01 00 00 3F 78 CD 08 55 F8 93 49 [08:09:21]CommunicateWithHost err = 0 [08:09:21]CheckOFDResponse [08:09:21]1017 (14) - 77093643461234 [08:09:21]1041 (16) - 0000000000874692 [08:09:21]1040 (4) - 92385 [08:09:21]1012 (4) - 14.09.2024 01:55 [08:09:21]1206 (1) - 0 [08:09:21]OFD Sender: Remove packet 92385 [08:09:21]ProducePacketName [08:09:21]name=ofd_packets/00092385 [08:09:21]NVStorageDeleteData [08:09:21]Write to MH i2c: 01 00 00 08 0B 13 [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: 01 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: 01 07 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: 01 07 00 08 0B 00 00 00 00 00 BA 0C E0 [08:09:21]RasterBufferAndPrint [08:09:21]line [08:09:21]line [08:09:21]line [08:09:21]line [08:09:21]line [08:09:21]written 0, free lines is 3264 [08:09:21]MH_Cut [08:09:21]Write to MH i2c: D1 01 00 0F 0B 01 EC [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: D1 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: D1 01 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: D1 01 00 0F 0B 00 EB [08:09:21]Write to MH i2c: 01 00 00 10 0B 1B [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:21]OFD Sender: No OFD packet to send [08:09:22]*** Cut start [08:09:22]*** Purtial cut [08:09:22]*** Stage 1: CUTSNS_PIN = 1 [08:09:24]Read from MH i2c: 01 [08:09:24]MH_I2C_Read... [08:09:24]*** Stop cut motor [08:09:24]*** Cut end [08:09:24]Read from MH i2c: 01 07 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 FF 0F 30 [08:09:24]process_action close_receipt done [08:09:24]requested_data is exist [08:09:24]produce_requested_data [08:09:24]requested_item fm.sn is exist - process it [08:09:24]wFMCommunicate request_size=4 [08:09:24]MH_SAM_APDU [08:09:24]CAPDU: 80 11 00 00 [08:09:24]Write to MH i2c: E2 08 00 11 0B 80 11 00 00 00 00 00 00 96 [08:09:24]Write i2c OK [08:09:24]MH_I2C_Read... [08:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:24]Read from MH i2c: E2 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 17 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 17 00 11 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 ED [08:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:09:24]wFMCommunicate OK [08:09:24]requested_item fd.num is exist - process it [08:09:24]SAM_PROTO_GetFieldsCounters [08:09:24]wFMCommunicate request_size=4 [08:09:24]MH_SAM_APDU [08:09:24]CAPDU: 80 13 00 00 [08:09:24]Write to MH i2c: E2 08 00 12 0B 80 13 00 00 00 00 00 00 99 [08:09:24]Write i2c OK [08:09:24]MH_I2C_Read... [08:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:24]Read from MH i2c: E2 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 62 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 62 00 12 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E1 68 01 00 0E 04 04 00 FA 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 69 [08:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E1 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:24]wFMCommunicate OK [08:09:24]SAM_PROTO_GetFieldsCounters done [08:09:24]requested_item shift.num is exist - process it [08:09:24]requested_item shift.opened is exist - process it [08:09:24]req_shift_opened [08:09:24]FM_GetShiftState [08:09:24]SAM_PROTO_GetShiftState [08:09:24]wFMCommunicate request_size=4 [08:09:24]MH_SAM_APDU [08:09:24]CAPDU: 80 13 01 00 [08:09:24]Write to MH i2c: E2 08 00 13 0B 80 13 01 00 00 00 00 00 9B [08:09:24]Write i2c OK [08:09:24]MH_I2C_Read... [08:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:24]Read from MH i2c: E2 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 0E 00 [08:09:24]MH_I2C_Read... [08:09:24]Read from MH i2c: E2 0E 00 13 0B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 35 [08:09:24]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:09:24]wFMCommunicate OK [08:09:24]SAM_PROTO_GetShiftState done [08:09:24]FM_GetShiftState done [08:09:24]req_shift_opened done [08:09:24]requested_item shift.open_date is exist - process it [08:09:24]req_shift_open_date [08:09:24]req_shift_open_date done [08:09:24]produce_requested_data done [08:09:24]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92385,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:09:24]process_action_free close_receipt [08:09:24]json_value_free [08:09:24]json_value_free done [08:09:24]process_json_proto returns [08:09:24]Send response to host [08:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92385,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:09:24]free response buf [08:09:24]execute_script done [08:09:24]execute_script returns [08:09:24]free content buf [08:09:24]Sock 9.Close socket [08:09:24]Sock 9.Thread stoped [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:48]accept exits with 8 [08:09:48]New connection [08:09:48]New thread 3066658148 created [08:09:48]Thread 3066801508 joined [08:09:48]Waiting for new connection... [08:09:48] Sock 8.Parse request [08:09:48]Sock 8.Check first char [08:09:48]Sock 8.First char is OK [08:09:48]request: POST /json_proto HTTP/1.0 [08:09:48]Method: POST [08:09:48]URL: /json_proto [08:09:48]Method is POST - this is cgi request [08:09:48]url: /json_proto [08:09:48]query_string will be loaded in cgi processing [08:09:48]execute_cgi json_proto POST (null) [08:09:48]execute_cgi path=json_proto method=POST [08:09:48]POST find Content-Length [08:09:48]Host: 172.17.57.71:8080 [08:09:48]Content-Length: 673 [08:09:48]Content-Type: application/json [08:09:48] [08:09:48]POST finish read [08:09:48]Found Content-Length = 673 [08:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127302", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:48]execute_script... [08:09: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)127302", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:48]POST & json_proto [08:09:48]process_json_proto [08:09:48]json parsed OK: [08:09:48]protocol is kg_v1.0 [08:09:48]action value=close_receipt [08:09:48]process_action close_receipt [08:09:48]cmd_close_receipt [08:09:48]MH_GetDate [08:09:48]Write to MH i2c: F0 00 00 14 0B 0E [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: F0 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: F0 09 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: F0 09 00 14 0B 00 CE 44 E5 66 33 3A A4 66 EB [08:09:48]GetLastDocTimeStamp 1726301361 [08:09:48]current date 1726301390 [08:09:48]FM_GetShiftState [08:09:48]SAM_PROTO_GetShiftState [08:09:48]wFMCommunicate request_size=4 [08:09:48]MH_SAM_APDU [08:09:48]CAPDU: 80 13 01 00 [08:09:48]Write to MH i2c: E2 08 00 15 0B 80 13 01 00 00 00 00 00 9D [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:48]Read from MH i2c: E2 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 0E 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 0E 00 15 0B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 37 [08:09:48]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:09:48]wFMCommunicate OK [08:09:48]SAM_PROTO_GetShiftState done [08:09:48]FM_GetShiftState done [08:09:48]opened in 1726273389 [08:09:48]opened+sec_in_day 1726359789 [08:09:48]quantity*price = 22500 [08:09:48]sum+1 = 22501 [08:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 37 14.09.2024 08:09 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92386 ФПД: 195140638384071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T080950&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92386&fm=195140638384071&tin=02508201610067®Number=0000000000091423&sum=22500 0 [08:09:49]StoreToDocumentArchive [08:09:49]shift 506 fd 92386 [08:09:49]save to /storage/0506/doc_00092386 [08:09:49]save last doc name /storage/0506/doc_00092386 to /storage/kkm_last_doc_name [08:09:49]save OK [08:09:49]Clear old archive folders... [08:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=297 [08:09:49]tlvbuf is 00F7AF50 [08:09:49]SAM_PROTO_ClearQueue [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 09 00 00 [08:09:49]Write to MH i2c: E2 08 00 22 0B 80 09 00 00 00 00 00 00 9F [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 22 0B 00 90 00 A1 [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]SAM_PROTO_ClearQueue done [08:09:49]KKMCreateOFDPacket [08:09:49]OFDProtocolAddRootSTLVToBuf [08:09:49]FM_MakeSignedData [08:09:49]FM_MakeSignedData [08:09:49]SAM_PROTO_SignData [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 01 02 [08:09:49]Write to MH i2c: E2 08 00 23 0B 80 0D 01 02 00 00 00 00 A7 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 23 0B 00 90 00 A2 [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]wFMCommunicate request_size=255 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CE 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [08:09:49]Write to MH i2c: E2 02 01 24 0B 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CE 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 64 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]wFMCommunicate request_size=56 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 68 01 00 35 04 06 00 B1 7A B8 6E 9F C7 [08:09:49]Write to MH i2c: E2 3B 00 25 0B 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 68 01 00 35 04 06 00 B1 7A B8 6E 9F C7 00 00 35 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 03 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [08:09:50]RAPDU: 90 00 [08:09:50]wFMCommunicate OK [08:09:50]wFMCommunicate request_size=4 [08:09:50]MH_SAM_APDU [08:09:50]CAPDU: 80 0D 03 02 [08:09:50]Write to MH i2c: E2 08 00 26 0B 80 0D 03 02 00 00 00 00 AC [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 0B 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 0B 00 26 0B 00 72 91 82 A4 3F 43 FF 9B 90 00 F2 [08:09:50]RAPDU: 72 91 82 A4 3F 43 FF 9B 90 00 [08:09:50]wFMCommunicate OK [08:09:50]SAM_PROTO_SignData done [08:09:50]FM_MakeSignedData done [08:09:50]CreateOFDProtocolMessage [08:09:50]wFMCommunicate request_size=4 [08:09:50]MH_SAM_APDU [08:09:50]CAPDU: 80 11 00 00 [08:09:50]Write to MH i2c: E2 08 00 27 0B 80 11 00 00 00 00 00 00 AC [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 17 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 17 00 27 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 03 [08:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:09:50]wFMCommunicate OK [08:09:50]CreateOFDProtocolMessage done [08:09:50]OFDSenderStorePacket 92386 [08:09:50]StoreOFDPacket docnum=92386 [08:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 49 77 35 01 16 4D 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CE 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 68 01 00 35 04 06 00 B1 7A B8 6E 9F C7 72 91 82 A4 3F 43 FF 9B [08:09:50]CheckFolder [08:09:50]dirname=/storage/ofd_packets [08:09:50]CheckFolder done [08:09:50]ProducePacketName [08:09:50]name=ofd_packets/00092386 [08:09:50]NVStorageSaveData ofd_packets/00092386 [08:09:50]File name is /storage/ofd_packets/00092386 [08:09:50]Write 347 bytes [08:09:50]NVStorageSaveData done [08:09:50]OFDSenderStorePacket done [08:09:50]KKMCreateOFDPacket done [08:09:50]NVStorageSaveData kkm_last_timestamp [08:09:50]File name is /storage/kkm_last_timestamp [08:09:50]Write 4 bytes [08:09:50]NVStorageSaveData done [08:09:50]ExternCall_PrintAddStr [08:09:50]wPrintStart [08:09:50]Write to MH i2c: 01 00 00 28 0B 33 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 28 0B 00 00 00 00 00 FF 0F 48 [08:09:50]RasterBufferAndPrint [08:09:50]line Счет N : (3)127302 [08:09:50]line ИНН: 02508201610067 [08:09:50]line Контрольно-Кассовый Чек [08:09:50]line ПРОДАЖА [08:09:50]line Товар: 4670003190051 [08:09:50]line Антифриз SIBIRIA ANTIFREEZE ОЖ40 крас 1л [08:09:50]line 1.000 * 225.00 [08:09:50]line = 225.00 [08:09:50]line НДС 12% НСП 1% [08:09:50]line > о реализуемом товаре [08:09:50]line ИТОГО: 225.00 [08:09:50]line НСП 1% : 1.99 [08:09:50]line НДС 12% : 23.89 [08:09:50]line Наличными: 225.00 [08:09:50]line Безнал.: 0.00 [08:09:50]line Место: АЗС № 5 "Партнер Нефть" [08:09:50]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:09:50]line СНО: Общий режим [08:09:50]line Чек 37 14.09.2024 08:09 [08:09:50]line Смена: 506 ФФД: 1.0 [08:09:50]line ЗНМ: 03000000022 [08:09:50]line РНМ: 0000000000091423 [08:09:50]line Версия ККМ: 001 [08:09:50]line ФМ: 0000000000874692 [08:09:50]line ФД: 92386 [08:09:50]line ФПД: 195140638384071 [08:09:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T080950&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92386&fm=195140638384071&tin=02508201610067®Number=0000000000091423&sum=22500 [08:09:50]line 0 [08:09:50]OFD Sender: Processing packet 92386 [packets to send 63, broken 62] [08:09:50]ProducePacketName [08:09:50]name=ofd_packets/00092386 [08:09:50]OFD Sender: To server: pG, [08:09:50]CommunicateWithHost lk.salyk.kg:30040 [08:09:50]ConnectInit lk.salyk.kg [08:09:50]written 0, free lines is 4095 [08:09:50]Connected sock=9 [08:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 49 77 35 01 16 4D 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 CE 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 68 01 00 35 04 06 00 B1 7A B8 6E 9F C7 72 91 82 A4 3F 43 FF 9B [08:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 32 AE 47 00 97 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E2 68 01 00 F4 03 04 00 4A ED E4 66 B6 04 01 00 00 0C 23 D7 84 C7 26 A2 73 [08:09:50]CommunicateWithHost err = 0 [08:09:50]CheckOFDResponse [08:09:50]1017 (14) - 77093643461234 [08:09:50]1041 (16) - 0000000000874692 [08:09:50]1040 (4) - 92386 [08:09:50]1012 (4) - 14.09.2024 01:56 [08:09:50]1206 (1) - 0 [08:09:50]OFD Sender: Remove packet 92386 [08:09:50]ProducePacketName [08:09:50]name=ofd_packets/00092386 [08:09:50]NVStorageDeleteData [08:09:50]Write to MH i2c: 01 00 00 51 0B 5C [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 51 0B 00 00 00 00 00 10 0D 80 [08:09:50]RasterBufferAndPrint [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]written 0, free lines is 3351 [08:09:50]MH_Cut [08:09:50]Write to MH i2c: D1 01 00 58 0B 01 35 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 01 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 01 00 58 0B 00 34 [08:09:50]Write to MH i2c: 01 00 00 59 0B 64 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:51]OFD Sender: No OFD packet to send [08:09:51]*** Cut start [08:09:51]*** Purtial cut [08:09:51]*** Stage 1: CUTSNS_PIN = 1 [08:09:53]Read from MH i2c: 01 [08:09:53]MH_I2C_Read... [08:09:53]*** Stop cut motor [08:09:53]*** Cut end [08:09:53]Read from MH i2c: 01 07 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: 01 07 00 59 0B 00 00 00 00 00 FF 0F 79 [08:09:53]process_action close_receipt done [08:09:53]requested_data is exist [08:09:53]produce_requested_data [08:09:53]requested_item fm.sn is exist - process it [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 11 00 00 [08:09:53]Write to MH i2c: E2 08 00 5A 0B 80 11 00 00 00 00 00 00 DF [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 17 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 17 00 5A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 36 [08:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:09:53]wFMCommunicate OK [08:09:53]requested_item fd.num is exist - process it [08:09:53]SAM_PROTO_GetFieldsCounters [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 13 00 00 [08:09:53]Write to MH i2c: E2 08 00 5B 0B 80 13 00 00 00 00 00 00 E2 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 62 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 62 00 5B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E2 68 01 00 0E 04 04 00 FA 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 B6 [08:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E2 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:53]wFMCommunicate OK [08:09:53]SAM_PROTO_GetFieldsCounters done [08:09:53]requested_item shift.num is exist - process it [08:09:53]requested_item shift.opened is exist - process it [08:09:53]req_shift_opened [08:09:53]FM_GetShiftState [08:09:53]SAM_PROTO_GetShiftState [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 13 01 00 [08:09:53]Write to MH i2c: E2 08 00 5C 0B 80 13 01 00 00 00 00 00 E4 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 0E 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 0E 00 5C 0B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7E [08:09:53]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:09:53]wFMCommunicate OK [08:09:53]SAM_PROTO_GetShiftState done [08:09:53]FM_GetShiftState done [08:09:53]req_shift_opened done [08:09:53]requested_item shift.open_date is exist - process it [08:09:53]req_shift_open_date [08:09:53]req_shift_open_date done [08:09:53]produce_requested_data done [08:09:53]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92386,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:09:53]process_action_free close_receipt [08:09:53]json_value_free [08:09:53]json_value_free done [08:09:53]process_json_proto returns [08:09:53]Send response to host [08:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92386,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:09:53]free response buf [08:09:53]execute_script done [08:09:53]execute_script returns [08:09:53]free content buf [08:09:53]Sock 8.Close socket [08:09:53]Sock 8.Thread stoped [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:37]accept exits with 10 [08:10:37]New connection [08:10:37]New thread 3066801508 created [08:10:37]Thread 3066658148 joined [08:10:37]Waiting for new connection... [08:10:37] Sock 10.Parse request [08:10:37]Sock 10.Check first char [08:10:37]Sock 10.First char is OK [08:10:37]request: POST /json_proto HTTP/1.0 [08:10:37]Method: POST [08:10:37]URL: /json_proto [08:10:37]Method is POST - this is cgi request [08:10:37]url: /json_proto [08:10:37]query_string will be loaded in cgi processing [08:10:37]execute_cgi json_proto POST (null) [08:10:37]execute_cgi path=json_proto method=POST [08:10:37]POST find Content-Length [08:10:37]Host: 172.17.57.71:8080 [08:10:37]Content-Length: 1096 [08:10:37]Content-Type: application/json [08:10:37] [08:10:37]POST finish read [08:10:37]Found Content-Length = 1096 [08:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92372, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127293", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "92372" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:37]execute_script... [08:10:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92372, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127293", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "92372" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:37]POST & json_proto [08:10:37]process_json_proto [08:10:37]json parsed OK: [08:10:37]protocol is kg_v1.0 [08:10:37]action value=close_receipt [08:10:37]process_action close_receipt [08:10:37]cmd_close_receipt [08:10:37]MH_GetDate [08:10:37]Write to MH i2c: F0 00 00 5D 0B 57 [08:10:37]Write i2c OK [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: F0 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: F0 09 00 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: F0 09 00 5D 0B 00 FF 44 E5 66 33 3A A4 66 65 [08:10:37]GetLastDocTimeStamp 1726301390 [08:10:37]current date 1726301439 [08:10:37]FM_GetShiftState [08:10:37]SAM_PROTO_GetShiftState [08:10:37]wFMCommunicate request_size=4 [08:10:37]MH_SAM_APDU [08:10:37]CAPDU: 80 13 01 00 [08:10:37]Write to MH i2c: E2 08 00 5E 0B 80 13 01 00 00 00 00 00 E6 [08:10:37]Write i2c OK [08:10:37]MH_I2C_Read... [08:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:37]Read from MH i2c: E2 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: E2 0E 00 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: E2 0E 00 5E 0B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 80 [08:10:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:10:37]wFMCommunicate OK [08:10:37]SAM_PROTO_GetShiftState done [08:10:37]FM_GetShiftState done [08:10:37]opened in 1726273389 [08:10:37]opened+sec_in_day 1726359789 [08:10:37]quantity*price = 11500 [08:10:37]sum+1 = 11501 [08:10:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 38 14.09.2024 08:10 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФД осн.: 92372 ФМ осн.: 0000000000874692 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92387 ФПД: 3556423557233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081039&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92387&fm=3556423557233&tin=02508201610067®Number=0000000000091423&sum=24500 92372 [08:10:38]StoreToDocumentArchive [08:10:38]shift 506 fd 92387 [08:10:38]save to /storage/0506/doc_00092387 [08:10:38]save last doc name /storage/0506/doc_00092387 to /storage/kkm_last_doc_name [08:10:38]save OK [08:10:38]Clear old archive folders... [08:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=408 [08:10:38]tlvbuf is 00FB27F0 [08:10:38]SAM_PROTO_ClearQueue [08:10:38]wFMCommunicate request_size=4 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 09 00 00 [08:10:38]Write to MH i2c: E2 08 00 6D 0B 80 09 00 00 00 00 00 00 EA [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 6D 0B 00 90 00 EC [08:10:38]RAPDU: 90 00 [08:10:38]wFMCommunicate OK [08:10:38]SAM_PROTO_ClearQueue done [08:10:38]KKMCreateOFDPacket [08:10:38]OFDProtocolAddRootSTLVToBuf [08:10:38]FM_MakeSignedData [08:10:38]FM_MakeSignedData [08:10:38]SAM_PROTO_SignData [08:10:38]wFMCommunicate request_size=4 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 0D 01 02 [08:10:38]Write to MH i2c: E2 08 00 6E 0B 80 0D 01 02 00 00 00 00 F2 [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [08:10:38]RAPDU: 90 00 [08:10:38]wFMCommunicate OK [08:10:38]wFMCommunicate request_size=255 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 02 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 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 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 [08:10:38]Write to MH i2c: E2 02 01 6F 0B 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 02 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 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 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 59 [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [08:10:38]RAPDU: 90 00 [08:10:38]wFMCommunicate OK [08:10:38]wFMCommunicate request_size=167 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 0D 02 02 A2 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 FF 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 D4 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 68 01 00 35 04 06 00 03 3C 0B 5C E0 71 [08:10:38]Write to MH i2c: E2 AA 00 70 0B 80 0D 02 02 A2 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 FF 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 D4 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 68 01 00 35 04 06 00 03 3C 0B 5C E0 71 00 00 68 [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 03 00 70 0B 00 90 00 EF [08:10:38]RAPDU: 90 00 [08:10:38]wFMCommunicate OK [08:10:38]wFMCommunicate request_size=4 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 0D 03 02 [08:10:38]Write to MH i2c: E2 08 00 71 0B 80 0D 03 02 00 00 00 00 F7 [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 0B 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 0B 00 71 0B 00 29 F1 F5 2B 76 5A 3D 4B 90 00 8A [08:10:38]RAPDU: 29 F1 F5 2B 76 5A 3D 4B 90 00 [08:10:38]wFMCommunicate OK [08:10:38]SAM_PROTO_SignData done [08:10:38]FM_MakeSignedData done [08:10:38]CreateOFDProtocolMessage [08:10:38]wFMCommunicate request_size=4 [08:10:38]MH_SAM_APDU [08:10:38]CAPDU: 80 11 00 00 [08:10:38]Write to MH i2c: E2 08 00 72 0B 80 11 00 00 00 00 00 00 F7 [08:10:38]Write i2c OK [08:10:38]MH_I2C_Read... [08:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:38]Read from MH i2c: E2 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 17 00 [08:10:38]MH_I2C_Read... [08:10:38]Read from MH i2c: E2 17 00 72 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4E [08:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:10:38]wFMCommunicate OK [08:10:38]CreateOFDProtocolMessage done [08:10:38]OFDSenderStorePacket 92387 [08:10:38]StoreOFDPacket docnum=92387 [08:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AC 01 00 00 AD 79 A4 01 E9 37 5A 03 01 00 03 00 98 01 1E 04 01 00 02 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 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 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 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 FF 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 D4 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 68 01 00 35 04 06 00 03 3C 0B 5C E0 71 29 F1 F5 2B 76 5A 3D 4B [08:10:38]CheckFolder [08:10:38]dirname=/storage/ofd_packets [08:10:38]CheckFolder done [08:10:38]ProducePacketName [08:10:38]name=ofd_packets/00092387 [08:10:38]NVStorageSaveData ofd_packets/00092387 [08:10:38]File name is /storage/ofd_packets/00092387 [08:10:38]Write 458 bytes [08:10:38]NVStorageSaveData done [08:10:38]OFDSenderStorePacket done [08:10:39]KKMCreateOFDPacket done [08:10:39]NVStorageSaveData kkm_last_timestamp [08:10:39]File name is /storage/kkm_last_timestamp [08:10:39]Write 4 bytes [08:10:39]NVStorageSaveData done [08:10:39]ExternCall_PrintAddStr [08:10:39]wPrintStart [08:10:39]Write to MH i2c: 01 00 00 73 0B 7E [08:10:39]OFD Sender: Processing packet 92387 [packets to send 63, broken 62] [08:10:39]ProducePacketName [08:10:39]name=ofd_packets/00092387 [08:10:39]OFD Sender: To server: pG, [08:10:39]CommunicateWithHost lk.salyk.kg:30040 [08:10:39]ConnectInit lk.salyk.kg [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 07 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 07 00 73 0B 00 00 00 00 00 FF 0F 93 [08:10:39]RasterBufferAndPrint [08:10:39]line Счет N : (3)127293 [08:10:39]line ИНН: 02508201610067 [08:10:39]line Контрольно-Кассовый Чек [08:10:39]line ВОЗВРАТ ПРОДАЖИ [08:10:39]line Товар: 2000036240010 [08:10:39]line Кофе Латте (GABB TRADE) [08:10:39]line 1.000 * 115.00 [08:10:39]line = 115.00 [08:10:39]line НДС 12% НСП 1% [08:10:39]line > о реализуемом товаре [08:10:39]line Товар: 2000036230011 [08:10:39]line Кофе Латте XL(GABB TRADE) [08:10:39]line 1.000 * 130.00 [08:10:39]line = 130.00 [08:10:39]line НДС 12% НСП 1% [08:10:39]line > о реализуемом товаре [08:10:39]line ИТОГО: 245.00 [08:10:39]line НСП 1% : 2.17 [08:10:39]line НДС 12% : 26.01 [08:10:39]line Наличными: 0.00 [08:10:39]line Безнал.: 245.00 [08:10:39]line Место: АЗС № 5 "Партнер Нефть" [08:10:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:10:39]line СНО: Общий режим [08:10:39]line Чек 38 14.09.2024 08:10 [08:10:39]line Смена: 506 ФФД: 1.0 [08:10:39]line ЗНМ: 03000000022 [08:10:39]line РНМ: 0000000000091423 [08:10:39]line Версия ККМ: 001 [08:10:39]line ФД осн.: 92372 [08:10:39]line ФМ осн.: 0000000000874692 [08:10:39]line Платежная система: О! деньги [08:10:39]line ФМ: 0000000000874692 [08:10:39]line ФД: 92387 [08:10:39]line ФПД: 3556423557233 [08:10:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081039&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92387&fm=3556423557233&tin=02508201610067®Number=0000000000091423&sum=24500 [08:10:39]line 92372 [08:10:39]written 0, free lines is 4095 [08:10:39]Connected sock=9 [08:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AC 01 00 00 AD 79 A4 01 E9 37 5A 03 01 00 03 00 98 01 1E 04 01 00 02 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 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 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 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 FF 44 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 D4 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 68 01 00 35 04 06 00 03 3C 0B 5C E0 71 29 F1 F5 2B 76 5A 3D 4B [08:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DC 37 47 00 75 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E3 68 01 00 F4 03 04 00 7B ED E4 66 B6 04 01 00 00 0F EE A5 3D F5 22 2F 75 [08:10:39]CommunicateWithHost err = 0 [08:10:39]CheckOFDResponse [08:10:39]1017 (14) - 77093643461234 [08:10:39]1041 (16) - 0000000000874692 [08:10:39]1040 (4) - 92387 [08:10:39]1012 (4) - 14.09.2024 01:57 [08:10:39]1206 (1) - 0 [08:10:39]OFD Sender: Remove packet 92387 [08:10:39]ProducePacketName [08:10:39]name=ofd_packets/00092387 [08:10:39]NVStorageDeleteData [08:10:39]Write to MH i2c: 01 00 00 A5 0B B0 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 07 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 AF 0C 72 [08:10:39]RasterBufferAndPrint [08:10:39]line [08:10:39]line [08:10:39]line [08:10:39]line [08:10:39]line [08:10:39]written 0, free lines is 3257 [08:10:39]MH_Cut [08:10:39]Write to MH i2c: D1 01 00 AC 0B 01 89 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: D1 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: D1 01 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: D1 01 00 AC 0B 00 88 [08:10:39]Write to MH i2c: 01 00 00 AD 0B B8 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:40]OFD Sender: No OFD packet to send [08:10:40]*** Cut start [08:10:40]*** Purtial cut [08:10:40]*** Stage 1: CUTSNS_PIN = 1 [08:10:42]Read from MH i2c: 01 [08:10:42]MH_I2C_Read... [08:10:42]*** Stop cut motor [08:10:42]*** Cut end [08:10:42]Read from MH i2c: 01 07 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 AD 0B 00 00 00 00 00 FF 0F CD [08:10:42]process_action close_receipt done [08:10:42]requested_data is exist [08:10:42]produce_requested_data [08:10:42]requested_item fm.sn is exist - process it [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 11 00 00 [08:10:42]Write to MH i2c: E2 08 00 AE 0B 80 11 00 00 00 00 00 00 33 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 17 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 17 00 AE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8A [08:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:10:42]wFMCommunicate OK [08:10:42]requested_item fd.num is exist - process it [08:10:42]SAM_PROTO_GetFieldsCounters [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 13 00 00 [08:10:42]Write to MH i2c: E2 08 00 AF 0B 80 13 00 00 00 00 00 00 36 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 62 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 62 00 AF 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E3 68 01 00 0E 04 04 00 FA 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 0E [08:10:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E3 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:42]wFMCommunicate OK [08:10:42]SAM_PROTO_GetFieldsCounters done [08:10:42]requested_item shift.num is exist - process it [08:10:42]requested_item shift.opened is exist - process it [08:10:42]req_shift_opened [08:10:42]FM_GetShiftState [08:10:42]SAM_PROTO_GetShiftState [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 13 01 00 [08:10:42]Write to MH i2c: E2 08 00 B0 0B 80 13 01 00 00 00 00 00 38 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:42]Read from MH i2c: E2 0E 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 0E 00 B0 0B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D2 [08:10:42]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:10:42]wFMCommunicate OK [08:10:42]SAM_PROTO_GetShiftState done [08:10:42]FM_GetShiftState done [08:10:42]req_shift_opened done [08:10:42]requested_item shift.open_date is exist - process it [08:10:42]req_shift_open_date [08:10:42]req_shift_open_date done [08:10:42]produce_requested_data done [08:10:42]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92387,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:10:42]process_action_free close_receipt [08:10:42]json_value_free [08:10:42]json_value_free done [08:10:42]process_json_proto returns [08:10:42]Send response to host [08:10:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92387,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:10:42]free response buf [08:10:42]execute_script done [08:10:42]execute_script returns [08:10:42]free content buf [08:10:42]Sock 10.Close socket [08:10:42]Sock 10.Thread stoped [08:10:43]accept exits with 8 [08:10:43]New connection [08:10:43]New thread 3066658148 created [08:10:43]Thread 3066801508 joined [08:10:43]Waiting for new connection... [08:10:43] Sock 8.Parse request [08:10:43]Sock 8.Check first char [08:10:43]Sock 8.First char is OK [08:10:43]request: POST /json_proto HTTP/1.0 [08:10:43]Method: POST [08:10:43]URL: /json_proto [08:10:43]Method is POST - this is cgi request [08:10:43]url: /json_proto [08:10:43]query_string will be loaded in cgi processing [08:10:43]execute_cgi json_proto POST (null) [08:10:43]execute_cgi path=json_proto method=POST [08:10:43]POST find Content-Length [08:10:43]Host: 172.17.57.71:8080 [08:10:43]Content-Length: 883 [08:10:43]Content-Type: application/json [08:10:43] [08:10:43]POST finish read [08:10:43]Found Content-Length = 883 [08:10:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92371, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127292", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "92371" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:43]execute_script... [08:10:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92371, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127292", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "92371" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:43]POST & json_proto [08:10:43]process_json_proto [08:10:43]json parsed OK: [08:10:43]protocol is kg_v1.0 [08:10:43]action value=close_receipt [08:10:43]process_action close_receipt [08:10:43]cmd_close_receipt [08:10:43]MH_GetDate [08:10:43]Write to MH i2c: F0 00 00 B1 0B AB [08:10:43]Write i2c OK [08:10:43]MH_I2C_Read... [08:10:43]Read from MH i2c: F0 [08:10:43]MH_I2C_Read... [08:10:43]Read from MH i2c: F0 09 00 [08:10:43]MH_I2C_Read... [08:10:43]Read from MH i2c: F0 09 00 B1 0B 00 05 45 E5 66 33 3A A4 66 C0 [08:10:43]GetLastDocTimeStamp 1726301439 [08:10:43]current date 1726301445 [08:10:43]FM_GetShiftState [08:10:43]SAM_PROTO_GetShiftState [08:10:43]wFMCommunicate request_size=4 [08:10:43]MH_SAM_APDU [08:10:43]CAPDU: 80 13 01 00 [08:10:43]Write to MH i2c: E2 08 00 B2 0B 80 13 01 00 00 00 00 00 3A [08:10:43]Write i2c OK [08:10:43]MH_I2C_Read... [08:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:43]Read from MH i2c: E2 [08:10:43]MH_I2C_Read... [08:10:43]Read from MH i2c: E2 0E 00 [08:10:43]MH_I2C_Read... [08:10:43]Read from MH i2c: E2 0E 00 B2 0B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D4 [08:10:43]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:10:43]wFMCommunicate OK [08:10:43]SAM_PROTO_GetShiftState done [08:10:43]FM_GetShiftState done [08:10:43]opened in 1726273389 [08:10:43]opened+sec_in_day 1726359789 [08:10:43]quantity*price = 26000 [08:10:43]sum+1 = 26001 [08:10:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 39 14.09.2024 08:10 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФД осн.: 92371 ФМ осн.: 0000000000874692 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92388 ФПД: 16150469268790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081045&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92388&fm=16150469268790&tin=02508201610067®Number=0000000000091423&sum=26000 92371 [08:10:45]StoreToDocumentArchive [08:10:45]shift 506 fd 92388 [08:10:45]save to /storage/0506/doc_00092388 [08:10:45]save last doc name /storage/0506/doc_00092388 to /storage/kkm_last_doc_name [08:10:45]save OK [08:10:45]Clear old archive folders... [08:10:45]ProcessDocumentItem done err = 0, tmpTLVsize=310 [08:10:45]tlvbuf is 00FAD0E0 [08:10:45]SAM_PROTO_ClearQueue [08:10:45]wFMCommunicate request_size=4 [08:10:45]MH_SAM_APDU [08:10:45]CAPDU: 80 09 00 00 [08:10:45]Write to MH i2c: E2 08 00 C1 0B 80 09 00 00 00 00 00 00 3E [08:10:45]Write i2c OK [08:10:45]MH_I2C_Read... [08:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:45]Read from MH i2c: E2 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 03 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [08:10:45]RAPDU: 90 00 [08:10:45]wFMCommunicate OK [08:10:45]SAM_PROTO_ClearQueue done [08:10:45]KKMCreateOFDPacket [08:10:45]OFDProtocolAddRootSTLVToBuf [08:10:45]FM_MakeSignedData [08:10:45]FM_MakeSignedData [08:10:45]SAM_PROTO_SignData [08:10:45]wFMCommunicate request_size=4 [08:10:45]MH_SAM_APDU [08:10:45]CAPDU: 80 0D 01 02 [08:10:45]Write to MH i2c: E2 08 00 C2 0B 80 0D 01 02 00 00 00 00 46 [08:10:45]Write i2c OK [08:10:45]MH_I2C_Read... [08:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:45]Read from MH i2c: E2 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 03 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 03 00 C2 0B 00 90 00 41 [08:10:45]RAPDU: 90 00 [08:10:45]wFMCommunicate OK [08:10:45]wFMCommunicate request_size=255 [08:10:45]MH_SAM_APDU [08:10:45]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 02 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 27 00 00 00 F4 03 04 00 05 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 [08:10:45]Write to MH i2c: E2 02 01 C3 0B 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 02 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 27 00 00 00 F4 03 04 00 05 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 00 00 F3 [08:10:45]Write i2c OK [08:10:45]MH_I2C_Read... [08:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:45]Read from MH i2c: E2 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 03 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 03 00 C3 0B 00 90 00 42 [08:10:45]RAPDU: 90 00 [08:10:45]wFMCommunicate OK [08:10:45]wFMCommunicate request_size=69 [08:10:45]MH_SAM_APDU [08:10:45]CAPDU: 80 0D 02 02 40 04 00 D3 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 68 01 00 35 04 06 00 0E B0 52 FB D5 36 [08:10:45]Write to MH i2c: E2 48 00 C4 0B 80 0D 02 02 40 00 04 00 D3 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 68 01 00 35 04 06 00 0E B0 52 FB D5 36 00 00 6C [08:10:45]Write i2c OK [08:10:45]MH_I2C_Read... [08:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:45]Read from MH i2c: E2 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 03 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [08:10:45]RAPDU: 90 00 [08:10:45]wFMCommunicate OK [08:10:45]wFMCommunicate request_size=4 [08:10:45]MH_SAM_APDU [08:10:45]CAPDU: 80 0D 03 02 [08:10:45]Write to MH i2c: E2 08 00 C5 0B 80 0D 03 02 00 00 00 00 4B [08:10:45]Write i2c OK [08:10:45]MH_I2C_Read... [08:10:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:45]Read from MH i2c: E2 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 0B 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 0B 00 C5 0B 00 71 2A B2 BC 98 97 56 81 90 00 5B [08:10:46]RAPDU: 71 2A B2 BC 98 97 56 81 90 00 [08:10:46]wFMCommunicate OK [08:10:46]SAM_PROTO_SignData done [08:10:46]FM_MakeSignedData done [08:10:46]CreateOFDProtocolMessage [08:10:46]wFMCommunicate request_size=4 [08:10:46]MH_SAM_APDU [08:10:46]CAPDU: 80 11 00 00 [08:10:46]Write to MH i2c: E2 08 00 C6 0B 80 11 00 00 00 00 00 00 4B [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:46]Read from MH i2c: E2 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: E2 17 00 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: E2 17 00 C6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A2 [08:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:10:46]wFMCommunicate OK [08:10:46]CreateOFDProtocolMessage done [08:10:46]OFDSenderStorePacket 92388 [08:10:46]StoreOFDPacket docnum=92388 [08:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4A 01 00 00 E8 04 42 01 2C 63 5A 03 01 00 03 00 36 01 1E 04 01 00 02 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 27 00 00 00 F4 03 04 00 05 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 D3 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 68 01 00 35 04 06 00 0E B0 52 FB D5 36 71 2A B2 BC 98 97 56 81 [08:10:46]CheckFolder [08:10:46]dirname=/storage/ofd_packets [08:10:46]CheckFolder done [08:10:46]ProducePacketName [08:10:46]name=ofd_packets/00092388 [08:10:46]NVStorageSaveData ofd_packets/00092388 [08:10:46]File name is /storage/ofd_packets/00092388 [08:10:46]Write 360 bytes [08:10:46]NVStorageSaveData done [08:10:46]OFDSenderStorePacket done [08:10:46]KKMCreateOFDPacket done [08:10:46]NVStorageSaveData kkm_last_timestamp [08:10:46]File name is /storage/kkm_last_timestamp [08:10:46]Write 4 bytes [08:10:46]NVStorageSaveData done [08:10:46]ExternCall_PrintAddStr [08:10:46]wPrintStart [08:10:46]Write to MH i2c: 01 00 00 C7 0B D2 [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: 01 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: 01 07 00 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: 01 07 00 C7 0B 00 00 00 00 00 FF 0F E7 [08:10:46]RasterBufferAndPrint [08:10:46]line Счет N : (3)127292 [08:10:46]line ИНН: 02508201610067 [08:10:46]line Контрольно-Кассовый Чек [08:10:46]line ВОЗВРАТ ПРОДАЖИ [08:10:46]line Товар: 2000036220012 [08:10:46]line Кофе Капучино XL(GABB TRADE) [08:10:46]line 2.000 * 130.00 [08:10:46]line = 260.00 [08:10:46]line НДС 12% НСП 1% [08:10:46]line > о реализуемом товаре [08:10:46]line ИТОГО: 260.00 [08:10:46]line НСП 1% : 2.30 [08:10:46]line НДС 12% : 27.61 [08:10:46]line Наличными: 0.00 [08:10:46]line Безнал.: 260.00 [08:10:46]line Место: АЗС № 5 "Партнер Нефть" [08:10:46]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:10:46]line СНО: Общий режим [08:10:46]line Чек 39 14.09.2024 08:10 [08:10:46]line Смена: 506 ФФД: 1.0 [08:10:46]line ЗНМ: 03000000022 [08:10:46]line РНМ: 0000000000091423 [08:10:46]line Версия ККМ: 001 [08:10:46]line ФД осн.: 92371 [08:10:46]line ФМ осн.: 0000000000874692 [08:10:46]line Платежная система: Бакай Банк [08:10:46]line ФМ: 0000000000874692 [08:10:46]line ФД: 92388 [08:10:46]line ФПД: 16150469268790 [08:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081045&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92388&fm=16150469268790&tin=02508201610067®Number=0000000000091423&sum=26000 [08:10:46]OFD Sender: Processing packet 92388 [packets to send 63, broken 62] [08:10:46]ProducePacketName [08:10:46]name=ofd_packets/00092388 [08:10:46]OFD Sender: To server: pG, [08:10:46]CommunicateWithHost lk.salyk.kg:30040 [08:10:46]ConnectInit lk.salyk.kg [08:10:46]line 92371 [08:10:46]written 0, free lines is 4095 [08:10:46]Connected sock=10 [08:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4A 01 00 00 E8 04 42 01 2C 63 5A 03 01 00 03 00 36 01 1E 04 01 00 02 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 27 00 00 00 F4 03 04 00 05 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 D3 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 68 01 00 35 04 06 00 0E B0 52 FB D5 36 71 2A B2 BC 98 97 56 81 [08:10:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A5 81 47 00 83 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E4 68 01 00 F4 03 04 00 82 ED E4 66 B6 04 01 00 00 78 3B 8B 67 6E 90 2B 8D [08:10:46]CommunicateWithHost err = 0 [08:10:46]CheckOFDResponse [08:10:46]1017 (14) - 77093643461234 [08:10:46]1041 (16) - 0000000000874692 [08:10:46]1040 (4) - 92388 [08:10:46]1012 (4) - 14.09.2024 01:57 [08:10:46]1206 (1) - 0 [08:10:46]OFD Sender: Remove packet 92388 [08:10:46]ProducePacketName [08:10:46]name=ofd_packets/00092388 [08:10:46]NVStorageDeleteData [08:10:46]Write to MH i2c: 01 00 00 F4 0B FF [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: 01 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: 01 07 00 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: 01 07 00 F4 0B 00 00 00 00 00 F8 0C 0A [08:10:46]RasterBufferAndPrint [08:10:46]line [08:10:46]line [08:10:46]line [08:10:46]line [08:10:46]line [08:10:46]written 0, free lines is 3337 [08:10:46]MH_Cut [08:10:46]Write to MH i2c: D1 01 00 FB 0B 01 D8 [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: D1 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: D1 01 00 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: D1 01 00 FB 0B 00 D7 [08:10:46]Write to MH i2c: 01 00 00 FC 0B 07 [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]OFD Sender: No OFD packet to send [08:10:47]*** Cut start [08:10:47]*** Purtial cut [08:10:47]*** Stage 1: CUTSNS_PIN = 1 [08:10:49]Read from MH i2c: 01 [08:10:49]MH_I2C_Read... [08:10:49]*** Stop cut motor [08:10:49]*** Cut end [08:10:49]Read from MH i2c: 01 07 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 07 00 FC 0B 00 00 00 00 00 FF 0F 1C [08:10:49]process_action close_receipt done [08:10:49]requested_data is exist [08:10:49]produce_requested_data [08:10:49]requested_item fm.sn is exist - process it [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 11 00 00 [08:10:49]Write to MH i2c: E2 08 00 FD 0B 80 11 00 00 00 00 00 00 82 [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 17 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 17 00 FD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D9 [08:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:10:49]wFMCommunicate OK [08:10:49]requested_item fd.num is exist - process it [08:10:49]SAM_PROTO_GetFieldsCounters [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 13 00 00 [08:10:49]Write to MH i2c: E2 08 00 FE 0B 80 13 00 00 00 00 00 00 85 [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 62 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 62 00 FE 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E4 68 01 00 0E 04 04 00 FA 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 61 [08:10:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E4 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:49]wFMCommunicate OK [08:10:49]SAM_PROTO_GetFieldsCounters done [08:10:49]requested_item shift.num is exist - process it [08:10:49]requested_item shift.opened is exist - process it [08:10:49]req_shift_opened [08:10:49]FM_GetShiftState [08:10:49]SAM_PROTO_GetShiftState [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 13 01 00 [08:10:49]Write to MH i2c: E2 08 00 FF 0B 80 13 01 00 00 00 00 00 87 [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0E 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0E 00 FF 0B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 21 [08:10:49]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:10:49]wFMCommunicate OK [08:10:49]SAM_PROTO_GetShiftState done [08:10:49]FM_GetShiftState done [08:10:49]req_shift_opened done [08:10:49]requested_item shift.open_date is exist - process it [08:10:49]req_shift_open_date [08:10:49]req_shift_open_date done [08:10:49]produce_requested_data done [08:10:49]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92388,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:10:49]process_action_free close_receipt [08:10:49]json_value_free [08:10:49]json_value_free done [08:10:49]process_json_proto returns [08:10:49]Send response to host [08:10:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92388,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:10:49]free response buf [08:10:49]execute_script done [08:10:49]execute_script returns [08:10:49]free content buf [08:10:49]Sock 8.Close socket [08:10:49]Sock 8.Thread stoped [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:02]accept exits with 9 [08:11:02]New connection [08:11:02]New thread 3066801508 created [08:11:02]Thread 3066658148 joined [08:11:02]Waiting for new connection... [08:11:02] Sock 9.Parse request [08:11:02]Sock 9.Check first char [08:11:02]Sock 9.First char is OK [08:11:02]request: POST /json_proto HTTP/1.0 [08:11:02]Method: POST [08:11:02]URL: /json_proto [08:11:02]Method is POST - this is cgi request [08:11:02]url: /json_proto [08:11:02]query_string will be loaded in cgi processing [08:11:02]execute_cgi json_proto POST (null) [08:11:02]execute_cgi path=json_proto method=POST [08:11:02]POST find Content-Length [08:11:02]Host: 172.17.57.71:8080 [08:11:02]Content-Length: 1704 [08:11:02]Content-Type: application/json [08:11:02] [08:11:02]POST finish read [08:11:02]Found Content-Length = 1704 [08:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92367, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127288", "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 }]} ,{ "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 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 390.00 } ], "post_footer_text": "92367" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:02]execute_script... [08:11:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 92367, "base_FM": "0000000000874692", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127288", "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 }]} ,{ "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 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 390.00 } ], "post_footer_text": "92367" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:02]POST & json_proto [08:11:02]process_json_proto [08:11:02]json parsed OK: [08:11:02]protocol is kg_v1.0 [08:11:02]action value=close_receipt [08:11:02]process_action close_receipt [08:11:02]cmd_close_receipt [08:11:02]MH_GetDate [08:11:02]Write to MH i2c: F0 00 00 00 0C FB [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: F0 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: F0 09 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: F0 09 00 00 0C 00 18 45 E5 66 33 3A A4 66 23 [08:11:02]GetLastDocTimeStamp 1726301445 [08:11:02]current date 1726301464 [08:11:02]FM_GetShiftState [08:11:02]SAM_PROTO_GetShiftState [08:11:02]wFMCommunicate request_size=4 [08:11:02]MH_SAM_APDU [08:11:02]CAPDU: 80 13 01 00 [08:11:02]Write to MH i2c: E2 08 00 01 0C 80 13 01 00 00 00 00 00 8A [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:02]Read from MH i2c: E2 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 0E 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 0E 00 01 0C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 24 [08:11:02]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:11:02]wFMCommunicate OK [08:11:02]SAM_PROTO_GetShiftState done [08:11:02]FM_GetShiftState done [08:11:02]opened in 1726273389 [08:11:02]opened+sec_in_day 1726359789 [08:11:02]quantity*price = 13000 [08:11:02]sum+1 = 13001 [08:11:02]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.40 Наличными: 0.00 Безнал.: 390.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 40 14.09.2024 08:11 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФД осн.: 92367 ФМ осн.: 0000000000874692 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92389 ФПД: 145870938682697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081104&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92389&fm=145870938682697&tin=02508201610067®Number=0000000000091423&sum=39000 92367 [08:11:04]StoreToDocumentArchive [08:11:04]shift 506 fd 92389 [08:11:04]save to /storage/0506/doc_00092389 [08:11:04]save last doc name /storage/0506/doc_00092389 to /storage/kkm_last_doc_name [08:11:04]save OK [08:11:04]Clear old archive folders... [08:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=648 [08:11:04]tlvbuf is 00FFC420 [08:11:04]SAM_PROTO_ClearQueue [08:11:04]wFMCommunicate request_size=4 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 09 00 00 [08:11:04]Write to MH i2c: E2 08 00 10 0C 80 09 00 00 00 00 00 00 8E [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [08:11:04]RAPDU: 90 00 [08:11:04]wFMCommunicate OK [08:11:04]SAM_PROTO_ClearQueue done [08:11:04]KKMCreateOFDPacket [08:11:04]OFDProtocolAddRootSTLVToBuf [08:11:04]FM_MakeSignedData [08:11:04]FM_MakeSignedData [08:11:04]SAM_PROTO_SignData [08:11:04]wFMCommunicate request_size=4 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 0D 01 02 [08:11:04]Write to MH i2c: E2 08 00 11 0C 80 0D 01 02 00 00 00 00 96 [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [08:11:04]RAPDU: 90 00 [08:11:04]wFMCommunicate OK [08:11:04]wFMCommunicate request_size=255 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 0D 02 02 FA 03 00 88 02 1E 04 01 00 02 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 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 23 04 69 00 8A 04 0D 00 32 30 30 [08:11:04]Write to MH i2c: E2 02 01 12 0C 80 0D 02 02 FA 00 03 00 88 02 1E 04 01 00 02 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 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 23 04 69 00 8A 04 0D 00 32 30 30 00 00 C2 [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:04]Read from MH i2c: E2 03 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [08:11:04]RAPDU: 90 00 [08:11:04]wFMCommunicate OK [08:11:04]wFMCommunicate request_size=255 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 0D 02 02 FA 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 [08:11:04]Write to MH i2c: E2 02 01 13 0C 80 0D 02 02 FA 00 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 73 [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [08:11:04]RAPDU: 90 00 [08:11:04]wFMCommunicate OK [08:11:04]wFMCommunicate request_size=157 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 0D 02 02 98 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 18 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 CF 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 68 01 00 35 04 06 00 84 AB 39 7B B5 49 [08:11:04]Write to MH i2c: E2 A0 00 14 0C 80 0D 02 02 98 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 18 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 CF 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 68 01 00 35 04 06 00 84 AB 39 7B B5 49 00 00 EC [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:05]Read from MH i2c: E2 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 03 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [08:11:05]RAPDU: 90 00 [08:11:05]wFMCommunicate OK [08:11:05]wFMCommunicate request_size=4 [08:11:05]MH_SAM_APDU [08:11:05]CAPDU: 80 0D 03 02 [08:11:05]Write to MH i2c: E2 08 00 15 0C 80 0D 03 02 00 00 00 00 9C [08:11:05]Write i2c OK [08:11:05]MH_I2C_Read... [08:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:05]Read from MH i2c: E2 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 0B 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 0B 00 15 0C 00 95 13 07 C9 35 EC B4 C1 90 00 AB [08:11:05]RAPDU: 95 13 07 C9 35 EC B4 C1 90 00 [08:11:05]wFMCommunicate OK [08:11:05]SAM_PROTO_SignData done [08:11:05]FM_MakeSignedData done [08:11:05]CreateOFDProtocolMessage [08:11:05]wFMCommunicate request_size=4 [08:11:05]MH_SAM_APDU [08:11:05]CAPDU: 80 11 00 00 [08:11:05]Write to MH i2c: E2 08 00 16 0C 80 11 00 00 00 00 00 00 9C [08:11:05]Write i2c OK [08:11:05]MH_I2C_Read... [08:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:05]Read from MH i2c: E2 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 17 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: E2 17 00 16 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F3 [08:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:11:05]wFMCommunicate OK [08:11:05]CreateOFDProtocolMessage done [08:11:05]OFDSenderStorePacket 92389 [08:11:05]StoreOFDPacket docnum=92389 [08:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9C 02 00 00 DC 49 94 02 9C B0 5A 03 01 00 03 00 88 02 1E 04 01 00 02 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 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 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 18 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 CF 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 68 01 00 35 04 06 00 84 AB 39 7B B5 49 95 13 07 C9 35 EC B4 C1 [08:11:05]CheckFolder [08:11:05]dirname=/storage/ofd_packets [08:11:05]CheckFolder done [08:11:05]ProducePacketName [08:11:05]name=ofd_packets/00092389 [08:11:05]NVStorageSaveData ofd_packets/00092389 [08:11:05]File name is /storage/ofd_packets/00092389 [08:11:05]Write 698 bytes [08:11:05]NVStorageSaveData done [08:11:05]OFDSenderStorePacket done [08:11:05]KKMCreateOFDPacket done [08:11:05]NVStorageSaveData kkm_last_timestamp [08:11:05]File name is /storage/kkm_last_timestamp [08:11:05]Write 4 bytes [08:11:05]NVStorageSaveData done [08:11:05]ExternCall_PrintAddStr [08:11:05]wPrintStart [08:11:05]Write to MH i2c: 01 00 00 17 0C 23 [08:11:05]Write i2c OK [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: 01 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: 01 07 00 [08:11:05]MH_I2C_Read... [08:11:05]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 FF 0F 38 [08:11:05]RasterBufferAndPrint [08:11:05]line Счет N : (3)127288 [08:11:05]line ИНН: 02508201610067 [08:11:05]line Контрольно-Кассовый Чек [08:11:05]line ВОЗВРАТ ПРОДАЖИ [08:11:05]line Товар: 2000036230011 [08:11:05]line Кофе Латте XL(GABB TRADE) [08:11:05]line 1.000 * 130.00 [08:11:05]line = 130.00 [08:11:05]line НДС 12% НСП 1% [08:11:05]line > о реализуемом товаре [08:11:05]line Товар: 2000032760017 [08:11:05]line Слойка DC треугольная мясо110г [08:11:05]line 2.000 * 65.00 [08:11:05]line = 130.00 [08:11:05]line НДС 12% НСП 1% [08:11:05]line > о реализуемом товаре [08:11:05]line Товар: 2000032780025 [08:11:05]line Сосиска в тесте DC 110г [08:11:05]line 1.000 * 60.00 [08:11:05]line = 60.00 [08:11:05]line НДС 12% НСП 1% [08:11:05]line > о реализуемом товаре [08:11:05]line Товар: 4607065000868 [08:11:05]line Шок M&M`s с шоколадом 45г [08:11:05]line 1.000 * 70.00 [08:11:05]line = 70.00 [08:11:05]line НДС 12% НСП 1% [08:11:05]line > о реализуемом товаре [08:11:05]line ИТОГО: 390.00 [08:11:05]line НСП 1% : 3.45 [08:11:05]line НДС 12% : 41.40 [08:11:05]line Наличными: 0.00 [08:11:05]line Безнал.: 390.00 [08:11:05]line Место: АЗС № 5 "Партнер Нефть" [08:11:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:11:05]line СНО: Общий режим [08:11:05]line Чек 40 14.09.2024 08:11 [08:11:05]line Смена: 506 ФФД: 1.0 [08:11:05]line ЗНМ: 03000000022 [08:11:05]line РНМ: 0000000000091423 [08:11:05]line Версия ККМ: 001 [08:11:05]line ФД осн.: 92367 [08:11:05]line ФМ осн.: 0000000000874692 [08:11:05]line Платежная система: О! деньги [08:11:05]line ФМ: 0000000000874692 [08:11:05]line ФД: 92389 [08:11:05]line ФПД: 145870938682697 [08:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081104&type=2&operation_type=1&fn_number=0000000000874692&fd_number=92389&fm=145870938682697&tin=02508201610067®Number=0000000000091423&sum=39000 [08:11:05]line 92367 [08:11:05]OFD Sender: Processing packet 92389 [packets to send 63, broken 62] [08:11:05]ProducePacketName [08:11:05]name=ofd_packets/00092389 [08:11:05]written 0, free lines is 4095 [08:11:05]OFD Sender: To server: pG, [08:11:05]CommunicateWithHost lk.salyk.kg:30040 [08:11:05]ConnectInit lk.salyk.kg [08:11:05]Connected sock=10 [08:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9C 02 00 00 DC 49 94 02 9C B0 5A 03 01 00 03 00 88 02 1E 04 01 00 02 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 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 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 18 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 27 04 04 00 CF 68 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 68 01 00 35 04 06 00 84 AB 39 7B B5 49 95 13 07 C9 35 EC B4 C1 [08:11:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 55 E7 47 00 B5 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E5 68 01 00 F4 03 04 00 95 ED E4 66 B6 04 01 00 00 2F 53 5D 15 C5 EB 4B 09 [08:11:05]CommunicateWithHost err = 0 [08:11:05]CheckOFDResponse [08:11:05]1017 (14) - 77093643461234 [08:11:05]1041 (16) - 0000000000874692 [08:11:05]1040 (4) - 92389 [08:11:05]1012 (4) - 14.09.2024 01:57 [08:11:05]1206 (1) - 0 [08:11:05]OFD Sender: Remove packet 92389 [08:11:05]ProducePacketName [08:11:05]name=ofd_packets/00092389 [08:11:05]NVStorageDeleteData [08:11:06]Write to MH i2c: 01 00 00 56 0C 62 [08:11:06]Write i2c OK [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: 01 [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: 01 07 00 [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: 01 07 00 56 0C 00 00 00 00 00 0D 0C 82 [08:11:06]RasterBufferAndPrint [08:11:06]line [08:11:06]line [08:11:06]line [08:11:06]line [08:11:06]line [08:11:06]written 0, free lines is 3103 [08:11:06]MH_Cut [08:11:06]Write to MH i2c: D1 01 00 5D 0C 01 3B [08:11:06]Write i2c OK [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: D1 [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: D1 01 00 [08:11:06]MH_I2C_Read... [08:11:06]Read from MH i2c: D1 01 00 5D 0C 00 3A [08:11:06]Write to MH i2c: 01 00 00 5E 0C 6A [08:11:06]Write i2c OK [08:11:06]MH_I2C_Read... [08:11:06]OFD Sender: No OFD packet to send [08:11:07]*** Cut start [08:11:07]*** Purtial cut [08:11:07]*** Stage 1: CUTSNS_PIN = 1 [08:11:09]Read from MH i2c: 01 [08:11:09]MH_I2C_Read... [08:11:09]*** Stop cut motor [08:11:09]*** Cut end [08:11:09]Read from MH i2c: 01 07 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: 01 07 00 5E 0C 00 00 00 00 00 FF 0F 7F [08:11:09]process_action close_receipt done [08:11:09]requested_data is exist [08:11:09]produce_requested_data [08:11:09]requested_item fm.sn is exist - process it [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 11 00 00 [08:11:09]Write to MH i2c: E2 08 00 5F 0C 80 11 00 00 00 00 00 00 E5 [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 17 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 17 00 5F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3C [08:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:11:09]wFMCommunicate OK [08:11:09]requested_item fd.num is exist - process it [08:11:09]SAM_PROTO_GetFieldsCounters [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 13 00 00 [08:11:09]Write to MH i2c: E2 08 00 60 0C 80 13 00 00 00 00 00 00 E8 [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 62 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 62 00 60 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E5 68 01 00 0E 04 04 00 FA 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 C8 [08:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E5 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:09]wFMCommunicate OK [08:11:09]SAM_PROTO_GetFieldsCounters done [08:11:09]requested_item shift.num is exist - process it [08:11:09]requested_item shift.opened is exist - process it [08:11:09]req_shift_opened [08:11:09]FM_GetShiftState [08:11:09]SAM_PROTO_GetShiftState [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 13 01 00 [08:11:09]Write to MH i2c: E2 08 00 61 0C 80 13 01 00 00 00 00 00 EA [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 0E 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 0E 00 61 0C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 84 [08:11:09]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:11:09]wFMCommunicate OK [08:11:09]SAM_PROTO_GetShiftState done [08:11:09]FM_GetShiftState done [08:11:09]req_shift_opened done [08:11:09]requested_item shift.open_date is exist - process it [08:11:09]req_shift_open_date [08:11:09]req_shift_open_date done [08:11:09]produce_requested_data done [08:11:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92389,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:11:09]process_action_free close_receipt [08:11:09]json_value_free [08:11:09]json_value_free done [08:11:09]process_json_proto returns [08:11:09]Send response to host [08:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92389,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:11:09]free response buf [08:11:09]execute_script done [08:11:09]execute_script returns [08:11:09]free content buf [08:11:09]Sock 9.Close socket [08:11:09]Sock 9.Thread stoped [08:11:11]accept exits with 8 [08:11:11]New connection [08:11:11]New thread 3066658148 created [08:11:11]Thread 3066801508 joined [08:11:11]Waiting for new connection... [08:11:11] Sock 8.Parse request [08:11:11]Sock 8.Check first char [08:11:11]Sock 8.First char is OK [08:11:11]request: POST /json_proto HTTP/1.0 [08:11:11]Method: POST [08:11:11]URL: /json_proto [08:11:11]Method is POST - this is cgi request [08:11:11]url: /json_proto [08:11:11]query_string will be loaded in cgi processing [08:11:11]execute_cgi json_proto POST (null) [08:11:11]execute_cgi path=json_proto method=POST [08:11:11]POST find Content-Length [08:11:11]Host: 172.17.57.71:8080 [08:11:11]Content-Length: 1234 [08:11:11]Content-Type: application/json [08:11:11] [08:11:11]POST finish read [08:11:11]Found Content-Length = 1234 [08:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127303", "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" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:11]execute_script... [08:11: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)127303", "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" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:11]POST & json_proto [08:11:11]process_json_proto [08:11:11]json parsed OK: [08:11:11]protocol is kg_v1.0 [08:11:11]action value=close_receipt [08:11:11]process_action close_receipt [08:11:11]cmd_close_receipt [08:11:11]MH_GetDate [08:11:11]Write to MH i2c: F0 00 00 62 0C 5D [08:11:11]Write i2c OK [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: F0 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: F0 09 00 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: F0 09 00 62 0C 00 21 45 E5 66 33 3A A4 66 8E [08:11:11]GetLastDocTimeStamp 1726301464 [08:11:11]current date 1726301473 [08:11:11]FM_GetShiftState [08:11:11]SAM_PROTO_GetShiftState [08:11:11]wFMCommunicate request_size=4 [08:11:11]MH_SAM_APDU [08:11:11]CAPDU: 80 13 01 00 [08:11:11]Write to MH i2c: E2 08 00 63 0C 80 13 01 00 00 00 00 00 EC [08:11:11]Write i2c OK [08:11:11]MH_I2C_Read... [08:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:11]Read from MH i2c: E2 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: E2 0E 00 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: E2 0E 00 63 0C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 86 [08:11:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:11:11]wFMCommunicate OK [08:11:11]SAM_PROTO_GetShiftState done [08:11:11]FM_GetShiftState done [08:11:11]opened in 1726273389 [08:11:11]opened+sec_in_day 1726359789 [08:11:11]quantity*price = 13000 [08:11:11]sum+1 = 13001 [08:11:11]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 41 14.09.2024 08:11 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92390 ФПД: 11659569239455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081113&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92390&fm=11659569239455&tin=02508201610067®Number=0000000000091423&sum=26000 0 [08:11:12]StoreToDocumentArchive [08:11:12]shift 506 fd 92390 [08:11:12]save to /storage/0506/doc_00092390 [08:11:12]save last doc name /storage/0506/doc_00092390 to /storage/kkm_last_doc_name [08:11:12]save OK [08:11:12]Clear old archive folders... [08:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=514 [08:11:12]tlvbuf is 01014DD0 [08:11:12]SAM_PROTO_ClearQueue [08:11:12]wFMCommunicate request_size=4 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 09 00 00 [08:11:12]Write to MH i2c: E2 08 00 70 0C 80 09 00 00 00 00 00 00 EE [08:11:12]Write i2c OK [08:11:12]MH_I2C_Read... [08:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:12]Read from MH i2c: E2 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 03 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [08:11:12]RAPDU: 90 00 [08:11:12]wFMCommunicate OK [08:11:12]SAM_PROTO_ClearQueue done [08:11:12]KKMCreateOFDPacket [08:11:12]OFDProtocolAddRootSTLVToBuf [08:11:12]FM_MakeSignedData [08:11:12]FM_MakeSignedData [08:11:12]SAM_PROTO_SignData [08:11:12]wFMCommunicate request_size=4 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 0D 01 02 [08:11:12]Write to MH i2c: E2 08 00 71 0C 80 0D 01 02 00 00 00 00 F6 [08:11:12]Write i2c OK [08:11:12]MH_I2C_Read... [08:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:12]Read from MH i2c: E2 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 03 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [08:11:12]RAPDU: 90 00 [08:11:12]wFMCommunicate OK [08:11:12]wFMCommunicate request_size=255 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 0D 02 02 FA 03 00 02 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 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 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 [08:11:13]Write to MH i2c: E2 02 01 72 0C 80 0D 02 02 FA 00 03 00 02 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 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 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 00 00 52 [08:11:13]Write i2c OK [08:11:13]MH_I2C_Read... [08:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:13]Read from MH i2c: E2 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 03 00 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [08:11:13]RAPDU: 90 00 [08:11:13]wFMCommunicate OK [08:11:13]wFMCommunicate request_size=255 [08:11:13]MH_SAM_APDU [08:11:13]CAPDU: 80 0D 02 02 FA 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 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 29 00 00 00 F4 03 04 00 21 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 [08:11:13]Write to MH i2c: E2 02 01 73 0C 80 0D 02 02 FA 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 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 29 00 00 00 F4 03 04 00 21 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 00 00 9A [08:11:13]Write i2c OK [08:11:13]MH_I2C_Read... [08:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:13]Read from MH i2c: E2 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 03 00 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [08:11:13]RAPDU: 90 00 [08:11:13]wFMCommunicate OK [08:11:13]wFMCommunicate request_size=23 [08:11:13]MH_SAM_APDU [08:11:13]CAPDU: 80 0D 02 02 12 10 04 04 00 E6 68 01 00 35 04 06 00 0A 9A B4 7B 95 9F [08:11:13]Write to MH i2c: E2 1A 00 74 0C 80 0D 02 02 12 00 10 04 04 00 E6 68 01 00 35 04 06 00 0A 9A B4 7B 95 9F 00 00 CB [08:11:13]Write i2c OK [08:11:13]MH_I2C_Read... [08:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:13]Read from MH i2c: E2 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 03 00 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [08:11:13]RAPDU: 90 00 [08:11:13]wFMCommunicate OK [08:11:13]wFMCommunicate request_size=4 [08:11:13]MH_SAM_APDU [08:11:13]CAPDU: 80 0D 03 02 [08:11:13]Write to MH i2c: E2 08 00 75 0C 80 0D 03 02 00 00 00 00 FC [08:11:13]Write i2c OK [08:11:13]MH_I2C_Read... [08:11:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:13]Read from MH i2c: E2 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 0B 00 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 0B 00 75 0C 00 7E 70 FB 61 85 81 4C 8A 90 00 23 [08:11:13]RAPDU: 7E 70 FB 61 85 81 4C 8A 90 00 [08:11:14]wFMCommunicate OK [08:11:14]SAM_PROTO_SignData done [08:11:14]FM_MakeSignedData done [08:11:14]CreateOFDProtocolMessage [08:11:14]wFMCommunicate request_size=4 [08:11:14]MH_SAM_APDU [08:11:14]CAPDU: 80 11 00 00 [08:11:14]Write to MH i2c: E2 08 00 76 0C 80 11 00 00 00 00 00 00 FC [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:14]Read from MH i2c: E2 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: E2 17 00 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: E2 17 00 76 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 53 [08:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:11:14]wFMCommunicate OK [08:11:14]CreateOFDProtocolMessage done [08:11:14]OFDSenderStorePacket 92390 [08:11:14]StoreOFDPacket docnum=92390 [08:11:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 16 02 00 00 EB 7A 0E 02 B3 89 5A 03 01 00 03 00 02 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 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 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 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 29 00 00 00 F4 03 04 00 21 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E6 68 01 00 35 04 06 00 0A 9A B4 7B 95 9F 7E 70 FB 61 85 81 4C 8A [08:11:14]CheckFolder [08:11:14]dirname=/storage/ofd_packets [08:11:14]CheckFolder done [08:11:14]ProducePacketName [08:11:14]name=ofd_packets/00092390 [08:11:14]NVStorageSaveData ofd_packets/00092390 [08:11:14]File name is /storage/ofd_packets/00092390 [08:11:14]Write 564 bytes [08:11:14]NVStorageSaveData done [08:11:14]OFDSenderStorePacket done [08:11:14]KKMCreateOFDPacket done [08:11:14]NVStorageSaveData kkm_last_timestamp [08:11:14]File name is /storage/kkm_last_timestamp [08:11:14]Write 4 bytes [08:11:14]NVStorageSaveData done [08:11:14]ExternCall_PrintAddStr [08:11:14]wPrintStart [08:11:14]Write to MH i2c: 01 00 00 77 0C 83 [08:11:14]OFD Sender: Processing packet 92390 [packets to send 63, broken 62] [08:11:14]ProducePacketName [08:11:14]name=ofd_packets/00092390 [08:11:14]OFD Sender: To server: pG, [08:11:14]CommunicateWithHost lk.salyk.kg:30040 [08:11:14]ConnectInit lk.salyk.kg [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: 01 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: 01 07 00 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: 01 07 00 77 0C 00 00 00 00 00 FF 0F 98 [08:11:14]RasterBufferAndPrint [08:11:14]line Счет N : (3)127303 [08:11:14]line ИНН: 02508201610067 [08:11:14]line Контрольно-Кассовый Чек [08:11:14]line ПРОДАЖА [08:11:14]line Товар: 2000032760017 [08:11:14]line Слойка DC треугольная мясо110г [08:11:14]line 2.000 * 65.00 [08:11:14]line = 130.00 [08:11:14]line НДС 12% НСП 1% [08:11:14]line > о реализуемом товаре [08:11:14]line Товар: 2000032780025 [08:11:14]line Сосиска в тесте DC 110г [08:11:14]line 1.000 * 60.00 [08:11:14]line = 60.00 [08:11:14]line НДС 12% НСП 1% [08:11:14]line > о реализуемом товаре [08:11:14]line Товар: 4607065000868 [08:11:14]line Шок M&M`s с шоколадом 45г [08:11:14]line 1.000 * 70.00 [08:11:14]line = 70.00 [08:11:14]line НДС 12% НСП 1% [08:11:14]line > о реализуемом товаре [08:11:14]line ИТОГО: 260.00 [08:11:14]line НСП 1% : 2.30 [08:11:14]line НДС 12% : 27.60 [08:11:14]line Наличными: 260.00 [08:11:14]line Безнал.: 0.00 [08:11:14]line Место: АЗС № 5 "Партнер Нефть" [08:11:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:11:14]line СНО: Общий режим [08:11:14]line Чек 41 14.09.2024 08:11 [08:11:14]line Смена: 506 ФФД: 1.0 [08:11:14]line ЗНМ: 03000000022 [08:11:14]line РНМ: 0000000000091423 [08:11:14]line Версия ККМ: 001 [08:11:14]line ФМ: 0000000000874692 [08:11:14]line ФД: 92390 [08:11:14]line ФПД: 11659569239455 [08:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081113&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92390&fm=11659569239455&tin=02508201610067®Number=0000000000091423&sum=26000 [08:11:14]line 0 [08:11:14]written 0, free lines is 4095 [08:11:14]Connected sock=10 [08:11:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 16 02 00 00 EB 7A 0E 02 B3 89 5A 03 01 00 03 00 02 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 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 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 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 29 00 00 00 F4 03 04 00 21 45 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E6 68 01 00 35 04 06 00 0A 9A B4 7B 95 9F 7E 70 FB 61 85 81 4C 8A [08:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D5 FD 47 00 2E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E6 68 01 00 F4 03 04 00 9E ED E4 66 B6 04 01 00 00 0E 47 93 C8 78 75 A7 41 [08:11:14]CommunicateWithHost err = 0 [08:11:14]CheckOFDResponse [08:11:14]1017 (14) - 77093643461234 [08:11:14]1041 (16) - 0000000000874692 [08:11:14]1040 (4) - 92390 [08:11:14]1012 (4) - 14.09.2024 01:57 [08:11:14]1206 (1) - 0 [08:11:14]OFD Sender: Remove packet 92390 [08:11:14]ProducePacketName [08:11:14]name=ofd_packets/00092390 [08:11:14]NVStorageDeleteData [08:11:14]Write to MH i2c: 01 00 00 AC 0C B8 [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: 01 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: 01 07 00 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 8F 0C 5A [08:11:14]RasterBufferAndPrint [08:11:14]line [08:11:14]line [08:11:14]line [08:11:14]line [08:11:14]line [08:11:14]written 0, free lines is 3241 [08:11:14]MH_Cut [08:11:14]Write to MH i2c: D1 01 00 B3 0C 01 91 [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: D1 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: D1 01 00 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: D1 01 00 B3 0C 00 90 [08:11:14]Write to MH i2c: 01 00 00 B4 0C C0 [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:15]OFD Sender: No OFD packet to send [08:11:15]*** Cut start [08:11:15]*** Purtial cut [08:11:15]*** Stage 1: CUTSNS_PIN = 1 [08:11:17]Read from MH i2c: 01 [08:11:17]MH_I2C_Read... [08:11:17]*** Stop cut motor [08:11:17]*** Cut end [08:11:17]Read from MH i2c: 01 07 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 FF 0F D5 [08:11:17]process_action close_receipt done [08:11:17]requested_data is exist [08:11:17]produce_requested_data [08:11:17]requested_item fm.sn is exist - process it [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 11 00 00 [08:11:17]Write to MH i2c: E2 08 00 B5 0C 80 11 00 00 00 00 00 00 3B [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 17 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 17 00 B5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 92 [08:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:11:17]wFMCommunicate OK [08:11:17]requested_item fd.num is exist - process it [08:11:17]SAM_PROTO_GetFieldsCounters [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 13 00 00 [08:11:17]Write to MH i2c: E2 08 00 B6 0C 80 13 00 00 00 00 00 00 3E [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 62 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 62 00 B6 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E6 68 01 00 0E 04 04 00 FA 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 22 [08:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E6 68 01 00 0E 04 04 00 FA 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:11:17]wFMCommunicate OK [08:11:17]SAM_PROTO_GetFieldsCounters done [08:11:17]requested_item shift.num is exist - process it [08:11:17]requested_item shift.opened is exist - process it [08:11:17]req_shift_opened [08:11:17]FM_GetShiftState [08:11:17]SAM_PROTO_GetShiftState [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 13 01 00 [08:11:17]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 0E 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DA [08:11:17]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:11:17]wFMCommunicate OK [08:11:17]SAM_PROTO_GetShiftState done [08:11:17]FM_GetShiftState done [08:11:17]req_shift_opened done [08:11:17]requested_item shift.open_date is exist - process it [08:11:17]req_shift_open_date [08:11:17]req_shift_open_date done [08:11:17]produce_requested_data done [08:11:17]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92390,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:11:17]process_action_free close_receipt [08:11:17]json_value_free [08:11:17]json_value_free done [08:11:17]process_json_proto returns [08:11:17]Send response to host [08:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92390,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:11:17]free response buf [08:11:17]execute_script done [08:11:17]execute_script returns [08:11:17]free content buf [08:11:17]Sock 8.Close socket [08:11:17]Sock 8.Thread stoped [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:43]accept exits with 9 [08:17:43]New connection [08:17:43]New thread 3066801508 created [08:17:43]Thread 3066658148 joined [08:17:43]Waiting for new connection... [08:17:43] Sock 9.Parse request [08:17:43]Sock 9.Check first char [08:17:43]Sock 9.First char is OK [08:17:43]request: POST /json_proto HTTP/1.0 [08:17:43]Method: POST [08:17:43]URL: /json_proto [08:17:43]Method is POST - this is cgi request [08:17:43]url: /json_proto [08:17:43]query_string will be loaded in cgi processing [08:17:43]execute_cgi json_proto POST (null) [08:17:43]execute_cgi path=json_proto method=POST [08:17:43]POST find Content-Length [08:17:43]Host: 172.17.57.71:8080 [08:17:43]Content-Length: 642 [08:17:43]Content-Type: application/json [08:17:43] [08:17:43]POST finish read [08:17:43]Found Content-Length = 642 [08:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127304", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.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" ] } } [08:17:43]execute_script... [08:17:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127304", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.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" ] } } [08:17:43]POST & json_proto [08:17:43]process_json_proto [08:17:43]json parsed OK: [08:17:43]protocol is kg_v1.0 [08:17:43]action value=close_receipt [08:17:43]process_action close_receipt [08:17:43]cmd_close_receipt [08:17:43]MH_GetDate [08:17:43]Write to MH i2c: F0 00 00 B8 0C B3 [08:17:43]Write i2c OK [08:17:43]MH_I2C_Read... [08:17:43]Read from MH i2c: F0 [08:17:43]MH_I2C_Read... [08:17:43]Read from MH i2c: F0 09 00 [08:17:43]MH_I2C_Read... [08:17:43]Read from MH i2c: F0 09 00 B8 0C 00 A9 46 E5 66 33 3A A4 66 6D [08:17:43]GetLastDocTimeStamp 1726301473 [08:17:43]current date 1726301865 [08:17:43]FM_GetShiftState [08:17:43]SAM_PROTO_GetShiftState [08:17:43]wFMCommunicate request_size=4 [08:17:43]MH_SAM_APDU [08:17:43]CAPDU: 80 13 01 00 [08:17:43]Write to MH i2c: E2 08 00 B9 0C 80 13 01 00 00 00 00 00 42 [08:17:43]Write i2c OK [08:17:43]MH_I2C_Read... [08:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:43]Read from MH i2c: E2 [08:17:43]MH_I2C_Read... [08:17:43]Read from MH i2c: E2 0E 00 [08:17:43]MH_I2C_Read... [08:17:43]Read from MH i2c: E2 0E 00 B9 0C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DC [08:17:43]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:17:43]wFMCommunicate OK [08:17:43]SAM_PROTO_GetShiftState done [08:17:43]FM_GetShiftState done [08:17:43]opened in 1726273389 [08:17:43]opened+sec_in_day 1726359789 [08:17:43]quantity*price = 19500 [08:17:43]sum+1 = 19501 [08:17:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 42 14.09.2024 08:17 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92391 ФПД: 101167953758933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081745&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92391&fm=101167953758933&tin=02508201610067®Number=0000000000091423&sum=19500 0 [08:17:44]StoreToDocumentArchive [08:17:44]shift 506 fd 92391 [08:17:44]save to /storage/0506/doc_00092391 [08:17:44]save last doc name /storage/0506/doc_00092391 to /storage/kkm_last_doc_name [08:17:44]save OK [08:17:44]Clear old archive folders... [08:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=270 [08:17:44]tlvbuf is 00FC6060 [08:17:44]SAM_PROTO_ClearQueue [08:17:44]wFMCommunicate request_size=4 [08:17:44]MH_SAM_APDU [08:17:44]CAPDU: 80 09 00 00 [08:17:44]Write to MH i2c: E2 08 00 C6 0C 80 09 00 00 00 00 00 00 44 [08:17:44]Write i2c OK [08:17:44]MH_I2C_Read... [08:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:44]Read from MH i2c: E2 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 03 00 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [08:17:44]RAPDU: 90 00 [08:17:44]wFMCommunicate OK [08:17:44]SAM_PROTO_ClearQueue done [08:17:44]KKMCreateOFDPacket [08:17:44]OFDProtocolAddRootSTLVToBuf [08:17:44]FM_MakeSignedData [08:17:44]FM_MakeSignedData [08:17:44]SAM_PROTO_SignData [08:17:44]wFMCommunicate request_size=4 [08:17:44]MH_SAM_APDU [08:17:44]CAPDU: 80 0D 01 02 [08:17:44]Write to MH i2c: E2 08 00 C7 0C 80 0D 01 02 00 00 00 00 4C [08:17:44]Write i2c OK [08:17:44]MH_I2C_Read... [08:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:44]Read from MH i2c: E2 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 03 00 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [08:17:44]RAPDU: 90 00 [08:17:44]wFMCommunicate OK [08:17:44]wFMCommunicate request_size=255 [08:17:44]MH_SAM_APDU [08:17:44]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 2A 00 00 00 F4 03 04 00 A9 46 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [08:17:44]Write to MH i2c: E2 02 01 C8 0C 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 2A 00 00 00 F4 03 04 00 A9 46 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 B2 [08:17:44]Write i2c OK [08:17:44]MH_I2C_Read... [08:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:44]Read from MH i2c: E2 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 03 00 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [08:17:44]RAPDU: 90 00 [08:17:44]wFMCommunicate OK [08:17:44]wFMCommunicate request_size=29 [08:17:44]MH_SAM_APDU [08:17:44]CAPDU: 80 0D 02 02 18 38 37 34 36 39 32 10 04 04 00 E7 68 01 00 35 04 06 00 5C 02 FF F2 4A D5 [08:17:44]Write to MH i2c: E2 20 00 C9 0C 80 0D 02 02 18 00 38 37 34 36 39 32 10 04 04 00 E7 68 01 00 35 04 06 00 5C 02 FF F2 4A D5 00 00 D8 [08:17:44]Write i2c OK [08:17:44]MH_I2C_Read... [08:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:44]Read from MH i2c: E2 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 03 00 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [08:17:44]RAPDU: 90 00 [08:17:44]wFMCommunicate OK [08:17:44]wFMCommunicate request_size=4 [08:17:44]MH_SAM_APDU [08:17:44]CAPDU: 80 0D 03 02 [08:17:44]Write to MH i2c: E2 08 00 CA 0C 80 0D 03 02 00 00 00 00 51 [08:17:44]Write i2c OK [08:17:44]MH_I2C_Read... [08:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:44]Read from MH i2c: E2 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 0B 00 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 0B 00 CA 0C 00 88 2B CE 4F 31 61 4E 71 90 00 73 [08:17:44]RAPDU: 88 2B CE 4F 31 61 4E 71 90 00 [08:17:44]wFMCommunicate OK [08:17:44]SAM_PROTO_SignData done [08:17:44]FM_MakeSignedData done [08:17:44]CreateOFDProtocolMessage [08:17:44]wFMCommunicate request_size=4 [08:17:44]MH_SAM_APDU [08:17:44]CAPDU: 80 11 00 00 [08:17:44]Write to MH i2c: E2 08 00 CB 0C 80 11 00 00 00 00 00 00 51 [08:17:44]Write i2c OK [08:17:44]MH_I2C_Read... [08:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:44]Read from MH i2c: E2 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 17 00 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: E2 17 00 CB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [08:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:17:44]wFMCommunicate OK [08:17:44]CreateOFDProtocolMessage done [08:17:44]OFDSenderStorePacket 92391 [08:17:44]StoreOFDPacket docnum=92391 [08:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 01 00 00 AF 3F 1A 01 19 69 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 2A 00 00 00 F4 03 04 00 A9 46 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E7 68 01 00 35 04 06 00 5C 02 FF F2 4A D5 88 2B CE 4F 31 61 4E 71 [08:17:44]CheckFolder [08:17:44]dirname=/storage/ofd_packets [08:17:44]CheckFolder done [08:17:44]ProducePacketName [08:17:44]name=ofd_packets/00092391 [08:17:44]NVStorageSaveData ofd_packets/00092391 [08:17:44]File name is /storage/ofd_packets/00092391 [08:17:44]Write 320 bytes [08:17:44]NVStorageSaveData done [08:17:44]OFDSenderStorePacket done [08:17:44]KKMCreateOFDPacket done [08:17:44]NVStorageSaveData kkm_last_timestamp [08:17:44]File name is /storage/kkm_last_timestamp [08:17:44]Write 4 bytes [08:17:44]NVStorageSaveData done [08:17:44]ExternCall_PrintAddStr [08:17:44]wPrintStart [08:17:44]Write to MH i2c: 01 00 00 CC 0C D8 [08:17:44]Write i2c OK [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: 01 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: 01 07 00 [08:17:44]MH_I2C_Read... [08:17:44]Read from MH i2c: 01 07 00 CC 0C 00 00 00 00 00 FF 0F ED [08:17:44]RasterBufferAndPrint [08:17:44]line Счет N : (3)127304 [08:17:44]line ИНН: 02508201610067 [08:17:44]line Контрольно-Кассовый Чек [08:17:44]line ПРОДАЖА [08:17:44]line Товар: 58411125749 [08:17:44]line Те самые макарон [08:17:44]line 1.000 * 195.00 [08:17:44]line = 195.00 [08:17:44]line НДС 12% НСП 1% [08:17:44]line > о реализуемом товаре [08:17:44]line ИТОГО: 195.00 [08:17:44]line НСП 1% : 1.73 [08:17:44]line НДС 12% : 20.71 [08:17:44]line Наличными: 195.00 [08:17:44]line Безнал.: 0.00 [08:17:44]line Место: АЗС № 5 "Партнер Нефть" [08:17:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:17:44]line СНО: Общий режим [08:17:44]line Чек 42 14.09.2024 08:17 [08:17:44]line Смена: 506 ФФД: 1.0 [08:17:44]line ЗНМ: 03000000022 [08:17:44]line РНМ: 0000000000091423 [08:17:44]line Версия ККМ: 001 [08:17:44]line ФМ: 0000000000874692 [08:17:44]line ФД: 92391 [08:17:44]line ФПД: 101167953758933 [08:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T081745&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92391&fm=101167953758933&tin=02508201610067®Number=0000000000091423&sum=19500 [08:17:45]line 0 [08:17:45]OFD Sender: Processing packet 92391 [packets to send 63, broken 62] [08:17:45]ProducePacketName [08:17:45]name=ofd_packets/00092391 [08:17:45]OFD Sender: To server: pG, [08:17:45]CommunicateWithHost lk.salyk.kg:30040 [08:17:45]ConnectInit lk.salyk.kg [08:17:45]written 0, free lines is 4095 [08:17:45]Connected sock=10 [08:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 01 00 00 AF 3F 1A 01 19 69 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 2A 00 00 00 F4 03 04 00 A9 46 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E7 68 01 00 35 04 06 00 5C 02 FF F2 4A D5 88 2B CE 4F 31 61 4E 71 [08:17:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3A E7 47 00 3D 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E7 68 01 00 F4 03 04 00 25 EF E4 66 B6 04 01 00 00 CF C2 3D EE 18 4C 26 D2 [08:17:45]CommunicateWithHost err = 0 [08:17:45]CheckOFDResponse [08:17:45]1017 (14) - 77093643461234 [08:17:45]1041 (16) - 0000000000874692 [08:17:45]1040 (4) - 92391 [08:17:45]1012 (4) - 14.09.2024 02:04 [08:17:45]1206 (1) - 0 [08:17:45]OFD Sender: Remove packet 92391 [08:17:45]ProducePacketName [08:17:45]name=ofd_packets/00092391 [08:17:45]NVStorageDeleteData [08:17:45]Write to MH i2c: 01 00 00 F4 0C 00 [08:17:45]Write i2c OK [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: 01 [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: 01 07 00 [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 26 0D 3A [08:17:45]RasterBufferAndPrint [08:17:45]line [08:17:45]line [08:17:45]line [08:17:45]line [08:17:45]line [08:17:45]written 0, free lines is 3373 [08:17:45]MH_Cut [08:17:45]Write to MH i2c: D1 01 00 FB 0C 01 D9 [08:17:45]Write i2c OK [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: D1 [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: D1 01 00 [08:17:45]MH_I2C_Read... [08:17:45]Read from MH i2c: D1 01 00 FB 0C 00 D8 [08:17:45]Write to MH i2c: 01 00 00 FC 0C 08 [08:17:45]Write i2c OK [08:17:45]MH_I2C_Read... [08:17:45]OFD Sender: No OFD packet to send [08:17:46]*** Cut start [08:17:46]*** Purtial cut [08:17:46]*** Stage 1: CUTSNS_PIN = 1 [08:17:48]Read from MH i2c: 01 [08:17:48]MH_I2C_Read... [08:17:48]*** Stop cut motor [08:17:48]*** Cut end [08:17:48]Read from MH i2c: 01 07 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 07 00 FC 0C 00 00 00 00 00 FF 0F 1D [08:17:48]process_action close_receipt done [08:17:48]requested_data is exist [08:17:48]produce_requested_data [08:17:48]requested_item fm.sn is exist - process it [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 11 00 00 [08:17:48]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 17 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DA [08:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:17:48]wFMCommunicate OK [08:17:48]requested_item fd.num is exist - process it [08:17:48]SAM_PROTO_GetFieldsCounters [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 13 00 00 [08:17:48]Write to MH i2c: E2 08 00 FE 0C 80 13 00 00 00 00 00 00 86 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 62 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 62 00 FE 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E7 68 01 00 0E 04 04 00 FA 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 6E [08:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E7 68 01 00 0E 04 04 00 FA 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:17:48]wFMCommunicate OK [08:17:48]SAM_PROTO_GetFieldsCounters done [08:17:48]requested_item shift.num is exist - process it [08:17:48]requested_item shift.opened is exist - process it [08:17:48]req_shift_opened [08:17:48]FM_GetShiftState [08:17:48]SAM_PROTO_GetShiftState [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 13 01 00 [08:17:48]Write to MH i2c: E2 08 00 FF 0C 80 13 01 00 00 00 00 00 88 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 0E 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 0E 00 FF 0C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 22 [08:17:48]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:17:48]wFMCommunicate OK [08:17:48]SAM_PROTO_GetShiftState done [08:17:48]FM_GetShiftState done [08:17:48]req_shift_opened done [08:17:48]requested_item shift.open_date is exist - process it [08:17:48]req_shift_open_date [08:17:48]req_shift_open_date done [08:17:48]produce_requested_data done [08:17:48]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92391,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:17:48]process_action_free close_receipt [08:17:48]json_value_free [08:17:48]json_value_free done [08:17:48]process_json_proto returns [08:17:48]Send response to host [08:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92391,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:17:48]free response buf [08:17:48]execute_script done [08:17:48]execute_script returns [08:17:48]free content buf [08:17:48]Sock 9.Close socket [08:17:48]Sock 9.Thread stoped [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:25]accept exits with 8 [08:22:25]New connection [08:22:25]New thread 3066658148 created [08:22:25]Thread 3066801508 joined [08:22:25]Waiting for new connection... [08:22:25] Sock 8.Parse request [08:22:25]Sock 8.Check first char [08:22:25]Sock 8.First char is OK [08:22:25]request: POST /json_proto HTTP/1.0 [08:22:25]Method: POST [08:22:25]URL: /json_proto [08:22:25]Method is POST - this is cgi request [08:22:25]url: /json_proto [08:22:25]query_string will be loaded in cgi processing [08:22:25]execute_cgi json_proto POST (null) [08:22:25]execute_cgi path=json_proto method=POST [08:22:25]POST find Content-Length [08:22:25]Host: 172.17.57.71:8080 [08:22:25]Content-Length: 682 [08:22:25]Content-Type: application/json [08:22:25] [08:22:25]POST finish read [08:22:25]Found Content-Length = 682 [08:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:25]execute_script... [08:22:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:25]POST & json_proto [08:22:25]process_json_proto [08:22:25]json parsed OK: [08:22:25]protocol is kg_v1.0 [08:22:25]action value=close_receipt [08:22:25]process_action close_receipt [08:22:25]cmd_close_receipt [08:22:25]MH_GetDate [08:22:25]Write to MH i2c: F0 00 00 00 0D FC [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: F0 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: F0 09 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: F0 09 00 00 0D 00 C3 47 E5 66 33 3A A4 66 D1 [08:22:25]GetLastDocTimeStamp 1726301865 [08:22:25]current date 1726302147 [08:22:25]FM_GetShiftState [08:22:25]SAM_PROTO_GetShiftState [08:22:25]wFMCommunicate request_size=4 [08:22:25]MH_SAM_APDU [08:22:25]CAPDU: 80 13 01 00 [08:22:25]Write to MH i2c: E2 08 00 01 0D 80 13 01 00 00 00 00 00 8B [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:25]Read from MH i2c: E2 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 0E 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 0E 00 01 0D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 25 [08:22:25]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:22:25]wFMCommunicate OK [08:22:25]SAM_PROTO_GetShiftState done [08:22:25]FM_GetShiftState done [08:22:25]opened in 1726273389 [08:22:25]opened+sec_in_day 1726359789 [08:22:25]quantity*price = 200047 [08:22:25]sum+1 = 200048 [08:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 43 14.09.2024 08:22 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92392 ФПД: 219682188067922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T082227&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92392&fm=219682188067922&tin=02508201610067®Number=0000000000091423&sum=200000 [08:22:26]StoreToDocumentArchive [08:22:26]shift 506 fd 92392 [08:22:26]save to /storage/0506/doc_00092392 [08:22:26]save last doc name /storage/0506/doc_00092392 to /storage/kkm_last_doc_name [08:22:26]save OK [08:22:26]Clear old archive folders... [08:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:26]tlvbuf is 00FC5CF0 [08:22:26]SAM_PROTO_ClearQueue [08:22:26]wFMCommunicate request_size=4 [08:22:26]MH_SAM_APDU [08:22:26]CAPDU: 80 09 00 00 [08:22:26]Write to MH i2c: E2 08 00 0E 0D 80 09 00 00 00 00 00 00 8D [08:22:26]Write i2c OK [08:22:26]MH_I2C_Read... [08:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:26]Read from MH i2c: E2 [08:22:26]MH_I2C_Read... [08:22:26]Read from MH i2c: E2 03 00 [08:22:26]MH_I2C_Read... [08:22:26]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [08:22:26]RAPDU: 90 00 [08:22:26]wFMCommunicate OK [08:22:26]SAM_PROTO_ClearQueue done [08:22:26]KKMCreateOFDPacket [08:22:26]OFDProtocolAddRootSTLVToBuf [08:22:26]FM_MakeSignedData [08:22:26]FM_MakeSignedData [08:22:26]SAM_PROTO_SignData [08:22:26]wFMCommunicate request_size=4 [08:22:26]MH_SAM_APDU [08:22:26]CAPDU: 80 0D 01 02 [08:22:26]Write to MH i2c: E2 08 00 0F 0D 80 0D 01 02 00 00 00 00 95 [08:22:26]Write i2c OK [08:22:26]MH_I2C_Read... [08:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:26]Read from MH i2c: E2 [08:22:26]MH_I2C_Read... [08:22:26]Read from MH i2c: E2 03 00 [08:22:26]MH_I2C_Read... [08:22:26]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [08:22:26]RAPDU: 90 00 [08:22:26]wFMCommunicate OK [08:22:26]wFMCommunicate request_size=255 [08:22:26]MH_SAM_APDU [08:22:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C3 47 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 68 01 00 35 04 06 00 C7 [08:22:26]Write to MH i2c: E2 02 01 10 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C3 47 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 68 01 00 35 04 06 00 C7 00 00 B2 [08:22:26]Write i2c OK [08:22:26]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 03 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [08:22:27]RAPDU: 90 00 [08:22:27]wFMCommunicate OK [08:22:27]wFMCommunicate request_size=10 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 0D 02 02 05 CC BE C8 84 52 [08:22:27]Write to MH i2c: E2 0D 00 11 0D 80 0D 02 02 05 00 CC BE C8 84 52 00 00 CA [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 03 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [08:22:27]RAPDU: 90 00 [08:22:27]wFMCommunicate OK [08:22:27]wFMCommunicate request_size=4 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 0D 03 02 [08:22:27]Write to MH i2c: E2 08 00 12 0D 80 0D 03 02 00 00 00 00 9A [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 0B 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 0B 00 12 0D 00 22 4C E9 97 03 D5 AA 38 90 00 43 [08:22:27]RAPDU: 22 4C E9 97 03 D5 AA 38 90 00 [08:22:27]wFMCommunicate OK [08:22:27]SAM_PROTO_SignData done [08:22:27]FM_MakeSignedData done [08:22:27]CreateOFDProtocolMessage [08:22:27]wFMCommunicate request_size=4 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 11 00 00 [08:22:27]Write to MH i2c: E2 08 00 13 0D 80 11 00 00 00 00 00 00 9A [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 17 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 17 00 13 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F1 [08:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:22:27]wFMCommunicate OK [08:22:27]CreateOFDProtocolMessage done [08:22:27]OFDSenderStorePacket 92392 [08:22:27]StoreOFDPacket docnum=92392 [08:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 A2 A8 07 01 60 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C3 47 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 68 01 00 35 04 06 00 C7 CC BE C8 84 52 22 4C E9 97 03 D5 AA 38 [08:22:27]CheckFolder [08:22:27]dirname=/storage/ofd_packets [08:22:27]CheckFolder done [08:22:27]ProducePacketName [08:22:27]name=ofd_packets/00092392 [08:22:27]NVStorageSaveData ofd_packets/00092392 [08:22:27]File name is /storage/ofd_packets/00092392 [08:22:27]Write 301 bytes [08:22:27]NVStorageSaveData done [08:22:27]OFDSenderStorePacket done [08:22:27]KKMCreateOFDPacket done [08:22:27]NVStorageSaveData kkm_last_timestamp [08:22:27]File name is /storage/kkm_last_timestamp [08:22:27]Write 4 bytes [08:22:27]NVStorageSaveData done [08:22:27]ExternCall_PrintAddStr [08:22:27]wPrintStart [08:22:27]Write to MH i2c: 01 00 00 14 0D 21 [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: 01 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: 01 07 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: 01 07 00 14 0D 00 00 00 00 00 FF 0F 36 [08:22:27]RasterBufferAndPrint [08:22:27]line Счет N : (1)647321 [08:22:27]line ИНН: 02508201610067 [08:22:27]line Контрольно-Кассовый Чек [08:22:27]line ПРОДАЖА [08:22:27]line ТРК (МРК, ГНК) : 22 [08:22:27]line Товар: 2710124500 [08:22:27]line Аи-95-К-5 [08:22:27]line 27.070 * 73.90 [08:22:27]line = 2000.47 [08:22:27]line НДС 12% НСП 1% [08:22:27]line > о реализуемом товаре [08:22:27]line ОКРУГЛЕНИЕ: -0.47 [08:22:27]line ИТОГО: 2000.00 [08:22:27]line Внесено: 2000.00 [08:22:27]line СДАЧА: 0.00 [08:22:27]line НСП 1% : 17.70 [08:22:27]line НДС 12% : 212.44 [08:22:27]line Наличными: 2000.00 [08:22:27]line Безнал.: 0.00 [08:22:27]line Место: АЗС № 5 "Партнер Нефть" [08:22:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:22:27]line СНО: Общий режим [08:22:27]line Чек 43 14.09.2024 08:22 [08:22:27]line Смена: 506 ФФД: 1.0 [08:22:27]line ЗНМ: 03000000022 [08:22:27]line РНМ: 0000000000091423 [08:22:27]line Версия ККМ: 001 [08:22:27]line ФМ: 0000000000874692 [08:22:27]line ФД: 92392 [08:22:27]line ФПД: 219682188067922 [08:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T082227&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92392&fm=219682188067922&tin=02508201610067®Number=0000000000091423&sum=200000 [08:22:27]OFD Sender: Processing packet 92392 [packets to send 63, broken 62] [08:22:27]ProducePacketName [08:22:27]name=ofd_packets/00092392 [08:22:27]OFD Sender: To server: pG, [08:22:27]CommunicateWithHost lk.salyk.kg:30040 [08:22:27]ConnectInit lk.salyk.kg [08:22:27]written 0, free lines is 4095 [08:22:27]Connected sock=10 [08:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 A2 A8 07 01 60 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C3 47 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 68 01 00 35 04 06 00 C7 CC BE C8 84 52 22 4C E9 97 03 D5 AA 38 [08:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6D 02 47 00 74 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E8 68 01 00 F4 03 04 00 3F F0 E4 66 B6 04 01 00 00 47 D5 EF 9E FA 04 0E C7 [08:22:27]CommunicateWithHost err = 0 [08:22:27]CheckOFDResponse [08:22:27]1017 (14) - 77093643461234 [08:22:27]1041 (16) - 0000000000874692 [08:22:27]1040 (4) - 92392 [08:22:27]1012 (4) - 14.09.2024 02:09 [08:22:27]1206 (1) - 0 [08:22:27]OFD Sender: Remove packet 92392 [08:22:27]ProducePacketName [08:22:27]name=ofd_packets/00092392 [08:22:27]NVStorageDeleteData [08:22:28]Write to MH i2c: 01 00 00 3F 0D 4C [08:22:28]Write i2c OK [08:22:28]MH_I2C_Read... [08:22:28]Read from MH i2c: 01 [08:22:28]MH_I2C_Read... [08:22:28]Read from MH i2c: 01 07 00 [08:22:28]MH_I2C_Read... [08:22:28]Read from MH i2c: 01 07 00 3F 0D 00 00 00 00 00 06 0D 66 [08:22:28]RasterBufferAndPrint [08:22:28]line [08:22:28]line [08:22:28]line [08:22:28]line [08:22:28]line [08:22:28]written 0, free lines is 3340 [08:22:28]MH_Cut [08:22:28]Write to MH i2c: D1 01 00 46 0D 01 25 [08:22:28]Write i2c OK [08:22:28]MH_I2C_Read... [08:22:28]Read from MH i2c: D1 [08:22:28]MH_I2C_Read... [08:22:28]Read from MH i2c: D1 01 00 [08:22:28]MH_I2C_Read... [08:22:28]Read from MH i2c: D1 01 00 46 0D 00 24 [08:22:28]Write to MH i2c: 01 00 00 47 0D 54 [08:22:28]Write i2c OK [08:22:28]MH_I2C_Read... [08:22:28]OFD Sender: No OFD packet to send [08:22:28]*** Cut start [08:22:28]*** Purtial cut [08:22:28]*** Stage 1: CUTSNS_PIN = 1 [08:22:30]Read from MH i2c: 01 [08:22:30]MH_I2C_Read... [08:22:30]*** Stop cut motor [08:22:30]*** Cut end [08:22:30]Read from MH i2c: 01 07 00 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: 01 07 00 47 0D 00 00 00 00 00 FF 0F 69 [08:22:30]process_action close_receipt done [08:22:30]requested_data is exist [08:22:30]produce_requested_data [08:22:30]requested_item fm.sn is exist - process it [08:22:30]wFMCommunicate request_size=4 [08:22:30]MH_SAM_APDU [08:22:30]CAPDU: 80 11 00 00 [08:22:30]Write to MH i2c: E2 08 00 48 0D 80 11 00 00 00 00 00 00 CF [08:22:30]Write i2c OK [08:22:30]MH_I2C_Read... [08:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:30]Read from MH i2c: E2 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: E2 17 00 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: E2 17 00 48 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 26 [08:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:22:30]wFMCommunicate OK [08:22:30]requested_item fd.num is exist - process it [08:22:30]SAM_PROTO_GetFieldsCounters [08:22:30]wFMCommunicate request_size=4 [08:22:30]MH_SAM_APDU [08:22:30]CAPDU: 80 13 00 00 [08:22:30]Write to MH i2c: E2 08 00 49 0D 80 13 00 00 00 00 00 00 D2 [08:22:30]Write i2c OK [08:22:30]MH_I2C_Read... [08:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:30]Read from MH i2c: E2 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: E2 62 00 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: E2 62 00 49 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E8 68 01 00 0E 04 04 00 FA 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 BE [08:22:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E8 68 01 00 0E 04 04 00 FA 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:22:30]wFMCommunicate OK [08:22:30]SAM_PROTO_GetFieldsCounters done [08:22:30]requested_item shift.num is exist - process it [08:22:30]requested_item shift.opened is exist - process it [08:22:30]req_shift_opened [08:22:30]FM_GetShiftState [08:22:30]SAM_PROTO_GetShiftState [08:22:30]wFMCommunicate request_size=4 [08:22:30]MH_SAM_APDU [08:22:30]CAPDU: 80 13 01 00 [08:22:30]Write to MH i2c: E2 08 00 4A 0D 80 13 01 00 00 00 00 00 D4 [08:22:30]Write i2c OK [08:22:30]MH_I2C_Read... [08:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:30]Read from MH i2c: E2 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: E2 0E 00 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: E2 0E 00 4A 0D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 6E [08:22:30]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:22:30]wFMCommunicate OK [08:22:30]SAM_PROTO_GetShiftState done [08:22:30]FM_GetShiftState done [08:22:30]req_shift_opened done [08:22:30]requested_item shift.open_date is exist - process it [08:22:30]req_shift_open_date [08:22:30]req_shift_open_date done [08:22:30]produce_requested_data done [08:22:30]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92392,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:22:30]process_action_free close_receipt [08:22:30]json_value_free [08:22:30]json_value_free done [08:22:30]process_json_proto returns [08:22:30]Send response to host [08:22:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92392,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:22:30]free response buf [08:22:30]execute_script done [08:22:30]execute_script returns [08:22:30]free content buf [08:22:30]Sock 8.Close socket [08:22:30]Sock 8.Thread stoped [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26: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:41]accept exits with 9 [08:27:41]New connection [08:27:41]New thread 3066801508 created [08:27:41]Thread 3066658148 joined [08:27:41]Waiting for new connection... [08:27:41] Sock 9.Parse request [08:27:41]Sock 9.Check first char [08:27:41]Sock 9.First char is OK [08:27:41]request: POST /json_proto HTTP/1.0 [08:27:41]Method: POST [08:27:41]URL: /json_proto [08:27:41]Method is POST - this is cgi request [08:27:41]url: /json_proto [08:27:41]query_string will be loaded in cgi processing [08:27:41]execute_cgi json_proto POST (null) [08:27:41]execute_cgi path=json_proto method=POST [08:27:41]POST find Content-Length [08:27:41]Host: 172.17.57.71:8080 [08:27:41]Content-Length: 1223 [08:27:41]Content-Type: application/json [08:27:41] [08:27:41]POST finish read [08:27:41]Found Content-Length = 1223 [08:27:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127305", "tax_sys" : 0, "items" : [ { "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:41]execute_script... [08:27: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)127305", "tax_sys" : 0, "items" : [ { "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:41]POST & json_proto [08:27:41]process_json_proto [08:27:41]json parsed OK: [08:27:41]protocol is kg_v1.0 [08:27:41]action value=close_receipt [08:27:41]process_action close_receipt [08:27:41]cmd_close_receipt [08:27:41]MH_GetDate [08:27:41]Write to MH i2c: F0 00 00 4B 0D 47 [08:27:41]Write i2c OK [08:27:41]MH_I2C_Read... [08:27:41]Read from MH i2c: F0 [08:27:41]MH_I2C_Read... [08:27:41]Read from MH i2c: F0 09 00 [08:27:41]MH_I2C_Read... [08:27:41]Read from MH i2c: F0 09 00 4B 0D 00 00 49 E5 66 33 3A A4 66 5B [08:27:41]GetLastDocTimeStamp 1726302147 [08:27:41]current date 1726302464 [08:27:41]FM_GetShiftState [08:27:41]SAM_PROTO_GetShiftState [08:27:41]wFMCommunicate request_size=4 [08:27:41]MH_SAM_APDU [08:27:41]CAPDU: 80 13 01 00 [08:27:41]Write to MH i2c: E2 08 00 4C 0D 80 13 01 00 00 00 00 00 D6 [08:27:41]Write i2c OK [08:27:41]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 0E 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 0E 00 4C 0D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 70 [08:27:42]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:27:42]wFMCommunicate OK [08:27:42]SAM_PROTO_GetShiftState done [08:27:42]FM_GetShiftState done [08:27:42]opened in 1726273389 [08:27:42]opened+sec_in_day 1726359789 [08:27:42]quantity*price = 19000 [08:27:42]sum+1 = 19001 [08:27:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338000183 Сок Фруто НЯНЯ яблоко освет 0,2л 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 0.00 Безнал.: 320.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 44 14.09.2024 08:27 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92393 ФПД: 101929875107923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T082744&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92393&fm=101929875107923&tin=02508201610067®Number=0000000000091423&sum=32000 0 [08:27:43]StoreToDocumentArchive [08:27:43]shift 506 fd 92393 [08:27:43]save to /storage/0506/doc_00092393 [08:27:43]save last doc name /storage/0506/doc_00092393 to /storage/kkm_last_doc_name [08:27:43]save OK [08:27:43]Clear old archive folders... [08:27:43]ProcessDocumentItem done err = 0, tmpTLVsize=437 [08:27:43]tlvbuf is 00F7A370 [08:27:43]SAM_PROTO_ClearQueue [08:27:43]wFMCommunicate request_size=4 [08:27:43]MH_SAM_APDU [08:27:43]CAPDU: 80 09 00 00 [08:27:43]Write to MH i2c: E2 08 00 59 0D 80 09 00 00 00 00 00 00 D8 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:43]Read from MH i2c: E2 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 03 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [08:27:43]RAPDU: 90 00 [08:27:43]wFMCommunicate OK [08:27:43]SAM_PROTO_ClearQueue done [08:27:43]KKMCreateOFDPacket [08:27:43]OFDProtocolAddRootSTLVToBuf [08:27:43]FM_MakeSignedData [08:27:43]FM_MakeSignedData [08:27:43]SAM_PROTO_SignData [08:27:43]wFMCommunicate request_size=4 [08:27:43]MH_SAM_APDU [08:27:43]CAPDU: 80 0D 01 02 [08:27:43]Write to MH i2c: E2 08 00 5A 0D 80 0D 01 02 00 00 00 00 E0 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:43]Read from MH i2c: E2 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 03 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [08:27:43]RAPDU: 90 00 [08:27:43]wFMCommunicate OK [08:27:43]wFMCommunicate request_size=255 [08:27:43]MH_SAM_APDU [08:27:43]CAPDU: 80 0D 02 02 FA 03 00 B5 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 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 [08:27:43]Write to MH i2c: E2 02 01 5B 0D 80 0D 02 02 FA 00 03 00 B5 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 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 00 D9 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:43]Read from MH i2c: E2 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 03 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [08:27:43]RAPDU: 90 00 [08:27:43]wFMCommunicate OK [08:27:43]wFMCommunicate request_size=196 [08:27:43]MH_SAM_APDU [08:27:43]CAPDU: 80 0D 02 02 BF 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 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 00 49 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 68 01 00 35 04 06 00 5C B4 65 FF 70 53 [08:27:43]Write to MH i2c: E2 C7 00 5C 0D 80 0D 02 02 BF 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 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 00 49 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 68 01 00 35 04 06 00 5C B4 65 FF 70 53 00 00 19 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]OFD Sender: No OFD packet to send [08:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:43]Read from MH i2c: E2 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 03 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 03 00 5C 0D 00 90 00 DD [08:27:43]RAPDU: 90 00 [08:27:43]wFMCommunicate OK [08:27:43]wFMCommunicate request_size=4 [08:27:43]MH_SAM_APDU [08:27:43]CAPDU: 80 0D 03 02 [08:27:43]Write to MH i2c: E2 08 00 5D 0D 80 0D 03 02 00 00 00 00 E5 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:43]Read from MH i2c: E2 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 0B 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 0B 00 5D 0D 00 42 53 02 FC 2B F0 0B C8 90 00 67 [08:27:43]RAPDU: 42 53 02 FC 2B F0 0B C8 90 00 [08:27:43]wFMCommunicate OK [08:27:43]SAM_PROTO_SignData done [08:27:43]FM_MakeSignedData done [08:27:43]CreateOFDProtocolMessage [08:27:43]wFMCommunicate request_size=4 [08:27:43]MH_SAM_APDU [08:27:43]CAPDU: 80 11 00 00 [08:27:43]Write to MH i2c: E2 08 00 5E 0D 80 11 00 00 00 00 00 00 E5 [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:43]Read from MH i2c: E2 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 17 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 17 00 5E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3C [08:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:27:43]wFMCommunicate OK [08:27:43]CreateOFDProtocolMessage done [08:27:43]OFDSenderStorePacket 92393 [08:27:43]StoreOFDPacket docnum=92393 [08:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C9 01 00 00 65 27 C1 01 07 E3 5A 03 01 00 03 00 B5 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 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 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 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 00 49 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 68 01 00 35 04 06 00 5C B4 65 FF 70 53 42 53 02 FC 2B F0 0B C8 [08:27:44]CheckFolder [08:27:44]dirname=/storage/ofd_packets [08:27:44]CheckFolder done [08:27:44]ProducePacketName [08:27:44]name=ofd_packets/00092393 [08:27:44]NVStorageSaveData ofd_packets/00092393 [08:27:44]File name is /storage/ofd_packets/00092393 [08:27:44]Write 487 bytes [08:27:44]NVStorageSaveData done [08:27:44]OFDSenderStorePacket done [08:27:44]KKMCreateOFDPacket done [08:27:44]NVStorageSaveData kkm_last_timestamp [08:27:44]File name is /storage/kkm_last_timestamp [08:27:44]Write 4 bytes [08:27:44]NVStorageSaveData done [08:27:44]ExternCall_PrintAddStr [08:27:44]wPrintStart [08:27:44]Write to MH i2c: 01 00 00 5F 0D 6C [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 07 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 FF 0F 81 [08:27:44]RasterBufferAndPrint [08:27:44]line Счет N : (3)127305 [08:27:44]line ИНН: 02508201610067 [08:27:44]line Контрольно-Кассовый Чек [08:27:44]line ПРОДАЖА [08:27:44]line Товар: 4870235681383 [08:27:44]line ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г [08:27:44]line 2.000 * 95.00 [08:27:44]line = 190.00 [08:27:44]line НДС 12% НСП 1% [08:27:44]line > о реализуемом товаре [08:27:44]line Товар: 4600338000183 [08:27:44]line Сок Фруто НЯНЯ яблоко освет 0,2л [08:27:44]line 2.000 * 65.00 [08:27:44]line = 130.00 [08:27:44]line НДС 12% НСП 1% [08:27:44]line > о реализуемом товаре [08:27:44]line ИТОГО: 320.00 [08:27:44]line НСП 1% : 2.83 [08:27:44]line НДС 12% : 33.98 [08:27:44]line Наличными: 0.00 [08:27:44]line Безнал.: 320.00 [08:27:44]line Место: АЗС № 5 "Партнер Нефть" [08:27:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:27:44]line СНО: Общий режим [08:27:44]line Чек 44 14.09.2024 08:27 [08:27:44]line Смена: 506 ФФД: 1.0 [08:27:44]line ЗНМ: 03000000022 [08:27:44]line РНМ: 0000000000091423 [08:27:44]line Версия ККМ: 001 [08:27:44]line Платежная система: О! деньги [08:27:44]line ФМ: 0000000000874692 [08:27:44]line ФД: 92393 [08:27:44]line ФПД: 101929875107923 [08:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T082744&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92393&fm=101929875107923&tin=02508201610067®Number=0000000000091423&sum=32000 [08:27:44]line 0 [08:27:44]written 0, free lines is 4095 [08:27:44]OFD Sender: Processing packet 92393 [packets to send 63, broken 62] [08:27:44]ProducePacketName [08:27:44]name=ofd_packets/00092393 [08:27:44]OFD Sender: To server: pG, [08:27:44]CommunicateWithHost lk.salyk.kg:30040 [08:27:44]ConnectInit lk.salyk.kg [08:27:44]Connected sock=10 [08:27:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C9 01 00 00 65 27 C1 01 07 E3 5A 03 01 00 03 00 B5 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 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 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 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 00 49 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 68 01 00 35 04 06 00 5C B4 65 FF 70 53 42 53 02 FC 2B F0 0B C8 [08:27:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 ED A5 47 00 AD 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 E9 68 01 00 F4 03 04 00 7C F1 E4 66 B6 04 01 00 00 F3 F6 0E F3 C8 39 4D 55 [08:27:44]CommunicateWithHost err = 0 [08:27:44]CheckOFDResponse [08:27:44]1017 (14) - 77093643461234 [08:27:44]1041 (16) - 0000000000874692 [08:27:44]1040 (4) - 92393 [08:27:44]1012 (4) - 14.09.2024 02:14 [08:27:44]1206 (1) - 0 [08:27:44]OFD Sender: Remove packet 92393 [08:27:44]ProducePacketName [08:27:44]name=ofd_packets/00092393 [08:27:44]NVStorageDeleteData [08:27:44]Write to MH i2c: 01 00 00 91 0D 9E [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 07 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 AF 0C 60 [08:27:44]RasterBufferAndPrint [08:27:44]line [08:27:44]line [08:27:44]line [08:27:44]line [08:27:44]line [08:27:44]written 0, free lines is 3254 [08:27:44]MH_Cut [08:27:44]Write to MH i2c: D1 01 00 98 0D 01 77 [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: D1 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: D1 01 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: D1 01 00 98 0D 00 76 [08:27:44]Write to MH i2c: 01 00 00 99 0D A6 [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:45]OFD Sender: No OFD packet to send [08:27:45]*** Cut start [08:27:45]*** Purtial cut [08:27:45]*** Stage 1: CUTSNS_PIN = 1 [08:27:47]Read from MH i2c: 01 [08:27:47]MH_I2C_Read... [08:27:47]*** Stop cut motor [08:27:47]*** Cut end [08:27:47]Read from MH i2c: 01 07 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: 01 07 00 99 0D 00 00 00 00 00 FF 0F BB [08:27:47]process_action close_receipt done [08:27:47]requested_data is exist [08:27:47]produce_requested_data [08:27:47]requested_item fm.sn is exist - process it [08:27:47]wFMCommunicate request_size=4 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 11 00 00 [08:27:47]Write to MH i2c: E2 08 00 9A 0D 80 11 00 00 00 00 00 00 21 [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:47]Read from MH i2c: E2 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 17 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 17 00 9A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 78 [08:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:27:47]wFMCommunicate OK [08:27:47]requested_item fd.num is exist - process it [08:27:47]SAM_PROTO_GetFieldsCounters [08:27:47]wFMCommunicate request_size=4 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 13 00 00 [08:27:47]Write to MH i2c: E2 08 00 9B 0D 80 13 00 00 00 00 00 00 24 [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:47]Read from MH i2c: E2 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 62 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 62 00 9B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E9 68 01 00 0E 04 04 00 FA 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 14 [08:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 E9 68 01 00 0E 04 04 00 FA 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:27:47]wFMCommunicate OK [08:27:47]SAM_PROTO_GetFieldsCounters done [08:27:47]requested_item shift.num is exist - process it [08:27:47]requested_item shift.opened is exist - process it [08:27:47]req_shift_opened [08:27:47]FM_GetShiftState [08:27:47]SAM_PROTO_GetShiftState [08:27:47]wFMCommunicate request_size=4 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 13 01 00 [08:27:47]Write to MH i2c: E2 08 00 9C 0D 80 13 01 00 00 00 00 00 26 [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:47]Read from MH i2c: E2 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 0E 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 0E 00 9C 0D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C0 [08:27:47]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:27:47]wFMCommunicate OK [08:27:47]SAM_PROTO_GetShiftState done [08:27:47]FM_GetShiftState done [08:27:47]req_shift_opened done [08:27:47]requested_item shift.open_date is exist - process it [08:27:47]req_shift_open_date [08:27:47]req_shift_open_date done [08:27:47]produce_requested_data done [08:27:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92393,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:27:47]process_action_free close_receipt [08:27:47]json_value_free [08:27:47]json_value_free done [08:27:47]process_json_proto returns [08:27:47]Send response to host [08:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92393,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:27:47]free response buf [08:27:47]execute_script done [08:27:47]execute_script returns [08:27:47]free content buf [08:27:47]Sock 9.Close socket [08:27:47]Sock 9.Thread stoped [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]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]accept exits with 8 [08:41:55]New connection [08:41:55]New thread 3066658148 created [08:41:55]Thread 3066801508 joined [08:41:55]Waiting for new connection... [08:41:55] Sock 8.Parse request [08:41:55]Sock 8.Check first char [08:41:55]Sock 8.First char is OK [08:41:55]request: POST /json_proto HTTP/1.0 [08:41:55]Method: POST [08:41:55]URL: /json_proto [08:41:55]Method is POST - this is cgi request [08:41:55]url: /json_proto [08:41:55]query_string will be loaded in cgi processing [08:41:55]execute_cgi json_proto POST (null) [08:41:55]execute_cgi path=json_proto method=POST [08:41:55]POST find Content-Length [08:41:55]Host: 172.17.57.71:8080 [08:41:55]Content-Length: 1451 [08:41:55]Content-Type: application/json [08:41:55] [08:41:55]POST finish read [08:41:55]Found Content-Length = 1451 [08:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127306", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:55]execute_script... [08: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)127306", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:55]POST & json_proto [08:41:55]process_json_proto [08:41:55]json parsed OK: [08:41:55]protocol is kg_v1.0 [08:41:55]action value=close_receipt [08:41:55]process_action close_receipt [08:41:55]cmd_close_receipt [08:41:55]MH_GetDate [08:41:55]Write to MH i2c: F0 00 00 9D 0D 99 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: F0 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: F0 09 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: F0 09 00 9D 0D 00 55 4C E5 66 33 3A A4 66 05 [08:41:55]GetLastDocTimeStamp 1726302464 [08:41:55]current date 1726303317 [08:41:55]FM_GetShiftState [08:41:55]SAM_PROTO_GetShiftState [08:41:55]wFMCommunicate request_size=4 [08:41:55]MH_SAM_APDU [08:41:55]CAPDU: 80 13 01 00 [08:41:55]Write to MH i2c: E2 08 00 9E 0D 80 13 01 00 00 00 00 00 28 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:55]Read from MH i2c: E2 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 0E 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 0E 00 9E 0D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C2 [08:41:55]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:41:55]wFMCommunicate OK [08:41:55]SAM_PROTO_GetShiftState done [08:41:55]FM_GetShiftState done [08:41:55]opened in 1726273389 [08:41:55]opened+sec_in_day 1726359789 [08:41:55]quantity*price = 13000 [08:41:55]sum+1 = 13001 [08:41:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.40 Наличными: 0.00 Безнал.: 390.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 45 14.09.2024 08:41 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92394 ФПД: 44037560074331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T084157&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92394&fm=44037560074331&tin=02508201610067®Number=0000000000091423&sum=39000 0 [08:41:56]StoreToDocumentArchive [08:41:56]shift 506 fd 92394 [08:41:56]save to /storage/0506/doc_00092394 [08:41:56]save last doc name /storage/0506/doc_00092394 to /storage/kkm_last_doc_name [08:41:56]save OK [08:41:56]Clear old archive folders... [08:41:56]ProcessDocumentItem done err = 0, tmpTLVsize=535 [08:41:56]tlvbuf is 00F96C90 [08:41:56]SAM_PROTO_ClearQueue [08:41:56]wFMCommunicate request_size=4 [08:41:56]MH_SAM_APDU [08:41:56]CAPDU: 80 09 00 00 [08:41:56]Write to MH i2c: E2 08 00 AB 0D 80 09 00 00 00 00 00 00 2A [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:56]Read from MH i2c: E2 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 03 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 03 00 AB 0D 00 90 00 2C [08:41:56]RAPDU: 90 00 [08:41:56]wFMCommunicate OK [08:41:56]SAM_PROTO_ClearQueue done [08:41:56]KKMCreateOFDPacket [08:41:56]OFDProtocolAddRootSTLVToBuf [08:41:56]FM_MakeSignedData [08:41:56]FM_MakeSignedData [08:41:56]SAM_PROTO_SignData [08:41:56]wFMCommunicate request_size=4 [08:41:56]MH_SAM_APDU [08:41:56]CAPDU: 80 0D 01 02 [08:41:56]Write to MH i2c: E2 08 00 AC 0D 80 0D 01 02 00 00 00 00 32 [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:56]Read from MH i2c: E2 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 03 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 03 00 AC 0D 00 90 00 2D [08:41:56]RAPDU: 90 00 [08:41:56]wFMCommunicate OK [08:41:56]wFMCommunicate request_size=255 [08:41:56]MH_SAM_APDU [08:41:56]CAPDU: 80 0D 02 02 FA 03 00 17 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 7D 00 8A [08:41:56]Write to MH i2c: E2 02 01 AD 0D 80 0D 02 02 FA 00 03 00 17 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 7D 00 8A 00 00 1B [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:57]Read from MH i2c: E2 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 03 00 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 03 00 AD 0D 00 90 00 2E [08:41:57]RAPDU: 90 00 [08:41:57]wFMCommunicate OK [08:41:57]wFMCommunicate request_size=255 [08:41:57]MH_SAM_APDU [08:41:57]CAPDU: 80 0D 02 02 FA 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 55 4C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 [08:41:57]Write to MH i2c: E2 02 01 AE 0D 80 0D 02 02 FA 00 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 55 4C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 00 00 18 [08:41:57]Write i2c OK [08:41:57]MH_I2C_Read... [08:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:57]Read from MH i2c: E2 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 03 00 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 03 00 AE 0D 00 90 00 2F [08:41:57]RAPDU: 90 00 [08:41:57]wFMCommunicate OK [08:41:57]wFMCommunicate request_size=44 [08:41:57]MH_SAM_APDU [08:41:57]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EA 68 01 00 35 04 06 00 28 0D 4B 20 00 5B [08:41:57]Write to MH i2c: E2 2F 00 AF 0D 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EA 68 01 00 35 04 06 00 28 0D 4B 20 00 5B 00 00 A5 [08:41:57]Write i2c OK [08:41:57]MH_I2C_Read... [08:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:57]Read from MH i2c: E2 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 03 00 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 03 00 AF 0D 00 90 00 30 [08:41:57]RAPDU: 90 00 [08:41:57]wFMCommunicate OK [08:41:57]wFMCommunicate request_size=4 [08:41:57]MH_SAM_APDU [08:41:57]CAPDU: 80 0D 03 02 [08:41:57]Write to MH i2c: E2 08 00 B0 0D 80 0D 03 02 00 00 00 00 38 [08:41:57]Write i2c OK [08:41:57]MH_I2C_Read... [08:41:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:57]Read from MH i2c: E2 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 0B 00 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 0B 00 B0 0D 00 B3 E3 C2 D0 90 FF 58 B6 90 00 FE [08:41:57]RAPDU: B3 E3 C2 D0 90 FF 58 B6 90 00 [08:41:57]wFMCommunicate OK [08:41:57]SAM_PROTO_SignData done [08:41:57]FM_MakeSignedData done [08:41:57]CreateOFDProtocolMessage [08:41:57]wFMCommunicate request_size=4 [08:41:57]MH_SAM_APDU [08:41:57]CAPDU: 80 11 00 00 [08:41:57]Write to MH i2c: E2 08 00 B1 0D 80 11 00 00 00 00 00 00 38 [08:41:57]Write i2c OK [08:41:57]MH_I2C_Read... [08:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:57]Read from MH i2c: E2 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 17 00 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 17 00 B1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8F [08:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:41:57]wFMCommunicate OK [08:41:57]CreateOFDProtocolMessage done [08:41:57]OFDSenderStorePacket 92394 [08:41:57]StoreOFDPacket docnum=92394 [08:41:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 02 00 00 12 FC 23 02 49 A1 5A 03 01 00 03 00 17 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 55 4C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EA 68 01 00 35 04 06 00 28 0D 4B 20 00 5B B3 E3 C2 D0 90 FF 58 B6 [08:41:57]CheckFolder [08:41:57]dirname=/storage/ofd_packets [08:41:57]CheckFolder done [08:41:57]ProducePacketName [08:41:57]name=ofd_packets/00092394 [08:41:57]NVStorageSaveData ofd_packets/00092394 [08:41:57]File name is /storage/ofd_packets/00092394 [08:41:57]Write 585 bytes [08:41:57]NVStorageSaveData done [08:41:57]OFDSenderStorePacket done [08:41:57]KKMCreateOFDPacket done [08:41:57]NVStorageSaveData kkm_last_timestamp [08:41:57]File name is /storage/kkm_last_timestamp [08:41:57]Write 4 bytes [08:41:57]NVStorageSaveData done [08:41:57]ExternCall_PrintAddStr [08:41:57]wPrintStart [08:41:57]Write to MH i2c: 01 00 00 B2 0D BF [08:41:57]Write i2c OK [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: 01 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: 01 07 00 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: 01 07 00 B2 0D 00 00 00 00 00 FF 0F D4 [08:41:57]RasterBufferAndPrint [08:41:57]line Счет N : (3)127306 [08:41:57]line ИНН: 02508201610067 [08:41:57]line Контрольно-Кассовый Чек [08:41:57]line ПРОДАЖА [08:41:57]line Товар: 2000036220012 [08:41:57]line Кофе Капучино XL(GABB TRADE) [08:41:57]line 1.000 * 130.00 [08:41:57]line = 130.00 [08:41:57]line НДС 12% НСП 1% [08:41:57]line > о реализуемом товаре [08:41:57]line Товар: 2000032760017 [08:41:57]line Слойка DC треугольная мясо110г [08:41:57]line 2.000 * 65.00 [08:41:57]line = 130.00 [08:41:57]line НДС 12% НСП 1% [08:41:57]line > о реализуемом товаре [08:41:57]line Товар: 2000032780015 [08:41:57]line Слойка DC треугольная курица 110г [08:41:57]line 2.000 * 65.00 [08:41:57]line = 130.00 [08:41:57]line НДС 12% НСП 1% [08:41:57]line > о реализуемом товаре [08:41:57]line ИТОГО: 390.00 [08:41:57]line НСП 1% : 3.45 [08:41:57]line НДС 12% : 41.40 [08:41:57]line Наличными: 0.00 [08:41:57]line Безнал.: 390.00 [08:41:57]line Место: АЗС № 5 "Партнер Нефть" [08:41:57]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:41:57]line СНО: Общий режим [08:41:57]line Чек 45 14.09.2024 08:41 [08:41:57]line Смена: 506 ФФД: 1.0 [08:41:57]line ЗНМ: 03000000022 [08:41:57]line РНМ: 0000000000091423 [08:41:57]line Версия ККМ: 001 [08:41:57]line Платежная система: О! деньги [08:41:57]line ФМ: 0000000000874692 [08:41:57]line ФД: 92394 [08:41:57]line ФПД: 44037560074331 [08:41:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T084157&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92394&fm=44037560074331&tin=02508201610067®Number=0000000000091423&sum=39000 [08:41:57]line 0 [08:41:57]OFD Sender: Processing packet 92394 [packets to send 63, broken 62] [08:41:57]ProducePacketName [08:41:57]name=ofd_packets/00092394 [08:41:57]OFD Sender: To server: pG, [08:41:57]CommunicateWithHost lk.salyk.kg:30040 [08:41:57]ConnectInit lk.salyk.kg [08:41:57]written 0, free lines is 4095 [08:41:57]Connected sock=10 [08: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 34 36 39 32 2B 02 00 00 12 FC 23 02 49 A1 5A 03 01 00 03 00 17 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 55 4C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EA 68 01 00 35 04 06 00 28 0D 4B 20 00 5B B3 E3 C2 D0 90 FF 58 B6 [08:41:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 85 2F 47 00 FE EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EA 68 01 00 F4 03 04 00 D1 F4 E4 66 B6 04 01 00 00 EE 3B A8 E7 F7 5A 2F 9E [08:41:58]CommunicateWithHost err = 0 [08:41:58]CheckOFDResponse [08:41:58]1017 (14) - 77093643461234 [08:41:58]1041 (16) - 0000000000874692 [08:41:58]1040 (4) - 92394 [08:41:58]1012 (4) - 14.09.2024 02:28 [08:41:58]1206 (1) - 0 [08:41:58]OFD Sender: Remove packet 92394 [08:41:58]ProducePacketName [08:41:58]name=ofd_packets/00092394 [08:41:58]NVStorageDeleteData [08:41:58]Write to MH i2c: 01 00 00 EB 0D F8 [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: 01 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: 01 07 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 4C 0C 57 [08:41:58]RasterBufferAndPrint [08:41:58]line [08:41:58]line [08:41:58]line [08:41:58]line [08:41:58]line [08:41:58]written 0, free lines is 3154 [08:41:58]MH_Cut [08:41:58]Write to MH i2c: D1 01 00 F2 0D 01 D1 [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: D1 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: D1 01 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: D1 01 00 F2 0D 00 D0 [08:41:58]Write to MH i2c: 01 00 00 F3 0D 00 [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]OFD Sender: No OFD packet to send [08:41:59]*** Cut start [08:41:59]*** Purtial cut [08:41:59]*** Stage 1: CUTSNS_PIN = 1 [08:42:01]Read from MH i2c: 01 [08:42:01]MH_I2C_Read... [08:42:01]*** Stop cut motor [08:42:01]*** Cut end [08:42:01]Read from MH i2c: 01 07 00 [08:42:01]MH_I2C_Read... [08:42:01]Read from MH i2c: 01 07 00 F3 0D 00 00 00 00 00 FF 0F 15 [08:42:01]process_action close_receipt done [08:42:01]requested_data is exist [08:42:01]produce_requested_data [08:42:01]requested_item fm.sn is exist - process it [08:42:01]wFMCommunicate request_size=4 [08:42:01]MH_SAM_APDU [08:42:01]CAPDU: 80 11 00 00 [08:42:01]Write to MH i2c: E2 08 00 F4 0D 80 11 00 00 00 00 00 00 7B [08:42:01]Write i2c OK [08:42:01]MH_I2C_Read... [08:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:01]Read from MH i2c: E2 [08:42:01]MH_I2C_Read... [08:42:01]Read from MH i2c: E2 17 00 [08:42:01]MH_I2C_Read... [08:42:01]Read from MH i2c: E2 17 00 F4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D2 [08:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:42:01]wFMCommunicate OK [08:42:01]requested_item fd.num is exist - process it [08:42:01]SAM_PROTO_GetFieldsCounters [08:42:01]wFMCommunicate request_size=4 [08:42:01]MH_SAM_APDU [08:42:01]CAPDU: 80 13 00 00 [08:42:01]Write to MH i2c: E2 08 00 F5 0D 80 13 00 00 00 00 00 00 7E [08:42:01]Write i2c OK [08:42:01]MH_I2C_Read... [08:42:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:01]Read from MH i2c: E2 [08:42:01]MH_I2C_Read... [08:42:01]Read from MH i2c: E2 62 00 [08:42:01]MH_I2C_Read... [08:42:01]Read from MH i2c: E2 62 00 F5 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EA 68 01 00 0E 04 04 00 FA 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 72 [08:42:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EA 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:01]wFMCommunicate OK [08:42:01]SAM_PROTO_GetFieldsCounters done [08:42:01]requested_item shift.num is exist - process it [08:42:01]requested_item shift.opened is exist - process it [08:42:01]req_shift_opened [08:42:01]FM_GetShiftState [08:42:01]SAM_PROTO_GetShiftState [08:42:01]wFMCommunicate request_size=4 [08:42:01]MH_SAM_APDU [08:42:01]CAPDU: 80 13 01 00 [08:42:01]Write to MH i2c: E2 08 00 F6 0D 80 13 01 00 00 00 00 00 80 [08:42:01]Write i2c OK [08:42:01]MH_I2C_Read... [08:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:01]Read from MH i2c: E2 [08:42:01]MH_I2C_Read... [08:42:01]Read from MH i2c: E2 0E 00 [08:42:01]MH_I2C_Read... [08:42:01]Read from MH i2c: E2 0E 00 F6 0D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 1A [08:42:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:42:01]wFMCommunicate OK [08:42:01]SAM_PROTO_GetShiftState done [08:42:01]FM_GetShiftState done [08:42:01]req_shift_opened done [08:42:01]requested_item shift.open_date is exist - process it [08:42:01]req_shift_open_date [08:42:01]req_shift_open_date done [08:42:01]produce_requested_data done [08:42:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92394,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:42:01]process_action_free close_receipt [08:42:01]json_value_free [08:42:01]json_value_free done [08:42:01]process_json_proto returns [08:42:01]Send response to host [08:42:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92394,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:42:01]free response buf [08:42:01]execute_script done [08:42:01]execute_script returns [08:42:01]free content buf [08:42:01]Sock 8.Close socket [08:42:01]Sock 8.Thread stoped [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:49]accept exits with 9 [08:44:49]New connection [08:44:49]New thread 3066801508 created [08:44:49]Thread 3066658148 joined [08:44:49]Waiting for new connection... [08:44:49] Sock 9.Parse request [08:44:49]Sock 9.Check first char [08:44:49]Sock 9.First char is OK [08:44:49]request: POST /json_proto HTTP/1.0 [08:44:49]Method: POST [08:44:49]URL: /json_proto [08:44:49]Method is POST - this is cgi request [08:44:49]url: /json_proto [08:44:49]query_string will be loaded in cgi processing [08:44:49]execute_cgi json_proto POST (null) [08:44:49]execute_cgi path=json_proto method=POST [08:44:49]POST find Content-Length [08:44:49]Host: 172.17.57.71:8080 [08:44:49]Content-Length: 794 [08:44:49]Content-Type: application/json [08:44:49] [08:44:49]POST finish read [08:44:49]Found Content-Length = 794 [08:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127307", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:49]execute_script... [08:44:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127307", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:49]POST & json_proto [08:44:49]process_json_proto [08:44:49]json parsed OK: [08:44:49]protocol is kg_v1.0 [08:44:49]action value=close_receipt [08:44:49]process_action close_receipt [08:44:49]cmd_close_receipt [08:44:49]MH_GetDate [08:44:49]Write to MH i2c: F0 00 00 F7 0D F3 [08:44:49]Write i2c OK [08:44:49]MH_I2C_Read... [08:44:49]Read from MH i2c: F0 [08:44:49]MH_I2C_Read... [08:44:49]Read from MH i2c: F0 09 00 [08:44:49]MH_I2C_Read... [08:44:49]Read from MH i2c: F0 09 00 F7 0D 00 03 4D E5 66 33 3A A4 66 0E [08:44:49]GetLastDocTimeStamp 1726303317 [08:44:49]current date 1726303491 [08:44:49]FM_GetShiftState [08:44:49]SAM_PROTO_GetShiftState [08:44:49]wFMCommunicate request_size=4 [08:44:49]MH_SAM_APDU [08:44:49]CAPDU: 80 13 01 00 [08:44:49]Write to MH i2c: E2 08 00 F8 0D 80 13 01 00 00 00 00 00 82 [08:44:49]Write i2c OK [08:44:49]MH_I2C_Read... [08:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:49]Read from MH i2c: E2 [08:44:49]MH_I2C_Read... [08:44:49]Read from MH i2c: E2 0E 00 [08:44:49]MH_I2C_Read... [08:44:49]Read from MH i2c: E2 0E 00 F8 0D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 1C [08:44:49]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:44:49]wFMCommunicate OK [08:44:49]SAM_PROTO_GetShiftState done [08:44:49]FM_GetShiftState done [08:44:49]opened in 1726273389 [08:44:49]opened+sec_in_day 1726359789 [08:44:49]quantity*price = 13000 [08:44:49]sum+1 = 13001 [08:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 46 14.09.2024 08:44 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92395 ФПД: 73171251638973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T084451&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92395&fm=73171251638973&tin=02508201610067®Number=0000000000091423&sum=13000 0 [08:44:50]StoreToDocumentArchive [08:44:50]shift 506 fd 92395 [08:44:50]save to /storage/0506/doc_00092395 [08:44:50]save last doc name /storage/0506/doc_00092395 to /storage/kkm_last_doc_name [08:44:50]save OK [08:44:50]Clear old archive folders... [08:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:44:50]tlvbuf is 00FD08B0 [08:44:50]SAM_PROTO_ClearQueue [08:44:50]wFMCommunicate request_size=4 [08:44:50]MH_SAM_APDU [08:44:50]CAPDU: 80 09 00 00 [08:44:50]Write to MH i2c: E2 08 00 05 0E 80 09 00 00 00 00 00 00 85 [08:44:50]Write i2c OK [08:44:50]MH_I2C_Read... [08:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:50]Read from MH i2c: E2 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: E2 03 00 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [08:44:50]RAPDU: 90 00 [08:44:50]wFMCommunicate OK [08:44:50]SAM_PROTO_ClearQueue done [08:44:50]KKMCreateOFDPacket [08:44:50]OFDProtocolAddRootSTLVToBuf [08:44:50]FM_MakeSignedData [08:44:50]FM_MakeSignedData [08:44:50]SAM_PROTO_SignData [08:44:50]wFMCommunicate request_size=4 [08:44:50]MH_SAM_APDU [08:44:50]CAPDU: 80 0D 01 02 [08:44:50]Write to MH i2c: E2 08 00 06 0E 80 0D 01 02 00 00 00 00 8D [08:44:50]Write i2c OK [08:44:50]MH_I2C_Read... [08:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:50]Read from MH i2c: E2 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: E2 03 00 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [08:44:50]RAPDU: 90 00 [08:44:50]wFMCommunicate OK [08:44:50]wFMCommunicate request_size=255 [08:44:50]MH_SAM_APDU [08:44:50]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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 03 4D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [08:44:50]Write to MH i2c: E2 02 01 07 0E 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 03 4D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 66 [08:44:50]Write i2c OK [08:44:50]MH_I2C_Read... [08:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:51]Read from MH i2c: E2 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 03 00 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 03 00 07 0E 00 90 00 89 [08:44:51]RAPDU: 90 00 [08:44:51]wFMCommunicate OK [08:44:51]wFMCommunicate request_size=35 [08:44:51]MH_SAM_APDU [08:44:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 68 01 00 35 04 06 00 42 8C 82 76 32 BD [08:44:51]Write to MH i2c: E2 26 00 08 0E 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 68 01 00 35 04 06 00 42 8C 82 76 32 BD 00 00 90 [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:51]Read from MH i2c: E2 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 03 00 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [08:44:51]RAPDU: 90 00 [08:44:51]wFMCommunicate OK [08:44:51]wFMCommunicate request_size=4 [08:44:51]MH_SAM_APDU [08:44:51]CAPDU: 80 0D 03 02 [08:44:51]Write to MH i2c: E2 08 00 09 0E 80 0D 03 02 00 00 00 00 92 [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:51]Read from MH i2c: E2 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 0B 00 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 0B 00 09 0E 00 00 37 CB 98 A3 BC F5 B6 90 00 37 [08:44:51]RAPDU: 00 37 CB 98 A3 BC F5 B6 90 00 [08:44:51]wFMCommunicate OK [08:44:51]SAM_PROTO_SignData done [08:44:51]FM_MakeSignedData done [08:44:51]CreateOFDProtocolMessage [08:44:51]wFMCommunicate request_size=4 [08:44:51]MH_SAM_APDU [08:44:51]CAPDU: 80 11 00 00 [08:44:51]Write to MH i2c: E2 08 00 0A 0E 80 11 00 00 00 00 00 00 92 [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:51]Read from MH i2c: E2 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 17 00 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 17 00 0A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E9 [08:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:44:51]wFMCommunicate OK [08:44:51]CreateOFDProtocolMessage done [08:44:51]OFDSenderStorePacket 92395 [08:44:51]StoreOFDPacket docnum=92395 [08:44:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 8A 67 20 01 D3 B9 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 03 4D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 68 01 00 35 04 06 00 42 8C 82 76 32 BD 00 37 CB 98 A3 BC F5 B6 [08:44:51]CheckFolder [08:44:51]dirname=/storage/ofd_packets [08:44:51]CheckFolder done [08:44:51]ProducePacketName [08:44:51]name=ofd_packets/00092395 [08:44:51]NVStorageSaveData ofd_packets/00092395 [08:44:51]File name is /storage/ofd_packets/00092395 [08:44:51]Write 326 bytes [08:44:51]NVStorageSaveData done [08:44:51]OFDSenderStorePacket done [08:44:51]KKMCreateOFDPacket done [08:44:51]NVStorageSaveData kkm_last_timestamp [08:44:51]File name is /storage/kkm_last_timestamp [08:44:51]Write 4 bytes [08:44:51]NVStorageSaveData done [08:44:51]ExternCall_PrintAddStr [08:44:51]wPrintStart [08:44:51]Write to MH i2c: 01 00 00 0B 0E 19 [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: 01 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: 01 07 00 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: 01 07 00 0B 0E 00 00 00 00 00 FF 0F 2E [08:44:51]RasterBufferAndPrint [08:44:51]line Счет N : (3)127307 [08:44:51]line ИНН: 02508201610067 [08:44:51]line Контрольно-Кассовый Чек [08:44:51]line ПРОДАЖА [08:44:51]line Товар: 2000036230011 [08:44:51]line Кофе Латте XL(GABB TRADE) [08:44:51]line 1.000 * 130.00 [08:44:51]line = 130.00 [08:44:51]line НДС 12% НСП 1% [08:44:51]line > о реализуемом товаре [08:44:51]line ИТОГО: 130.00 [08:44:51]line НСП 1% : 1.15 [08:44:51]line НДС 12% : 13.80 [08:44:51]line Наличными: 0.00 [08:44:51]line Безнал.: 130.00 [08:44:51]line Место: АЗС № 5 "Партнер Нефть" [08:44:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:44:51]line СНО: Общий режим [08:44:51]line Чек 46 14.09.2024 08:44 [08:44:51]line Смена: 506 ФФД: 1.0 [08:44:51]line ЗНМ: 03000000022 [08:44:51]line РНМ: 0000000000091423 [08:44:51]line Версия ККМ: 001 [08:44:51]line Платежная система: О! деньги [08:44:51]line ФМ: 0000000000874692 [08:44:51]line ФД: 92395 [08:44:51]line ФПД: 73171251638973 [08:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T084451&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92395&fm=73171251638973&tin=02508201610067®Number=0000000000091423&sum=13000 [08:44:51]OFD Sender: Processing packet 92395 [packets to send 63, broken 62] [08:44:51]ProducePacketName [08:44:51]name=ofd_packets/00092395 [08:44:51]OFD Sender: To server: pG, [08:44:51]CommunicateWithHost lk.salyk.kg:30040 [08:44:51]ConnectInit lk.salyk.kg [08:44:51]line 0 [08:44:51]written 0, free lines is 4095 [08:44:51]Connected sock=10 [08:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 8A 67 20 01 D3 B9 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 03 4D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 68 01 00 35 04 06 00 42 8C 82 76 32 BD 00 37 CB 98 A3 BC F5 B6 [08:44:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6E DC 47 00 9D 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EB 68 01 00 F4 03 04 00 7F F5 E4 66 B6 04 01 00 00 B4 4A C3 97 4E 45 BE D5 [08:44:52]CommunicateWithHost err = 0 [08:44:52]CheckOFDResponse [08:44:52]1017 (14) - 77093643461234 [08:44:52]1041 (16) - 0000000000874692 [08:44:52]1040 (4) - 92395 [08:44:52]1012 (4) - 14.09.2024 02:31 [08:44:52]1206 (1) - 0 [08:44:52]OFD Sender: Remove packet 92395 [08:44:52]ProducePacketName [08:44:52]name=ofd_packets/00092395 [08:44:52]NVStorageDeleteData [08:44:52]Write to MH i2c: 01 00 00 35 0E 43 [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: 01 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: 01 07 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: 01 07 00 35 0E 00 00 00 00 00 08 0D 5F [08:44:52]RasterBufferAndPrint [08:44:52]line [08:44:52]line [08:44:52]line [08:44:52]line [08:44:52]line [08:44:52]written 0, free lines is 3344 [08:44:52]MH_Cut [08:44:52]Write to MH i2c: D1 01 00 3C 0E 01 1C [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: D1 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: D1 01 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: D1 01 00 3C 0E 00 1B [08:44:52]Write to MH i2c: 01 00 00 3D 0E 4B [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]OFD Sender: No OFD packet to send [08:44:52]*** Cut start [08:44:52]*** Purtial cut [08:44:52]*** Stage 1: CUTSNS_PIN = 1 [08:44:54]Read from MH i2c: 01 [08:44:54]MH_I2C_Read... [08:44:54]*** Stop cut motor [08:44:54]*** Cut end [08:44:54]Read from MH i2c: 01 07 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: 01 07 00 3D 0E 00 00 00 00 00 FF 0F 60 [08:44:54]process_action close_receipt done [08:44:54]requested_data is exist [08:44:54]produce_requested_data [08:44:54]requested_item fm.sn is exist - process it [08:44:54]wFMCommunicate request_size=4 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 11 00 00 [08:44:54]Write to MH i2c: E2 08 00 3E 0E 80 11 00 00 00 00 00 00 C6 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:54]Read from MH i2c: E2 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 17 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 17 00 3E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [08:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:44:54]wFMCommunicate OK [08:44:54]requested_item fd.num is exist - process it [08:44:54]SAM_PROTO_GetFieldsCounters [08:44:54]wFMCommunicate request_size=4 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 13 00 00 [08:44:54]Write to MH i2c: E2 08 00 3F 0E 80 13 00 00 00 00 00 00 C9 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:55]Read from MH i2c: E2 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: E2 62 00 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: E2 62 00 3F 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EB 68 01 00 0E 04 04 00 FA 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 C1 [08:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EB 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:55]wFMCommunicate OK [08:44:55]SAM_PROTO_GetFieldsCounters done [08:44:55]requested_item shift.num is exist - process it [08:44:55]requested_item shift.opened is exist - process it [08:44:55]req_shift_opened [08:44:55]FM_GetShiftState [08:44:55]SAM_PROTO_GetShiftState [08:44:55]wFMCommunicate request_size=4 [08:44:55]MH_SAM_APDU [08:44:55]CAPDU: 80 13 01 00 [08:44:55]Write to MH i2c: E2 08 00 40 0E 80 13 01 00 00 00 00 00 CB [08:44:55]Write i2c OK [08:44:55]MH_I2C_Read... [08:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:55]Read from MH i2c: E2 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: E2 0E 00 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: E2 0E 00 40 0E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 65 [08:44:55]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:44:55]wFMCommunicate OK [08:44:55]SAM_PROTO_GetShiftState done [08:44:55]FM_GetShiftState done [08:44:55]req_shift_opened done [08:44:55]requested_item shift.open_date is exist - process it [08:44:55]req_shift_open_date [08:44:55]req_shift_open_date done [08:44:55]produce_requested_data done [08:44:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92395,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:44:55]process_action_free close_receipt [08:44:55]json_value_free [08:44:55]json_value_free done [08:44:55]process_json_proto returns [08:44:55]Send response to host [08:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92395,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:44:55]free response buf [08:44:55]execute_script done [08:44:55]execute_script returns [08:44:55]free content buf [08:44:55]Sock 9.Close socket [08:44:55]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:14]accept exits with 8 [08:48:14]New connection [08:48:14]New thread 3066658148 created [08:48:14]Thread 3066801508 joined [08:48:14]Waiting for new connection... [08:48:14] Sock 8.Parse request [08:48:14]Sock 8.Check first char [08:48:14]Sock 8.First char is OK [08:48:14]request: POST /json_proto HTTP/1.0 [08:48:14]Method: POST [08:48:14]URL: /json_proto [08:48:14]Method is POST - this is cgi request [08:48:14]url: /json_proto [08:48:14]query_string will be loaded in cgi processing [08:48:14]execute_cgi json_proto POST (null) [08:48:14]execute_cgi path=json_proto method=POST [08:48:14]POST find Content-Length [08:48:14]Host: 172.17.57.71:8080 [08:48:14]Content-Length: 628 [08:48:14]Content-Type: application/json [08:48:14] [08:48:14]POST finish read [08:48:14]Found Content-Length = 628 [08:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127308", "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" ] } } [08:48:14]execute_script... [08:48: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)127308", "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" ] } } [08:48:14]POST & json_proto [08:48:14]process_json_proto [08:48:14]json parsed OK: [08:48:14]protocol is kg_v1.0 [08:48:14]action value=close_receipt [08:48:14]process_action close_receipt [08:48:14]cmd_close_receipt [08:48:14]MH_GetDate [08:48:14]Write to MH i2c: F0 00 00 41 0E 3E [08:48:14]Write i2c OK [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: F0 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: F0 09 00 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: F0 09 00 41 0E 00 D0 4D E5 66 33 3A A4 66 26 [08:48:14]GetLastDocTimeStamp 1726303491 [08:48:14]current date 1726303696 [08:48:14]FM_GetShiftState [08:48:14]SAM_PROTO_GetShiftState [08:48:14]wFMCommunicate request_size=4 [08:48:14]MH_SAM_APDU [08:48:14]CAPDU: 80 13 01 00 [08:48:14]Write to MH i2c: E2 08 00 42 0E 80 13 01 00 00 00 00 00 CD [08:48:14]Write i2c OK [08:48:14]MH_I2C_Read... [08:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:14]Read from MH i2c: E2 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: E2 0E 00 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: E2 0E 00 42 0E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 67 [08:48:14]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:48:14]wFMCommunicate OK [08:48:14]SAM_PROTO_GetShiftState done [08:48:14]FM_GetShiftState done [08:48:14]opened in 1726273389 [08:48:14]opened+sec_in_day 1726359789 [08:48:14]quantity*price = 13000 [08:48:14]sum+1 = 13001 [08:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 47 14.09.2024 08:48 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92396 ФПД: 202623950096069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T084816&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92396&fm=202623950096069&tin=02508201610067®Number=0000000000091423&sum=13000 0 [08:48:15]StoreToDocumentArchive [08:48:15]shift 506 fd 92396 [08:48:15]save to /storage/0506/doc_00092396 [08:48:15]save last doc name /storage/0506/doc_00092396 to /storage/kkm_last_doc_name [08:48:15]save OK [08:48:15]Clear old archive folders... [08:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:48:15]tlvbuf is 00FC65A0 [08:48:15]SAM_PROTO_ClearQueue [08:48:15]wFMCommunicate request_size=4 [08:48:15]MH_SAM_APDU [08:48:15]CAPDU: 80 09 00 00 [08:48:15]Write to MH i2c: E2 08 00 4F 0E 80 09 00 00 00 00 00 00 CF [08:48:15]Write i2c OK [08:48:15]MH_I2C_Read... [08:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:15]Read from MH i2c: E2 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: E2 03 00 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [08:48:15]RAPDU: 90 00 [08:48:15]wFMCommunicate OK [08:48:15]SAM_PROTO_ClearQueue done [08:48:15]KKMCreateOFDPacket [08:48:15]OFDProtocolAddRootSTLVToBuf [08:48:15]FM_MakeSignedData [08:48:15]FM_MakeSignedData [08:48:15]SAM_PROTO_SignData [08:48:15]wFMCommunicate request_size=4 [08:48:15]MH_SAM_APDU [08:48:15]CAPDU: 80 0D 01 02 [08:48:15]Write to MH i2c: E2 08 00 50 0E 80 0D 01 02 00 00 00 00 D7 [08:48:15]Write i2c OK [08:48:15]MH_I2C_Read... [08:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:15]Read from MH i2c: E2 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: E2 03 00 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: E2 03 00 50 0E 00 90 00 D2 [08:48:15]RAPDU: 90 00 [08:48:15]wFMCommunicate OK [08:48:15]wFMCommunicate request_size=255 [08:48:15]MH_SAM_APDU [08:48:15]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 2F 00 00 00 F4 03 04 00 D0 4D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [08:48:15]Write to MH i2c: E2 02 01 51 0E 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 2F 00 00 00 F4 03 04 00 D0 4D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 7E [08:48:15]Write i2c OK [08:48:15]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 03 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 03 00 51 0E 00 90 00 D3 [08:48:16]RAPDU: 90 00 [08:48:16]wFMCommunicate OK [08:48:16]wFMCommunicate request_size=35 [08:48:16]MH_SAM_APDU [08:48:16]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 68 01 00 35 04 06 00 B8 49 10 91 86 C5 [08:48:16]Write to MH i2c: E2 26 00 52 0E 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 68 01 00 35 04 06 00 B8 49 10 91 86 C5 00 00 13 [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 03 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [08:48:16]RAPDU: 90 00 [08:48:16]wFMCommunicate OK [08:48:16]wFMCommunicate request_size=4 [08:48:16]MH_SAM_APDU [08:48:16]CAPDU: 80 0D 03 02 [08:48:16]Write to MH i2c: E2 08 00 53 0E 80 0D 03 02 00 00 00 00 DC [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 0B 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 0B 00 53 0E 00 1E 34 65 85 FD 98 B0 34 90 00 92 [08:48:16]RAPDU: 1E 34 65 85 FD 98 B0 34 90 00 [08:48:16]wFMCommunicate OK [08:48:16]SAM_PROTO_SignData done [08:48:16]FM_MakeSignedData done [08:48:16]CreateOFDProtocolMessage [08:48:16]wFMCommunicate request_size=4 [08:48:16]MH_SAM_APDU [08:48:16]CAPDU: 80 11 00 00 [08:48:16]Write to MH i2c: E2 08 00 54 0E 80 11 00 00 00 00 00 00 DC [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 17 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 17 00 54 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 33 [08:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:48:16]wFMCommunicate OK [08:48:16]CreateOFDProtocolMessage done [08:48:16]OFDSenderStorePacket 92396 [08:48:16]StoreOFDPacket docnum=92396 [08:48:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 22 55 20 01 13 ED 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D0 4D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 68 01 00 35 04 06 00 B8 49 10 91 86 C5 1E 34 65 85 FD 98 B0 34 [08:48:16]CheckFolder [08:48:16]dirname=/storage/ofd_packets [08:48:16]CheckFolder done [08:48:16]ProducePacketName [08:48:16]name=ofd_packets/00092396 [08:48:16]NVStorageSaveData ofd_packets/00092396 [08:48:16]File name is /storage/ofd_packets/00092396 [08:48:16]Write 326 bytes [08:48:16]NVStorageSaveData done [08:48:16]OFDSenderStorePacket done [08:48:16]KKMCreateOFDPacket done [08:48:16]NVStorageSaveData kkm_last_timestamp [08:48:16]File name is /storage/kkm_last_timestamp [08:48:16]Write 4 bytes [08:48:16]NVStorageSaveData done [08:48:16]ExternCall_PrintAddStr [08:48:16]wPrintStart [08:48:16]Write to MH i2c: 01 00 00 55 0E 63 [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: 01 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: 01 07 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 FF 0F 78 [08:48:16]RasterBufferAndPrint [08:48:16]line Счет N : (3)127308 [08:48:16]line ИНН: 02508201610067 [08:48:16]line Контрольно-Кассовый Чек [08:48:16]line ПРОДАЖА [08:48:16]line Товар: 2000036230011 [08:48:16]line Кофе Латте XL(GABB TRADE) [08:48:16]line 1.000 * 130.00 [08:48:16]line = 130.00 [08:48:16]line НДС 12% НСП 1% [08:48:16]line > о реализуемом товаре [08:48:16]line ИТОГО: 130.00 [08:48:16]line НСП 1% : 1.15 [08:48:16]line НДС 12% : 13.80 [08:48:16]line Наличными: 130.00 [08:48:16]line Безнал.: 0.00 [08:48:16]line Место: АЗС № 5 "Партнер Нефть" [08:48:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [08:48:16]line СНО: Общий режим [08:48:16]line Чек 47 14.09.2024 08:48 [08:48:16]line Смена: 506 ФФД: 1.0 [08:48:16]line ЗНМ: 03000000022 [08:48:16]line РНМ: 0000000000091423 [08:48:16]line Версия ККМ: 001 [08:48:16]line ФМ: 0000000000874692 [08:48:16]line ФД: 92396 [08:48:16]line ФПД: 202623950096069 [08:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T084816&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92396&fm=202623950096069&tin=02508201610067®Number=0000000000091423&sum=13000 [08:48:16]line 0 [08:48:16]OFD Sender: Processing packet 92396 [packets to send 63, broken 62] [08:48:16]ProducePacketName [08:48:16]name=ofd_packets/00092396 [08:48:16]OFD Sender: To server: pG, [08:48:16]CommunicateWithHost lk.salyk.kg:30040 [08:48:16]ConnectInit lk.salyk.kg [08:48:16]written 0, free lines is 4095 [08:48:16]Connected sock=10 [08:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 22 55 20 01 13 ED 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D0 4D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 68 01 00 35 04 06 00 B8 49 10 91 86 C5 1E 34 65 85 FD 98 B0 34 [08:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F5 D2 47 00 03 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EC 68 01 00 F4 03 04 00 4C F6 E4 66 B6 04 01 00 00 41 67 5F 5D 53 4F 9E F4 [08:48:16]CommunicateWithHost err = 0 [08:48:16]CheckOFDResponse [08:48:16]1017 (14) - 77093643461234 [08:48:16]1041 (16) - 0000000000874692 [08:48:16]1040 (4) - 92396 [08:48:16]1012 (4) - 14.09.2024 02:34 [08:48:16]1206 (1) - 0 [08:48:16]OFD Sender: Remove packet 92396 [08:48:16]ProducePacketName [08:48:16]name=ofd_packets/00092396 [08:48:16]NVStorageDeleteData [08:48:17]Write to MH i2c: 01 00 00 7D 0E 8B [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 07 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 07 00 7D 0E 00 00 00 00 00 2F 0D CE [08:48:17]RasterBufferAndPrint [08:48:17]line [08:48:17]line [08:48:17]line [08:48:17]line [08:48:17]line [08:48:17]written 0, free lines is 3384 [08:48:17]MH_Cut [08:48:17]Write to MH i2c: D1 01 00 84 0E 01 64 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: D1 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: D1 01 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: D1 01 00 84 0E 00 63 [08:48:17]Write to MH i2c: 01 00 00 85 0E 93 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]OFD Sender: No OFD packet to send [08:48:17]*** Cut start [08:48:17]*** Purtial cut [08:48:17]*** Stage 1: CUTSNS_PIN = 1 [08:48:19]Read from MH i2c: 01 [08:48:19]MH_I2C_Read... [08:48:19]*** Stop cut motor [08:48:19]*** Cut end [08:48:19]Read from MH i2c: 01 07 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: 01 07 00 85 0E 00 00 00 00 00 FF 0F A8 [08:48:19]process_action close_receipt done [08:48:19]requested_data is exist [08:48:19]produce_requested_data [08:48:19]requested_item fm.sn is exist - process it [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 11 00 00 [08:48:19]Write to MH i2c: E2 08 00 86 0E 80 11 00 00 00 00 00 00 0E [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 17 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 17 00 86 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [08:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [08:48:19]wFMCommunicate OK [08:48:19]requested_item fd.num is exist - process it [08:48:19]SAM_PROTO_GetFieldsCounters [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 13 00 00 [08:48:19]Write to MH i2c: E2 08 00 87 0E 80 13 00 00 00 00 00 00 11 [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 62 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 62 00 87 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EC 68 01 00 0E 04 04 00 FA 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 0D [08:48:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EC 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:19]wFMCommunicate OK [08:48:19]SAM_PROTO_GetFieldsCounters done [08:48:19]requested_item shift.num is exist - process it [08:48:19]requested_item shift.opened is exist - process it [08:48:19]req_shift_opened [08:48:19]FM_GetShiftState [08:48:19]SAM_PROTO_GetShiftState [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 13 01 00 [08:48:19]Write to MH i2c: E2 08 00 88 0E 80 13 01 00 00 00 00 00 13 [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:20]Read from MH i2c: E2 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: E2 0E 00 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: E2 0E 00 88 0E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AD [08:48:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [08:48:20]wFMCommunicate OK [08:48:20]SAM_PROTO_GetShiftState done [08:48:20]FM_GetShiftState done [08:48:20]req_shift_opened done [08:48:20]requested_item shift.open_date is exist - process it [08:48:20]req_shift_open_date [08:48:20]req_shift_open_date done [08:48:20]produce_requested_data done [08:48:20]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92396,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [08:48:20]process_action_free close_receipt [08:48:20]json_value_free [08:48:20]json_value_free done [08:48:20]process_json_proto returns [08:48:20]Send response to host [08:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92396,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [08:48:20]free response buf [08:48:20]execute_script done [08:48:20]execute_script returns [08:48:20]free content buf [08:48:20]Sock 8.Close socket [08:48:20]Sock 8.Thread stoped [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]accept exits with 9 [09:10:58]New connection [09:10:58]New thread 3066801508 created [09:10:58]Thread 3066658148 joined [09:10:58]Waiting for new connection... [09:10:58] Sock 9.Parse request [09:10:58]Sock 9.Check first char [09:10:58]Sock 9.First char is OK [09:10:58]request: POST /json_proto HTTP/1.0 [09:10:58]Method: POST [09:10:58]URL: /json_proto [09:10:58]Method is POST - this is cgi request [09:10:58]url: /json_proto [09:10:58]query_string will be loaded in cgi processing [09:10:58]execute_cgi json_proto POST (null) [09:10:58]execute_cgi path=json_proto method=POST [09:10:58]POST find Content-Length [09:10:58]Host: 172.17.57.71:8080 [09:10:58]Content-Length: 2000 [09:10:58]Content-Type: application/json [09:10:58] [09:10:58]POST finish read [09:10:58]Found Content-Length = 2000 [09:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127309", "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 }]} ,{ "code": "2000038180017", "name": "\u041A\u043E\u0444\u0435 \u041C\u043E\u043A\u043A\u043E\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 670.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:58]execute_script... [09:10: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)127309", "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 }]} ,{ "code": "2000038180017", "name": "\u041A\u043E\u0444\u0435 \u041C\u043E\u043A\u043A\u043E\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 670.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:59]POST & json_proto [09:10:59]process_json_proto [09:10:59]json parsed OK: [09:10:59]protocol is kg_v1.0 [09:10:59]action value=close_receipt [09:10:59]process_action close_receipt [09:10:59]cmd_close_receipt [09:10:59]MH_GetDate [09:10:59]Write to MH i2c: F0 00 00 89 0E 86 [09:10:59]OFD Sender: No OFD packet to send [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: F0 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: F0 09 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: F0 09 00 89 0E 00 25 53 E5 66 33 3A A4 66 C9 [09:10:59]GetLastDocTimeStamp 1726303696 [09:10:59]current date 1726305061 [09:10:59]FM_GetShiftState [09:10:59]SAM_PROTO_GetShiftState [09:10:59]wFMCommunicate request_size=4 [09:10:59]MH_SAM_APDU [09:10:59]CAPDU: 80 13 01 00 [09:10:59]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:59]Read from MH i2c: E2 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 0E 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AF [09:10:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:10:59]wFMCommunicate OK [09:10:59]SAM_PROTO_GetShiftState done [09:10:59]FM_GetShiftState done [09:10:59]opened in 1726273389 [09:10:59]opened+sec_in_day 1726359789 [09:10:59]quantity*price = 11500 [09:10:59]sum+1 = 11501 [09:10:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000038180017 Кофе Моккочино (GABB TRADE) 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 58411125749 Те самые макарон 1.000 * 195.00 = 195.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 670.00 НСП 1% : 5.93 НДС 12% : 71.14 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 48 14.09.2024 09:11 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92397 ФПД: 147302108876784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T091101&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92397&fm=147302108876784&tin=02508201610067®Number=0000000000091423&sum=67000 0 [09:11:00]StoreToDocumentArchive [09:11:00]shift 506 fd 92397 [09:11:00]save to /storage/0506/doc_00092397 [09:11:00]save last doc name /storage/0506/doc_00092397 to /storage/kkm_last_doc_name [09:11:00]save OK [09:11:00]Clear old archive folders... [09:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=834 [09:11:00]tlvbuf is 00FC53A0 [09:11:00]SAM_PROTO_ClearQueue [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 09 00 00 [09:11:00]Write to MH i2c: E2 08 00 97 0E 80 09 00 00 00 00 00 00 17 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_ClearQueue done [09:11:00]KKMCreateOFDPacket [09:11:00]OFDProtocolAddRootSTLVToBuf [09:11:00]FM_MakeSignedData [09:11:00]FM_MakeSignedData [09:11:00]SAM_PROTO_SignData [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 01 02 [09:11:00]Write to MH i2c: E2 08 00 98 0E 80 0D 01 02 00 00 00 00 1F [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 98 0E 00 90 00 1A [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=255 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 02 02 FA 03 00 42 03 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE 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 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 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 [09:11:00]Write to MH i2c: E2 02 01 99 0E 80 0D 02 02 FA 00 03 00 42 03 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE 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 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 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 00 00 52 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=255 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 02 02 FA 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 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 [09:11:00]Write to MH i2c: E2 02 01 9A 0E 80 0D 02 02 FA 00 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 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 00 00 2F [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:01]Read from MH i2c: E2 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 03 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [09:11:01]RAPDU: 90 00 [09:11:01]wFMCommunicate OK [09:11:01]wFMCommunicate request_size=255 [09:11:01]MH_SAM_APDU [09:11:01]CAPDU: 80 0D 02 02 FA BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 [09:11:01]Write to MH i2c: E2 02 01 9B 0E 80 0D 02 02 FA 00 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 00 19 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:01]Read from MH i2c: E2 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 03 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 03 00 9B 0E 00 90 00 1D [09:11:01]RAPDU: 90 00 [09:11:01]wFMCommunicate OK [09:11:01]wFMCommunicate request_size=93 [09:11:01]MH_SAM_APDU [09:11:01]CAPDU: 80 0D 02 02 58 00 12 04 04 00 30 00 00 00 F4 03 04 00 25 53 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 68 01 00 35 04 06 00 85 F8 71 DF CF F0 [09:11:01]Write to MH i2c: E2 60 00 9C 0E 80 0D 02 02 58 00 00 12 04 04 00 30 00 00 00 F4 03 04 00 25 53 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 68 01 00 35 04 06 00 85 F8 71 DF CF F0 00 00 62 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:01]Read from MH i2c: E2 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 03 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 03 00 9C 0E 00 90 00 1E [09:11:01]RAPDU: 90 00 [09:11:01]wFMCommunicate OK [09:11:01]wFMCommunicate request_size=4 [09:11:01]MH_SAM_APDU [09:11:01]CAPDU: 80 0D 03 02 [09:11:01]Write to MH i2c: E2 08 00 9D 0E 80 0D 03 02 00 00 00 00 26 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:01]Read from MH i2c: E2 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 0B 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 0B 00 9D 0E 00 58 17 A2 3D 19 42 A8 46 90 00 BE [09:11:01]RAPDU: 58 17 A2 3D 19 42 A8 46 90 00 [09:11:01]wFMCommunicate OK [09:11:01]SAM_PROTO_SignData done [09:11:01]FM_MakeSignedData done [09:11:01]CreateOFDProtocolMessage [09:11:01]wFMCommunicate request_size=4 [09:11:01]MH_SAM_APDU [09:11:01]CAPDU: 80 11 00 00 [09:11:01]Write to MH i2c: E2 08 00 9E 0E 80 11 00 00 00 00 00 00 26 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:01]Read from MH i2c: E2 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 17 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 17 00 9E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7D [09:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:11:01]wFMCommunicate OK [09:11:01]CreateOFDProtocolMessage done [09:11:01]OFDSenderStorePacket 92397 [09:11:01]StoreOFDPacket docnum=92397 [09:11:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 56 03 00 00 01 18 4E 03 48 BF 5A 03 01 00 03 00 42 03 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE 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 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 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 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 25 53 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 68 01 00 35 04 06 00 85 F8 71 DF CF F0 58 17 A2 3D 19 42 A8 46 [09:11:01]CheckFolder [09:11:01]dirname=/storage/ofd_packets [09:11:01]CheckFolder done [09:11:01]ProducePacketName [09:11:01]name=ofd_packets/00092397 [09:11:01]NVStorageSaveData ofd_packets/00092397 [09:11:01]File name is /storage/ofd_packets/00092397 [09:11:01]Write 884 bytes [09:11:01]NVStorageSaveData done [09:11:01]OFDSenderStorePacket done [09:11:01]KKMCreateOFDPacket done [09:11:01]NVStorageSaveData kkm_last_timestamp [09:11:01]File name is /storage/kkm_last_timestamp [09:11:01]Write 4 bytes [09:11:01]NVStorageSaveData done [09:11:01]ExternCall_PrintAddStr [09:11:01]wPrintStart [09:11:01]Write to MH i2c: 01 00 00 9F 0E AD [09:11:01]OFD Sender: Processing packet 92397 [packets to send 63, broken 62] [09:11:01]ProducePacketName [09:11:01]name=ofd_packets/00092397 [09:11:01]OFD Sender: To server: pG, [09:11:01]CommunicateWithHost lk.salyk.kg:30040 [09:11:01]ConnectInit lk.salyk.kg [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 07 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 FF 0F C2 [09:11:01]RasterBufferAndPrint [09:11:01]line Счет N : (3)127309 [09:11:01]line ИНН: 02508201610067 [09:11:01]line Контрольно-Кассовый Чек [09:11:01]line ПРОДАЖА [09:11:01]line Товар: 2000036210013 [09:11:01]line Кофе Капучино (GABB TRADE) [09:11:01]line 1.000 * 115.00 [09:11:01]line = 115.00 [09:11:01]line НДС 12% НСП 1% [09:11:01]line > о реализуемом товаре [09:11:01]line Товар: 2000038180017 [09:11:01]line Кофе Моккочино (GABB TRADE) [09:11:01]line 1.000 * 120.00 [09:11:01]line = 120.00 [09:11:01]line НДС 12% НСП 1% [09:11:01]line > о реализуемом товаре [09:11:01]line Товар: 2000036240010 [09:11:02]line Кофе Латте (GABB TRADE) [09:11:02]line 1.000 * 115.00 [09:11:02]line = 115.00 [09:11:02]line НДС 12% НСП 1% [09:11:02]line > о реализуемом товаре [09:11:02]line Товар: 58411125749 [09:11:02]line Те самые макарон [09:11:02]line 1.000 * 195.00 [09:11:02]line = 195.00 [09:11:02]line НДС 12% НСП 1% [09:11:02]line > о реализуемом товаре [09:11:02]line Товар: 2000032780015 [09:11:02]line Слойка DC треугольная курица 110г [09:11:02]line 1.000 * 65.00 [09:11:02]line = 65.00 [09:11:02]line НДС 12% НСП 1% [09:11:02]line > о реализуемом товаре [09:11:02]line Товар: 2000032780025 [09:11:02]line Сосиска в тесте DC 110г [09:11:02]line 1.000 * 60.00 [09:11:02]line = 60.00 [09:11:02]line НДС 12% НСП 1% [09:11:02]line > о реализуемом товаре [09:11:02]line ИТОГО: 670.00 [09:11:02]line НСП 1% : 5.93 [09:11:02]line НДС 12% : 71.14 [09:11:02]line Наличными: 670.00 [09:11:02]line Безнал.: 0.00 [09:11:02]line Место: АЗС № 5 "Партнер Нефть" [09:11:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:11:02]line СНО: Общий режим [09:11:02]line Чек 48 14.09.2024 09:11 [09:11:02]line Смена: 506 ФФД: 1.0 [09:11:02]line ЗНМ: 03000000022 [09:11:02]line РНМ: 0000000000091423 [09:11:02]line Версия ККМ: 001 [09:11:02]line ФМ: 0000000000874692 [09:11:02]line ФД: 92397 [09:11:02]line ФПД: 147302108876784 [09:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T091101&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92397&fm=147302108876784&tin=02508201610067®Number=0000000000091423&sum=67000 [09:11:02]line 0 [09:11:02]Connected sock=10 [09:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 56 03 00 00 01 18 4E 03 48 BF 5A 03 01 00 03 00 42 03 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE 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 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 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 written 0, free lines is 4095 [09:11:02]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 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 25 53 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 68 01 00 35 04 06 00 85 F8 71 DF CF F0 58 17 A2 3D 19 42 A8 46 [09:11:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 44 FF 47 00 17 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 ED 68 01 00 F4 03 04 00 A2 FB E4 66 B6 04 01 00 00 AA 42 CD F6 62 FD F1 FB [09:11:02]CommunicateWithHost err = 0 [09:11:02]CheckOFDResponse [09:11:02]1017 (14) - 77093643461234 [09:11:02]1041 (16) - 0000000000874692 [09:11:02]1040 (4) - 92397 [09:11:02]1012 (4) - 14.09.2024 02:57 [09:11:02]1206 (1) - 0 [09:11:02]OFD Sender: Remove packet 92397 [09:11:02]ProducePacketName [09:11:02]name=ofd_packets/00092397 [09:11:02]NVStorageDeleteData [09:11:02]OFD Sender: No OFD packet to send [09:11:02]Write to MH i2c: 01 00 00 E7 0E F5 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 07 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 07 00 E7 0E 00 00 00 00 00 94 0B 9B [09:11:02]RasterBufferAndPrint [09:11:02]line [09:11:02]line [09:11:02]line [09:11:02]line [09:11:02]line [09:11:02]written 0, free lines is 2976 [09:11:02]MH_Cut [09:11:02]Write to MH i2c: D1 01 00 EE 0E 01 CE [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: D1 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: D1 01 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: D1 01 00 EE 0E 00 CD [09:11:02]Write to MH i2c: 01 00 00 EF 0E FD [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:03]*** Cut start [09:11:03]*** Purtial cut [09:11:03]*** Stage 1: CUTSNS_PIN = 1 [09:11:05]Read from MH i2c: 01 [09:11:05]MH_I2C_Read... [09:11:05]*** Stop cut motor [09:11:05]*** Cut end [09:11:05]Read from MH i2c: 01 07 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: 01 07 00 EF 0E 00 00 00 00 00 FF 0F 12 [09:11:05]process_action close_receipt done [09:11:05]requested_data is exist [09:11:05]produce_requested_data [09:11:05]requested_item fm.sn is exist - process it [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 11 00 00 [09:11:05]Write to MH i2c: E2 08 00 F0 0E 80 11 00 00 00 00 00 00 78 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 17 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 17 00 F0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CF [09:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:11:05]wFMCommunicate OK [09:11:05]requested_item fd.num is exist - process it [09:11:05]SAM_PROTO_GetFieldsCounters [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 13 00 00 [09:11:05]Write to MH i2c: E2 08 00 F1 0E 80 13 00 00 00 00 00 00 7B [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:06]Read from MH i2c: E2 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 62 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 62 00 F1 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 ED 68 01 00 0E 04 04 00 FA 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 7B [09:11:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 ED 68 01 00 0E 04 04 00 FA 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:11:06]wFMCommunicate OK [09:11:06]SAM_PROTO_GetFieldsCounters done [09:11:06]requested_item shift.num is exist - process it [09:11:06]requested_item shift.opened is exist - process it [09:11:06]req_shift_opened [09:11:06]FM_GetShiftState [09:11:06]SAM_PROTO_GetShiftState [09:11:06]wFMCommunicate request_size=4 [09:11:06]MH_SAM_APDU [09:11:06]CAPDU: 80 13 01 00 [09:11:06]Write to MH i2c: E2 08 00 F2 0E 80 13 01 00 00 00 00 00 7D [09:11:06]Write i2c OK [09:11:06]MH_I2C_Read... [09:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:06]Read from MH i2c: E2 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 0E 00 [09:11:06]MH_I2C_Read... [09:11:06]Read from MH i2c: E2 0E 00 F2 0E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 17 [09:11:06]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:11:06]wFMCommunicate OK [09:11:06]SAM_PROTO_GetShiftState done [09:11:06]FM_GetShiftState done [09:11:06]req_shift_opened done [09:11:06]requested_item shift.open_date is exist - process it [09:11:06]req_shift_open_date [09:11:06]req_shift_open_date done [09:11:06]produce_requested_data done [09:11:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92397,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:11:06]process_action_free close_receipt [09:11:06]json_value_free [09:11:06]json_value_free done [09:11:06]process_json_proto returns [09:11:06]Send response to host [09:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92397,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:11:06]free response buf [09:11:06]execute_script done [09:11:06]execute_script returns [09:11:06]free content buf [09:11:06]Sock 9.Close socket [09:11:06]Sock 9.Thread stoped [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]accept exits with 8 [09:12:02]New connection [09:12:02]New thread 3066658148 created [09:12:02]Thread 3066801508 joined [09:12:02]Waiting for new connection... [09:12:02] Sock 8.Parse request [09:12:02]Sock 8.Check first char [09:12:02]Sock 8.First char is OK [09:12:02]request: POST /json_proto HTTP/1.0 [09:12:02]Method: POST [09:12:02]URL: /json_proto [09:12:02]Method is POST - this is cgi request [09:12:02]url: /json_proto [09:12:02]query_string will be loaded in cgi processing [09:12:02]execute_cgi json_proto POST (null) [09:12:02]execute_cgi path=json_proto method=POST [09:12:02]POST find Content-Length [09:12:02]Host: 172.17.57.71:8080 [09:12:02]Content-Length: 776 [09:12:02]Content-Type: application/json [09:12:02] [09:12:02]POST finish read [09:12:02]Found Content-Length = 776 [09:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127310", "tax_sys" : 0, "items" : [ { "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:02]execute_script... [09:12: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)127310", "tax_sys" : 0, "items" : [ { "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:02]POST & json_proto [09:12:02]process_json_proto [09:12:02]json parsed OK: [09:12:02]protocol is kg_v1.0 [09:12:02]action value=close_receipt [09:12:02]process_action close_receipt [09:12:02]cmd_close_receipt [09:12:02]MH_GetDate [09:12:02]Write to MH i2c: F0 00 00 F3 0E F0 [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: F0 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: F0 09 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: F0 09 00 F3 0E 00 64 53 E5 66 33 3A A4 66 72 [09:12:02]GetLastDocTimeStamp 1726305061 [09:12:02]current date 1726305124 [09:12:02]FM_GetShiftState [09:12:02]SAM_PROTO_GetShiftState [09:12:02]wFMCommunicate request_size=4 [09:12:02]MH_SAM_APDU [09:12:02]CAPDU: 80 13 01 00 [09:12:02]Write to MH i2c: E2 08 00 F4 0E 80 13 01 00 00 00 00 00 7F [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:02]Read from MH i2c: E2 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 0E 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 0E 00 F4 0E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 19 [09:12:02]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:12:02]wFMCommunicate OK [09:12:02]SAM_PROTO_GetShiftState done [09:12:02]FM_GetShiftState done [09:12:02]opened in 1726273389 [09:12:02]opened+sec_in_day 1726359789 [09:12:02]quantity*price = 4500 [09:12:02]sum+1 = 4501 [09:12:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 49 14.09.2024 09:12 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92398 ФПД: 99893918289078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T091205&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92398&fm=99893918289078&tin=02508201610067®Number=0000000000091423&sum=4500 0 [09:12:03]StoreToDocumentArchive [09:12:03]shift 506 fd 92398 [09:12:03]save to /storage/0506/doc_00092398 [09:12:03]save last doc name /storage/0506/doc_00092398 to /storage/kkm_last_doc_name [09:12:03]save OK [09:12:03]Clear old archive folders... [09:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=262 [09:12:03]tlvbuf is 00F92110 [09:12:03]SAM_PROTO_ClearQueue [09:12:03]wFMCommunicate request_size=4 [09:12:03]MH_SAM_APDU [09:12:03]CAPDU: 80 09 00 00 [09:12:03]Write to MH i2c: E2 08 00 01 0F 80 09 00 00 00 00 00 00 82 [09:12:03]Write i2c OK [09:12:03]MH_I2C_Read... [09:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:03]Read from MH i2c: E2 [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: E2 03 00 [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [09:12:03]RAPDU: 90 00 [09:12:03]wFMCommunicate OK [09:12:03]SAM_PROTO_ClearQueue done [09:12:03]KKMCreateOFDPacket [09:12:03]OFDProtocolAddRootSTLVToBuf [09:12:03]FM_MakeSignedData [09:12:03]FM_MakeSignedData [09:12:03]SAM_PROTO_SignData [09:12:03]wFMCommunicate request_size=4 [09:12:03]MH_SAM_APDU [09:12:03]CAPDU: 80 0D 01 02 [09:12:03]Write to MH i2c: E2 08 00 02 0F 80 0D 01 02 00 00 00 00 8A [09:12:03]Write i2c OK [09:12:03]MH_I2C_Read... [09:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:03]Read from MH i2c: E2 [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: E2 03 00 [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [09:12:03]RAPDU: 90 00 [09:12:03]wFMCommunicate OK [09:12:03]wFMCommunicate request_size=255 [09:12:03]MH_SAM_APDU [09:12:03]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 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 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 65 53 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 [09:12:03]Write to MH i2c: E2 02 01 03 0F 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 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 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 65 53 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 00 00 CD [09:12:03]Write i2c OK [09:12:03]MH_I2C_Read... [09:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:04]Read from MH i2c: E2 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: E2 03 00 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [09:12:04]RAPDU: 90 00 [09:12:04]wFMCommunicate OK [09:12:04]wFMCommunicate request_size=21 [09:12:04]MH_SAM_APDU [09:12:04]CAPDU: 80 0D 02 02 10 04 00 EE 68 01 00 35 04 06 00 5A DA 5D 83 CC B6 [09:12:04]Write to MH i2c: E2 18 00 04 0F 80 0D 02 02 10 00 04 00 EE 68 01 00 35 04 06 00 5A DA 5D 83 CC B6 00 00 DD [09:12:04]Write i2c OK [09:12:04]MH_I2C_Read... [09:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:04]Read from MH i2c: E2 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: E2 03 00 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [09:12:04]RAPDU: 90 00 [09:12:04]wFMCommunicate OK [09:12:04]wFMCommunicate request_size=4 [09:12:04]MH_SAM_APDU [09:12:04]CAPDU: 80 0D 03 02 [09:12:04]Write to MH i2c: E2 08 00 05 0F 80 0D 03 02 00 00 00 00 8F [09:12:04]Write i2c OK [09:12:04]MH_I2C_Read... [09:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:04]Read from MH i2c: E2 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: E2 0B 00 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: E2 0B 00 05 0F 00 38 B2 49 DD 79 09 66 ED 90 00 75 [09:12:04]RAPDU: 38 B2 49 DD 79 09 66 ED 90 00 [09:12:04]wFMCommunicate OK [09:12:04]SAM_PROTO_SignData done [09:12:04]FM_MakeSignedData done [09:12:04]CreateOFDProtocolMessage [09:12:04]wFMCommunicate request_size=4 [09:12:04]MH_SAM_APDU [09:12:04]CAPDU: 80 11 00 00 [09:12:04]Write to MH i2c: E2 08 00 06 0F 80 11 00 00 00 00 00 00 8F [09:12:04]Write i2c OK [09:12:04]MH_I2C_Read... [09:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:04]Read from MH i2c: E2 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: E2 17 00 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: E2 17 00 06 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E6 [09:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:12:04]wFMCommunicate OK [09:12:04]CreateOFDProtocolMessage done [09:12:04]OFDSenderStorePacket 92398 [09:12:04]StoreOFDPacket docnum=92398 [09:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1A 01 00 00 5A 37 12 01 C4 BC 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 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 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 65 53 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EE 68 01 00 35 04 06 00 5A DA 5D 83 CC B6 38 B2 49 DD 79 09 66 ED [09:12:04]CheckFolder [09:12:04]dirname=/storage/ofd_packets [09:12:04]CheckFolder done [09:12:04]ProducePacketName [09:12:04]name=ofd_packets/00092398 [09:12:04]NVStorageSaveData ofd_packets/00092398 [09:12:04]File name is /storage/ofd_packets/00092398 [09:12:04]Write 312 bytes [09:12:04]NVStorageSaveData done [09:12:04]OFDSenderStorePacket done [09:12:04]KKMCreateOFDPacket done [09:12:04]NVStorageSaveData kkm_last_timestamp [09:12:04]File name is /storage/kkm_last_timestamp [09:12:04]Write 4 bytes [09:12:04]NVStorageSaveData done [09:12:04]ExternCall_PrintAddStr [09:12:04]wPrintStart [09:12:04]Write to MH i2c: 01 00 00 07 0F 16 [09:12:04]Write i2c OK [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: 01 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: 01 07 00 [09:12:04]MH_I2C_Read... [09:12:04]Read from MH i2c: 01 07 00 07 0F 00 00 00 00 00 FF 0F 2B [09:12:04]RasterBufferAndPrint [09:12:04]line Счет N : (3)127310 [09:12:04]line ИНН: 02508201610067 [09:12:04]line Контрольно-Кассовый Чек [09:12:04]line ПРОДАЖА [09:12:04]line Товар: 40099484 [09:12:04]line Жев Orbit White под [09:12:04]line 1.000 * 45.00 [09:12:04]line = 45.00 [09:12:04]line НДС 12% НСП 1% [09:12:04]line > о реализуемом товаре [09:12:04]line ИТОГО: 45.00 [09:12:04]line НСП 1% : 0.40 [09:12:04]line НДС 12% : 4.78 [09:12:04]line Наличными: 0.00 [09:12:04]line Безнал.: 45.00 [09:12:04]line Место: АЗС № 5 "Партнер Нефть" [09:12:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:12:04]line СНО: Общий режим [09:12:04]line Чек 49 14.09.2024 09:12 [09:12:04]line Смена: 506 ФФД: 1.0 [09:12:04]line ЗНМ: 03000000022 [09:12:04]line РНМ: 0000000000091423 [09:12:04]line Версия ККМ: 001 [09:12:04]line Платежная система: Бакай Банк [09:12:04]line ФМ: 0000000000874692 [09:12:04]line ФД: 92398 [09:12:04]line ФПД: 99893918289078 [09:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T091205&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92398&fm=99893918289078&tin=02508201610067®Number=0000000000091423&sum=4500 [09:12:04]OFD Sender: Processing packet 92398 [packets to send 63, broken 62] [09:12:04]ProducePacketName [09:12:04]name=ofd_packets/00092398 [09:12:04]OFD Sender: To server: pG, [09:12:04]CommunicateWithHost lk.salyk.kg:30040 [09:12:04]ConnectInit lk.salyk.kg [09:12:04]line 0 [09:12:04]written 0, free lines is 4095 [09:12:04]Connected sock=10 [09: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 34 36 39 32 1A 01 00 00 5A 37 12 01 C4 BC 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 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 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 65 53 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EE 68 01 00 35 04 06 00 5A DA 5D 83 CC B6 38 B2 49 DD 79 09 66 ED [09:12:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8C BA 47 00 B8 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 34 36 39 32 10 04 04 00 EE 68 01 00 F4 03 04 00 E0 FB E4 66 B6 04 01 00 00 56 AA 91 D7 71 F4 17 3C [09:12:04]CommunicateWithHost err = 0 [09:12:04]CheckOFDResponse [09:12:04]1017 (14) - 77093643461234 [09:12:04]1041 (16) - 0000000000874692 [09:12:04]1040 (4) - 92398 [09:12:04]1012 (4) - 14.09.2024 02:58 [09:12:04]1206 (1) - 0 [09:12:04]OFD Sender: Remove packet 92398 [09:12:04]ProducePacketName [09:12:04]name=ofd_packets/00092398 [09:12:04]NVStorageDeleteData [09:12:05]Write to MH i2c: 01 00 00 31 0F 40 [09:12:05]Write i2c OK [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: 01 [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: 01 07 00 [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: 01 07 00 31 0F 00 00 00 00 00 05 0D 59 [09:12:05]RasterBufferAndPrint [09:12:05]line [09:12:05]line [09:12:05]line [09:12:05]line [09:12:05]line [09:12:05]written 0, free lines is 3340 [09:12:05]MH_Cut [09:12:05]Write to MH i2c: D1 01 00 38 0F 01 19 [09:12:05]Write i2c OK [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: D1 [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: D1 01 00 [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: D1 01 00 38 0F 00 18 [09:12:05]Write to MH i2c: 01 00 00 39 0F 48 [09:12:05]Write i2c OK [09:12:05]MH_I2C_Read... [09:12:05]OFD Sender: No OFD packet to send [09:12:05]*** Cut start [09:12:05]*** Purtial cut [09:12:05]*** Stage 1: CUTSNS_PIN = 1 [09:12:07]Read from MH i2c: 01 [09:12:07]MH_I2C_Read... [09:12:07]*** Stop cut motor [09:12:07]*** Cut end [09:12:07]Read from MH i2c: 01 07 00 [09:12:07]MH_I2C_Read... [09:12:07]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 FF 0F 5D [09:12:07]process_action close_receipt done [09:12:07]requested_data is exist [09:12:07]produce_requested_data [09:12:07]requested_item fm.sn is exist - process it [09:12:07]wFMCommunicate request_size=4 [09:12:07]MH_SAM_APDU [09:12:07]CAPDU: 80 11 00 00 [09:12:07]Write to MH i2c: E2 08 00 3A 0F 80 11 00 00 00 00 00 00 C3 [09:12:07]Write i2c OK [09:12:07]MH_I2C_Read... [09:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:07]Read from MH i2c: E2 [09:12:07]MH_I2C_Read... [09:12:07]Read from MH i2c: E2 17 00 [09:12:07]MH_I2C_Read... [09:12:07]Read from MH i2c: E2 17 00 3A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1A [09:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:12:07]wFMCommunicate OK [09:12:07]requested_item fd.num is exist - process it [09:12:07]SAM_PROTO_GetFieldsCounters [09:12:07]wFMCommunicate request_size=4 [09:12:07]MH_SAM_APDU [09:12:07]CAPDU: 80 13 00 00 [09:12:07]Write to MH i2c: E2 08 00 3B 0F 80 13 00 00 00 00 00 00 C6 [09:12:07]Write i2c OK [09:12:07]MH_I2C_Read... [09:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:07]Read from MH i2c: E2 [09:12:07]MH_I2C_Read... [09:12:07]Read from MH i2c: E2 62 00 [09:12:07]MH_I2C_Read... [09:12:07]Read from MH i2c: E2 62 00 3B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EE 68 01 00 0E 04 04 00 FA 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 CA [09: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EE 68 01 00 0E 04 04 00 FA 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:12:07]wFMCommunicate OK [09:12:07]SAM_PROTO_GetFieldsCounters done [09:12:07]requested_item shift.num is exist - process it [09:12:07]requested_item shift.opened is exist - process it [09:12:07]req_shift_opened [09:12:07]FM_GetShiftState [09:12:07]SAM_PROTO_GetShiftState [09:12:07]wFMCommunicate request_size=4 [09:12:07]MH_SAM_APDU [09:12:07]CAPDU: 80 13 01 00 [09:12:07]Write to MH i2c: E2 08 00 3C 0F 80 13 01 00 00 00 00 00 C8 [09:12:07]Write i2c OK [09:12:07]MH_I2C_Read... [09:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:07]Read from MH i2c: E2 [09:12:07]MH_I2C_Read... [09:12:07]Read from MH i2c: E2 0E 00 [09:12:07]MH_I2C_Read... [09:12:07]Read from MH i2c: E2 0E 00 3C 0F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 62 [09:12:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:12:07]wFMCommunicate OK [09:12:07]SAM_PROTO_GetShiftState done [09:12:07]FM_GetShiftState done [09:12:07]req_shift_opened done [09:12:07]requested_item shift.open_date is exist - process it [09:12:07]req_shift_open_date [09:12:07]req_shift_open_date done [09:12:07]produce_requested_data done [09:12:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92398,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:12:07]process_action_free close_receipt [09:12:07]json_value_free [09:12:07]json_value_free done [09:12:07]process_json_proto returns [09:12:07]Send response to host [09:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92398,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:12:07]free response buf [09:12:07]execute_script done [09:12:07]execute_script returns [09:12:08]free content buf [09:12:08]Sock 8.Close socket [09:12:08]Sock 8.Thread stoped [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:27]accept exits with 9 [09:17:27]New connection [09:17:27]New thread 3066801508 created [09:17:27]Thread 3066658148 joined [09:17:27]Waiting for new connection... [09:17:27] Sock 9.Parse request [09:17:27]Sock 9.Check first char [09:17:27]Sock 9.First char is OK [09:17:27]request: POST /json_proto HTTP/1.0 [09:17:27]Method: POST [09:17:27]URL: /json_proto [09:17:27]Method is POST - this is cgi request [09:17:27]url: /json_proto [09:17:27]query_string will be loaded in cgi processing [09:17:27]execute_cgi json_proto POST (null) [09:17:27]execute_cgi path=json_proto method=POST [09:17:27]POST find Content-Length [09:17:27]Host: 172.17.57.71:8080 [09:17:27]Content-Length: 1593 [09:17:27]Content-Type: application/json [09:17:27] [09:17:27]POST finish read [09:17:27]Found Content-Length = 1593 [09:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127311", "tax_sys" : 0, "items" : [ { "code": "745240075967", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 7 AQUA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.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" : 2.000, "sum" : 160.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" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:27]execute_script... [09:17: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)127311", "tax_sys" : 0, "items" : [ { "code": "745240075967", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 7 AQUA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.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" : 2.000, "sum" : 160.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" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:27]POST & json_proto [09:17:27]process_json_proto [09:17:27]json parsed OK: [09:17:27]protocol is kg_v1.0 [09:17:27]action value=close_receipt [09:17:27]process_action close_receipt [09:17:27]cmd_close_receipt [09:17:27]MH_GetDate [09:17:27]Write to MH i2c: F0 00 00 3D 0F 3B [09:17:27]Write i2c OK [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: F0 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: F0 09 00 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: F0 09 00 3D 0F 00 A9 54 E5 66 33 3A A4 66 03 [09:17:27]GetLastDocTimeStamp 1726305125 [09:17:27]current date 1726305449 [09:17:27]FM_GetShiftState [09:17:27]SAM_PROTO_GetShiftState [09:17:27]wFMCommunicate request_size=4 [09:17:27]MH_SAM_APDU [09:17:27]CAPDU: 80 13 01 00 [09:17:27]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [09:17:27]Write i2c OK [09:17:27]MH_I2C_Read... [09:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:27]Read from MH i2c: E2 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: E2 0E 00 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 64 [09:17:27]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:17:27]wFMCommunicate OK [09:17:27]SAM_PROTO_GetShiftState done [09:17:27]FM_GetShiftState done [09:17:27]opened in 1726273389 [09:17:27]opened+sec_in_day 1726359789 [09:17:27]quantity*price = 30000 [09:17:27]sum+1 = 30001 [09:17:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000029770012 Очки солнцезащитные в ассортименте 1.000 * 590.00 = 590.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600338001623 Вода Фруто НЯНЯ негазир д/детей 0,33л 2.000 * 80.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 2.000 * 59.00 = 118.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1168.00 НСП 1% : 10.33 НДС 12% : 124.03 Наличными: 1168.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 50 14.09.2024 09:17 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92399 ФПД: 107807646271374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T091730&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92399&fm=107807646271374&tin=02508201610067®Number=0000000000091423&sum=116800 0 [09:17:28]StoreToDocumentArchive [09:17:28]shift 506 fd 92399 [09:17:28]save to /storage/0506/doc_00092399 [09:17:28]save last doc name /storage/0506/doc_00092399 to /storage/kkm_last_doc_name [09:17:28]save OK [09:17:28]Clear old archive folders... [09:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=652 [09:17:28]tlvbuf is 00FB5CB0 [09:17:28]SAM_PROTO_ClearQueue [09:17:28]wFMCommunicate request_size=4 [09:17:28]MH_SAM_APDU [09:17:28]CAPDU: 80 09 00 00 [09:17:28]Write to MH i2c: E2 08 00 4B 0F 80 09 00 00 00 00 00 00 CC [09:17:28]Write i2c OK [09:17:28]MH_I2C_Read... [09:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:28]Read from MH i2c: E2 [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: E2 03 00 [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [09:17:28]RAPDU: 90 00 [09:17:28]wFMCommunicate OK [09:17:28]SAM_PROTO_ClearQueue done [09:17:28]KKMCreateOFDPacket [09:17:28]OFDProtocolAddRootSTLVToBuf [09:17:28]FM_MakeSignedData [09:17:28]FM_MakeSignedData [09:17:28]SAM_PROTO_SignData [09:17:28]wFMCommunicate request_size=4 [09:17:28]MH_SAM_APDU [09:17:28]CAPDU: 80 0D 01 02 [09:17:28]Write to MH i2c: E2 08 00 4C 0F 80 0D 01 02 00 00 00 00 D4 [09:17:28]Write i2c OK [09:17:28]MH_I2C_Read... [09:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:28]Read from MH i2c: E2 [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: E2 03 00 [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [09:17:28]RAPDU: 90 00 [09:17:28]wFMCommunicate OK [09:17:28]wFMCommunicate request_size=255 [09:17:28]MH_SAM_APDU [09:17:28]CAPDU: 80 0D 02 02 FA 03 00 8C 02 1E 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 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 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 [09:17:28]Write to MH i2c: E2 02 01 4D 0F 80 0D 02 02 FA 00 03 00 8C 02 1E 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 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 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 00 00 3D [09:17:28]Write i2c OK [09:17:28]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:29]Read from MH i2c: E2 03 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [09:17:29]RAPDU: 90 00 [09:17:29]wFMCommunicate OK [09:17:29]wFMCommunicate request_size=255 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 0D 02 02 FA 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 C8 01 00 00 [09:17:29]Write to MH i2c: E2 02 01 4E 0F 80 0D 02 02 FA 00 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 C8 01 00 00 00 00 C8 [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [09:17:29]RAPDU: 90 00 [09:17:29]wFMCommunicate OK [09:17:29]wFMCommunicate request_size=161 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 30 00 00 00 00 07 04 06 00 40 C8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AA 54 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 68 01 00 35 04 06 00 62 0C EC 75 C7 8E [09:17:29]Write to MH i2c: E2 A4 00 4F 0F 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 30 00 00 00 00 07 04 06 00 40 C8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AA 54 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 68 01 00 35 04 06 00 62 0C EC 75 C7 8E 00 00 F6 [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [09:17:29]RAPDU: 90 00 [09:17:29]wFMCommunicate OK [09:17:29]wFMCommunicate request_size=4 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 0D 03 02 [09:17:29]Write to MH i2c: E2 08 00 50 0F 80 0D 03 02 00 00 00 00 DA [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 0B 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 0B 00 50 0F 00 83 1B AD 23 70 11 FE EA 90 00 B2 [09:17:29]RAPDU: 83 1B AD 23 70 11 FE EA 90 00 [09:17:29]wFMCommunicate OK [09:17:29]SAM_PROTO_SignData done [09:17:29]FM_MakeSignedData done [09:17:29]CreateOFDProtocolMessage [09:17:29]wFMCommunicate request_size=4 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 11 00 00 [09:17:29]Write to MH i2c: E2 08 00 51 0F 80 11 00 00 00 00 00 00 DA [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 17 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 17 00 51 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 31 [09:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:17:29]wFMCommunicate OK [09:17:29]CreateOFDProtocolMessage done [09:17:29]OFDSenderStorePacket 92399 [09:17:29]StoreOFDPacket docnum=92399 [09:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A0 02 00 00 04 B6 98 02 02 2E 5A 03 01 00 03 00 8C 02 1E 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 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 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 C8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 30 00 00 00 00 07 04 06 00 40 C8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AA 54 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 68 01 00 35 04 06 00 62 0C EC 75 C7 8E 83 1B AD 23 70 11 FE EA [09:17:29]CheckFolder [09:17:29]dirname=/storage/ofd_packets [09:17:29]CheckFolder done [09:17:29]ProducePacketName [09:17:29]name=ofd_packets/00092399 [09:17:29]NVStorageSaveData ofd_packets/00092399 [09:17:29]File name is /storage/ofd_packets/00092399 [09:17:29]Write 702 bytes [09:17:29]NVStorageSaveData done [09:17:29]OFDSenderStorePacket done [09:17:29]KKMCreateOFDPacket done [09:17:29]NVStorageSaveData kkm_last_timestamp [09:17:29]File name is /storage/kkm_last_timestamp [09:17:29]Write 4 bytes [09:17:29]NVStorageSaveData done [09:17:29]ExternCall_PrintAddStr [09:17:29]wPrintStart [09:17:29]Write to MH i2c: 01 00 00 52 0F 61 [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: 01 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: 01 07 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: 01 07 00 52 0F 00 00 00 00 00 FF 0F 76 [09:17:29]RasterBufferAndPrint [09:17:29]line Счет N : (3)127311 [09:17:29]line ИНН: 02508201610067 [09:17:29]line Контрольно-Кассовый Чек [09:17:29]line ПРОДАЖА [09:17:29]line Товар: 745240075967 [09:17:29]line Автопарфюм 7 AQUA [09:17:29]line 1.000 * 300.00 [09:17:29]line = 300.00 [09:17:29]line НДС 12% НСП 1% [09:17:29]line > о реализуемом товаре [09:17:29]line Товар: 2000029770012 [09:17:29]line Очки солнцезащитные в ассортименте [09:17:29]line 1.000 * 590.00 [09:17:29]line = 590.00 [09:17:29]line НДС 12% НСП 1% [09:17:30]line > о реализуемом товаре [09:17:30]line Товар: 4600338001623 [09:17:30]line Вода Фруто НЯНЯ негазир д/детей 0,33л [09:17:30]line 2.000 * 80.00 [09:17:30]line = 160.00 [09:17:30]line НДС 12% НСП 1% [09:17:30]line > о реализуемом товаре [09:17:30]line Товар: 4607065001445 [09:17:30]line Шок батончик Snickers 50,5г [09:17:30]line 2.000 * 59.00 [09:17:30]line = 118.00 [09:17:30]line НДС 12% НСП 1% [09:17:30]line > о реализуемом товаре [09:17:30]line ИТОГО: 1168.00 [09:17:30]line НСП 1% : 10.33 [09:17:30]line НДС 12% : 124.03 [09:17:30]line Наличными: 1168.00 [09:17:30]line Безнал.: 0.00 [09:17:30]line Место: АЗС № 5 "Партнер Нефть" [09:17:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:17:30]line СНО: Общий режим [09:17:30]line Чек 50 14.09.2024 09:17 [09:17:30]line Смена: 506 ФФД: 1.0 [09:17:30]line ЗНМ: 03000000022 [09:17:30]line РНМ: 0000000000091423 [09:17:30]line Версия ККМ: 001 [09:17:30]line ФМ: 0000000000874692 [09:17:30]line ФД: 92399 [09:17:30]line ФПД: 107807646271374 [09:17:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T091730&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92399&fm=107807646271374&tin=02508201610067®Number=0000000000091423&sum=116800 [09:17:30]line 0 [09:17:30]OFD Sender: Processing packet 92399 [packets to send 63, broken 62] [09:17:30]ProducePacketName [09:17:30]name=ofd_packets/00092399 [09:17:30]OFD Sender: To server: pG, [09:17:30]CommunicateWithHost lk.salyk.kg:30040 [09:17:30]ConnectInit lk.salyk.kg [09:17:30]written 0, free lines is 4095 [09:17:30]Connected sock=10 [09:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A0 02 00 00 04 B6 98 02 02 2E 5A 03 01 00 03 00 8C 02 1E 04 01 00 01 23 04 5E 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 36 37 06 04 1B 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 37 20 41 51 55 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 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 C8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 30 00 00 00 00 07 04 06 00 40 C8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AA 54 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 68 01 00 35 04 06 00 62 0C EC 75 C7 8E 83 1B AD 23 70 11 FE EA [09:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A6 47 47 00 7F FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 EF 68 01 00 F4 03 04 00 26 FD E4 66 B6 04 01 00 00 D8 54 E2 22 D0 F3 17 F7 [09:17:30]CommunicateWithHost err = 0 [09:17:30]CheckOFDResponse [09:17:30]1017 (14) - 77093643461234 [09:17:30]1041 (16) - 0000000000874692 [09:17:30]1040 (4) - 92399 [09:17:30]1012 (4) - 14.09.2024 03:04 [09:17:30]1206 (1) - 0 [09:17:30]OFD Sender: Remove packet 92399 [09:17:30]ProducePacketName [09:17:30]name=ofd_packets/00092399 [09:17:30]NVStorageDeleteData [09:17:30]Write to MH i2c: 01 00 00 8E 0F 9D [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: 01 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: 01 07 00 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: 01 07 00 8E 0F 00 00 00 00 00 40 0C F0 [09:17:30]RasterBufferAndPrint [09:17:30]line [09:17:30]line [09:17:30]line [09:17:30]line [09:17:30]line [09:17:30]written 0, free lines is 3147 [09:17:30]MH_Cut [09:17:30]Write to MH i2c: D1 01 00 95 0F 01 76 [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: D1 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: D1 01 00 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: D1 01 00 95 0F 00 75 [09:17:30]Write to MH i2c: 01 00 00 96 0F A5 [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]OFD Sender: No OFD packet to send [09:17:31]*** Cut start [09:17:31]*** Purtial cut [09:17:31]*** Stage 1: CUTSNS_PIN = 1 [09:17:33]Read from MH i2c: 01 [09:17:33]MH_I2C_Read... [09:17:33]*** Stop cut motor [09:17:33]*** Cut end [09:17:33]Read from MH i2c: 01 07 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: 01 07 00 96 0F 00 00 00 00 00 FF 0F BA [09:17:33]process_action close_receipt done [09:17:33]requested_data is exist [09:17:33]produce_requested_data [09:17:33]requested_item fm.sn is exist - process it [09:17:33]wFMCommunicate request_size=4 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 11 00 00 [09:17:33]Write to MH i2c: E2 08 00 97 0F 80 11 00 00 00 00 00 00 20 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 17 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 17 00 97 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 77 [09:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:17:33]wFMCommunicate OK [09:17:33]requested_item fd.num is exist - process it [09:17:33]SAM_PROTO_GetFieldsCounters [09:17:33]wFMCommunicate request_size=4 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 13 00 00 [09:17:33]Write to MH i2c: E2 08 00 98 0F 80 13 00 00 00 00 00 00 23 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 62 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 62 00 98 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EF 68 01 00 0E 04 04 00 FA 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 2B [09:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 EF 68 01 00 0E 04 04 00 FA 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:17:33]wFMCommunicate OK [09:17:33]SAM_PROTO_GetFieldsCounters done [09:17:33]requested_item shift.num is exist - process it [09:17:33]requested_item shift.opened is exist - process it [09:17:33]req_shift_opened [09:17:33]FM_GetShiftState [09:17:33]SAM_PROTO_GetShiftState [09:17:33]wFMCommunicate request_size=4 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 13 01 00 [09:17:33]Write to MH i2c: E2 08 00 99 0F 80 13 01 00 00 00 00 00 25 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 0E 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 0E 00 99 0F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BF [09:17:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:17:33]wFMCommunicate OK [09:17:33]SAM_PROTO_GetShiftState done [09:17:33]FM_GetShiftState done [09:17:33]req_shift_opened done [09:17:33]requested_item shift.open_date is exist - process it [09:17:33]req_shift_open_date [09:17:33]req_shift_open_date done [09:17:33]produce_requested_data done [09:17:33]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92399,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:17:33]process_action_free close_receipt [09:17:33]json_value_free [09:17:33]json_value_free done [09:17:33]process_json_proto returns [09:17:33]Send response to host [09:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92399,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:17:33]free response buf [09:17:33]execute_script done [09:17:33]execute_script returns [09:17:33]free content buf [09:17:33]Sock 9.Close socket [09:17:33]Sock 9.Thread stoped [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:10]accept exits with 8 [09:21:10]New connection [09:21:10]New thread 3066658148 created [09:21:10]Thread 3066801508 joined [09:21:10]Waiting for new connection... [09:21:10] Sock 8.Parse request [09:21:10]Sock 8.Check first char [09:21:10]Sock 8.First char is OK [09:21:10]request: POST /json_proto HTTP/1.0 [09:21:10]Method: POST [09:21:10]URL: /json_proto [09:21:10]Method is POST - this is cgi request [09:21:10]url: /json_proto [09:21:10]query_string will be loaded in cgi processing [09:21:10]execute_cgi json_proto POST (null) [09:21:10]execute_cgi path=json_proto method=POST [09:21:10]POST find Content-Length [09:21:10]Host: 172.17.57.71:8080 [09:21:10]Content-Length: 644 [09:21:10]Content-Type: application/json [09:21:10] [09:21:10]POST finish read [09:21:10]Found Content-Length = 644 [09:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127312", "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" ] } } [09:21:10]execute_script... [09:21: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)127312", "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" ] } } [09:21:10]POST & json_proto [09:21:10]process_json_proto [09:21:10]json parsed OK: [09:21:10]protocol is kg_v1.0 [09:21:10]action value=close_receipt [09:21:10]process_action close_receipt [09:21:10]cmd_close_receipt [09:21:10]MH_GetDate [09:21:10]Write to MH i2c: F0 00 00 9A 0F 98 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: F0 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: F0 09 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: F0 09 00 9A 0F 00 89 55 E5 66 33 3A A4 66 41 [09:21:10]GetLastDocTimeStamp 1726305450 [09:21:10]current date 1726305673 [09:21:10]FM_GetShiftState [09:21:10]SAM_PROTO_GetShiftState [09:21:10]wFMCommunicate request_size=4 [09:21:10]MH_SAM_APDU [09:21:10]CAPDU: 80 13 01 00 [09:21:10]Write to MH i2c: E2 08 00 9B 0F 80 13 01 00 00 00 00 00 27 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:10]Read from MH i2c: E2 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 0E 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 0E 00 9B 0F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C1 [09:21:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:21:10]wFMCommunicate OK [09:21:10]SAM_PROTO_GetShiftState done [09:21:10]FM_GetShiftState done [09:21:10]opened in 1726273389 [09:21:10]opened+sec_in_day 1726359789 [09:21:10]quantity*price = 11500 [09:21:10]sum+1 = 11501 [09:21:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 51 14.09.2024 09:21 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92400 ФПД: 125212810243557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T092113&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92400&fm=125212810243557&tin=02508201610067®Number=0000000000091423&sum=11500 0 [09:21:11]StoreToDocumentArchive [09:21:11]shift 506 fd 92400 [09:21:11]save to /storage/0506/doc_00092400 [09:21:11]save last doc name /storage/0506/doc_00092400 to /storage/kkm_last_doc_name [09:21:11]save OK [09:21:11]Clear old archive folders... [09:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:21:11]tlvbuf is 00FD14A0 [09:21:11]SAM_PROTO_ClearQueue [09:21:11]wFMCommunicate request_size=4 [09:21:11]MH_SAM_APDU [09:21:11]CAPDU: 80 09 00 00 [09:21:11]Write to MH i2c: E2 08 00 A8 0F 80 09 00 00 00 00 00 00 29 [09:21:11]Write i2c OK [09:21:11]MH_I2C_Read... [09:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:11]Read from MH i2c: E2 [09:21:11]MH_I2C_Read... [09:21:11]Read from MH i2c: E2 03 00 [09:21:11]MH_I2C_Read... [09:21:11]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [09:21:11]RAPDU: 90 00 [09:21:11]wFMCommunicate OK [09:21:11]SAM_PROTO_ClearQueue done [09:21:11]KKMCreateOFDPacket [09:21:11]OFDProtocolAddRootSTLVToBuf [09:21:11]FM_MakeSignedData [09:21:11]FM_MakeSignedData [09:21:11]SAM_PROTO_SignData [09:21:11]wFMCommunicate request_size=4 [09:21:11]MH_SAM_APDU [09:21:11]CAPDU: 80 0D 01 02 [09:21:11]Write to MH i2c: E2 08 00 A9 0F 80 0D 01 02 00 00 00 00 31 [09:21:11]Write i2c OK [09:21:11]MH_I2C_Read... [09:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:11]Read from MH i2c: E2 [09:21:11]MH_I2C_Read... [09:21:11]Read from MH i2c: E2 03 00 [09:21:11]MH_I2C_Read... [09:21:11]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [09:21:11]RAPDU: 90 00 [09:21:11]wFMCommunicate OK [09:21:11]wFMCommunicate request_size=255 [09:21:11]MH_SAM_APDU [09:21:11]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 33 00 00 00 F4 03 04 00 89 55 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 [09:21:11]Write to MH i2c: E2 02 01 AA 0F 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 33 00 00 00 F4 03 04 00 89 55 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 00 C2 [09:21:11]Write i2c OK [09:21:11]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [09:21:12]RAPDU: 90 00 [09:21:12]wFMCommunicate OK [09:21:12]wFMCommunicate request_size=39 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 68 01 00 35 04 06 00 71 E1 61 13 6D E5 [09:21:12]Write to MH i2c: E2 2A 00 AB 0F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 68 01 00 35 04 06 00 71 E1 61 13 6D E5 00 00 64 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [09:21:12]RAPDU: 90 00 [09:21:12]wFMCommunicate OK [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 0D 03 02 [09:21:12]Write to MH i2c: E2 08 00 AC 0F 80 0D 03 02 00 00 00 00 36 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0B 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0B 00 AC 0F 00 DF 53 73 EE EF F7 2F F6 90 00 D5 [09:21:12]RAPDU: DF 53 73 EE EF F7 2F F6 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_SignData done [09:21:12]FM_MakeSignedData done [09:21:12]CreateOFDProtocolMessage [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 11 00 00 [09:21:12]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8D [09:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:21:12]wFMCommunicate OK [09:21:12]CreateOFDProtocolMessage done [09:21:12]OFDSenderStorePacket 92400 [09:21:12]StoreOFDPacket docnum=92400 [09:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2C 01 00 00 9E AA 24 01 15 02 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 33 00 00 00 F4 03 04 00 89 55 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 68 01 00 35 04 06 00 71 E1 61 13 6D E5 DF 53 73 EE EF F7 2F F6 [09:21:12]CheckFolder [09:21:12]dirname=/storage/ofd_packets [09:21:12]CheckFolder done [09:21:12]ProducePacketName [09:21:12]name=ofd_packets/00092400 [09:21:12]NVStorageSaveData ofd_packets/00092400 [09:21:12]File name is /storage/ofd_packets/00092400 [09:21:12]Write 330 bytes [09:21:12]NVStorageSaveData done [09:21:12]OFDSenderStorePacket done [09:21:12]KKMCreateOFDPacket done [09:21:12]NVStorageSaveData kkm_last_timestamp [09:21:12]File name is /storage/kkm_last_timestamp [09:21:12]Write 4 bytes [09:21:12]NVStorageSaveData done [09:21:12]ExternCall_PrintAddStr [09:21:12]wPrintStart [09:21:12]Write to MH i2c: 01 00 00 AE 0F BD [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 AE 0F 00 00 00 00 00 FF 0F D2 [09:21:12]RasterBufferAndPrint [09:21:12]line Счет N : (3)127312 [09:21:12]line ИНН: 02508201610067 [09:21:12]line Контрольно-Кассовый Чек [09:21:12]line ПРОДАЖА [09:21:12]line Товар: 2000036210013 [09:21:12]line Кофе Капучино (GABB TRADE) [09:21:12]line 1.000 * 115.00 [09:21:12]line = 115.00 [09:21:12]line НДС 12% НСП 1% [09:21:12]line > о реализуемом товаре [09:21:12]line ИТОГО: 115.00 [09:21:12]line НСП 1% : 1.02 [09:21:12]line НДС 12% : 12.21 [09:21:12]line Наличными: 115.00 [09:21:12]line Безнал.: 0.00 [09:21:12]line Место: АЗС № 5 "Партнер Нефть" [09:21:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:21:12]line СНО: Общий режим [09:21:12]line Чек 51 14.09.2024 09:21 [09:21:12]line Смена: 506 ФФД: 1.0 [09:21:12]line ЗНМ: 03000000022 [09:21:12]line РНМ: 0000000000091423 [09:21:12]line Версия ККМ: 001 [09:21:12]line ФМ: 0000000000874692 [09:21:12]line ФД: 92400 [09:21:12]line ФПД: 125212810243557 [09:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T092113&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92400&fm=125212810243557&tin=02508201610067®Number=0000000000091423&sum=11500 [09:21:12]OFD Sender: Processing packet 92400 [packets to send 63, broken 62] [09:21:12]ProducePacketName [09:21:12]name=ofd_packets/00092400 [09:21:12]OFD Sender: To server: pG, [09:21:12]CommunicateWithHost lk.salyk.kg:30040 [09:21:12]ConnectInit lk.salyk.kg [09:21:12]line 0 [09:21:12]written 0, free lines is 4095 [09:21:12]Connected sock=10 [09:21:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2C 01 00 00 9E AA 24 01 15 02 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 33 00 00 00 F4 03 04 00 89 55 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 68 01 00 35 04 06 00 71 E1 61 13 6D E5 DF 53 73 EE EF F7 2F F6 [09:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 41 0C 47 00 F0 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F0 68 01 00 F4 03 04 00 04 FE E4 66 B6 04 01 00 00 49 56 7D 4D 39 39 FF CC [09:21:13]CommunicateWithHost err = 0 [09:21:13]CheckOFDResponse [09:21:13]1017 (14) - 77093643461234 [09:21:13]1041 (16) - 0000000000874692 [09:21:13]1040 (4) - 92400 [09:21:13]1012 (4) - 14.09.2024 03:07 [09:21:13]1206 (1) - 0 [09:21:13]OFD Sender: Remove packet 92400 [09:21:13]ProducePacketName [09:21:13]name=ofd_packets/00092400 [09:21:13]NVStorageDeleteData [09:21:13]Write to MH i2c: 01 00 00 D6 0F E5 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 D6 0F 00 00 00 00 00 27 0D 20 [09:21:13]RasterBufferAndPrint [09:21:13]line [09:21:13]line [09:21:13]line [09:21:13]line [09:21:13]line [09:21:13]written 0, free lines is 3375 [09:21:13]MH_Cut [09:21:13]Write to MH i2c: D1 01 00 DD 0F 01 BE [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D1 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D1 01 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D1 01 00 DD 0F 00 BD [09:21:13]Write to MH i2c: 01 00 00 DE 0F ED [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]OFD Sender: No OFD packet to send [09:21:13]*** Cut start [09:21:13]*** Purtial cut [09:21:13]*** Stage 1: CUTSNS_PIN = 1 [09:21:15]Read from MH i2c: 01 [09:21:15]MH_I2C_Read... [09:21:15]*** Stop cut motor [09:21:15]*** Cut end [09:21:15]Read from MH i2c: 01 07 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 FF 0F 02 [09:21:15]process_action close_receipt done [09:21:15]requested_data is exist [09:21:15]produce_requested_data [09:21:15]requested_item fm.sn is exist - process it [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 11 00 00 [09:21:15]Write to MH i2c: E2 08 00 DF 0F 80 11 00 00 00 00 00 00 68 [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 17 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 17 00 DF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BF [09:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:21:15]wFMCommunicate OK [09:21:15]requested_item fd.num is exist - process it [09:21:15]SAM_PROTO_GetFieldsCounters [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 13 00 00 [09:21:15]Write to MH i2c: E2 08 00 E0 0F 80 13 00 00 00 00 00 00 6B [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 62 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 62 00 E0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F0 68 01 00 0E 04 04 00 FA 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 77 [09:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F0 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:16]wFMCommunicate OK [09:21:16]SAM_PROTO_GetFieldsCounters done [09:21:16]requested_item shift.num is exist - process it [09:21:16]requested_item shift.opened is exist - process it [09:21:16]req_shift_opened [09:21:16]FM_GetShiftState [09:21:16]SAM_PROTO_GetShiftState [09:21:16]wFMCommunicate request_size=4 [09:21:16]MH_SAM_APDU [09:21:16]CAPDU: 80 13 01 00 [09:21:16]Write to MH i2c: E2 08 00 E1 0F 80 13 01 00 00 00 00 00 6D [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 0E 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 0E 00 E1 0F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 07 [09:21:16]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:21:16]wFMCommunicate OK [09:21:16]SAM_PROTO_GetShiftState done [09:21:16]FM_GetShiftState done [09:21:16]req_shift_opened done [09:21:16]requested_item shift.open_date is exist - process it [09:21:16]req_shift_open_date [09:21:16]req_shift_open_date done [09:21:16]produce_requested_data done [09:21:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92400,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:21:16]process_action_free close_receipt [09:21:16]json_value_free [09:21:16]json_value_free done [09:21:16]process_json_proto returns [09:21:16]Send response to host [09:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92400,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:21:16]free response buf [09:21:16]execute_script done [09:21:16]execute_script returns [09:21:16]free content buf [09:21:16]Sock 8.Close socket [09:21:16]Sock 8.Thread stoped [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:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:12]accept exits with 9 [09:26:12]New connection [09:26:12]New thread 3066801508 created [09:26:12]Thread 3066658148 joined [09:26:12]Waiting for new connection... [09:26:12] Sock 9.Parse request [09:26:12]Sock 9.Check first char [09:26:12]Sock 9.First char is OK [09:26:12]request: POST /json_proto HTTP/1.0 [09:26:12]Method: POST [09:26:12]URL: /json_proto [09:26:12]Method is POST - this is cgi request [09:26:12]url: /json_proto [09:26:12]query_string will be loaded in cgi processing [09:26:12]execute_cgi json_proto POST (null) [09:26:12]execute_cgi path=json_proto method=POST [09:26:12]POST find Content-Length [09:26:12]Host: 172.17.57.71:8080 [09:26:12]Content-Length: 821 [09:26:12]Content-Type: application/json [09:26:12] [09:26:12]POST finish read [09:26:12]Found Content-Length = 821 [09:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127313", "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" : 2.000, "sum" : 230.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" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:12]execute_script... [09:26: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)127313", "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" : 2.000, "sum" : 230.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" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:12]POST & json_proto [09:26:12]process_json_proto [09:26:12]json parsed OK: [09:26:12]protocol is kg_v1.0 [09:26:12]action value=close_receipt [09:26:12]process_action close_receipt [09:26:12]cmd_close_receipt [09:26:12]MH_GetDate [09:26:12]Write to MH i2c: F0 00 00 E2 0F E0 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 09 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 09 00 E2 0F 00 B7 56 E5 66 33 3A A4 66 B8 [09:26:12]GetLastDocTimeStamp 1726305673 [09:26:12]current date 1726305975 [09:26:12]FM_GetShiftState [09:26:12]SAM_PROTO_GetShiftState [09:26:12]wFMCommunicate request_size=4 [09:26:12]MH_SAM_APDU [09:26:12]CAPDU: 80 13 01 00 [09:26:12]Write to MH i2c: E2 08 00 E3 0F 80 13 01 00 00 00 00 00 6F [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:12]Read from MH i2c: E2 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 E3 0F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 09 [09:26:12]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:26:12]wFMCommunicate OK [09:26:12]SAM_PROTO_GetShiftState done [09:26:12]FM_GetShiftState done [09:26:12]opened in 1726273389 [09:26:12]opened+sec_in_day 1726359789 [09:26:12]quantity*price = 23000 [09:26:12]sum+1 = 23001 [09:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 0.00 Безнал.: 230.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 52 14.09.2024 09:26 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92401 ФПД: 211136721936177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T092615&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92401&fm=211136721936177&tin=02508201610067®Number=0000000000091423&sum=23000 0 [09:26:13]StoreToDocumentArchive [09:26:13]shift 506 fd 92401 [09:26:13]save to /storage/0506/doc_00092401 [09:26:13]save last doc name /storage/0506/doc_00092401 to /storage/kkm_last_doc_name [09:26:13]save OK [09:26:13]Clear old archive folders... [09:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:26:13]tlvbuf is 00F968E0 [09:26:13]SAM_PROTO_ClearQueue [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 09 00 00 [09:26:13]Write to MH i2c: E2 08 00 F0 0F 80 09 00 00 00 00 00 00 71 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 F0 0F 00 90 00 73 [09:26:13]RAPDU: 90 00 [09:26:13]wFMCommunicate OK [09:26:13]SAM_PROTO_ClearQueue done [09:26:13]KKMCreateOFDPacket [09:26:13]OFDProtocolAddRootSTLVToBuf [09:26:13]FM_MakeSignedData [09:26:13]FM_MakeSignedData [09:26:13]SAM_PROTO_SignData [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 0D 01 02 [09:26:13]Write to MH i2c: E2 08 00 F1 0F 80 0D 01 02 00 00 00 00 79 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]OFD Sender: No OFD packet to send [09:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [09:26:13]RAPDU: 90 00 [09:26:13]wFMCommunicate OK [09:26:13]wFMCommunicate request_size=255 [09:26:13]MH_SAM_APDU [09:26: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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B7 56 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 [09:26:13]Write to MH i2c: E2 02 01 F2 0F 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B7 56 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 00 A0 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 F2 0F 00 90 00 75 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=39 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 68 01 00 35 04 06 00 C0 07 19 4F 5F 31 [09:26:14]Write to MH i2c: E2 2A 00 F3 0F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 68 01 00 35 04 06 00 C0 07 19 4F 5F 31 00 00 54 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 03 02 [09:26:14]Write to MH i2c: E2 08 00 F4 0F 80 0D 03 02 00 00 00 00 7E [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0B 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0B 00 F4 0F 00 CF F3 FD F7 8A 00 1B 77 90 00 51 [09:26:14]RAPDU: CF F3 FD F7 8A 00 1B 77 90 00 [09:26:14]wFMCommunicate OK [09:26:14]SAM_PROTO_SignData done [09:26:14]FM_MakeSignedData done [09:26:14]CreateOFDProtocolMessage [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 11 00 00 [09:26:14]Write to MH i2c: E2 08 00 F5 0F 80 11 00 00 00 00 00 00 7E [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 F5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D5 [09:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:26:14]wFMCommunicate OK [09:26:14]CreateOFDProtocolMessage done [09:26:14]OFDSenderStorePacket 92401 [09:26:14]StoreOFDPacket docnum=92401 [09:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2C 01 00 00 B5 1E 24 01 F7 EF 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B7 56 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 68 01 00 35 04 06 00 C0 07 19 4F 5F 31 CF F3 FD F7 8A 00 1B 77 [09:26:14]CheckFolder [09:26:14]dirname=/storage/ofd_packets [09:26:14]CheckFolder done [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00092401 [09:26:14]NVStorageSaveData ofd_packets/00092401 [09:26:14]File name is /storage/ofd_packets/00092401 [09:26:14]Write 330 bytes [09:26:14]NVStorageSaveData done [09:26:14]OFDSenderStorePacket done [09:26:14]KKMCreateOFDPacket done [09:26:14]NVStorageSaveData kkm_last_timestamp [09:26:14]File name is /storage/kkm_last_timestamp [09:26:14]Write 4 bytes [09:26:14]NVStorageSaveData done [09:26:14]ExternCall_PrintAddStr [09:26:14]wPrintStart [09:26:14]Write to MH i2c: 01 00 00 F6 0F 05 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 F6 0F 00 00 00 00 00 FF 0F 1A [09:26:14]RasterBufferAndPrint [09:26:14]line Счет N : (3)127313 [09:26:14]line ИНН: 02508201610067 [09:26:14]line Контрольно-Кассовый Чек [09:26:14]line ПРОДАЖА [09:26:14]line Товар: 2000036210013 [09:26:14]line Кофе Капучино (GABB TRADE) [09:26:14]line 2.000 * 115.00 [09:26:14]line = 230.00 [09:26:14]line НДС 12% НСП 1% [09:26:14]line > о реализуемом товаре [09:26:14]line ИТОГО: 230.00 [09:26:14]line НСП 1% : 2.03 [09:26:14]line НДС 12% : 24.42 [09:26:14]line Наличными: 0.00 [09:26:14]line Безнал.: 230.00 [09:26:14]line Место: АЗС № 5 "Партнер Нефть" [09:26:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:26:14]line СНО: Общий режим [09:26:14]line Чек 52 14.09.2024 09:26 [09:26:14]line Смена: 506 ФФД: 1.0 [09:26:14]line ЗНМ: 03000000022 [09:26:14]line РНМ: 0000000000091423 [09:26:14]line Версия ККМ: 001 [09:26:14]line Платежная система: Бакай Банк [09:26:14]line ФМ: 0000000000874692 [09:26:14]line ФД: 92401 [09:26:14]line ФПД: 211136721936177 [09:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T092615&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92401&fm=211136721936177&tin=02508201610067®Number=0000000000091423&sum=23000 [09:26:14]line 0 [09:26:14]OFD Sender: Processing packet 92401 [packets to send 63, broken 62] [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00092401 [09:26:14]OFD Sender: To server: pG, [09:26:14]CommunicateWithHost lk.salyk.kg:30040 [09:26:14]ConnectInit lk.salyk.kg [09:26:14]written 0, free lines is 4095 [09:26:14]Connected sock=10 [09:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2C 01 00 00 B5 1E 24 01 F7 EF 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 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 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B7 56 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 68 01 00 35 04 06 00 C0 07 19 4F 5F 31 CF F3 FD F7 8A 00 1B 77 [09:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E1 2D 47 00 48 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F1 68 01 00 F4 03 04 00 32 FF E4 66 B6 04 01 00 00 D0 28 81 EE 8F 66 59 73 [09:26:14]CommunicateWithHost err = 0 [09:26:14]CheckOFDResponse [09:26:14]1017 (14) - 77093643461234 [09:26:14]1041 (16) - 0000000000874692 [09:26:14]1040 (4) - 92401 [09:26:14]1012 (4) - 14.09.2024 03:12 [09:26:14]1206 (1) - 0 [09:26:14]OFD Sender: Remove packet 92401 [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00092401 [09:26:14]NVStorageDeleteData [09:26:15]Write to MH i2c: 01 00 00 20 10 30 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 20 10 00 00 00 00 00 11 0D 55 [09:26:15]RasterBufferAndPrint [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]written 0, free lines is 3353 [09:26:15]MH_Cut [09:26:15]Write to MH i2c: D1 01 00 27 10 01 09 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 01 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 01 00 27 10 00 08 [09:26:15]Write to MH i2c: 01 00 00 28 10 38 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]OFD Sender: No OFD packet to send [09:26:15]*** Cut start [09:26:15]*** Purtial cut [09:26:15]*** Stage 1: CUTSNS_PIN = 1 [09:26:17]Read from MH i2c: 01 [09:26:17]MH_I2C_Read... [09:26:17]*** Stop cut motor [09:26:17]*** Cut end [09:26:17]Read from MH i2c: 01 07 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 07 00 28 10 00 00 00 00 00 FF 0F 4D [09:26:17]process_action close_receipt done [09:26:17]requested_data is exist [09:26:17]produce_requested_data [09:26:17]requested_item fm.sn is exist - process it [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 11 00 00 [09:26:17]Write to MH i2c: E2 08 00 29 10 80 11 00 00 00 00 00 00 B3 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 17 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 17 00 29 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0A [09:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:26:17]wFMCommunicate OK [09:26:17]requested_item fd.num is exist - process it [09:26:17]SAM_PROTO_GetFieldsCounters [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 13 00 00 [09:26:17]Write to MH i2c: E2 08 00 2A 10 80 13 00 00 00 00 00 00 B6 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 62 00 [09:26:17]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 62 00 2A 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F1 68 01 00 0E 04 04 00 FA 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 C6 [09:26:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F1 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:18]wFMCommunicate OK [09:26:18]SAM_PROTO_GetFieldsCounters done [09:26:18]requested_item shift.num is exist - process it [09:26:18]requested_item shift.opened is exist - process it [09:26:18]req_shift_opened [09:26:18]FM_GetShiftState [09:26:18]SAM_PROTO_GetShiftState [09:26:18]wFMCommunicate request_size=4 [09:26:18]MH_SAM_APDU [09:26:18]CAPDU: 80 13 01 00 [09:26:18]Write to MH i2c: E2 08 00 2B 10 80 13 01 00 00 00 00 00 B8 [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:18]Read from MH i2c: E2 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 0E 00 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 0E 00 2B 10 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 52 [09:26:18]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:26:18]wFMCommunicate OK [09:26:18]SAM_PROTO_GetShiftState done [09:26:18]FM_GetShiftState done [09:26:18]req_shift_opened done [09:26:18]requested_item shift.open_date is exist - process it [09:26:18]req_shift_open_date [09:26:18]req_shift_open_date done [09:26:18]produce_requested_data done [09:26:18]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92401,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:26:18]process_action_free close_receipt [09:26:18]json_value_free [09:26:18]json_value_free done [09:26:18]process_json_proto returns [09:26:18]Send response to host [09:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92401,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:26:18]free response buf [09:26:18]execute_script done [09:26:18]execute_script returns [09:26:18]free content buf [09:26:18]Sock 9.Close socket [09:26:18]Sock 9.Thread stoped [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:54]accept exits with 8 [09:39:54]New connection [09:39:54]New thread 3066658148 created [09:39:54]Thread 3066801508 joined [09:39:54]Waiting for new connection... [09:39:54] Sock 8.Parse request [09:39:54]Sock 8.Check first char [09:39:54]Sock 8.First char is OK [09:39:54]request: POST /json_proto HTTP/1.0 [09:39:54]Method: POST [09:39:54]URL: /json_proto [09:39:54]Method is POST - this is cgi request [09:39:54]url: /json_proto [09:39:54]query_string will be loaded in cgi processing [09:39:54]execute_cgi json_proto POST (null) [09:39:54]execute_cgi path=json_proto method=POST [09:39:54]POST find Content-Length [09:39:54]Host: 172.17.57.71:8080 [09:39:54]Content-Length: 650 [09:39:54]Content-Type: application/json [09:39:54] [09:39:54]POST finish read [09:39:54]Found Content-Length = 650 [09:39:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127314", "tax_sys" : 0, "items" : [ { "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 36.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:54]execute_script... [09:39: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)127314", "tax_sys" : 0, "items" : [ { "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 36.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:54]POST & json_proto [09:39:54]process_json_proto [09:39:54]json parsed OK: [09:39:54]protocol is kg_v1.0 [09:39:54]action value=close_receipt [09:39:54]process_action close_receipt [09:39:54]cmd_close_receipt [09:39:54]MH_GetDate [09:39:54]Write to MH i2c: F0 00 00 2C 10 2B [09:39:54]Write i2c OK [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: F0 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: F0 09 00 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: F0 09 00 2C 10 00 ED 59 E5 66 33 3A A4 66 3C [09:39:54]GetLastDocTimeStamp 1726305975 [09:39:54]current date 1726306797 [09:39:54]FM_GetShiftState [09:39:54]SAM_PROTO_GetShiftState [09:39:54]wFMCommunicate request_size=4 [09:39:54]MH_SAM_APDU [09:39:54]CAPDU: 80 13 01 00 [09:39:54]Write to MH i2c: E2 08 00 2D 10 80 13 01 00 00 00 00 00 BA [09:39:54]Write i2c OK [09:39:54]MH_I2C_Read... [09:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:54]Read from MH i2c: E2 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: E2 0E 00 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: E2 0E 00 2D 10 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 54 [09:39:54]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:39:54]wFMCommunicate OK [09:39:54]SAM_PROTO_GetShiftState done [09:39:54]FM_GetShiftState done [09:39:54]opened in 1726273389 [09:39:54]opened+sec_in_day 1726359789 [09:39:54]quantity*price = 3600 [09:39:54]sum+1 = 3601 [09:39:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 36.00 НСП 1% : 0.32 НДС 12% : 3.82 Наличными: 36.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 53 14.09.2024 09:39 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92402 ФПД: 240937844370173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T093957&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92402&fm=240937844370173&tin=02508201610067®Number=0000000000091423&sum=3600 0 [09:39:55]StoreToDocumentArchive [09:39:55]shift 506 fd 92402 [09:39:55]save to /storage/0506/doc_00092402 [09:39:55]save last doc name /storage/0506/doc_00092402 to /storage/kkm_last_doc_name [09:39:55]save OK [09:39:55]Clear old archive folders... [09:39:55]ProcessDocumentItem done err = 0, tmpTLVsize=277 [09:39:55]tlvbuf is 00F86AC0 [09:39:55]SAM_PROTO_ClearQueue [09:39:55]wFMCommunicate request_size=4 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 09 00 00 [09:39:55]Write to MH i2c: E2 08 00 3A 10 80 09 00 00 00 00 00 00 BC [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 3A 10 00 90 00 BE [09:39:55]RAPDU: 90 00 [09:39:55]wFMCommunicate OK [09:39:55]SAM_PROTO_ClearQueue done [09:39:55]KKMCreateOFDPacket [09:39:55]OFDProtocolAddRootSTLVToBuf [09:39:55]FM_MakeSignedData [09:39:55]FM_MakeSignedData [09:39:55]SAM_PROTO_SignData [09:39:55]wFMCommunicate request_size=4 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 0D 01 02 [09:39:55]Write to MH i2c: E2 08 00 3B 10 80 0D 01 02 00 00 00 00 C4 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 3B 10 00 90 00 BF [09:39:55]RAPDU: 90 00 [09:39:55]wFMCommunicate OK [09:39:55]wFMCommunicate request_size=255 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 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 ED 59 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [09:39:55]Write to MH i2c: E2 02 01 3C 10 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 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 ED 59 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 93 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 03 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 03 00 3C 10 00 90 00 C0 [09:39:56]RAPDU: 90 00 [09:39:56]wFMCommunicate OK [09:39:56]wFMCommunicate request_size=36 [09:39:56]MH_SAM_APDU [09:39:56]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 68 01 00 35 04 06 00 DB 21 B6 A0 6A FD [09:39:56]Write to MH i2c: E2 27 00 3D 10 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 68 01 00 35 04 06 00 DB 21 B6 A0 6A FD 00 00 04 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 03 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [09:39:56]RAPDU: 90 00 [09:39:56]wFMCommunicate OK [09:39:56]wFMCommunicate request_size=4 [09:39:56]MH_SAM_APDU [09:39:56]CAPDU: 80 0D 03 02 [09:39:56]Write to MH i2c: E2 08 00 3E 10 80 0D 03 02 00 00 00 00 C9 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 0B 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 0B 00 3E 10 00 52 1D A5 30 12 4F D5 12 90 00 56 [09:39:56]RAPDU: 52 1D A5 30 12 4F D5 12 90 00 [09:39:56]wFMCommunicate OK [09:39:56]SAM_PROTO_SignData done [09:39:56]FM_MakeSignedData done [09:39:56]CreateOFDProtocolMessage [09:39:56]wFMCommunicate request_size=4 [09:39:56]MH_SAM_APDU [09:39:56]CAPDU: 80 11 00 00 [09:39:56]Write to MH i2c: E2 08 00 3F 10 80 11 00 00 00 00 00 00 C9 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 17 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 17 00 3F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 20 [09:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:39:56]wFMCommunicate OK [09:39:56]CreateOFDProtocolMessage done [09:39:56]OFDSenderStorePacket 92402 [09:39:56]StoreOFDPacket docnum=92402 [09:39:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 3E 63 21 01 F7 0A 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 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 ED 59 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 68 01 00 35 04 06 00 DB 21 B6 A0 6A FD 52 1D A5 30 12 4F D5 12 [09:39:56]CheckFolder [09:39:56]dirname=/storage/ofd_packets [09:39:56]CheckFolder done [09:39:56]ProducePacketName [09:39:56]name=ofd_packets/00092402 [09:39:56]NVStorageSaveData ofd_packets/00092402 [09:39:56]File name is /storage/ofd_packets/00092402 [09:39:56]Write 327 bytes [09:39:56]NVStorageSaveData done [09:39:56]OFDSenderStorePacket done [09:39:56]KKMCreateOFDPacket done [09:39:56]NVStorageSaveData kkm_last_timestamp [09:39:56]File name is /storage/kkm_last_timestamp [09:39:56]Write 4 bytes [09:39:56]NVStorageSaveData done [09:39:56]ExternCall_PrintAddStr [09:39:56]wPrintStart [09:39:56]Write to MH i2c: 01 00 00 40 10 50 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 07 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 07 00 40 10 00 00 00 00 00 FF 0F 65 [09:39:56]RasterBufferAndPrint [09:39:56]line Счет N : (3)127314 [09:39:56]line ИНН: 02508201610067 [09:39:56]line Контрольно-Кассовый Чек [09:39:56]line ПРОДАЖА [09:39:56]line Товар: 8590042701239 [09:39:56]line Салфетки влажные VOK [09:39:56]line 1.000 * 36.00 [09:39:56]line = 36.00 [09:39:56]line НДС 12% НСП 1% [09:39:56]line > о реализуемом товаре [09:39:56]line ИТОГО: 36.00 [09:39:56]line НСП 1% : 0.32 [09:39:56]line НДС 12% : 3.82 [09:39:56]line Наличными: 36.00 [09:39:56]line Безнал.: 0.00 [09:39:56]line Место: АЗС № 5 "Партнер Нефть" [09:39:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:39:56]line СНО: Общий режим [09:39:56]line Чек 53 14.09.2024 09:39 [09:39:56]line Смена: 506 ФФД: 1.0 [09:39:56]line ЗНМ: 03000000022 [09:39:56]line РНМ: 0000000000091423 [09:39:56]line Версия ККМ: 001 [09:39:56]line ФМ: 0000000000874692 [09:39:56]line ФД: 92402 [09:39:56]line ФПД: 240937844370173 [09:39:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T093957&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92402&fm=240937844370173&tin=02508201610067®Number=0000000000091423&sum=3600 [09:39:56]line 0 [09:39:56]OFD Sender: Processing packet 92402 [packets to send 63, broken 62] [09:39:56]ProducePacketName [09:39:56]name=ofd_packets/00092402 [09:39:56]OFD Sender: To server: pG, [09:39:56]CommunicateWithHost lk.salyk.kg:30040 [09:39:56]ConnectInit lk.salyk.kg [09:39:56]written 0, free lines is 4095 [09:39:56]Connected sock=10 [09:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 29 01 00 00 3E 63 21 01 F7 0A 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 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 ED 59 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 68 01 00 35 04 06 00 DB 21 B6 A0 6A FD 52 1D A5 30 12 4F D5 12 [09:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 96 9C 47 00 70 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F2 68 01 00 F4 03 04 00 68 02 E5 66 B6 04 01 00 00 0A 28 90 72 AE AE 90 D8 [09:39:56]CommunicateWithHost err = 0 [09:39:56]CheckOFDResponse [09:39:56]1017 (14) - 77093643461234 [09:39:56]1041 (16) - 0000000000874692 [09:39:56]1040 (4) - 92402 [09:39:56]1012 (4) - 14.09.2024 03:26 [09:39:56]1206 (1) - 0 [09:39:56]OFD Sender: Remove packet 92402 [09:39:56]ProducePacketName [09:39:56]name=ofd_packets/00092402 [09:39:56]NVStorageDeleteData [09:39:57]Write to MH i2c: 01 00 00 68 10 78 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: 01 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: 01 07 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: 01 07 00 68 10 00 00 00 00 00 21 0D AD [09:39:57]RasterBufferAndPrint [09:39:57]line [09:39:57]line [09:39:57]line [09:39:57]line [09:39:57]line [09:39:57]written 0, free lines is 3368 [09:39:57]MH_Cut [09:39:57]Write to MH i2c: D1 01 00 6F 10 01 51 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: D1 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: D1 01 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: D1 01 00 6F 10 00 50 [09:39:57]Write to MH i2c: 01 00 00 70 10 80 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]OFD Sender: No OFD packet to send [09:39:57]*** Cut start [09:39:57]*** Purtial cut [09:39:57]*** Stage 1: CUTSNS_PIN = 1 [09:39:59]Read from MH i2c: 01 [09:39:59]MH_I2C_Read... [09:39:59]*** Stop cut motor [09:39:59]*** Cut end [09:39:59]Read from MH i2c: 01 07 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 07 00 70 10 00 00 00 00 00 FF 0F 95 [09:39:59]process_action close_receipt done [09:39:59]requested_data is exist [09:39:59]produce_requested_data [09:39:59]requested_item fm.sn is exist - process it [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 11 00 00 [09:39:59]Write to MH i2c: E2 08 00 71 10 80 11 00 00 00 00 00 00 FB [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 17 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 17 00 71 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 52 [09:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:39:59]wFMCommunicate OK [09:39:59]requested_item fd.num is exist - process it [09:39:59]SAM_PROTO_GetFieldsCounters [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 13 00 00 [09:39:59]Write to MH i2c: E2 08 00 72 10 80 13 00 00 00 00 00 00 FE [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 62 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 62 00 72 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F2 68 01 00 0E 04 04 00 FA 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 12 [09:39:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F2 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:59]wFMCommunicate OK [09:39:59]SAM_PROTO_GetFieldsCounters done [09:39:59]requested_item shift.num is exist - process it [09:39:59]requested_item shift.opened is exist - process it [09:39:59]req_shift_opened [09:39:59]FM_GetShiftState [09:39:59]SAM_PROTO_GetShiftState [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 13 01 00 [09:39:59]Write to MH i2c: E2 08 00 73 10 80 13 01 00 00 00 00 00 00 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 0E 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 0E 00 73 10 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9A [09:39:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:39:59]wFMCommunicate OK [09:39:59]SAM_PROTO_GetShiftState done [09:39:59]FM_GetShiftState done [09:39:59]req_shift_opened done [09:39:59]requested_item shift.open_date is exist - process it [09:39:59]req_shift_open_date [09:39:59]req_shift_open_date done [09:39:59]produce_requested_data done [09:39:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92402,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:39:59]process_action_free close_receipt [09:39:59]json_value_free [09:39:59]json_value_free done [09:39:59]process_json_proto returns [09:39:59]Send response to host [09:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92402,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:39:59]free response buf [09:39:59]execute_script done [09:39:59]execute_script returns [09:39:59]free content buf [09:39:59]Sock 8.Close socket [09:39:59]Sock 8.Thread stoped [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:34]accept exits with 9 [09:41:34]New connection [09:41:34]New thread 3066801508 created [09:41:34]Thread 3066658148 joined [09:41:34]Waiting for new connection... [09:41:34] Sock 9.Parse request [09:41:34]Sock 9.Check first char [09:41:34]Sock 9.First char is OK [09:41:34]request: POST /json_proto HTTP/1.0 [09:41:34]Method: POST [09:41:34]URL: /json_proto [09:41:34]Method is POST - this is cgi request [09:41:34]url: /json_proto [09:41:34]query_string will be loaded in cgi processing [09:41:34]execute_cgi json_proto POST (null) [09:41:34]execute_cgi path=json_proto method=POST [09:41:34]POST find Content-Length [09:41:34]Host: 172.17.57.71:8080 [09:41:34]Content-Length: 637 [09:41:34]Content-Type: application/json [09:41:34] [09:41:34]POST finish read [09:41:34]Found Content-Length = 637 [09:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127315", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\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" ] } } [09:41:34]execute_script... [09:41:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127315", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\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" ] } } [09:41:34]POST & json_proto [09:41:34]process_json_proto [09:41:34]json parsed OK: [09:41:34]protocol is kg_v1.0 [09:41:34]action value=close_receipt [09:41:34]process_action close_receipt [09:41:34]cmd_close_receipt [09:41:34]MH_GetDate [09:41:34]Write to MH i2c: F0 00 00 74 10 73 [09:41:34]Write i2c OK [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: F0 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: F0 09 00 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: F0 09 00 74 10 00 50 5A E5 66 33 3A A4 66 E8 [09:41:34]GetLastDocTimeStamp 1726306797 [09:41:34]current date 1726306896 [09:41:34]FM_GetShiftState [09:41:34]SAM_PROTO_GetShiftState [09:41:34]wFMCommunicate request_size=4 [09:41:34]MH_SAM_APDU [09:41:34]CAPDU: 80 13 01 00 [09:41:34]Write to MH i2c: E2 08 00 75 10 80 13 01 00 00 00 00 00 02 [09:41:34]Write i2c OK [09:41:34]MH_I2C_Read... [09:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:34]Read from MH i2c: E2 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: E2 0E 00 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: E2 0E 00 75 10 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9C [09:41:34]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:41:34]wFMCommunicate OK [09:41:34]SAM_PROTO_GetShiftState done [09:41:34]FM_GetShiftState done [09:41:34]opened in 1726273389 [09:41:34]opened+sec_in_day 1726359789 [09:41:34]quantity*price = 5000 [09:41:34]sum+1 = 5001 [09:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 54 14.09.2024 09:41 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92403 ФПД: 83184449960895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T094137&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92403&fm=83184449960895&tin=02508201610067®Number=0000000000091423&sum=5000 0 [09:41:35]StoreToDocumentArchive [09:41:35]shift 506 fd 92403 [09:41:35]save to /storage/0506/doc_00092403 [09:41:35]save last doc name /storage/0506/doc_00092403 to /storage/kkm_last_doc_name [09:41:35]save OK [09:41:35]Clear old archive folders... [09:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:41:35]tlvbuf is 00FDB8C0 [09:41:35]SAM_PROTO_ClearQueue [09:41:35]wFMCommunicate request_size=4 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 09 00 00 [09:41:35]Write to MH i2c: E2 08 00 82 10 80 09 00 00 00 00 00 00 04 [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 82 10 00 90 00 06 [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]SAM_PROTO_ClearQueue done [09:41:35]KKMCreateOFDPacket [09:41:35]OFDProtocolAddRootSTLVToBuf [09:41:35]FM_MakeSignedData [09:41:35]FM_MakeSignedData [09:41:35]SAM_PROTO_SignData [09:41:35]wFMCommunicate request_size=4 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 01 02 [09:41:35]Write to MH i2c: E2 08 00 83 10 80 0D 01 02 00 00 00 00 0C [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 83 10 00 90 00 07 [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]wFMCommunicate request_size=255 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 36 00 00 00 F4 03 04 00 51 5A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [09:41:35]Write to MH i2c: E2 02 01 84 10 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 36 00 00 00 F4 03 04 00 51 5A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 7A [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 03 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 03 00 84 10 00 90 00 08 [09:41:36]RAPDU: 90 00 [09:41:36]wFMCommunicate OK [09:41:36]wFMCommunicate request_size=31 [09:41:36]MH_SAM_APDU [09:41:36]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 F3 68 01 00 35 04 06 00 4B A7 E3 97 3B BF [09:41:36]Write to MH i2c: E2 22 00 85 10 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 F3 68 01 00 35 04 06 00 4B A7 E3 97 3B BF 00 00 00 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 03 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 03 00 85 10 00 90 00 09 [09:41:36]RAPDU: 90 00 [09:41:36]wFMCommunicate OK [09:41:36]wFMCommunicate request_size=4 [09:41:36]MH_SAM_APDU [09:41:36]CAPDU: 80 0D 03 02 [09:41:36]Write to MH i2c: E2 08 00 86 10 80 0D 03 02 00 00 00 00 11 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 0B 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 0B 00 86 10 00 EB 64 74 93 D6 32 06 CF 90 00 45 [09:41:36]RAPDU: EB 64 74 93 D6 32 06 CF 90 00 [09:41:36]wFMCommunicate OK [09:41:36]SAM_PROTO_SignData done [09:41:36]FM_MakeSignedData done [09:41:36]CreateOFDProtocolMessage [09:41:36]wFMCommunicate request_size=4 [09:41:36]MH_SAM_APDU [09:41:36]CAPDU: 80 11 00 00 [09:41:36]Write to MH i2c: E2 08 00 87 10 80 11 00 00 00 00 00 00 11 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 17 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 17 00 87 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 68 [09:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:41:36]wFMCommunicate OK [09:41:36]CreateOFDProtocolMessage done [09:41:36]OFDSenderStorePacket 92403 [09:41:36]StoreOFDPacket docnum=92403 [09:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 36 87 1C 01 1E 02 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 36 00 00 00 F4 03 04 00 51 5A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F3 68 01 00 35 04 06 00 4B A7 E3 97 3B BF EB 64 74 93 D6 32 06 CF [09:41:36]CheckFolder [09:41:36]dirname=/storage/ofd_packets [09:41:36]CheckFolder done [09:41:36]ProducePacketName [09:41:36]name=ofd_packets/00092403 [09:41:36]NVStorageSaveData ofd_packets/00092403 [09:41:36]File name is /storage/ofd_packets/00092403 [09:41:36]Write 322 bytes [09:41:36]NVStorageSaveData done [09:41:36]OFDSenderStorePacket done [09:41:36]KKMCreateOFDPacket done [09:41:36]NVStorageSaveData kkm_last_timestamp [09:41:36]File name is /storage/kkm_last_timestamp [09:41:36]Write 4 bytes [09:41:36]NVStorageSaveData done [09:41:36]ExternCall_PrintAddStr [09:41:36]wPrintStart [09:41:36]Write to MH i2c: 01 00 00 88 10 98 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 FF 0F AD [09:41:36]RasterBufferAndPrint [09:41:36]line Счет N : (3)127315 [09:41:36]line ИНН: 02508201610067 [09:41:36]line Контрольно-Кассовый Чек [09:41:36]line ПРОДАЖА [09:41:36]line Товар: 4700000160051 [09:41:36]line Вода Ыссык Ата 1л [09:41:36]line 1.000 * 50.00 [09:41:36]line = 50.00 [09:41:36]line НДС 12% НСП 1% [09:41:36]line > о реализуемом товаре [09:41:36]line ИТОГО: 50.00 [09:41:36]line НСП 1% : 0.44 [09:41:36]line НДС 12% : 5.31 [09:41:36]line Наличными: 50.00 [09:41:36]line Безнал.: 0.00 [09:41:36]line Место: АЗС № 5 "Партнер Нефть" [09:41:36]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:41:36]line СНО: Общий режим [09:41:36]line Чек 54 14.09.2024 09:41 [09:41:36]line Смена: 506 ФФД: 1.0 [09:41:36]line ЗНМ: 03000000022 [09:41:36]line РНМ: 0000000000091423 [09:41:36]line Версия ККМ: 001 [09:41:36]line ФМ: 0000000000874692 [09:41:36]line ФД: 92403 [09:41:36]line ФПД: 83184449960895 [09:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T094137&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92403&fm=83184449960895&tin=02508201610067®Number=0000000000091423&sum=5000 [09:41:36]OFD Sender: Processing packet 92403 [packets to send 63, broken 62] [09:41:36]ProducePacketName [09:41:36]name=ofd_packets/00092403 [09:41:36]OFD Sender: To server: pG, [09:41:36]CommunicateWithHost lk.salyk.kg:30040 [09:41:36]ConnectInit lk.salyk.kg [09:41:36]line 0 [09:41:36]written 0, free lines is 4095 [09:41:36]Connected sock=10 [09:41:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 36 87 1C 01 1E 02 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 36 00 00 00 F4 03 04 00 51 5A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F3 68 01 00 35 04 06 00 4B A7 E3 97 3B BF EB 64 74 93 D6 32 06 CF [09:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 27 F6 47 00 2A 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F3 68 01 00 F4 03 04 00 CC 02 E5 66 B6 04 01 00 00 35 7C 5B 00 67 F9 D4 C8 [09:41:36]CommunicateWithHost err = 0 [09:41:36]CheckOFDResponse [09:41:36]1017 (14) - 77093643461234 [09:41:36]1041 (16) - 0000000000874692 [09:41:36]1040 (4) - 92403 [09:41:36]1012 (4) - 14.09.2024 03:28 [09:41:36]1206 (1) - 0 [09:41:36]OFD Sender: Remove packet 92403 [09:41:36]ProducePacketName [09:41:36]name=ofd_packets/00092403 [09:41:36]NVStorageDeleteData [09:41:36]Write to MH i2c: 01 00 00 B0 10 C0 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 B0 10 00 00 00 00 00 12 0D E6 [09:41:36]RasterBufferAndPrint [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]written 0, free lines is 3353 [09:41:36]MH_Cut [09:41:36]Write to MH i2c: D1 01 00 B7 10 01 99 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 01 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 01 00 B7 10 00 98 [09:41:36]Write to MH i2c: 01 00 00 B8 10 C8 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:37]OFD Sender: No OFD packet to send [09:41:37]*** Cut start [09:41:37]*** Purtial cut [09:41:37]*** Stage 1: CUTSNS_PIN = 1 [09:41:39]Read from MH i2c: 01 [09:41:39]MH_I2C_Read... [09:41:39]*** Stop cut motor [09:41:39]*** Cut end [09:41:39]Read from MH i2c: 01 07 00 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: 01 07 00 B8 10 00 00 00 00 00 FF 0F DD [09:41:39]process_action close_receipt done [09:41:39]requested_data is exist [09:41:39]produce_requested_data [09:41:39]requested_item fm.sn is exist - process it [09:41:39]wFMCommunicate request_size=4 [09:41:39]MH_SAM_APDU [09:41:39]CAPDU: 80 11 00 00 [09:41:39]Write to MH i2c: E2 08 00 B9 10 80 11 00 00 00 00 00 00 43 [09:41:39]Write i2c OK [09:41:39]MH_I2C_Read... [09:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:39]Read from MH i2c: E2 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: E2 17 00 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: E2 17 00 B9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9A [09:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:41:39]wFMCommunicate OK [09:41:39]requested_item fd.num is exist - process it [09:41:39]SAM_PROTO_GetFieldsCounters [09:41:39]wFMCommunicate request_size=4 [09:41:39]MH_SAM_APDU [09:41:39]CAPDU: 80 13 00 00 [09:41:39]Write to MH i2c: E2 08 00 BA 10 80 13 00 00 00 00 00 00 46 [09:41:39]Write i2c OK [09:41:39]MH_I2C_Read... [09:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:39]Read from MH i2c: E2 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: E2 62 00 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: E2 62 00 BA 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F3 68 01 00 0E 04 04 00 FA 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 5E [09:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F3 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:39]wFMCommunicate OK [09:41:39]SAM_PROTO_GetFieldsCounters done [09:41:39]requested_item shift.num is exist - process it [09:41:39]requested_item shift.opened is exist - process it [09:41:39]req_shift_opened [09:41:39]FM_GetShiftState [09:41:39]SAM_PROTO_GetShiftState [09:41:39]wFMCommunicate request_size=4 [09:41:39]MH_SAM_APDU [09:41:39]CAPDU: 80 13 01 00 [09:41:39]Write to MH i2c: E2 08 00 BB 10 80 13 01 00 00 00 00 00 48 [09:41:39]Write i2c OK [09:41:39]MH_I2C_Read... [09:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:39]Read from MH i2c: E2 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: E2 0E 00 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: E2 0E 00 BB 10 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E2 [09:41:39]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:41:39]wFMCommunicate OK [09:41:39]SAM_PROTO_GetShiftState done [09:41:39]FM_GetShiftState done [09:41:39]req_shift_opened done [09:41:39]requested_item shift.open_date is exist - process it [09:41:39]req_shift_open_date [09:41:39]req_shift_open_date done [09:41:39]produce_requested_data done [09:41:39]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92403,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:41:39]process_action_free close_receipt [09:41:39]json_value_free [09:41:39]json_value_free done [09:41:39]process_json_proto returns [09:41:39]Send response to host [09:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92403,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:41:39]free response buf [09:41:39]execute_script done [09:41:39]execute_script returns [09:41:39]free content buf [09:41:39]Sock 9.Close socket [09:41:39]Sock 9.Thread stoped [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:01]accept exits with 8 [09:43:01]New connection [09:43:01]New thread 3066658148 created [09:43:01]Thread 3066801508 joined [09:43:01]Waiting for new connection... [09:43:01] Sock 8.Parse request [09:43:01]Sock 8.Check first char [09:43:01]Sock 8.First char is OK [09:43:01]request: POST /json_proto HTTP/1.0 [09:43:01]Method: POST [09:43:01]URL: /json_proto [09:43:01]Method is POST - this is cgi request [09:43:01]url: /json_proto [09:43:01]query_string will be loaded in cgi processing [09:43:01]execute_cgi json_proto POST (null) [09:43:01]execute_cgi path=json_proto method=POST [09:43:01]POST find Content-Length [09:43:01]Host: 172.17.57.71:8080 [09:43:01]Content-Length: 829 [09:43:01]Content-Type: application/json [09:43:01] [09:43:01]POST finish read [09:43:01]Found Content-Length = 829 [09:43:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127316", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:01]execute_script... [09:43: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)127316", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:01]POST & json_proto [09:43:01]process_json_proto [09:43:01]json parsed OK: [09:43:01]protocol is kg_v1.0 [09:43:01]action value=close_receipt [09:43:01]process_action close_receipt [09:43:01]cmd_close_receipt [09:43:01]MH_GetDate [09:43:01]Write to MH i2c: F0 00 00 BC 10 BB [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: F0 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: F0 09 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: F0 09 00 BC 10 00 A8 5A E5 66 33 3A A4 66 88 [09:43:01]GetLastDocTimeStamp 1726306897 [09:43:01]current date 1726306984 [09:43:01]FM_GetShiftState [09:43:01]SAM_PROTO_GetShiftState [09:43:01]wFMCommunicate request_size=4 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 13 01 00 [09:43:01]Write to MH i2c: E2 08 00 BD 10 80 13 01 00 00 00 00 00 4A [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 0E 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 0E 00 BD 10 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E4 [09:43:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:43:01]wFMCommunicate OK [09:43:01]SAM_PROTO_GetShiftState done [09:43:01]FM_GetShiftState done [09:43:01]opened in 1726273389 [09:43:01]opened+sec_in_day 1726359789 [09:43:01]quantity*price = 12500 [09:43:01]sum+1 = 12501 [09:43:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 55 14.09.2024 09:43 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92404 ФПД: 211864899611337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T094304&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92404&fm=211864899611337&tin=02508201610067®Number=0000000000091423&sum=12500 0 [09:43:02]StoreToDocumentArchive [09:43:02]shift 506 fd 92404 [09:43:02]save to /storage/0506/doc_00092404 [09:43:02]save last doc name /storage/0506/doc_00092404 to /storage/kkm_last_doc_name [09:43:02]save OK [09:43:02]Clear old archive folders... [09:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=284 [09:43:02]tlvbuf is 00FC0DB0 [09:43:02]SAM_PROTO_ClearQueue [09:43:02]wFMCommunicate request_size=4 [09:43:02]MH_SAM_APDU [09:43:02]CAPDU: 80 09 00 00 [09:43:02]Write to MH i2c: E2 08 00 CA 10 80 09 00 00 00 00 00 00 4C [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:02]Read from MH i2c: E2 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 03 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [09:43:02]RAPDU: 90 00 [09:43:02]wFMCommunicate OK [09:43:02]SAM_PROTO_ClearQueue done [09:43:02]KKMCreateOFDPacket [09:43:02]OFDProtocolAddRootSTLVToBuf [09:43:02]FM_MakeSignedData [09:43:02]FM_MakeSignedData [09:43:02]SAM_PROTO_SignData [09:43:02]wFMCommunicate request_size=4 [09:43:02]MH_SAM_APDU [09:43:02]CAPDU: 80 0D 01 02 [09:43:02]Write to MH i2c: E2 08 00 CB 10 80 0D 01 02 00 00 00 00 54 [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:02]Read from MH i2c: E2 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 03 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [09:43:02]RAPDU: 90 00 [09:43:02]wFMCommunicate OK [09:43:02]wFMCommunicate request_size=255 [09:43:02]MH_SAM_APDU [09:43:02]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A8 5A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [09:43:02]Write to MH i2c: E2 02 01 CC 10 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A8 5A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 6F [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 03 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 03 00 CC 10 00 90 00 50 [09:43:03]RAPDU: 90 00 [09:43:03]wFMCommunicate OK [09:43:03]wFMCommunicate request_size=43 [09:43:03]MH_SAM_APDU [09:43:03]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 68 01 00 35 04 06 00 C0 B0 A4 14 EA C9 [09:43:03]Write to MH i2c: E2 2E 00 CD 10 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 68 01 00 35 04 06 00 C0 B0 A4 14 EA C9 00 00 7B [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 03 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 03 00 CD 10 00 90 00 51 [09:43:03]RAPDU: 90 00 [09:43:03]wFMCommunicate OK [09:43:03]wFMCommunicate request_size=4 [09:43:03]MH_SAM_APDU [09:43:03]CAPDU: 80 0D 03 02 [09:43:03]Write to MH i2c: E2 08 00 CE 10 80 0D 03 02 00 00 00 00 59 [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 0B 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 0B 00 CE 10 00 6A 88 18 C7 CA 80 E1 4A 90 00 A0 [09:43:03]RAPDU: 6A 88 18 C7 CA 80 E1 4A 90 00 [09:43:03]wFMCommunicate OK [09:43:03]SAM_PROTO_SignData done [09:43:03]FM_MakeSignedData done [09:43:03]CreateOFDProtocolMessage [09:43:03]wFMCommunicate request_size=4 [09:43:03]MH_SAM_APDU [09:43:03]CAPDU: 80 11 00 00 [09:43:03]Write to MH i2c: E2 08 00 CF 10 80 11 00 00 00 00 00 00 59 [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 17 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 17 00 CF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B0 [09:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:43:03]wFMCommunicate OK [09:43:03]CreateOFDProtocolMessage done [09:43:03]OFDSenderStorePacket 92404 [09:43:03]StoreOFDPacket docnum=92404 [09:43:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 30 01 00 00 60 2D 28 01 2B A7 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A8 5A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 68 01 00 35 04 06 00 C0 B0 A4 14 EA C9 6A 88 18 C7 CA 80 E1 4A [09:43:03]CheckFolder [09:43:03]dirname=/storage/ofd_packets [09:43:03]CheckFolder done [09:43:03]ProducePacketName [09:43:03]name=ofd_packets/00092404 [09:43:03]NVStorageSaveData ofd_packets/00092404 [09:43:03]File name is /storage/ofd_packets/00092404 [09:43:03]Write 334 bytes [09:43:03]NVStorageSaveData done [09:43:03]OFDSenderStorePacket done [09:43:03]KKMCreateOFDPacket done [09:43:03]NVStorageSaveData kkm_last_timestamp [09:43:03]File name is /storage/kkm_last_timestamp [09:43:03]Write 4 bytes [09:43:03]NVStorageSaveData done [09:43:03]ExternCall_PrintAddStr [09:43:03]wPrintStart [09:43:03]Write to MH i2c: 01 00 00 D0 10 E0 [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: 01 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: 01 07 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: 01 07 00 D0 10 00 00 00 00 00 FF 0F F5 [09:43:03]RasterBufferAndPrint [09:43:03]line Счет N : (3)127316 [09:43:03]line ИНН: 02508201610067 [09:43:03]line Контрольно-Кассовый Чек [09:43:03]line ПРОДАЖА [09:43:03]line Товар: 2000036190018 [09:43:03]line Кофе Американо XL(GABB TRADE) [09:43:03]line 1.000 * 125.00 [09:43:03]line = 125.00 [09:43:03]line НДС 12% НСП 1% [09:43:03]line > о реализуемом товаре [09:43:03]line ИТОГО: 125.00 [09:43:03]line НСП 1% : 1.11 [09:43:03]line НДС 12% : 13.27 [09:43:03]line Наличными: 0.00 [09:43:03]line Безнал.: 125.00 [09:43:03]line Место: АЗС № 5 "Партнер Нефть" [09:43:03]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:43:03]line СНО: Общий режим [09:43:03]line Чек 55 14.09.2024 09:43 [09:43:03]line Смена: 506 ФФД: 1.0 [09:43:03]line ЗНМ: 03000000022 [09:43:03]line РНМ: 0000000000091423 [09:43:03]line Версия ККМ: 001 [09:43:03]line Платежная система: Бакай Банк [09:43:03]line ФМ: 0000000000874692 [09:43:03]line ФД: 92404 [09:43:03]line ФПД: 211864899611337 [09:43:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T094304&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92404&fm=211864899611337&tin=02508201610067®Number=0000000000091423&sum=12500 [09:43:03]line 0 [09:43:03]OFD Sender: Processing packet 92404 [packets to send 63, broken 62] [09:43:03]ProducePacketName [09:43:03]name=ofd_packets/00092404 [09:43:03]OFD Sender: To server: pG, [09:43:03]CommunicateWithHost lk.salyk.kg:30040 [09:43:03]ConnectInit lk.salyk.kg [09:43:03]written 0, free lines is 4095 [09:43:03]Connected sock=10 [09:43:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 30 01 00 00 60 2D 28 01 2B A7 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A8 5A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 68 01 00 35 04 06 00 C0 B0 A4 14 EA C9 6A 88 18 C7 CA 80 E1 4A [09:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9B 52 47 00 C8 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F4 68 01 00 F4 03 04 00 23 03 E5 66 B6 04 01 00 00 8A 69 11 98 05 B5 EA AF [09:43:03]CommunicateWithHost err = 0 [09:43:03]CheckOFDResponse [09:43:03]1017 (14) - 77093643461234 [09:43:03]1041 (16) - 0000000000874692 [09:43:03]1040 (4) - 92404 [09:43:03]1012 (4) - 14.09.2024 03:29 [09:43:03]1206 (1) - 0 [09:43:03]OFD Sender: Remove packet 92404 [09:43:03]ProducePacketName [09:43:03]name=ofd_packets/00092404 [09:43:03]NVStorageDeleteData [09:43:04]Write to MH i2c: 01 00 00 FB 10 0B [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 07 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 F1 0C 0F [09:43:04]RasterBufferAndPrint [09:43:04]line [09:43:04]line [09:43:04]line [09:43:04]line [09:43:04]line [09:43:04]written 0, free lines is 3320 [09:43:04]MH_Cut [09:43:04]Write to MH i2c: D1 01 00 02 11 01 E5 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: D1 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: D1 01 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: D1 01 00 02 11 00 E4 [09:43:04]Write to MH i2c: 01 00 00 03 11 14 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]OFD Sender: No OFD packet to send [09:43:04]*** Cut start [09:43:04]*** Purtial cut [09:43:04]*** Stage 1: CUTSNS_PIN = 1 [09:43:06]Read from MH i2c: 01 [09:43:06]MH_I2C_Read... [09:43:06]*** Stop cut motor [09:43:06]*** Cut end [09:43:06]Read from MH i2c: 01 07 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 03 11 00 00 00 00 00 FF 0F 29 [09:43:06]process_action close_receipt done [09:43:06]requested_data is exist [09:43:06]produce_requested_data [09:43:06]requested_item fm.sn is exist - process it [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 11 00 00 [09:43:06]Write to MH i2c: E2 08 00 04 11 80 11 00 00 00 00 00 00 8F [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 04 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E6 [09:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:43:06]wFMCommunicate OK [09:43:06]requested_item fd.num is exist - process it [09:43:06]SAM_PROTO_GetFieldsCounters [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 13 00 00 [09:43:06]Write to MH i2c: E2 08 00 05 11 80 13 00 00 00 00 00 00 92 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 62 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 62 00 05 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F4 68 01 00 0E 04 04 00 FA 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 AE [09:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F4 68 01 00 0E 04 04 00 FA 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 [09:43:07]wFMCommunicate OK [09:43:07]SAM_PROTO_GetFieldsCounters done [09:43:07]requested_item shift.num is exist - process it [09:43:07]requested_item shift.opened is exist - process it [09:43:07]req_shift_opened [09:43:07]FM_GetShiftState [09:43:07]SAM_PROTO_GetShiftState [09:43:07]wFMCommunicate request_size=4 [09:43:07]MH_SAM_APDU [09:43:07]CAPDU: 80 13 01 00 [09:43:07]Write to MH i2c: E2 08 00 06 11 80 13 01 00 00 00 00 00 94 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 0E 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 0E 00 06 11 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2E [09:43:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:43:07]wFMCommunicate OK [09:43:07]SAM_PROTO_GetShiftState done [09:43:07]FM_GetShiftState done [09:43:07]req_shift_opened done [09:43:07]requested_item shift.open_date is exist - process it [09:43:07]req_shift_open_date [09:43:07]req_shift_open_date done [09:43:07]produce_requested_data done [09:43:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92404,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:43:07]process_action_free close_receipt [09:43:07]json_value_free [09:43:07]json_value_free done [09:43:07]process_json_proto returns [09:43:07]Send response to host [09:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92404,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:43:07]free response buf [09:43:07]execute_script done [09:43:07]execute_script returns [09:43:07]free content buf [09:43:07]Sock 8.Close socket [09:43:07]Sock 8.Thread stoped [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:56]accept exits with 9 [09:51:56]New connection [09:51:56]New thread 3066801508 created [09:51:56]Thread 3066658148 joined [09:51:56]Waiting for new connection... [09:51:56] Sock 9.Parse request [09:51:56]Sock 9.Check first char [09:51:56]Sock 9.First char is OK [09:51:56]request: POST /json_proto HTTP/1.0 [09:51:56]Method: POST [09:51:56]URL: /json_proto [09:51:56]Method is POST - this is cgi request [09:51:56]url: /json_proto [09:51:56]query_string will be loaded in cgi processing [09:51:56]execute_cgi json_proto POST (null) [09:51:56]execute_cgi path=json_proto method=POST [09:51:56]POST find Content-Length [09:51:56]Host: 172.17.57.71:8080 [09:51:56]Content-Length: 623 [09:51:56]Content-Type: application/json [09:51:56] [09:51:56]POST finish read [09:51:56]Found Content-Length = 623 [09:51:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127317", "tax_sys" : 0, "items" : [ { "code": "6943046301028", "name": "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0435\u043B\u044C CARB", "price" : 205.00, "quantity" : 3.000, "sum" : 615.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 615.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:56]execute_script... [09:51:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127317", "tax_sys" : 0, "items" : [ { "code": "6943046301028", "name": "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0435\u043B\u044C CARB", "price" : 205.00, "quantity" : 3.000, "sum" : 615.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 615.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:56]POST & json_proto [09:51:56]process_json_proto [09:51:56]json parsed OK: [09:51:56]protocol is kg_v1.0 [09:51:56]action value=close_receipt [09:51:56]process_action close_receipt [09:51:56]cmd_close_receipt [09:51:56]MH_GetDate [09:51:56]Write to MH i2c: F0 00 00 07 11 07 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: F0 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: F0 09 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: F0 09 00 07 11 00 BE 5C E5 66 33 3A A4 66 EC [09:51:56]GetLastDocTimeStamp 1726306984 [09:51:56]current date 1726307518 [09:51:56]FM_GetShiftState [09:51:56]SAM_PROTO_GetShiftState [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 13 01 00 [09:51:56]Write to MH i2c: E2 08 00 08 11 80 13 01 00 00 00 00 00 96 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0E 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0E 00 08 11 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 30 [09:51:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_GetShiftState done [09:51:56]FM_GetShiftState done [09:51:56]opened in 1726273389 [09:51:56]opened+sec_in_day 1726359789 [09:51:56]quantity*price = 61500 [09:51:56]sum+1 = 61501 [09:51:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 615.00 НСП 1% : 5.44 НДС 12% : 65.31 Наличными: 615.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 56 14.09.2024 09:51 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92405 ФПД: 75759257081174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T095159&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92405&fm=75759257081174&tin=02508201610067®Number=0000000000091423&sum=61500 0 [09:51:57]StoreToDocumentArchive [09:51:57]shift 506 fd 92405 [09:51:57]save to /storage/0506/doc_00092405 [09:51:57]save last doc name /storage/0506/doc_00092405 to /storage/kkm_last_doc_name [09:51:57]save OK [09:51:57]Clear old archive folders... [09:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=267 [09:51:57]tlvbuf is 00FBCF10 [09:51:57]SAM_PROTO_ClearQueue [09:51:57]wFMCommunicate request_size=4 [09:51:57]MH_SAM_APDU [09:51:57]CAPDU: 80 09 00 00 [09:51:57]Write to MH i2c: E2 08 00 15 11 80 09 00 00 00 00 00 00 98 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:57]Read from MH i2c: E2 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 03 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [09:51:57]RAPDU: 90 00 [09:51:57]wFMCommunicate OK [09:51:57]SAM_PROTO_ClearQueue done [09:51:57]KKMCreateOFDPacket [09:51:57]OFDProtocolAddRootSTLVToBuf [09:51:57]FM_MakeSignedData [09:51:57]FM_MakeSignedData [09:51:57]SAM_PROTO_SignData [09:51:57]wFMCommunicate request_size=4 [09:51:57]MH_SAM_APDU [09:51:57]CAPDU: 80 0D 01 02 [09:51:57]Write to MH i2c: E2 08 00 16 11 80 0D 01 02 00 00 00 00 A0 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:57]Read from MH i2c: E2 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 03 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [09:51:57]RAPDU: 90 00 [09:51:57]wFMCommunicate OK [09:51:57]wFMCommunicate request_size=255 [09:51:57]MH_SAM_APDU [09:51:57]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 3C F0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 BF 5C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [09:51:57]Write to MH i2c: E2 02 01 17 11 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 3C F0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 BF 5C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 86 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 17 11 00 90 00 9C [09:51:58]RAPDU: 90 00 [09:51:58]wFMCommunicate OK [09:51:58]wFMCommunicate request_size=26 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 0D 02 02 15 36 39 32 10 04 04 00 F5 68 01 00 35 04 06 00 44 E7 13 9B 55 56 [09:51:58]Write to MH i2c: E2 1D 00 18 11 80 0D 02 02 15 00 36 39 32 10 04 04 00 F5 68 01 00 35 04 06 00 44 E7 13 9B 55 56 00 00 A7 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 18 11 00 90 00 9D [09:51:58]RAPDU: 90 00 [09:51:58]wFMCommunicate OK [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 0D 03 02 [09:51:58]Write to MH i2c: E2 08 00 19 11 80 0D 03 02 00 00 00 00 A5 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 0B 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 0B 00 19 11 00 2F BE 53 13 C1 49 15 3A 90 00 52 [09:51:58]RAPDU: 2F BE 53 13 C1 49 15 3A 90 00 [09:51:58]wFMCommunicate OK [09:51:58]SAM_PROTO_SignData done [09:51:58]FM_MakeSignedData done [09:51:58]CreateOFDProtocolMessage [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 11 00 00 [09:51:58]Write to MH i2c: E2 08 00 1A 11 80 11 00 00 00 00 00 00 A5 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 17 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 17 00 1A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FC [09:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:51:58]wFMCommunicate OK [09:51:58]CreateOFDProtocolMessage done [09:51:58]OFDSenderStorePacket 92405 [09:51:58]StoreOFDPacket docnum=92405 [09:51:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1F 01 00 00 14 07 17 01 94 2D 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 3C F0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 BF 5C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F5 68 01 00 35 04 06 00 44 E7 13 9B 55 56 2F BE 53 13 C1 49 15 3A [09:51:58]CheckFolder [09:51:58]dirname=/storage/ofd_packets [09:51:58]CheckFolder done [09:51:58]ProducePacketName [09:51:58]name=ofd_packets/00092405 [09:51:58]NVStorageSaveData ofd_packets/00092405 [09:51:58]File name is /storage/ofd_packets/00092405 [09:51:58]Write 317 bytes [09:51:58]NVStorageSaveData done [09:51:58]OFDSenderStorePacket done [09:51:58]KKMCreateOFDPacket done [09:51:58]NVStorageSaveData kkm_last_timestamp [09:51:58]File name is /storage/kkm_last_timestamp [09:51:58]Write 4 bytes [09:51:58]NVStorageSaveData done [09:51:58]ExternCall_PrintAddStr [09:51:58]wPrintStart [09:51:58]Write to MH i2c: 01 00 00 1B 11 2C [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: 01 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: 01 07 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: 01 07 00 1B 11 00 00 00 00 00 FF 0F 41 [09:51:58]RasterBufferAndPrint [09:51:58]line Счет N : (3)127317 [09:51:58]line ИНН: 02508201610067 [09:51:58]line Контрольно-Кассовый Чек [09:51:58]line ПРОДАЖА [09:51:58]line Товар: 6943046301028 [09:51:58]line Очиститель CARB [09:51:58]line 3.000 * 205.00 [09:51:58]line = 615.00 [09:51:58]line НДС 12% НСП 1% [09:51:58]line > о реализуемом товаре [09:51:58]line ИТОГО: 615.00 [09:51:58]line НСП 1% : 5.44 [09:51:58]line НДС 12% : 65.31 [09:51:58]line Наличными: 615.00 [09:51:58]line Безнал.: 0.00 [09:51:58]line Место: АЗС № 5 "Партнер Нефть" [09:51:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [09:51:58]line СНО: Общий режим [09:51:58]line Чек 56 14.09.2024 09:51 [09:51:58]line Смена: 506 ФФД: 1.0 [09:51:58]line ЗНМ: 03000000022 [09:51:58]line РНМ: 0000000000091423 [09:51:58]line Версия ККМ: 001 [09:51:58]line ФМ: 0000000000874692 [09:51:58]line ФД: 92405 [09:51:58]line ФПД: 75759257081174 [09:51:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T095159&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92405&fm=75759257081174&tin=02508201610067®Number=0000000000091423&sum=61500 [09:51:58]line 0 [09:51:58]OFD Sender: Processing packet 92405 [packets to send 63, broken 62] [09:51:58]ProducePacketName [09:51:58]name=ofd_packets/00092405 [09:51:58]OFD Sender: To server: pG, [09:51:58]CommunicateWithHost lk.salyk.kg:30040 [09:51:58]ConnectInit lk.salyk.kg [09:51:58]written 0, free lines is 4095 [09:51:58]Connected sock=10 [09:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1F 01 00 00 14 07 17 01 94 2D 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 36 39 34 33 30 34 36 33 30 31 30 32 38 06 04 19 00 D0 9E D1 87 D0 B8 D1 81 D1 82 D0 B8 D1 82 D0 B5 D0 BB D1 8C 20 43 41 52 42 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 3C F0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 19 00 00 00 00 07 04 06 00 3C F0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 BF 5C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F5 68 01 00 35 04 06 00 44 E7 13 9B 55 56 2F BE 53 13 C1 49 15 3A [09:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 60 4D 47 00 9C 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F5 68 01 00 F4 03 04 00 3A 05 E5 66 B6 04 01 00 00 D2 A6 A2 13 3E 89 82 94 [09:51:58]CommunicateWithHost err = 0 [09:51:58]CheckOFDResponse [09:51:58]1017 (14) - 77093643461234 [09:51:58]1041 (16) - 0000000000874692 [09:51:58]1040 (4) - 92405 [09:51:58]1012 (4) - 14.09.2024 03:38 [09:51:58]1206 (1) - 0 [09:51:58]OFD Sender: Remove packet 92405 [09:51:58]ProducePacketName [09:51:58]name=ofd_packets/00092405 [09:51:58]NVStorageDeleteData [09:51:58]Write to MH i2c: 01 00 00 43 11 54 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: 01 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: 01 07 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 1D 0D 85 [09:51:58]RasterBufferAndPrint [09:51:58]line [09:51:58]line [09:51:58]line [09:51:58]line [09:51:58]line [09:51:58]written 0, free lines is 3363 [09:51:58]MH_Cut [09:51:58]Write to MH i2c: D1 01 00 4A 11 01 2D [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: D1 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: D1 01 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: D1 01 00 4A 11 00 2C [09:51:58]Write to MH i2c: 01 00 00 4B 11 5C [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:59]OFD Sender: No OFD packet to send [09:51:59]*** Cut start [09:51:59]*** Purtial cut [09:51:59]*** Stage 1: CUTSNS_PIN = 1 [09:52:01]Read from MH i2c: 01 [09:52:01]MH_I2C_Read... [09:52:01]*** Stop cut motor [09:52:01]*** Cut end [09:52:01]Read from MH i2c: 01 07 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: 01 07 00 4B 11 00 00 00 00 00 FF 0F 71 [09:52:01]process_action close_receipt done [09:52:01]requested_data is exist [09:52:01]produce_requested_data [09:52:01]requested_item fm.sn is exist - process it [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 11 00 00 [09:52:01]Write to MH i2c: E2 08 00 4C 11 80 11 00 00 00 00 00 00 D7 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 17 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 17 00 4C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [09:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [09:52:01]wFMCommunicate OK [09:52:01]requested_item fd.num is exist - process it [09:52:01]SAM_PROTO_GetFieldsCounters [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 13 00 00 [09:52:01]Write to MH i2c: E2 08 00 4D 11 80 13 00 00 00 00 00 00 DA [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 62 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 62 00 4D 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F5 68 01 00 0E 04 04 00 FA 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 FA [09:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F5 68 01 00 0E 04 04 00 FA 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 [09:52:01]wFMCommunicate OK [09:52:01]SAM_PROTO_GetFieldsCounters done [09:52:01]requested_item shift.num is exist - process it [09:52:01]requested_item shift.opened is exist - process it [09:52:01]req_shift_opened [09:52:01]FM_GetShiftState [09:52:01]SAM_PROTO_GetShiftState [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 13 01 00 [09:52:01]Write to MH i2c: E2 08 00 4E 11 80 13 01 00 00 00 00 00 DC [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 0E 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 0E 00 4E 11 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 76 [09:52:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [09:52:01]wFMCommunicate OK [09:52:01]SAM_PROTO_GetShiftState done [09:52:01]FM_GetShiftState done [09:52:01]req_shift_opened done [09:52:01]requested_item shift.open_date is exist - process it [09:52:01]req_shift_open_date [09:52:01]req_shift_open_date done [09:52:01]produce_requested_data done [09:52:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92405,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [09:52:01]process_action_free close_receipt [09:52:01]json_value_free [09:52:01]json_value_free done [09:52:01]process_json_proto returns [09:52:01]Send response to host [09:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92405,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [09:52:01]free response buf [09:52:01]execute_script done [09:52:01]execute_script returns [09:52:01]free content buf [09:52:01]Sock 9.Close socket [09:52:01]Sock 9.Thread stoped [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59: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]accept exits with 8 [10:00:19]New connection [10:00:19]New thread 3066658148 created [10:00:19]Thread 3066801508 joined [10:00:19]Waiting for new connection... [10:00:19] Sock 8.Parse request [10:00:19]Sock 8.Check first char [10:00:19]Sock 8.First char is OK [10:00:19]request: POST /json_proto HTTP/1.0 [10:00:19]Method: POST [10:00:19]URL: /json_proto [10:00:19]Method is POST - this is cgi request [10:00:19]url: /json_proto [10:00:19]query_string will be loaded in cgi processing [10:00:19]execute_cgi json_proto POST (null) [10:00:19]execute_cgi path=json_proto method=POST [10:00:19]POST find Content-Length [10:00:19]Host: 172.17.57.71:8080 [10:00:19]Content-Length: 642 [10:00:19]Content-Type: application/json [10:00:19] [10:00:19]POST finish read [10:00:19]Found Content-Length = 642 [10:00:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127318", "tax_sys" : 0, "items" : [ { "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 4.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:19]execute_script... [10:00: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)127318", "tax_sys" : 0, "items" : [ { "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 4.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:19]POST & json_proto [10:00:19]process_json_proto [10:00:19]json parsed OK: [10:00:19]protocol is kg_v1.0 [10:00:19]action value=close_receipt [10:00:19]process_action close_receipt [10:00:19]cmd_close_receipt [10:00:19]MH_GetDate [10:00:19]Write to MH i2c: F0 00 00 4F 11 4F [10:00:19]Write i2c OK [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: F0 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: F0 09 00 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: F0 09 00 4F 11 00 B6 5E E5 66 33 3A A4 66 2E [10:00:19]GetLastDocTimeStamp 1726307519 [10:00:19]current date 1726308022 [10:00:19]FM_GetShiftState [10:00:19]SAM_PROTO_GetShiftState [10:00:19]wFMCommunicate request_size=4 [10:00:19]MH_SAM_APDU [10:00:19]CAPDU: 80 13 01 00 [10:00:19]Write to MH i2c: E2 08 00 50 11 80 13 01 00 00 00 00 00 DE [10:00:19]Write i2c OK [10:00:19]MH_I2C_Read... [10:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:19]Read from MH i2c: E2 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: E2 0E 00 [10:00:19]MH_I2C_Read... [10:00:19]Read from MH i2c: E2 0E 00 50 11 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 78 [10:00:19]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:00:19]wFMCommunicate OK [10:00:19]SAM_PROTO_GetShiftState done [10:00:19]FM_GetShiftState done [10:00:19]opened in 1726273389 [10:00:19]opened+sec_in_day 1726359789 [10:00:19]quantity*price = 14000 [10:00:19]sum+1 = 14001 [10:00:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 57 14.09.2024 10:00 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92406 ФПД: 89870992209588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T100022&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92406&fm=89870992209588&tin=02508201610067®Number=0000000000091423&sum=14000 0 [10:00:20]StoreToDocumentArchive [10:00:20]shift 506 fd 92406 [10:00:20]save to /storage/0506/doc_00092406 [10:00:20]save last doc name /storage/0506/doc_00092406 to /storage/kkm_last_doc_name [10:00:20]save OK [10:00:20]Clear old archive folders... [10:00:20]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:00:20]tlvbuf is 00FD3CF0 [10:00:20]SAM_PROTO_ClearQueue [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 09 00 00 [10:00:20]Write to MH i2c: E2 08 00 5D 11 80 09 00 00 00 00 00 00 E0 [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 03 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [10:00:20]RAPDU: 90 00 [10:00:20]wFMCommunicate OK [10:00:20]SAM_PROTO_ClearQueue done [10:00:20]KKMCreateOFDPacket [10:00:20]OFDProtocolAddRootSTLVToBuf [10:00:20]FM_MakeSignedData [10:00:20]FM_MakeSignedData [10:00:20]SAM_PROTO_SignData [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 0D 01 02 [10:00:20]Write to MH i2c: E2 08 00 5E 11 80 0D 01 02 00 00 00 00 E8 [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 03 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [10:00:20]RAPDU: 90 00 [10:00:20]wFMCommunicate OK [10:00:20]wFMCommunicate request_size=255 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 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 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 AC 0D 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 39 00 00 00 F4 03 04 00 B6 5E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [10:00:20]Write to MH i2c: E2 02 01 5F 11 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 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 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 AC 0D 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 39 00 00 00 F4 03 04 00 B6 5E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 53 [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:21]Read from MH i2c: E2 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 03 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [10:00:21]RAPDU: 90 00 [10:00:21]wFMCommunicate OK [10:00:21]wFMCommunicate request_size=34 [10:00:21]MH_SAM_APDU [10:00:21]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F6 68 01 00 35 04 06 00 51 BC B8 90 F6 B4 [10:00:21]Write to MH i2c: E2 25 00 60 11 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F6 68 01 00 35 04 06 00 51 BC B8 90 F6 B4 00 00 0E [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:21]Read from MH i2c: E2 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 03 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [10:00:21]RAPDU: 90 00 [10:00:21]wFMCommunicate OK [10:00:21]wFMCommunicate request_size=4 [10:00:21]MH_SAM_APDU [10:00:21]CAPDU: 80 0D 03 02 [10:00:21]Write to MH i2c: E2 08 00 61 11 80 0D 03 02 00 00 00 00 ED [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:21]Read from MH i2c: E2 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 0B 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 0B 00 61 11 00 39 85 47 35 1B 72 CE 94 90 00 17 [10:00:21]RAPDU: 39 85 47 35 1B 72 CE 94 90 00 [10:00:21]wFMCommunicate OK [10:00:21]SAM_PROTO_SignData done [10:00:21]FM_MakeSignedData done [10:00:21]CreateOFDProtocolMessage [10:00:21]wFMCommunicate request_size=4 [10:00:21]MH_SAM_APDU [10:00:21]CAPDU: 80 11 00 00 [10:00:21]Write to MH i2c: E2 08 00 62 11 80 11 00 00 00 00 00 00 ED [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:21]Read from MH i2c: E2 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 17 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: E2 17 00 62 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [10:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:00:21]wFMCommunicate OK [10:00:21]CreateOFDProtocolMessage done [10:00:21]OFDSenderStorePacket 92406 [10:00:21]StoreOFDPacket docnum=92406 [10:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 29 EC 1F 01 B4 F8 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 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 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 AC 0D 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 39 00 00 00 F4 03 04 00 B6 5E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F6 68 01 00 35 04 06 00 51 BC B8 90 F6 B4 39 85 47 35 1B 72 CE 94 [10:00:21]CheckFolder [10:00:21]dirname=/storage/ofd_packets [10:00:21]CheckFolder done [10:00:21]ProducePacketName [10:00:21]name=ofd_packets/00092406 [10:00:21]NVStorageSaveData ofd_packets/00092406 [10:00:21]File name is /storage/ofd_packets/00092406 [10:00:21]Write 325 bytes [10:00:21]NVStorageSaveData done [10:00:21]OFDSenderStorePacket done [10:00:21]KKMCreateOFDPacket done [10:00:21]NVStorageSaveData kkm_last_timestamp [10:00:21]File name is /storage/kkm_last_timestamp [10:00:21]Write 4 bytes [10:00:21]NVStorageSaveData done [10:00:21]ExternCall_PrintAddStr [10:00:21]wPrintStart [10:00:21]Write to MH i2c: 01 00 00 63 11 74 [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 07 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 FF 0F 89 [10:00:21]RasterBufferAndPrint [10:00:21]line Счет N : (3)127318 [10:00:21]line ИНН: 02508201610067 [10:00:21]line Контрольно-Кассовый Чек [10:00:21]line ПРОДАЖА [10:00:21]line Товар: 2000032710015 [10:00:21]line Сочник DC творог 75г [10:00:21]line 4.000 * 35.00 [10:00:21]line = 140.00 [10:00:21]line НДС 12% НСП 1% [10:00:21]line > о реализуемом товаре [10:00:21]line ИТОГО: 140.00 [10:00:21]line НСП 1% : 1.24 [10:00:21]line НДС 12% : 14.87 [10:00:21]line Наличными: 140.00 [10:00:21]line Безнал.: 0.00 [10:00:21]line Место: АЗС № 5 "Партнер Нефть" [10:00:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:00:21]line СНО: Общий режим [10:00:21]line Чек 57 14.09.2024 10:00 [10:00:21]line Смена: 506 ФФД: 1.0 [10:00:21]line ЗНМ: 03000000022 [10:00:21]line РНМ: 0000000000091423 [10:00:21]line Версия ККМ: 001 [10:00:21]line ФМ: 0000000000874692 [10:00:21]line ФД: 92406 [10:00:21]line ФПД: 89870992209588 [10:00:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T100022&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92406&fm=89870992209588&tin=02508201610067®Number=0000000000091423&sum=14000 [10:00:21]line 0 [10:00:21]OFD Sender: Processing packet 92406 [packets to send 63, broken 62] [10:00:21]ProducePacketName [10:00:21]name=ofd_packets/00092406 [10:00:21]OFD Sender: To server: pG, [10:00:21]CommunicateWithHost lk.salyk.kg:30040 [10:00:21]ConnectInit lk.salyk.kg [10:00:21]written 0, free lines is 4095 [10:00:21]Connected sock=10 [10:00:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 29 EC 1F 01 B4 F8 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 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 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 AC 0D 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 39 00 00 00 F4 03 04 00 B6 5E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F6 68 01 00 35 04 06 00 51 BC B8 90 F6 B4 39 85 47 35 1B 72 CE 94 [10:00:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 61 AD 47 00 41 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 34 36 39 32 10 04 04 00 F6 68 01 00 F4 03 04 00 31 07 E5 66 B6 04 01 00 00 29 48 CF F7 9B 96 2A 6B [10:00:21]CommunicateWithHost err = 0 [10:00:21]CheckOFDResponse [10:00:21]1017 (14) - 77093643461234 [10:00:21]1041 (16) - 0000000000874692 [10:00:21]1040 (4) - 92406 [10:00:21]1012 (4) - 14.09.2024 03:46 [10:00:21]1206 (1) - 0 [10:00:21]OFD Sender: Remove packet 92406 [10:00:21]ProducePacketName [10:00:21]name=ofd_packets/00092406 [10:00:21]NVStorageDeleteData [10:00:22]Write to MH i2c: 01 00 00 8B 11 9C [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: 01 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: 01 07 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: 01 07 00 8B 11 00 00 00 00 00 1A 0D CA [10:00:22]RasterBufferAndPrint [10:00:22]line [10:00:22]line [10:00:22]line [10:00:22]line [10:00:22]line [10:00:22]written 0, free lines is 3361 [10:00:22]MH_Cut [10:00:22]Write to MH i2c: D1 01 00 92 11 01 75 [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: D1 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: D1 01 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: D1 01 00 92 11 00 74 [10:00:22]Write to MH i2c: 01 00 00 93 11 A4 [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]OFD Sender: No OFD packet to send [10:00:22]*** Cut start [10:00:22]*** Purtial cut [10:00:22]*** Stage 1: CUTSNS_PIN = 1 [10:00:24]Read from MH i2c: 01 [10:00:24]MH_I2C_Read... [10:00:24]*** Stop cut motor [10:00:24]*** Cut end [10:00:24]Read from MH i2c: 01 07 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: 01 07 00 93 11 00 00 00 00 00 FF 0F B9 [10:00:24]process_action close_receipt done [10:00:24]requested_data is exist [10:00:24]produce_requested_data [10:00:24]requested_item fm.sn is exist - process it [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 11 00 00 [10:00:24]Write to MH i2c: E2 08 00 94 11 80 11 00 00 00 00 00 00 1F [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 17 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 17 00 94 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 76 [10:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:00:24]wFMCommunicate OK [10:00:24]requested_item fd.num is exist - process it [10:00:24]SAM_PROTO_GetFieldsCounters [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 13 00 00 [10:00:24]Write to MH i2c: E2 08 00 95 11 80 13 00 00 00 00 00 00 22 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 62 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 62 00 95 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F6 68 01 00 0E 04 04 00 FA 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 46 [10:00:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F6 68 01 00 0E 04 04 00 FA 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:00:24]wFMCommunicate OK [10:00:24]SAM_PROTO_GetFieldsCounters done [10:00:24]requested_item shift.num is exist - process it [10:00:24]requested_item shift.opened is exist - process it [10:00:24]req_shift_opened [10:00:24]FM_GetShiftState [10:00:24]SAM_PROTO_GetShiftState [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 13 01 00 [10:00:24]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 0E 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BE [10:00:24]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:00:24]wFMCommunicate OK [10:00:24]SAM_PROTO_GetShiftState done [10:00:24]FM_GetShiftState done [10:00:24]req_shift_opened done [10:00:24]requested_item shift.open_date is exist - process it [10:00:24]req_shift_open_date [10:00:24]req_shift_open_date done [10:00:24]produce_requested_data done [10:00:24]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92406,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:00:24]process_action_free close_receipt [10:00:24]json_value_free [10:00:24]json_value_free done [10:00:24]process_json_proto returns [10:00:24]Send response to host [10:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92406,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:00:24]free response buf [10:00:24]execute_script done [10:00:24]execute_script returns [10:00:24]free content buf [10:00:24]Sock 8.Close socket [10:00:24]Sock 8.Thread stoped [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:50]accept exits with 9 [10:11:50]New connection [10:11:50]New thread 3066801508 created [10:11:50]Thread 3066658148 joined [10:11:50]Waiting for new connection... [10:11:50] Sock 9.Parse request [10:11:50]Sock 9.Check first char [10:11:50]Sock 9.First char is OK [10:11:50]request: POST /json_proto HTTP/1.0 [10:11:50]Method: POST [10:11:50]URL: /json_proto [10:11:50]Method is POST - this is cgi request [10:11:50]url: /json_proto [10:11:50]query_string will be loaded in cgi processing [10:11:50]execute_cgi json_proto POST (null) [10:11:50]execute_cgi path=json_proto method=POST [10:11:50]POST find Content-Length [10:11:50]Host: 172.17.57.71:8080 [10:11:50]Content-Length: 1024 [10:11:50]Content-Type: application/json [10:11:50] [10:11:50]POST finish read [10:11:50]Found Content-Length = 1024 [10:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127319", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 3.000, "sum" : 315.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" : 10.000, "sum" : 70.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" ] } } [10:11:50]execute_script... [10:11: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)127319", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 3.000, "sum" : 315.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" : 10.000, "sum" : 70.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" ] } } [10:11:50]POST & json_proto [10:11:50]process_json_proto [10:11:50]json parsed OK: [10:11:50]protocol is kg_v1.0 [10:11:50]action value=close_receipt [10:11:50]process_action close_receipt [10:11:50]cmd_close_receipt [10:11:50]MH_GetDate [10:11:50]Write to MH i2c: F0 00 00 97 11 97 [10:11:50]Write i2c OK [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: F0 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: F0 09 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: F0 09 00 97 11 00 69 61 E5 66 33 3A A4 66 2C [10:11:50]GetLastDocTimeStamp 1726308022 [10:11:50]current date 1726308713 [10:11:50]FM_GetShiftState [10:11:50]SAM_PROTO_GetShiftState [10:11:50]wFMCommunicate request_size=4 [10:11:50]MH_SAM_APDU [10:11:50]CAPDU: 80 13 01 00 [10:11:50]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [10:11:50]Write i2c OK [10:11:50]MH_I2C_Read... [10:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:50]Read from MH i2c: E2 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 0E 00 [10:11:50]MH_I2C_Read... [10:11:50]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C0 [10:11:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:11:50]wFMCommunicate OK [10:11:50]SAM_PROTO_GetShiftState done [10:11:50]FM_GetShiftState done [10:11:50]opened in 1726273389 [10:11:50]opened+sec_in_day 1726359789 [10:11:50]quantity*price = 31500 [10:11:50]sum+1 = 31501 [10:11:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 10.000 * 7.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.41 НДС 12% : 40.88 Наличными: 385.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 58 14.09.2024 10:11 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92407 ФПД: 92831004323084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T101153&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92407&fm=92831004323084&tin=02508201610067®Number=0000000000091423&sum=38500 0 [10:11:51]StoreToDocumentArchive [10:11:51]shift 506 fd 92407 [10:11:51]save to /storage/0506/doc_00092407 [10:11:51]save last doc name /storage/0506/doc_00092407 to /storage/kkm_last_doc_name [10:11:51]save OK [10:11:51]Clear old archive folders... [10:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=424 [10:11:51]tlvbuf is 00F7D440 [10:11:51]SAM_PROTO_ClearQueue [10:11:51]wFMCommunicate request_size=4 [10:11:51]MH_SAM_APDU [10:11:51]CAPDU: 80 09 00 00 [10:11:51]Write to MH i2c: E2 08 00 A5 11 80 09 00 00 00 00 00 00 28 [10:11:51]Write i2c OK [10:11:51]MH_I2C_Read... [10:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:51]Read from MH i2c: E2 [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: E2 03 00 [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [10:11:51]RAPDU: 90 00 [10:11:51]wFMCommunicate OK [10:11:51]SAM_PROTO_ClearQueue done [10:11:51]KKMCreateOFDPacket [10:11:51]OFDProtocolAddRootSTLVToBuf [10:11:51]FM_MakeSignedData [10:11:51]FM_MakeSignedData [10:11:51]SAM_PROTO_SignData [10:11:51]wFMCommunicate request_size=4 [10:11:51]MH_SAM_APDU [10:11:51]CAPDU: 80 0D 01 02 [10:11:51]Write to MH i2c: E2 08 00 A6 11 80 0D 01 02 00 00 00 00 30 [10:11:51]Write i2c OK [10:11:51]MH_I2C_Read... [10:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:51]Read from MH i2c: E2 [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: E2 03 00 [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [10:11:51]RAPDU: 90 00 [10:11:51]wFMCommunicate OK [10:11:51]wFMCommunicate request_size=255 [10:11:51]MH_SAM_APDU [10:11:51]CAPDU: 80 0D 02 02 FA 03 00 A8 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 [10:11:51]Write to MH i2c: E2 02 01 A7 11 80 0D 02 02 FA 00 03 00 A8 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 00 00 46 [10:11:51]Write i2c OK [10:11:51]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [10:11:52]RAPDU: 90 00 [10:11:52]wFMCommunicate OK [10:11:52]wFMCommunicate request_size=183 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 0D 02 02 B2 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 3A 00 00 00 F4 03 04 00 69 61 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 68 01 00 35 04 06 00 54 6D E7 09 6D 0C [10:11:52]Write to MH i2c: E2 BA 00 A8 11 80 0D 02 02 B2 00 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 3A 00 00 00 F4 03 04 00 69 61 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 68 01 00 35 04 06 00 54 6D E7 09 6D 0C 00 00 BB [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [10:11:52]RAPDU: 90 00 [10:11:52]wFMCommunicate OK [10:11:52]wFMCommunicate request_size=4 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 0D 03 02 [10:11:52]Write to MH i2c: E2 08 00 A9 11 80 0D 03 02 00 00 00 00 35 [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 0B 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 0B 00 A9 11 00 0C 6A 18 6F 39 F4 6B C4 90 00 8F [10:11:52]RAPDU: 0C 6A 18 6F 39 F4 6B C4 90 00 [10:11:52]wFMCommunicate OK [10:11:52]SAM_PROTO_SignData done [10:11:52]FM_MakeSignedData done [10:11:52]CreateOFDProtocolMessage [10:11:52]wFMCommunicate request_size=4 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 11 00 00 [10:11:52]Write to MH i2c: E2 08 00 AA 11 80 11 00 00 00 00 00 00 35 [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 17 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 17 00 AA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8C [10:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:11:52]wFMCommunicate OK [10:11:52]CreateOFDProtocolMessage done [10:11:52]OFDSenderStorePacket 92407 [10:11:52]StoreOFDPacket docnum=92407 [10:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 BC 01 00 00 D0 2E B4 01 E5 C0 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 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 3A 00 00 00 F4 03 04 00 69 61 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 68 01 00 35 04 06 00 54 6D E7 09 6D 0C 0C 6A 18 6F 39 F4 6B C4 [10:11:52]CheckFolder [10:11:52]dirname=/storage/ofd_packets [10:11:52]CheckFolder done [10:11:52]ProducePacketName [10:11:52]name=ofd_packets/00092407 [10:11:52]NVStorageSaveData ofd_packets/00092407 [10:11:52]File name is /storage/ofd_packets/00092407 [10:11:52]Write 474 bytes [10:11:52]NVStorageSaveData done [10:11:52]OFDSenderStorePacket done [10:11:52]KKMCreateOFDPacket done [10:11:52]NVStorageSaveData kkm_last_timestamp [10:11:52]File name is /storage/kkm_last_timestamp [10:11:52]Write 4 bytes [10:11:52]NVStorageSaveData done [10:11:52]ExternCall_PrintAddStr [10:11:52]wPrintStart [10:11:52]Write to MH i2c: 01 00 00 AB 11 BC [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: 01 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: 01 07 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: 01 07 00 AB 11 00 00 00 00 00 FF 0F D1 [10:11:52]RasterBufferAndPrint [10:11:52]line Счет N : (3)127319 [10:11:52]line ИНН: 02508201610067 [10:11:52]line Контрольно-Кассовый Чек [10:11:52]line ПРОДАЖА [10:11:52]line Товар: 4607018771791 [10:11:52]line Минеральная вода Ессентуки 17 0,45л ст [10:11:52]line 3.000 * 105.00 [10:11:52]line = 315.00 [10:11:52]line НДС 12% НСП 1% [10:11:52]line > о реализуемом товаре [10:11:52]line Товар: 2000053020015 [10:11:52]line Бумажные стаканы 250мл 1шт [10:11:52]line 10.000 * 7.00 [10:11:52]line = 70.00 [10:11:52]line НДС 12% НСП 1% [10:11:52]line > о реализуемом товаре [10:11:52]line ИТОГО: 385.00 [10:11:52]line НСП 1% : 3.41 [10:11:52]line НДС 12% : 40.88 [10:11:52]line Наличными: 385.00 [10:11:52]line Безнал.: 0.00 [10:11:52]line Место: АЗС № 5 "Партнер Нефть" [10:11:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:11:52]line СНО: Общий режим [10:11:52]line Чек 58 14.09.2024 10:11 [10:11:52]line Смена: 506 ФФД: 1.0 [10:11:52]line ЗНМ: 03000000022 [10:11:52]line РНМ: 0000000000091423 [10:11:52]line Версия ККМ: 001 [10:11:52]line ФМ: 0000000000874692 [10:11:52]line ФД: 92407 [10:11:52]line ФПД: 92831004323084 [10:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T101153&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92407&fm=92831004323084&tin=02508201610067®Number=0000000000091423&sum=38500 [10:11:52]line 0 [10:11:52]written 0, free lines is 4095 [10:11:52]OFD Sender: Processing packet 92407 [packets to send 63, broken 62] [10:11:52]ProducePacketName [10:11:52]name=ofd_packets/00092407 [10:11:52]OFD Sender: To server: pG, [10:11:52]CommunicateWithHost lk.salyk.kg:30040 [10:11:52]ConnectInit lk.salyk.kg [10:11:53]Connected sock=10 [10:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 BC 01 00 00 D0 2E B4 01 E5 C0 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 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 3A 00 00 00 F4 03 04 00 69 61 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 68 01 00 35 04 06 00 54 6D E7 09 6D 0C 0C 6A 18 6F 39 F4 6B C4 [10:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4B 8E 47 00 E8 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F7 68 01 00 F4 03 04 00 E5 09 E5 66 B6 04 01 00 00 5A 8E 3F AC DF F7 26 08 [10:11:53]CommunicateWithHost err = 0 [10:11:53]CheckOFDResponse [10:11:53]1017 (14) - 77093643461234 [10:11:53]1041 (16) - 0000000000874692 [10:11:53]1040 (4) - 92407 [10:11:53]1012 (4) - 14.09.2024 03:58 [10:11:53]1206 (1) - 0 [10:11:53]OFD Sender: Remove packet 92407 [10:11:53]ProducePacketName [10:11:53]name=ofd_packets/00092407 [10:11:53]NVStorageDeleteData [10:11:53]Write to MH i2c: 01 00 00 DB 11 EC [10:11:53]Write i2c OK [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 07 00 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 07 00 DB 11 00 00 00 00 00 A4 0C A3 [10:11:53]RasterBufferAndPrint [10:11:53]line [10:11:53]line [10:11:53]line [10:11:53]line [10:11:53]line [10:11:53]written 0, free lines is 3244 [10:11:53]MH_Cut [10:11:53]Write to MH i2c: D1 01 00 E2 11 01 C5 [10:11:53]Write i2c OK [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: D1 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: D1 01 00 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: D1 01 00 E2 11 00 C4 [10:11:53]Write to MH i2c: 01 00 00 E3 11 F4 [10:11:53]Write i2c OK [10:11:53]MH_I2C_Read... [10:11:53]OFD Sender: No OFD packet to send [10:11:54]*** Cut start [10:11:54]*** Purtial cut [10:11:54]*** Stage 1: CUTSNS_PIN = 1 [10:11:56]Read from MH i2c: 01 [10:11:56]MH_I2C_Read... [10:11:56]*** Stop cut motor [10:11:56]*** Cut end [10:11:56]Read from MH i2c: 01 07 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: 01 07 00 E3 11 00 00 00 00 00 FF 0F 09 [10:11:56]process_action close_receipt done [10:11:56]requested_data is exist [10:11:56]produce_requested_data [10:11:56]requested_item fm.sn is exist - process it [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 11 00 00 [10:11:56]Write to MH i2c: E2 08 00 E4 11 80 11 00 00 00 00 00 00 6F [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 17 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 17 00 E4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C6 [10:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:11:56]wFMCommunicate OK [10:11:56]requested_item fd.num is exist - process it [10:11:56]SAM_PROTO_GetFieldsCounters [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 13 00 00 [10:11:56]Write to MH i2c: E2 08 00 E5 11 80 13 00 00 00 00 00 00 72 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 62 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 62 00 E5 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F7 68 01 00 0E 04 04 00 FA 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 9A [10:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F7 68 01 00 0E 04 04 00 FA 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:11:56]wFMCommunicate OK [10:11:56]SAM_PROTO_GetFieldsCounters done [10:11:56]requested_item shift.num is exist - process it [10:11:56]requested_item shift.opened is exist - process it [10:11:56]req_shift_opened [10:11:56]FM_GetShiftState [10:11:56]SAM_PROTO_GetShiftState [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 13 01 00 [10:11:56]Write to MH i2c: E2 08 00 E6 11 80 13 01 00 00 00 00 00 74 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:56]Read from MH i2c: E2 0E 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 0E 00 E6 11 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0E [10:11:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:11:56]wFMCommunicate OK [10:11:56]SAM_PROTO_GetShiftState done [10:11:56]FM_GetShiftState done [10:11:56]req_shift_opened done [10:11:56]requested_item shift.open_date is exist - process it [10:11:56]req_shift_open_date [10:11:56]req_shift_open_date done [10:11:56]produce_requested_data done [10:11:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92407,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:11:56]process_action_free close_receipt [10:11:56]json_value_free [10:11:56]json_value_free done [10:11:56]process_json_proto returns [10:11:56]Send response to host [10:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92407,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:11:56]free response buf [10:11:56]execute_script done [10:11:56]execute_script returns [10:11:56]free content buf [10:11:56]Sock 9.Close socket [10:11:56]Sock 9.Thread stoped [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:20]accept exits with 8 [10:14:20]New connection [10:14:20]New thread 3066658148 created [10:14:20]Thread 3066801508 joined [10:14:20]Waiting for new connection... [10:14:20] Sock 8.Parse request [10:14:20]Sock 8.Check first char [10:14:20]Sock 8.First char is OK [10:14:20]request: POST /json_proto HTTP/1.0 [10:14:20]Method: POST [10:14:20]URL: /json_proto [10:14:20]Method is POST - this is cgi request [10:14:20]url: /json_proto [10:14:20]query_string will be loaded in cgi processing [10:14:20]execute_cgi json_proto POST (null) [10:14:20]execute_cgi path=json_proto method=POST [10:14:20]POST find Content-Length [10:14:20]Host: 172.17.57.71:8080 [10:14:20]Content-Length: 628 [10:14:20]Content-Type: application/json [10:14:20] [10:14:20]POST finish read [10:14:20]Found Content-Length = 628 [10:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127320", "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" ] } } [10:14:20]execute_script... [10:14: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)127320", "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" ] } } [10:14:20]POST & json_proto [10:14:20]process_json_proto [10:14:20]json parsed OK: [10:14:20]protocol is kg_v1.0 [10:14:20]action value=close_receipt [10:14:20]process_action close_receipt [10:14:20]cmd_close_receipt [10:14:20]MH_GetDate [10:14:20]Write to MH i2c: F0 00 00 E7 11 E7 [10:14:20]Write i2c OK [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: F0 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: F0 09 00 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: F0 09 00 E7 11 00 FF 61 E5 66 33 3A A4 66 12 [10:14:20]GetLastDocTimeStamp 1726308713 [10:14:20]current date 1726308863 [10:14:20]FM_GetShiftState [10:14:20]SAM_PROTO_GetShiftState [10:14:20]wFMCommunicate request_size=4 [10:14:20]MH_SAM_APDU [10:14:20]CAPDU: 80 13 01 00 [10:14:20]Write to MH i2c: E2 08 00 E8 11 80 13 01 00 00 00 00 00 76 [10:14:20]Write i2c OK [10:14:20]MH_I2C_Read... [10:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:20]Read from MH i2c: E2 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 0E 00 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 0E 00 E8 11 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 10 [10:14:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:14:20]wFMCommunicate OK [10:14:20]SAM_PROTO_GetShiftState done [10:14:20]FM_GetShiftState done [10:14:20]opened in 1726273389 [10:14:20]opened+sec_in_day 1726359789 [10:14:20]quantity*price = 26000 [10:14:20]sum+1 = 26001 [10:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 59 14.09.2024 10:14 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92408 ФПД: 143621645743033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T101423&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92408&fm=143621645743033&tin=02508201610067®Number=0000000000091423&sum=26000 0 [10:14:21]StoreToDocumentArchive [10:14:21]shift 506 fd 92408 [10:14:21]save to /storage/0506/doc_00092408 [10:14:21]save last doc name /storage/0506/doc_00092408 to /storage/kkm_last_doc_name [10:14:21]save OK [10:14:21]Clear old archive folders... [10:14:21]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:14:21]tlvbuf is 00FD0B20 [10:14:21]SAM_PROTO_ClearQueue [10:14:21]wFMCommunicate request_size=4 [10:14:21]MH_SAM_APDU [10:14:21]CAPDU: 80 09 00 00 [10:14:21]Write to MH i2c: E2 08 00 F5 11 80 09 00 00 00 00 00 00 78 [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:21]Read from MH i2c: E2 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 F5 11 00 90 00 7A [10:14:21]RAPDU: 90 00 [10:14:21]wFMCommunicate OK [10:14:21]SAM_PROTO_ClearQueue done [10:14:21]KKMCreateOFDPacket [10:14:21]OFDProtocolAddRootSTLVToBuf [10:14:21]FM_MakeSignedData [10:14:21]FM_MakeSignedData [10:14:21]SAM_PROTO_SignData [10:14:21]wFMCommunicate request_size=4 [10:14:21]MH_SAM_APDU [10:14:21]CAPDU: 80 0D 01 02 [10:14:21]Write to MH i2c: E2 08 00 F6 11 80 0D 01 02 00 00 00 00 80 [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:21]Read from MH i2c: E2 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 F6 11 00 90 00 7B [10:14:21]RAPDU: 90 00 [10:14:21]wFMCommunicate OK [10:14:21]wFMCommunicate request_size=255 [10:14:21]MH_SAM_APDU [10:14:21]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 3B 00 00 00 F4 03 04 00 FF 61 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [10:14:21]Write to MH i2c: E2 02 01 F7 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 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 3B 00 00 00 F4 03 04 00 FF 61 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 30 [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:22]Read from MH i2c: E2 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 03 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 03 00 F7 11 00 90 00 7C [10:14:22]RAPDU: 90 00 [10:14:22]wFMCommunicate OK [10:14:22]wFMCommunicate request_size=35 [10:14:22]MH_SAM_APDU [10:14:22]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 68 01 00 35 04 06 00 82 9F 85 2D 33 B9 [10:14:22]Write to MH i2c: E2 26 00 F8 11 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 68 01 00 35 04 06 00 82 9F 85 2D 33 B9 00 00 9A [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:22]Read from MH i2c: E2 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 03 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 03 00 F8 11 00 90 00 7D [10:14:22]RAPDU: 90 00 [10:14:22]wFMCommunicate OK [10:14:22]wFMCommunicate request_size=4 [10:14:22]MH_SAM_APDU [10:14:22]CAPDU: 80 0D 03 02 [10:14:22]Write to MH i2c: E2 08 00 F9 11 80 0D 03 02 00 00 00 00 85 [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:22]Read from MH i2c: E2 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 0B 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 0B 00 F9 11 00 61 44 8E BB 30 E5 E2 6A 90 00 D5 [10:14:22]RAPDU: 61 44 8E BB 30 E5 E2 6A 90 00 [10:14:22]wFMCommunicate OK [10:14:22]SAM_PROTO_SignData done [10:14:22]FM_MakeSignedData done [10:14:22]CreateOFDProtocolMessage [10:14:22]wFMCommunicate request_size=4 [10:14:22]MH_SAM_APDU [10:14:22]CAPDU: 80 11 00 00 [10:14:22]Write to MH i2c: E2 08 00 FA 11 80 11 00 00 00 00 00 00 85 [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:22]Read from MH i2c: E2 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 17 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: E2 17 00 FA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DC [10:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:14:22]wFMCommunicate OK [10:14:22]CreateOFDProtocolMessage done [10:14:22]OFDSenderStorePacket 92408 [10:14:22]StoreOFDPacket docnum=92408 [10:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 54 C2 20 01 45 62 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 3B 00 00 00 F4 03 04 00 FF 61 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 68 01 00 35 04 06 00 82 9F 85 2D 33 B9 61 44 8E BB 30 E5 E2 6A [10:14:22]CheckFolder [10:14:22]dirname=/storage/ofd_packets [10:14:22]CheckFolder done [10:14:22]ProducePacketName [10:14:22]name=ofd_packets/00092408 [10:14:22]NVStorageSaveData ofd_packets/00092408 [10:14:22]File name is /storage/ofd_packets/00092408 [10:14:22]Write 326 bytes [10:14:22]NVStorageSaveData done [10:14:22]OFDSenderStorePacket done [10:14:22]KKMCreateOFDPacket done [10:14:22]NVStorageSaveData kkm_last_timestamp [10:14:22]File name is /storage/kkm_last_timestamp [10:14:22]Write 4 bytes [10:14:22]NVStorageSaveData done [10:14:22]ExternCall_PrintAddStr [10:14:22]wPrintStart [10:14:22]Write to MH i2c: 01 00 00 FB 11 0C [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 07 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 07 00 FB 11 00 00 00 00 00 FF 0F 21 [10:14:22]RasterBufferAndPrint [10:14:22]line Счет N : (3)127320 [10:14:22]line ИНН: 02508201610067 [10:14:22]line Контрольно-Кассовый Чек [10:14:22]line ПРОДАЖА [10:14:22]line Товар: 2000036230011 [10:14:22]line Кофе Латте XL(GABB TRADE) [10:14:22]line 2.000 * 130.00 [10:14:22]line = 260.00 [10:14:22]line НДС 12% НСП 1% [10:14:22]line > о реализуемом товаре [10:14:22]line ИТОГО: 260.00 [10:14:22]line НСП 1% : 2.30 [10:14:22]line НДС 12% : 27.61 [10:14:22]line Наличными: 260.00 [10:14:22]line Безнал.: 0.00 [10:14:22]line Место: АЗС № 5 "Партнер Нефть" [10:14:22]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:14:22]line СНО: Общий режим [10:14:22]line Чек 59 14.09.2024 10:14 [10:14:22]line Смена: 506 ФФД: 1.0 [10:14:22]line ЗНМ: 03000000022 [10:14:22]line РНМ: 0000000000091423 [10:14:22]line Версия ККМ: 001 [10:14:22]line ФМ: 0000000000874692 [10:14:22]line ФД: 92408 [10:14:22]line ФПД: 143621645743033 [10:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T101423&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92408&fm=143621645743033&tin=02508201610067®Number=0000000000091423&sum=26000 [10:14:22]line 0 [10:14:22]OFD Sender: Processing packet 92408 [packets to send 63, broken 62] [10:14:22]ProducePacketName [10:14:22]name=ofd_packets/00092408 [10:14:22]OFD Sender: To server: pG, [10:14:22]CommunicateWithHost lk.salyk.kg:30040 [10:14:22]ConnectInit lk.salyk.kg [10:14:22]written 0, free lines is 4095 [10:14:22]Connected sock=10 [10:14:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 54 C2 20 01 45 62 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 3B 00 00 00 F4 03 04 00 FF 61 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 68 01 00 35 04 06 00 82 9F 85 2D 33 B9 61 44 8E BB 30 E5 E2 6A [10:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1D E7 47 00 DA 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F8 68 01 00 F4 03 04 00 7A 0A E5 66 B6 04 01 00 00 DF 2C 6F F4 81 63 26 2D [10:14:22]CommunicateWithHost err = 0 [10:14:22]CheckOFDResponse [10:14:22]1017 (14) - 77093643461234 [10:14:22]1041 (16) - 0000000000874692 [10:14:22]1040 (4) - 92408 [10:14:22]1012 (4) - 14.09.2024 04:00 [10:14:22]1206 (1) - 0 [10:14:22]OFD Sender: Remove packet 92408 [10:14:22]ProducePacketName [10:14:22]name=ofd_packets/00092408 [10:14:22]NVStorageDeleteData [10:14:23]Write to MH i2c: 01 00 00 23 12 35 [10:14:23]Write i2c OK [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: 01 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: 01 07 00 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: 01 07 00 23 12 00 00 00 00 00 2C 0D 75 [10:14:23]RasterBufferAndPrint [10:14:23]line [10:14:23]line [10:14:23]line [10:14:23]line [10:14:23]line [10:14:23]written 0, free lines is 3379 [10:14:23]MH_Cut [10:14:23]Write to MH i2c: D1 01 00 2A 12 01 0E [10:14:23]Write i2c OK [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: D1 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: D1 01 00 [10:14:23]MH_I2C_Read... [10:14:23]Read from MH i2c: D1 01 00 2A 12 00 0D [10:14:23]Write to MH i2c: 01 00 00 2B 12 3D [10:14:23]Write i2c OK [10:14:23]MH_I2C_Read... [10:14:23]OFD Sender: No OFD packet to send [10:14:23]*** Cut start [10:14:23]*** Purtial cut [10:14:23]*** Stage 1: CUTSNS_PIN = 1 [10:14:25]Read from MH i2c: 01 [10:14:25]MH_I2C_Read... [10:14:25]*** Stop cut motor [10:14:25]*** Cut end [10:14:25]Read from MH i2c: 01 07 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 FF 0F 52 [10:14:25]process_action close_receipt done [10:14:25]requested_data is exist [10:14:25]produce_requested_data [10:14:25]requested_item fm.sn is exist - process it [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 11 00 00 [10:14:25]Write to MH i2c: E2 08 00 2C 12 80 11 00 00 00 00 00 00 B8 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 17 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 17 00 2C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0F [10:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:14:25]wFMCommunicate OK [10:14:25]requested_item fd.num is exist - process it [10:14:25]SAM_PROTO_GetFieldsCounters [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 13 00 00 [10:14:25]Write to MH i2c: E2 08 00 2D 12 80 13 00 00 00 00 00 00 BB [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 62 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 62 00 2D 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F8 68 01 00 0E 04 04 00 FA 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 E7 [10:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F8 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:25]wFMCommunicate OK [10:14:25]SAM_PROTO_GetFieldsCounters done [10:14:25]requested_item shift.num is exist - process it [10:14:25]requested_item shift.opened is exist - process it [10:14:25]req_shift_opened [10:14:25]FM_GetShiftState [10:14:25]SAM_PROTO_GetShiftState [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 13 01 00 [10:14:25]Write to MH i2c: E2 08 00 2E 12 80 13 01 00 00 00 00 00 BD [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:26]Read from MH i2c: E2 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 0E 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: E2 0E 00 2E 12 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 57 [10:14:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:14:26]wFMCommunicate OK [10:14:26]SAM_PROTO_GetShiftState done [10:14:26]FM_GetShiftState done [10:14:26]req_shift_opened done [10:14:26]requested_item shift.open_date is exist - process it [10:14:26]req_shift_open_date [10:14:26]req_shift_open_date done [10:14:26]produce_requested_data done [10:14:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92408,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:14:26]process_action_free close_receipt [10:14:26]json_value_free [10:14:26]json_value_free done [10:14:26]process_json_proto returns [10:14:26]Send response to host [10:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92408,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:14:26]free response buf [10:14:26]execute_script done [10:14:26]execute_script returns [10:14:26]free content buf [10:14:26]Sock 8.Close socket [10:14:26]Sock 8.Thread stoped [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:40]accept exits with 9 [10:14:40]New connection [10:14:40]New thread 3066801508 created [10:14:40]Thread 3066658148 joined [10:14:40]Waiting for new connection... [10:14:40] Sock 9.Parse request [10:14:40]Sock 9.Check first char [10:14:40]Sock 9.First char is OK [10:14:40]request: POST /json_proto HTTP/1.0 [10:14:40]Method: POST [10:14:40]URL: /json_proto [10:14:40]Method is POST - this is cgi request [10:14:40]url: /json_proto [10:14:40]query_string will be loaded in cgi processing [10:14:40]execute_cgi json_proto POST (null) [10:14:40]execute_cgi path=json_proto method=POST [10:14:40]POST find Content-Length [10:14:40]Host: 172.17.57.71:8080 [10:14:40]Content-Length: 620 [10:14:40]Content-Type: application/json [10:14:40] [10:14:40]POST finish read [10:14:40]Found Content-Length = 620 [10:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127321", "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" ] } } [10:14:40]execute_script... [10:14: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)127321", "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" ] } } [10:14:40]POST & json_proto [10:14:40]process_json_proto [10:14:40]json parsed OK: [10:14:40]protocol is kg_v1.0 [10:14:40]action value=close_receipt [10:14:40]process_action close_receipt [10:14:40]cmd_close_receipt [10:14:40]MH_GetDate [10:14:40]Write to MH i2c: F0 00 00 2F 12 30 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 09 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 09 00 2F 12 00 13 62 E5 66 33 3A A4 66 70 [10:14:40]GetLastDocTimeStamp 1726308863 [10:14:40]current date 1726308883 [10:14:40]FM_GetShiftState [10:14:40]SAM_PROTO_GetShiftState [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 13 01 00 [10:14:40]Write to MH i2c: E2 08 00 30 12 80 13 01 00 00 00 00 00 BF [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0E 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0E 00 30 12 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 59 [10:14:40]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:14:40]wFMCommunicate OK [10:14:40]SAM_PROTO_GetShiftState done [10:14:40]FM_GetShiftState done [10:14:40]opened in 1726273389 [10:14:40]opened+sec_in_day 1726359789 [10:14:40]quantity*price = 13900 [10:14:40]sum+1 = 13901 [10:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 60 14.09.2024 10:14 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92409 ФПД: 208502515503537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T101443&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92409&fm=208502515503537&tin=02508201610067®Number=0000000000091423&sum=13900 0 [10:14:41]StoreToDocumentArchive [10:14:41]shift 506 fd 92409 [10:14:41]save to /storage/0506/doc_00092409 [10:14:41]save last doc name /storage/0506/doc_00092409 to /storage/kkm_last_doc_name [10:14:41]save OK [10:14:41]Clear old archive folders... [10:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:14:41]tlvbuf is 00FCD8B0 [10:14:41]SAM_PROTO_ClearQueue [10:14:41]wFMCommunicate request_size=4 [10:14:41]MH_SAM_APDU [10:14:41]CAPDU: 80 09 00 00 [10:14:41]Write to MH i2c: E2 08 00 3D 12 80 09 00 00 00 00 00 00 C1 [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:41]Read from MH i2c: E2 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 03 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [10:14:41]RAPDU: 90 00 [10:14:41]wFMCommunicate OK [10:14:41]SAM_PROTO_ClearQueue done [10:14:41]KKMCreateOFDPacket [10:14:41]OFDProtocolAddRootSTLVToBuf [10:14:41]FM_MakeSignedData [10:14:41]FM_MakeSignedData [10:14:41]SAM_PROTO_SignData [10:14:41]wFMCommunicate request_size=4 [10:14:41]MH_SAM_APDU [10:14:41]CAPDU: 80 0D 01 02 [10:14:41]Write to MH i2c: E2 08 00 3E 12 80 0D 01 02 00 00 00 00 C9 [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:41]Read from MH i2c: E2 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 03 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [10:14:41]RAPDU: 90 00 [10:14:41]wFMCommunicate OK [10:14:41]wFMCommunicate request_size=255 [10:14:41]MH_SAM_APDU [10:14:41]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 3C 00 00 00 F4 03 04 00 13 62 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [10:14:41]Write to MH i2c: E2 02 01 3F 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 3C 00 00 00 F4 03 04 00 13 62 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 EB [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]wFMCommunicate request_size=31 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 F9 68 01 00 35 04 06 00 BD A1 C6 5F 11 B1 [10:14:42]Write to MH i2c: E2 22 00 40 12 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 F9 68 01 00 35 04 06 00 BD A1 C6 5F 11 B1 00 00 A2 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 40 12 00 90 00 C6 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 03 02 [10:14:42]Write to MH i2c: E2 08 00 41 12 80 0D 03 02 00 00 00 00 CE [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0B 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0B 00 41 12 00 DC 1E 7E BF 64 AE 06 31 90 00 4F [10:14:42]RAPDU: DC 1E 7E BF 64 AE 06 31 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_SignData done [10:14:42]FM_MakeSignedData done [10:14:42]CreateOFDProtocolMessage [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 11 00 00 [10:14:42]Write to MH i2c: E2 08 00 42 12 80 11 00 00 00 00 00 00 CE [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 42 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 25 [10:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:14:42]wFMCommunicate OK [10:14:42]CreateOFDProtocolMessage done [10:14:42]OFDSenderStorePacket 92409 [10:14:42]StoreOFDPacket docnum=92409 [10:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 35 D4 1C 01 EA 5B 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 3C 00 00 00 F4 03 04 00 13 62 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F9 68 01 00 35 04 06 00 BD A1 C6 5F 11 B1 DC 1E 7E BF 64 AE 06 31 [10:14:42]CheckFolder [10:14:42]dirname=/storage/ofd_packets [10:14:42]CheckFolder done [10:14:42]ProducePacketName [10:14:42]name=ofd_packets/00092409 [10:14:42]NVStorageSaveData ofd_packets/00092409 [10:14:42]File name is /storage/ofd_packets/00092409 [10:14:42]Write 322 bytes [10:14:42]NVStorageSaveData done [10:14:42]OFDSenderStorePacket done [10:14:42]KKMCreateOFDPacket done [10:14:42]NVStorageSaveData kkm_last_timestamp [10:14:42]File name is /storage/kkm_last_timestamp [10:14:42]Write 4 bytes [10:14:42]NVStorageSaveData done [10:14:42]ExternCall_PrintAddStr [10:14:42]wPrintStart [10:14:42]Write to MH i2c: 01 00 00 43 12 55 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 07 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 07 00 43 12 00 00 00 00 00 FF 0F 6A [10:14:42]RasterBufferAndPrint [10:14:42]line Счет N : (3)127321 [10:14:42]line ИНН: 02508201610067 [10:14:42]line Контрольно-Кассовый Чек [10:14:42]line ПРОДАЖА [10:14:42]line Товар: 48745000 [10:14:42]line Сигареты Winston Purple Mix [10:14:42]line 1.000 * 139.00 [10:14:42]line = 139.00 [10:14:42]line НДС 12% НСП 1% [10:14:42]line > о реализуемом товаре [10:14:42]line ИТОГО: 139.00 [10:14:42]line НСП 1% : 1.23 [10:14:42]line НДС 12% : 14.76 [10:14:42]line Наличными: 139.00 [10:14:42]line Безнал.: 0.00 [10:14:42]line Место: АЗС № 5 "Партнер Нефть" [10:14:42]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:14:42]line СНО: Общий режим [10:14:42]line Чек 60 14.09.2024 10:14 [10:14:42]line Смена: 506 ФФД: 1.0 [10:14:42]line ЗНМ: 03000000022 [10:14:42]line РНМ: 0000000000091423 [10:14:42]line Версия ККМ: 001 [10:14:42]line ФМ: 0000000000874692 [10:14:42]line ФД: 92409 [10:14:42]line ФПД: 208502515503537 [10:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T101443&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92409&fm=208502515503537&tin=02508201610067®Number=0000000000091423&sum=13900 [10:14:42]line 0 [10:14:42]OFD Sender: Processing packet 92409 [packets to send 63, broken 62] [10:14:42]ProducePacketName [10:14:42]name=ofd_packets/00092409 [10:14:42]OFD Sender: To server: pG, [10:14:42]CommunicateWithHost lk.salyk.kg:30040 [10:14:42]ConnectInit lk.salyk.kg [10:14:42]written 0, free lines is 4095 [10:14:42]Connected sock=10 [10:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 35 D4 1C 01 EA 5B 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 3C 00 00 00 F4 03 04 00 13 62 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F9 68 01 00 35 04 06 00 BD A1 C6 5F 11 B1 DC 1E 7E BF 64 AE 06 31 [10:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CB 19 47 00 7E AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 F9 68 01 00 F4 03 04 00 8E 0A E5 66 B6 04 01 00 00 F9 AC CA B2 54 0A 9A 5F [10:14:42]CommunicateWithHost err = 0 [10:14:42]CheckOFDResponse [10:14:42]1017 (14) - 77093643461234 [10:14:42]1041 (16) - 0000000000874692 [10:14:42]1040 (4) - 92409 [10:14:42]1012 (4) - 14.09.2024 04:01 [10:14:42]1206 (1) - 0 [10:14:42]OFD Sender: Remove packet 92409 [10:14:42]ProducePacketName [10:14:42]name=ofd_packets/00092409 [10:14:42]NVStorageDeleteData [10:14:43]Write to MH i2c: 01 00 00 6B 12 7D [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 07 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 07 00 6B 12 00 00 00 00 00 1D 0D AE [10:14:43]RasterBufferAndPrint [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]written 0, free lines is 3364 [10:14:43]MH_Cut [10:14:43]Write to MH i2c: D1 01 00 72 12 01 56 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 01 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 01 00 72 12 00 55 [10:14:43]Write to MH i2c: 01 00 00 73 12 85 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]OFD Sender: No OFD packet to send [10:14:43]*** Cut start [10:14:43]*** Purtial cut [10:14:43]*** Stage 1: CUTSNS_PIN = 1 [10:14:45]Read from MH i2c: 01 [10:14:45]MH_I2C_Read... [10:14:45]*** Stop cut motor [10:14:45]*** Cut end [10:14:45]Read from MH i2c: 01 07 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: 01 07 00 73 12 00 00 00 00 00 FF 0F 9A [10:14:45]process_action close_receipt done [10:14:45]requested_data is exist [10:14:45]produce_requested_data [10:14:45]requested_item fm.sn is exist - process it [10:14:45]wFMCommunicate request_size=4 [10:14:45]MH_SAM_APDU [10:14:45]CAPDU: 80 11 00 00 [10:14:45]Write to MH i2c: E2 08 00 74 12 80 11 00 00 00 00 00 00 00 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:45]Read from MH i2c: E2 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 17 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 17 00 74 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 57 [10:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:14:45]wFMCommunicate OK [10:14:45]requested_item fd.num is exist - process it [10:14:45]SAM_PROTO_GetFieldsCounters [10:14:45]wFMCommunicate request_size=4 [10:14:45]MH_SAM_APDU [10:14:45]CAPDU: 80 13 00 00 [10:14:45]Write to MH i2c: E2 08 00 75 12 80 13 00 00 00 00 00 00 03 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:45]Read from MH i2c: E2 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 62 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 62 00 75 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F9 68 01 00 0E 04 04 00 FA 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 33 [10:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 F9 68 01 00 0E 04 04 00 FA 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:14:45]wFMCommunicate OK [10:14:45]SAM_PROTO_GetFieldsCounters done [10:14:45]requested_item shift.num is exist - process it [10:14:45]requested_item shift.opened is exist - process it [10:14:45]req_shift_opened [10:14:45]FM_GetShiftState [10:14:45]SAM_PROTO_GetShiftState [10:14:45]wFMCommunicate request_size=4 [10:14:45]MH_SAM_APDU [10:14:45]CAPDU: 80 13 01 00 [10:14:45]Write to MH i2c: E2 08 00 76 12 80 13 01 00 00 00 00 00 05 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:45]Read from MH i2c: E2 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 0E 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 0E 00 76 12 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9F [10:14:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:14:45]wFMCommunicate OK [10:14:45]SAM_PROTO_GetShiftState done [10:14:45]FM_GetShiftState done [10:14:45]req_shift_opened done [10:14:45]requested_item shift.open_date is exist - process it [10:14:45]req_shift_open_date [10:14:45]req_shift_open_date done [10:14:45]produce_requested_data done [10:14:45]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92409,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:14:45]process_action_free close_receipt [10:14:45]json_value_free [10:14:45]json_value_free done [10:14:45]process_json_proto returns [10:14:45]Send response to host [10:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92409,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:14:45]free response buf [10:14:45]execute_script done [10:14:45]execute_script returns [10:14:45]free content buf [10:14:45]Sock 9.Close socket [10:14:45]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:31]accept exits with 8 [10:26:31]New connection [10:26:31]New thread 3066658148 created [10:26:31]Thread 3066801508 joined [10:26:31]Waiting for new connection... [10:26:31] Sock 8.Parse request [10:26:31]Sock 8.Check first char [10:26:31]Sock 8.First char is OK [10:26:31]request: POST /json_proto HTTP/1.0 [10:26:31]Method: POST [10:26:31]URL: /json_proto [10:26:31]Method is POST - this is cgi request [10:26:31]url: /json_proto [10:26:31]query_string will be loaded in cgi processing [10:26:31]execute_cgi json_proto POST (null) [10:26:31]execute_cgi path=json_proto method=POST [10:26:31]POST find Content-Length [10:26:31]Host: 172.17.57.71:8080 [10:26:31]Content-Length: 654 [10:26:31]Content-Type: application/json [10:26:31] [10:26:31]POST finish read [10:26:31]Found Content-Length = 654 [10:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127322", "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" ] } } [10:26:31]execute_script... [10:26: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)127322", "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" ] } } [10:26:31]POST & json_proto [10:26:31]process_json_proto [10:26:31]json parsed OK: [10:26:31]protocol is kg_v1.0 [10:26:31]action value=close_receipt [10:26:31]process_action close_receipt [10:26:31]cmd_close_receipt [10:26:31]MH_GetDate [10:26:31]Write to MH i2c: F0 00 00 77 12 78 [10:26:31]Write i2c OK [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: F0 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: F0 09 00 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: F0 09 00 77 12 00 DA 64 E5 66 33 3A A4 66 81 [10:26:31]GetLastDocTimeStamp 1726308883 [10:26:31]current date 1726309594 [10:26:31]FM_GetShiftState [10:26:31]SAM_PROTO_GetShiftState [10:26:31]wFMCommunicate request_size=4 [10:26:31]MH_SAM_APDU [10:26:31]CAPDU: 80 13 01 00 [10:26:31]Write to MH i2c: E2 08 00 78 12 80 13 01 00 00 00 00 00 07 [10:26:31]Write i2c OK [10:26:31]MH_I2C_Read... [10:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:31]Read from MH i2c: E2 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: E2 0E 00 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: E2 0E 00 78 12 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A1 [10:26:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:26:31]wFMCommunicate OK [10:26:31]SAM_PROTO_GetShiftState done [10:26:31]FM_GetShiftState done [10:26:31]opened in 1726273389 [10:26:31]opened+sec_in_day 1726359789 [10:26:31]quantity*price = 7700 [10:26:31]sum+1 = 7701 [10:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 61 14.09.2024 10:26 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92410 ФПД: 48565900324016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T102634&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92410&fm=48565900324016&tin=02508201610067®Number=0000000000091423&sum=7700 0 [10:26:32]StoreToDocumentArchive [10:26:32]shift 506 fd 92410 [10:26:32]save to /storage/0506/doc_00092410 [10:26:32]save last doc name /storage/0506/doc_00092410 to /storage/kkm_last_doc_name [10:26:32]save OK [10:26:32]Clear old archive folders... [10:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:26:32]tlvbuf is 00FEBB00 [10:26:32]SAM_PROTO_ClearQueue [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 09 00 00 [10:26:32]Write to MH i2c: E2 08 00 85 12 80 09 00 00 00 00 00 00 09 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:32]Read from MH i2c: E2 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 03 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [10:26:32]RAPDU: 90 00 [10:26:32]wFMCommunicate OK [10:26:32]SAM_PROTO_ClearQueue done [10:26:32]KKMCreateOFDPacket [10:26:32]OFDProtocolAddRootSTLVToBuf [10:26:32]FM_MakeSignedData [10:26:32]FM_MakeSignedData [10:26:32]SAM_PROTO_SignData [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 0D 01 02 [10:26:32]Write to MH i2c: E2 08 00 86 12 80 0D 01 02 00 00 00 00 11 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:32]Read from MH i2c: E2 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 03 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [10:26:32]RAPDU: 90 00 [10:26:32]wFMCommunicate OK [10:26:32]wFMCommunicate request_size=255 [10:26:32]MH_SAM_APDU [10:26: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 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 3D 00 00 00 F4 03 04 00 DA 64 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:26:32]Write to MH i2c: E2 02 01 87 12 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 3D 00 00 00 F4 03 04 00 DA 64 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 67 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 03 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [10:26:33]RAPDU: 90 00 [10:26:33]wFMCommunicate OK [10:26:33]wFMCommunicate request_size=52 [10:26:33]MH_SAM_APDU [10:26:33]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 68 01 00 35 04 06 00 2C 2B A1 3C AC B0 [10:26:33]Write to MH i2c: E2 37 00 88 12 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 68 01 00 35 04 06 00 2C 2B A1 3C AC B0 00 00 C8 [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 03 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [10:26:33]RAPDU: 90 00 [10:26:33]wFMCommunicate OK [10:26:33]wFMCommunicate request_size=4 [10:26:33]MH_SAM_APDU [10:26:33]CAPDU: 80 0D 03 02 [10:26:33]Write to MH i2c: E2 08 00 89 12 80 0D 03 02 00 00 00 00 16 [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 0B 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 0B 00 89 12 00 F1 D3 7E 46 B0 14 C9 C2 90 00 EE [10:26:33]RAPDU: F1 D3 7E 46 B0 14 C9 C2 90 00 [10:26:33]wFMCommunicate OK [10:26:33]SAM_PROTO_SignData done [10:26:33]FM_MakeSignedData done [10:26:33]CreateOFDProtocolMessage [10:26:33]wFMCommunicate request_size=4 [10:26:33]MH_SAM_APDU [10:26:33]CAPDU: 80 11 00 00 [10:26:33]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 17 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 17 00 8A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6D [10:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:26:33]wFMCommunicate OK [10:26:33]CreateOFDProtocolMessage done [10:26:33]OFDSenderStorePacket 92410 [10:26:33]StoreOFDPacket docnum=92410 [10:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 05 E7 31 01 63 D7 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 3D 00 00 00 F4 03 04 00 DA 64 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 68 01 00 35 04 06 00 2C 2B A1 3C AC B0 F1 D3 7E 46 B0 14 C9 C2 [10:26:33]CheckFolder [10:26:33]dirname=/storage/ofd_packets [10:26:33]CheckFolder done [10:26:33]ProducePacketName [10:26:33]name=ofd_packets/00092410 [10:26:33]NVStorageSaveData ofd_packets/00092410 [10:26:33]File name is /storage/ofd_packets/00092410 [10:26:33]Write 343 bytes [10:26:33]NVStorageSaveData done [10:26:33]OFDSenderStorePacket done [10:26:33]KKMCreateOFDPacket done [10:26:33]NVStorageSaveData kkm_last_timestamp [10:26:33]File name is /storage/kkm_last_timestamp [10:26:33]Write 4 bytes [10:26:33]NVStorageSaveData done [10:26:33]ExternCall_PrintAddStr [10:26:33]wPrintStart [10:26:33]Write to MH i2c: 01 00 00 8B 12 9D [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: 01 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: 01 07 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: 01 07 00 8B 12 00 00 00 00 00 FF 0F B2 [10:26:33]RasterBufferAndPrint [10:26:33]line Счет N : (3)127322 [10:26:33]line ИНН: 02508201610067 [10:26:33]line Контрольно-Кассовый Чек [10:26:33]line ПРОДАЖА [10:26:33]line Товар: 4700000480050 [10:26:33]line Напиток Nitro Energy эн green ж/б 0,45л [10:26:33]line 1.000 * 77.00 [10:26:33]line = 77.00 [10:26:33]line НДС 12% НСП 1% [10:26:33]line > о реализуемом товаре [10:26:33]line ИТОГО: 77.00 [10:26:33]line НСП 1% : 0.68 [10:26:33]line НДС 12% : 8.18 [10:26:33]line Наличными: 77.00 [10:26:33]line Безнал.: 0.00 [10:26:33]line Место: АЗС № 5 "Партнер Нефть" [10:26:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:26:33]line СНО: Общий режим [10:26:33]line Чек 61 14.09.2024 10:26 [10:26:33]line Смена: 506 ФФД: 1.0 [10:26:33]line ЗНМ: 03000000022 [10:26:33]line РНМ: 0000000000091423 [10:26:33]line Версия ККМ: 001 [10:26:33]line ФМ: 0000000000874692 [10:26:33]line ФД: 92410 [10:26:33]line ФПД: 48565900324016 [10:26:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T102634&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92410&fm=48565900324016&tin=02508201610067®Number=0000000000091423&sum=7700 [10:26:33]line 0 [10:26:33]OFD Sender: Processing packet 92410 [packets to send 63, broken 62] [10:26:33]ProducePacketName [10:26:33]name=ofd_packets/00092410 [10:26:33]OFD Sender: To server: pG, [10:26:33]CommunicateWithHost lk.salyk.kg:30040 [10:26:33]ConnectInit lk.salyk.kg [10:26:33]written 0, free lines is 4095 [10:26:33]Connected sock=10 [10:26:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 05 E7 31 01 63 D7 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 3D 00 00 00 F4 03 04 00 DA 64 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 68 01 00 35 04 06 00 2C 2B A1 3C AC B0 F1 D3 7E 46 B0 14 C9 C2 [10:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 80 5E 47 00 9E F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FA 68 01 00 F4 03 04 00 55 0D E5 66 B6 04 01 00 00 F6 B1 22 74 15 7E 0C B0 [10:26:33]CommunicateWithHost err = 0 [10:26:33]CheckOFDResponse [10:26:33]1017 (14) - 77093643461234 [10:26:33]1041 (16) - 0000000000874692 [10:26:33]1040 (4) - 92410 [10:26:33]1012 (4) - 14.09.2024 04:13 [10:26:33]1206 (1) - 0 [10:26:33]OFD Sender: Remove packet 92410 [10:26:33]ProducePacketName [10:26:33]name=ofd_packets/00092410 [10:26:33]NVStorageDeleteData [10:26:34]Write to MH i2c: 01 00 00 B4 12 C6 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 07 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: 01 07 00 B4 12 00 00 00 00 00 12 0D EC [10:26:34]RasterBufferAndPrint [10:26:34]line [10:26:34]line [10:26:34]line [10:26:34]line [10:26:34]line [10:26:34]written 0, free lines is 3353 [10:26:34]MH_Cut [10:26:34]Write to MH i2c: D1 01 00 BB 12 01 9F [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: D1 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: D1 01 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: D1 01 00 BB 12 00 9E [10:26:34]Write to MH i2c: 01 00 00 BC 12 CE [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]OFD Sender: No OFD packet to send [10:26:34]*** Cut start [10:26:34]*** Purtial cut [10:26:34]*** Stage 1: CUTSNS_PIN = 1 [10:26:36]Read from MH i2c: 01 [10:26:36]MH_I2C_Read... [10:26:36]*** Stop cut motor [10:26:36]*** Cut end [10:26:36]Read from MH i2c: 01 07 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: 01 07 00 BC 12 00 00 00 00 00 FF 0F E3 [10:26:36]process_action close_receipt done [10:26:36]requested_data is exist [10:26:36]produce_requested_data [10:26:36]requested_item fm.sn is exist - process it [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 11 00 00 [10:26:36]Write to MH i2c: E2 08 00 BD 12 80 11 00 00 00 00 00 00 49 [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:36]Read from MH i2c: E2 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 17 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 17 00 BD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A0 [10:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:26:36]wFMCommunicate OK [10:26:36]requested_item fd.num is exist - process it [10:26:36]SAM_PROTO_GetFieldsCounters [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 13 00 00 [10:26:36]Write to MH i2c: E2 08 00 BE 12 80 13 00 00 00 00 00 00 4C [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:36]Read from MH i2c: E2 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 62 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 62 00 BE 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FA 68 01 00 0E 04 04 00 FA 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 80 [10:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FA 68 01 00 0E 04 04 00 FA 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:26:36]wFMCommunicate OK [10:26:36]SAM_PROTO_GetFieldsCounters done [10:26:36]requested_item shift.num is exist - process it [10:26:36]requested_item shift.opened is exist - process it [10:26:36]req_shift_opened [10:26:36]FM_GetShiftState [10:26:36]SAM_PROTO_GetShiftState [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 13 01 00 [10:26:36]Write to MH i2c: E2 08 00 BF 12 80 13 01 00 00 00 00 00 4E [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:37]Read from MH i2c: E2 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 0E 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 0E 00 BF 12 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E8 [10:26:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:26:37]wFMCommunicate OK [10:26:37]SAM_PROTO_GetShiftState done [10:26:37]FM_GetShiftState done [10:26:37]req_shift_opened done [10:26:37]requested_item shift.open_date is exist - process it [10:26:37]req_shift_open_date [10:26:37]req_shift_open_date done [10:26:37]produce_requested_data done [10:26:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92410,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:26:37]process_action_free close_receipt [10:26:37]json_value_free [10:26:37]json_value_free done [10:26:37]process_json_proto returns [10:26:37]Send response to host [10:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92410,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:26:37]free response buf [10:26:37]execute_script done [10:26:37]execute_script returns [10:26:37]free content buf [10:26:37]Sock 8.Close socket [10:26:37]Sock 8.Thread stoped [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:20]accept exits with 9 [10:31:20]New connection [10:31:20]New thread 3066801508 created [10:31:20]Thread 3066658148 joined [10:31:20]Waiting for new connection... [10:31:20] Sock 9.Parse request [10:31:20]Sock 9.Check first char [10:31:20]Sock 9.First char is OK [10:31:20]request: POST /json_proto HTTP/1.0 [10:31:20]Method: POST [10:31:20]URL: /json_proto [10:31:20]Method is POST - this is cgi request [10:31:20]url: /json_proto [10:31:20]query_string will be loaded in cgi processing [10:31:20]execute_cgi json_proto POST (null) [10:31:20]execute_cgi path=json_proto method=POST [10:31:20]POST find Content-Length [10:31:20]Host: 172.17.57.71:8080 [10:31:20]Content-Length: 1551 [10:31:20]Content-Type: application/json [10:31:20] [10:31:20]POST finish read [10:31:20]Found Content-Length = 1551 [10:31:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127323", "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" : 4.000, "sum" : 260.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 }]} ,{ "code": "5449000131836", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:20]execute_script... [10:31:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127323", "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" : 4.000, "sum" : 260.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 }]} ,{ "code": "5449000131836", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:20]POST & json_proto [10:31:20]process_json_proto [10:31:20]json parsed OK: [10:31:20]protocol is kg_v1.0 [10:31:20]action value=close_receipt [10:31:20]process_action close_receipt [10:31:20]cmd_close_receipt [10:31:20]MH_GetDate [10:31:20]Write to MH i2c: F0 00 00 C0 12 C1 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: F0 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: F0 09 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: F0 09 00 C0 12 00 FB 65 E5 66 33 3A A4 66 EC [10:31:20]GetLastDocTimeStamp 1726309594 [10:31:20]current date 1726309883 [10:31:20]FM_GetShiftState [10:31:20]SAM_PROTO_GetShiftState [10:31:20]wFMCommunicate request_size=4 [10:31:20]MH_SAM_APDU [10:31:20]CAPDU: 80 13 01 00 [10:31:20]Write to MH i2c: E2 08 00 C1 12 80 13 01 00 00 00 00 00 50 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:20]Read from MH i2c: E2 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 0E 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 0E 00 C1 12 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EA [10:31:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:31:20]wFMCommunicate OK [10:31:20]SAM_PROTO_GetShiftState done [10:31:20]FM_GetShiftState done [10:31:20]opened in 1726273389 [10:31:20]opened+sec_in_day 1726359789 [10:31:20]quantity*price = 26000 [10:31:20]sum+1 = 26001 [10:31:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000131836 Напиток Кока-Кола Zero 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 455.00 НСП 1% : 4.02 НДС 12% : 48.31 Наличными: 455.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 62 14.09.2024 10:31 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92411 ФПД: 134464184417510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T103123&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92411&fm=134464184417510&tin=02508201610067®Number=0000000000091423&sum=45500 0 [10:31:21]StoreToDocumentArchive [10:31:21]shift 506 fd 92411 [10:31:21]save to /storage/0506/doc_00092411 [10:31:21]save last doc name /storage/0506/doc_00092411 to /storage/kkm_last_doc_name [10:31:21]save OK [10:31:21]Clear old archive folders... [10:31:21]ProcessDocumentItem done err = 0, tmpTLVsize=640 [10:31:21]tlvbuf is 00FEB760 [10:31:21]SAM_PROTO_ClearQueue [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 09 00 00 [10:31:21]Write to MH i2c: E2 08 00 CE 12 80 09 00 00 00 00 00 00 52 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [10:31:21]RAPDU: 90 00 [10:31:21]wFMCommunicate OK [10:31:21]SAM_PROTO_ClearQueue done [10:31:21]KKMCreateOFDPacket [10:31:21]OFDProtocolAddRootSTLVToBuf [10:31:21]FM_MakeSignedData [10:31:21]FM_MakeSignedData [10:31:21]SAM_PROTO_SignData [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 0D 01 02 [10:31:21]Write to MH i2c: E2 08 00 CF 12 80 0D 01 02 00 00 00 00 5A [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [10:31:21]RAPDU: 90 00 [10:31:21]wFMCommunicate OK [10:31:21]wFMCommunicate request_size=255 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 0D 02 02 FA 03 00 80 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 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 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 [10:31:21]Write to MH i2c: E2 02 01 D0 12 80 0D 02 02 FA 00 03 00 80 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 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 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 00 00 83 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [10:31:22]RAPDU: 90 00 [10:31:22]wFMCommunicate OK [10:31:22]wFMCommunicate request_size=255 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 31 38 33 36 06 04 2B 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 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 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 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [10:31:22]Write to MH i2c: E2 02 01 D1 12 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 31 38 33 36 06 04 2B 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 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 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 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 B3 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [10:31:22]RAPDU: 90 00 [10:31:22]wFMCommunicate OK [10:31:22]wFMCommunicate request_size=149 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FB 65 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 68 01 00 35 04 06 00 7A 4B 61 F2 7C E6 [10:31:22]Write to MH i2c: E2 98 00 D2 12 80 0D 02 02 90 00 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FB 65 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 68 01 00 35 04 06 00 7A 4B 61 F2 7C E6 00 00 5D [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [10:31:22]RAPDU: 90 00 [10:31:22]wFMCommunicate OK [10:31:22]wFMCommunicate request_size=4 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 0D 03 02 [10:31:22]Write to MH i2c: E2 08 00 D3 12 80 0D 03 02 00 00 00 00 60 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0B 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0B 00 D3 12 00 AA D0 D2 9A 05 16 4F 26 90 00 D7 [10:31:22]RAPDU: AA D0 D2 9A 05 16 4F 26 90 00 [10:31:22]wFMCommunicate OK [10:31:22]SAM_PROTO_SignData done [10:31:22]FM_MakeSignedData done [10:31:22]CreateOFDProtocolMessage [10:31:22]wFMCommunicate request_size=4 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 11 00 00 [10:31:22]Write to MH i2c: E2 08 00 D4 12 80 11 00 00 00 00 00 00 60 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 17 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 17 00 D4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B7 [10:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:31:22]wFMCommunicate OK [10:31:22]CreateOFDProtocolMessage done [10:31:22]OFDSenderStorePacket 92411 [10:31:22]StoreOFDPacket docnum=92411 [10:31:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 94 02 00 00 F8 9C 8C 02 C7 3E 5A 03 01 00 03 00 80 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 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 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 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 31 38 33 36 06 04 2B 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 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 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 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FB 65 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 68 01 00 35 04 06 00 7A 4B 61 F2 7C E6 AA D0 D2 9A 05 16 4F 26 [10:31:22]CheckFolder [10:31:22]dirname=/storage/ofd_packets [10:31:22]CheckFolder done [10:31:22]ProducePacketName [10:31:22]name=ofd_packets/00092411 [10:31:22]NVStorageSaveData ofd_packets/00092411 [10:31:22]File name is /storage/ofd_packets/00092411 [10:31:22]Write 690 bytes [10:31:22]NVStorageSaveData done [10:31:22]OFDSenderStorePacket done [10:31:22]KKMCreateOFDPacket done [10:31:22]NVStorageSaveData kkm_last_timestamp [10:31:22]File name is /storage/kkm_last_timestamp [10:31:22]Write 4 bytes [10:31:22]NVStorageSaveData done [10:31:22]ExternCall_PrintAddStr [10:31:22]wPrintStart [10:31:22]Write to MH i2c: 01 00 00 D5 12 E7 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: 01 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: 01 07 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 FF 0F FC [10:31:22]RasterBufferAndPrint [10:31:22]line Счет N : (3)127323 [10:31:22]line ИНН: 02508201610067 [10:31:22]line Контрольно-Кассовый Чек [10:31:22]line ПРОДАЖА [10:31:22]line Товар: 2000032760017 [10:31:22]line Слойка DC треугольная мясо110г [10:31:22]line 4.000 * 65.00 [10:31:22]line = 260.00 [10:31:22]line НДС 12% НСП 1% [10:31:22]line > о реализуемом товаре [10:31:23]line Товар: 4870001571030 [10:31:23]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [10:31:23]line 1.000 * 70.00 [10:31:23]line = 70.00 [10:31:23]line НДС 12% НСП 1% [10:31:23]line > о реализуемом товаре [10:31:23]line Товар: 5449000131836 [10:31:23]line Напиток Кока-Кола Zero 0,5л [10:31:23]line 1.000 * 75.00 [10:31:23]line = 75.00 [10:31:23]line НДС 12% НСП 1% [10:31:23]line > о реализуемом товаре [10:31:23]line Товар: 4700000160358 [10:31:23]line Вода Легенда 1л [10:31:23]line 1.000 * 50.00 [10:31:23]line = 50.00 [10:31:23]line НДС 12% НСП 1% [10:31:23]line > о реализуемом товаре [10:31:23]line ИТОГО: 455.00 [10:31:23]line НСП 1% : 4.02 [10:31:23]line НДС 12% : 48.31 [10:31:23]line Наличными: 455.00 [10:31:23]line Безнал.: 0.00 [10:31:23]line Место: АЗС № 5 "Партнер Нефть" [10:31:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:31:23]line СНО: Общий режим [10:31:23]line Чек 62 14.09.2024 10:31 [10:31:23]line Смена: 506 ФФД: 1.0 [10:31:23]line ЗНМ: 03000000022 [10:31:23]line РНМ: 0000000000091423 [10:31:23]line Версия ККМ: 001 [10:31:23]line ФМ: 0000000000874692 [10:31:23]line ФД: 92411 [10:31:23]line ФПД: 134464184417510 [10:31:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T103123&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92411&fm=134464184417510&tin=02508201610067®Number=0000000000091423&sum=45500 [10:31:23]line 0 [10:31:23]OFD Sender: Processing packet 92411 [packets to send 63, broken 62] [10:31:23]ProducePacketName [10:31:23]name=ofd_packets/00092411 [10:31:23]OFD Sender: To server: pG, [10:31:23]CommunicateWithHost lk.salyk.kg:30040 [10:31:23]ConnectInit lk.salyk.kg [10:31:23]written 0, free lines is 4095 [10:31:23]Connected sock=10 [10:31:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 94 02 00 00 F8 9C 8C 02 C7 3E 5A 03 01 00 03 00 80 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 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 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 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 31 38 33 36 06 04 2B 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 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 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 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FB 65 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 68 01 00 35 04 06 00 7A 4B 61 F2 7C E6 AA D0 D2 9A 05 16 4F 26 [10:31:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B6 C8 47 00 47 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FB 68 01 00 F4 03 04 00 77 0E E5 66 B6 04 01 00 00 64 F8 C5 BA D9 07 85 E6 [10:31:23]CommunicateWithHost err = 0 [10:31:23]CheckOFDResponse [10:31:23]1017 (14) - 77093643461234 [10:31:23]1041 (16) - 0000000000874692 [10:31:23]1040 (4) - 92411 [10:31:23]1012 (4) - 14.09.2024 04:17 [10:31:23]1206 (1) - 0 [10:31:23]OFD Sender: Remove packet 92411 [10:31:23]ProducePacketName [10:31:23]name=ofd_packets/00092411 [10:31:23]NVStorageDeleteData [10:31:23]Write to MH i2c: 01 00 00 11 13 24 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 07 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 07 00 11 13 00 00 00 00 00 18 0C 4F [10:31:23]RasterBufferAndPrint [10:31:23]line [10:31:23]line [10:31:23]line [10:31:23]line [10:31:23]line [10:31:23]written 0, free lines is 3104 [10:31:23]MH_Cut [10:31:23]Write to MH i2c: D1 01 00 18 13 01 FD [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: D1 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: D1 01 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: D1 01 00 18 13 00 FC [10:31:23]Write to MH i2c: 01 00 00 19 13 2C [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]OFD Sender: No OFD packet to send [10:31:24]*** Cut start [10:31:24]*** Purtial cut [10:31:24]*** Stage 1: CUTSNS_PIN = 1 [10:31:26]Read from MH i2c: 01 [10:31:26]MH_I2C_Read... [10:31:26]*** Stop cut motor [10:31:26]*** Cut end [10:31:26]Read from MH i2c: 01 07 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 07 00 19 13 00 00 00 00 00 FF 0F 41 [10:31:26]process_action close_receipt done [10:31:26]requested_data is exist [10:31:26]produce_requested_data [10:31:26]requested_item fm.sn is exist - process it [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 11 00 00 [10:31:26]Write to MH i2c: E2 08 00 1A 13 80 11 00 00 00 00 00 00 A7 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 17 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 17 00 1A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FE [10:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:31:26]wFMCommunicate OK [10:31:26]requested_item fd.num is exist - process it [10:31:26]SAM_PROTO_GetFieldsCounters [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 00 00 [10:31:26]Write to MH i2c: E2 08 00 1B 13 80 13 00 00 00 00 00 00 AA [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 62 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 62 00 1B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FB 68 01 00 0E 04 04 00 FA 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 E2 [10:31:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FB 68 01 00 0E 04 04 00 FA 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:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetFieldsCounters done [10:31:26]requested_item shift.num is exist - process it [10:31:26]requested_item shift.opened is exist - process it [10:31:26]req_shift_opened [10:31:26]FM_GetShiftState [10:31:26]SAM_PROTO_GetShiftState [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 01 00 [10:31:26]Write to MH i2c: E2 08 00 1C 13 80 13 01 00 00 00 00 00 AC [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 1C 13 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 46 [10:31:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetShiftState done [10:31:26]FM_GetShiftState done [10:31:26]req_shift_opened done [10:31:26]requested_item shift.open_date is exist - process it [10:31:26]req_shift_open_date [10:31:26]req_shift_open_date done [10:31:26]produce_requested_data done [10:31:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92411,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:31:26]process_action_free close_receipt [10:31:26]json_value_free [10:31:26]json_value_free done [10:31:26]process_json_proto returns [10:31:26]Send response to host [10:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92411,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:31:26]free response buf [10:31:26]execute_script done [10:31:26]execute_script returns [10:31:26]free content buf [10:31:26]Sock 9.Close socket [10:31:26]Sock 9.Thread stoped [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:20]accept exits with 8 [10:34:20]New connection [10:34:20]New thread 3066658148 created [10:34:20]Thread 3066801508 joined [10:34:20]Waiting for new connection... [10:34:20] Sock 8.Parse request [10:34:20]Sock 8.Check first char [10:34:20]Sock 8.First char is OK [10:34:20]request: POST /json_proto HTTP/1.0 [10:34:20]Method: POST [10:34:20]URL: /json_proto [10:34:20]Method is POST - this is cgi request [10:34:20]url: /json_proto [10:34:20]query_string will be loaded in cgi processing [10:34:20]execute_cgi json_proto POST (null) [10:34:20]execute_cgi path=json_proto method=POST [10:34:20]POST find Content-Length [10:34:20]Host: 172.17.57.71:8080 [10:34:20]Content-Length: 935 [10:34:20]Content-Type: application/json [10:34:20] [10:34:20]POST finish read [10:34:20]Found Content-Length = 935 [10:34:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127324", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:20]execute_script... [10:34: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)127324", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:20]POST & json_proto [10:34:20]process_json_proto [10:34:20]json parsed OK: [10:34:20]protocol is kg_v1.0 [10:34:20]action value=close_receipt [10:34:20]process_action close_receipt [10:34:20]cmd_close_receipt [10:34:20]MH_GetDate [10:34:20]Write to MH i2c: F0 00 00 1D 13 1F [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: F0 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: F0 09 00 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: F0 09 00 1D 13 00 AF 66 E5 66 33 3A A4 66 FF [10:34:20]GetLastDocTimeStamp 1726309883 [10:34:20]current date 1726310063 [10:34:20]FM_GetShiftState [10:34:20]SAM_PROTO_GetShiftState [10:34:20]wFMCommunicate request_size=4 [10:34:20]MH_SAM_APDU [10:34:20]CAPDU: 80 13 01 00 [10:34:20]Write to MH i2c: E2 08 00 1E 13 80 13 01 00 00 00 00 00 AE [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:20]Read from MH i2c: E2 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: E2 0E 00 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: E2 0E 00 1E 13 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 48 [10:34:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:34:20]wFMCommunicate OK [10:34:20]SAM_PROTO_GetShiftState done [10:34:20]FM_GetShiftState done [10:34:20]opened in 1726273389 [10:34:20]opened+sec_in_day 1726359789 [10:34:20]quantity*price = 7500 [10:34:20]sum+1 = 7501 [10:34:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036200014 Кофе Эспрессо (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 63 14.09.2024 10:34 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92412 ФПД: 14110111115843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T103423&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92412&fm=14110111115843&tin=02508201610067®Number=0000000000091423&sum=18000 0 [10:34:21]StoreToDocumentArchive [10:34:21]shift 506 fd 92412 [10:34:21]save to /storage/0506/doc_00092412 [10:34:21]save last doc name /storage/0506/doc_00092412 to /storage/kkm_last_doc_name [10:34:21]save OK [10:34:21]Clear old archive folders... [10:34:21]ProcessDocumentItem done err = 0, tmpTLVsize=399 [10:34:21]tlvbuf is 00F8DC60 [10:34:21]SAM_PROTO_ClearQueue [10:34:21]wFMCommunicate request_size=4 [10:34:21]MH_SAM_APDU [10:34:21]CAPDU: 80 09 00 00 [10:34:21]Write to MH i2c: E2 08 00 2B 13 80 09 00 00 00 00 00 00 B0 [10:34:21]Write i2c OK [10:34:21]MH_I2C_Read... [10:34:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:21]Read from MH i2c: E2 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 03 00 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 03 00 2B 13 00 90 00 B2 [10:34:21]RAPDU: 90 00 [10:34:21]wFMCommunicate OK [10:34:21]SAM_PROTO_ClearQueue done [10:34:21]KKMCreateOFDPacket [10:34:21]OFDProtocolAddRootSTLVToBuf [10:34:21]FM_MakeSignedData [10:34:21]FM_MakeSignedData [10:34:21]SAM_PROTO_SignData [10:34:21]wFMCommunicate request_size=4 [10:34:21]MH_SAM_APDU [10:34:21]CAPDU: 80 0D 01 02 [10:34:21]Write to MH i2c: E2 08 00 2C 13 80 0D 01 02 00 00 00 00 B8 [10:34:21]Write i2c OK [10:34:21]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 03 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 03 00 2C 13 00 90 00 B3 [10:34:22]RAPDU: 90 00 [10:34:22]wFMCommunicate OK [10:34:22]wFMCommunicate request_size=255 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 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 50 46 00 00 00 00 EB 03 [10:34:22]Write to MH i2c: E2 02 01 2D 13 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 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 50 46 00 00 00 00 EB 03 00 00 ED [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:22]Read from MH i2c: E2 03 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 03 00 2D 13 00 90 00 B4 [10:34:22]RAPDU: 90 00 [10:34:22]wFMCommunicate OK [10:34:22]wFMCommunicate request_size=158 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AF 66 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 68 01 00 35 04 06 00 0C D5 44 29 2A 43 [10:34:22]Write to MH i2c: E2 A1 00 2E 13 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AF 66 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 68 01 00 35 04 06 00 0C D5 44 29 2A 43 00 00 A7 [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 03 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 03 00 2E 13 00 90 00 B5 [10:34:22]RAPDU: 90 00 [10:34:22]wFMCommunicate OK [10:34:22]wFMCommunicate request_size=4 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 0D 03 02 [10:34:22]Write to MH i2c: E2 08 00 2F 13 80 0D 03 02 00 00 00 00 BD [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 0B 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 0B 00 2F 13 00 33 D4 1B 1A 27 E7 6F C6 90 00 3D [10:34:22]RAPDU: 33 D4 1B 1A 27 E7 6F C6 90 00 [10:34:22]wFMCommunicate OK [10:34:22]SAM_PROTO_SignData done [10:34:22]FM_MakeSignedData done [10:34:22]CreateOFDProtocolMessage [10:34:22]wFMCommunicate request_size=4 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 11 00 00 [10:34:22]Write to MH i2c: E2 08 00 30 13 80 11 00 00 00 00 00 00 BD [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 17 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 17 00 30 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 14 [10:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:34:22]wFMCommunicate OK [10:34:22]CreateOFDProtocolMessage done [10:34:22]OFDSenderStorePacket 92412 [10:34:22]StoreOFDPacket docnum=92412 [10:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A3 01 00 00 83 2C 9B 01 BB 6F 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AF 66 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 68 01 00 35 04 06 00 0C D5 44 29 2A 43 33 D4 1B 1A 27 E7 6F C6 [10:34:22]CheckFolder [10:34:22]dirname=/storage/ofd_packets [10:34:22]CheckFolder done [10:34:22]ProducePacketName [10:34:22]name=ofd_packets/00092412 [10:34:22]NVStorageSaveData ofd_packets/00092412 [10:34:22]File name is /storage/ofd_packets/00092412 [10:34:22]Write 449 bytes [10:34:22]NVStorageSaveData done [10:34:22]OFDSenderStorePacket done [10:34:22]KKMCreateOFDPacket done [10:34:22]NVStorageSaveData kkm_last_timestamp [10:34:22]File name is /storage/kkm_last_timestamp [10:34:22]Write 4 bytes [10:34:22]NVStorageSaveData done [10:34:22]ExternCall_PrintAddStr [10:34:22]wPrintStart [10:34:22]Write to MH i2c: 01 00 00 31 13 44 [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 07 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 07 00 31 13 00 00 00 00 00 FF 0F 59 [10:34:22]RasterBufferAndPrint [10:34:22]line Счет N : (3)127324 [10:34:22]line ИНН: 02508201610067 [10:34:22]line Контрольно-Кассовый Чек [10:34:22]line ПРОДАЖА [10:34:22]line Товар: 5449000189325 [10:34:22]line Холодный чай Fuse персик 0,5л [10:34:22]line 1.000 * 75.00 [10:34:22]line = 75.00 [10:34:22]line НДС 12% НСП 1% [10:34:22]line > о реализуемом товаре [10:34:22]line Товар: 2000036200014 [10:34:22]line Кофе Эспрессо (GABB TRADE) [10:34:22]line 1.000 * 105.00 [10:34:22]line = 105.00 [10:34:22]line НДС 12% НСП 1% [10:34:22]line > о реализуемом товаре [10:34:22]line ИТОГО: 180.00 [10:34:22]line НСП 1% : 1.59 [10:34:22]line НДС 12% : 19.11 [10:34:22]line Наличными: 180.00 [10:34:22]line Безнал.: 0.00 [10:34:22]line Место: АЗС № 5 "Партнер Нефть" [10:34:22]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:34:22]line СНО: Общий режим [10:34:22]line Чек 63 14.09.2024 10:34 [10:34:22]line Смена: 506 ФФД: 1.0 [10:34:22]line ЗНМ: 03000000022 [10:34:22]line РНМ: 0000000000091423 [10:34:22]line Версия ККМ: 001 [10:34:22]line ФМ: 0000000000874692 [10:34:22]line ФД: 92412 [10:34:22]line ФПД: 14110111115843 [10:34:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T103423&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92412&fm=14110111115843&tin=02508201610067®Number=0000000000091423&sum=18000 [10:34:22]line 0 [10:34:22]OFD Sender: Processing packet 92412 [packets to send 63, broken 62] [10:34:22]ProducePacketName [10:34:22]name=ofd_packets/00092412 [10:34:22]OFD Sender: To server: pG, [10:34:22]CommunicateWithHost lk.salyk.kg:30040 [10:34:22]ConnectInit lk.salyk.kg [10:34:22]written 0, free lines is 4095 [10:34:23]Connected sock=10 [10:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A3 01 00 00 83 2C 9B 01 BB 6F 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AF 66 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FC 68 01 00 35 04 06 00 0C D5 44 29 2A 43 33 D4 1B 1A 27 E7 6F C6 [10:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 47 B8 47 00 98 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 34 36 39 32 10 04 04 00 FC 68 01 00 F4 03 04 00 2B 0F E5 66 B6 04 01 00 00 96 F8 98 64 67 86 2F 67 [10:34:23]CommunicateWithHost err = 0 [10:34:23]CheckOFDResponse [10:34:23]1017 (14) - 77093643461234 [10:34:23]1041 (16) - 0000000000874692 [10:34:23]1040 (4) - 92412 [10:34:23]1012 (4) - 14.09.2024 04:20 [10:34:23]1206 (1) - 0 [10:34:23]OFD Sender: Remove packet 92412 [10:34:23]ProducePacketName [10:34:23]name=ofd_packets/00092412 [10:34:23]NVStorageDeleteData [10:34:23]Write to MH i2c: 01 00 00 60 13 73 [10:34:23]Write i2c OK [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: 01 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: 01 07 00 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: 01 07 00 60 13 00 00 00 00 00 C7 0C 4D [10:34:23]RasterBufferAndPrint [10:34:23]line [10:34:23]line [10:34:23]line [10:34:23]line [10:34:23]line [10:34:23]written 0, free lines is 3278 [10:34:23]MH_Cut [10:34:23]Write to MH i2c: D1 01 00 67 13 01 4C [10:34:23]Write i2c OK [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: D1 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: D1 01 00 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: D1 01 00 67 13 00 4B [10:34:23]Write to MH i2c: 01 00 00 68 13 7B [10:34:23]Write i2c OK [10:34:23]MH_I2C_Read... [10:34:23]OFD Sender: No OFD packet to send [10:34:24]*** Cut start [10:34:24]*** Purtial cut [10:34:24]*** Stage 1: CUTSNS_PIN = 1 [10:34:26]Read from MH i2c: 01 [10:34:26]MH_I2C_Read... [10:34:26]*** Stop cut motor [10:34:26]*** Cut end [10:34:26]Read from MH i2c: 01 07 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: 01 07 00 68 13 00 00 00 00 00 FF 0F 90 [10:34:26]process_action close_receipt done [10:34:26]requested_data is exist [10:34:26]produce_requested_data [10:34:26]requested_item fm.sn is exist - process it [10:34:26]wFMCommunicate request_size=4 [10:34:26]MH_SAM_APDU [10:34:26]CAPDU: 80 11 00 00 [10:34:26]Write to MH i2c: E2 08 00 69 13 80 11 00 00 00 00 00 00 F6 [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:26]Read from MH i2c: E2 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: E2 17 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: E2 17 00 69 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4D [10:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:34:26]wFMCommunicate OK [10:34:26]requested_item fd.num is exist - process it [10:34:26]SAM_PROTO_GetFieldsCounters [10:34:26]wFMCommunicate request_size=4 [10:34:26]MH_SAM_APDU [10:34:26]CAPDU: 80 13 00 00 [10:34:26]Write to MH i2c: E2 08 00 6A 13 80 13 00 00 00 00 00 00 F9 [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:26]Read from MH i2c: E2 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: E2 62 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: E2 62 00 6A 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FC 68 01 00 0E 04 04 00 FA 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 35 [10:34:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FC 68 01 00 0E 04 04 00 FA 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:34:26]wFMCommunicate OK [10:34:26]SAM_PROTO_GetFieldsCounters done [10:34:26]requested_item shift.num is exist - process it [10:34:26]requested_item shift.opened is exist - process it [10:34:26]req_shift_opened [10:34:26]FM_GetShiftState [10:34:26]SAM_PROTO_GetShiftState [10:34:26]wFMCommunicate request_size=4 [10:34:26]MH_SAM_APDU [10:34:26]CAPDU: 80 13 01 00 [10:34:26]Write to MH i2c: E2 08 00 6B 13 80 13 01 00 00 00 00 00 FB [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:26]Read from MH i2c: E2 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: E2 0E 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: E2 0E 00 6B 13 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 95 [10:34:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:34:26]wFMCommunicate OK [10:34:26]SAM_PROTO_GetShiftState done [10:34:26]FM_GetShiftState done [10:34:26]req_shift_opened done [10:34:26]requested_item shift.open_date is exist - process it [10:34:26]req_shift_open_date [10:34:26]req_shift_open_date done [10:34:26]produce_requested_data done [10:34:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92412,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:34:26]process_action_free close_receipt [10:34:26]json_value_free [10:34:26]json_value_free done [10:34:26]process_json_proto returns [10:34:26]Send response to host [10:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92412,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:34:26]free response buf [10:34:26]execute_script done [10:34:26]execute_script returns [10:34:26]free content buf [10:34:26]Sock 8.Close socket [10:34:26]Sock 8.Thread stoped [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]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:01]accept exits with 9 [10:43:01]New connection [10:43:01]New thread 3066801508 created [10:43:01]Thread 3066658148 joined [10:43:01]Waiting for new connection... [10:43:01] Sock 9.Parse request [10:43:01]Sock 9.Check first char [10:43:01]Sock 9.First char is OK [10:43:01]request: POST /json_proto HTTP/1.0 [10:43:01]Method: POST [10:43:01]URL: /json_proto [10:43:01]Method is POST - this is cgi request [10:43:01]url: /json_proto [10:43:01]query_string will be loaded in cgi processing [10:43:01]execute_cgi json_proto POST (null) [10:43:01]execute_cgi path=json_proto method=POST [10:43:01]POST find Content-Length [10:43:01]Host: 172.17.57.71:8080 [10:43:01]Content-Length: 667 [10:43:01]Content-Type: application/json [10:43:01] [10:43:01]POST finish read [10:43:01]Found Content-Length = 667 [10:43:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127325", "tax_sys" : 0, "items" : [ { "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 2.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:01]execute_script... [10:43: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)127325", "tax_sys" : 0, "items" : [ { "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 2.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:01]POST & json_proto [10:43:01]process_json_proto [10:43:01]json parsed OK: [10:43:01]protocol is kg_v1.0 [10:43:01]action value=close_receipt [10:43:01]process_action close_receipt [10:43:01]cmd_close_receipt [10:43:01]MH_GetDate [10:43:01]Write to MH i2c: F0 00 00 6C 13 6E [10:43:01]Write i2c OK [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: F0 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: F0 09 00 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: F0 09 00 6C 13 00 B8 68 E5 66 33 3A A4 66 59 [10:43:01]GetLastDocTimeStamp 1726310063 [10:43:01]current date 1726310584 [10:43:01]FM_GetShiftState [10:43:01]SAM_PROTO_GetShiftState [10:43:01]wFMCommunicate request_size=4 [10:43:01]MH_SAM_APDU [10:43:01]CAPDU: 80 13 01 00 [10:43:01]Write to MH i2c: E2 08 00 6D 13 80 13 01 00 00 00 00 00 FD [10:43:01]Write i2c OK [10:43:01]MH_I2C_Read... [10:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:01]Read from MH i2c: E2 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 0E 00 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 0E 00 6D 13 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 97 [10:43:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:43:01]wFMCommunicate OK [10:43:01]SAM_PROTO_GetShiftState done [10:43:01]FM_GetShiftState done [10:43:01]opened in 1726273389 [10:43:01]opened+sec_in_day 1726359789 [10:43:01]quantity*price = 40000 [10:43:01]sum+1 = 40001 [10:43:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 64 14.09.2024 10:43 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92413 ФПД: 145073987702408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T104304&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92413&fm=145073987702408&tin=02508201610067®Number=0000000000091423&sum=40000 0 [10:43:02]StoreToDocumentArchive [10:43:02]shift 506 fd 92413 [10:43:02]save to /storage/0506/doc_00092413 [10:43:02]save last doc name /storage/0506/doc_00092413 to /storage/kkm_last_doc_name [10:43:02]save OK [10:43:02]Clear old archive folders... [10:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=283 [10:43:02]tlvbuf is 00FDB960 [10:43:02]SAM_PROTO_ClearQueue [10:43:02]wFMCommunicate request_size=4 [10:43:02]MH_SAM_APDU [10:43:02]CAPDU: 80 09 00 00 [10:43:02]Write to MH i2c: E2 08 00 7A 13 80 09 00 00 00 00 00 00 FF [10:43:02]Write i2c OK [10:43:02]MH_I2C_Read... [10:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:02]Read from MH i2c: E2 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: E2 03 00 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: E2 03 00 7A 13 00 90 00 01 [10:43:02]RAPDU: 90 00 [10:43:02]wFMCommunicate OK [10:43:02]SAM_PROTO_ClearQueue done [10:43:02]KKMCreateOFDPacket [10:43:02]OFDProtocolAddRootSTLVToBuf [10:43:02]FM_MakeSignedData [10:43:02]FM_MakeSignedData [10:43:02]SAM_PROTO_SignData [10:43:02]wFMCommunicate request_size=4 [10:43:02]MH_SAM_APDU [10:43:02]CAPDU: 80 0D 01 02 [10:43:02]Write to MH i2c: E2 08 00 7B 13 80 0D 01 02 00 00 00 00 07 [10:43:02]Write i2c OK [10:43:02]MH_I2C_Read... [10:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:02]Read from MH i2c: E2 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: E2 03 00 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [10:43:02]RAPDU: 90 00 [10:43:02]wFMCommunicate OK [10:43:02]wFMCommunicate request_size=255 [10:43:02]MH_SAM_APDU [10:43:02]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B8 68 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 [10:43:02]Write to MH i2c: E2 02 01 7C 13 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B8 68 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 00 00 4B [10:43:02]Write i2c OK [10:43:02]MH_I2C_Read... [10:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:03]Read from MH i2c: E2 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 03 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [10:43:03]RAPDU: 90 00 [10:43:03]wFMCommunicate OK [10:43:03]wFMCommunicate request_size=42 [10:43:03]MH_SAM_APDU [10:43:03]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 68 01 00 35 04 06 00 83 F1 AB 80 CE 88 [10:43:03]Write to MH i2c: E2 2D 00 7D 13 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 68 01 00 35 04 06 00 83 F1 AB 80 CE 88 00 00 3E [10:43:03]Write i2c OK [10:43:03]MH_I2C_Read... [10:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:03]Read from MH i2c: E2 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 03 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 03 00 7D 13 00 90 00 04 [10:43:03]RAPDU: 90 00 [10:43:03]wFMCommunicate OK [10:43:03]wFMCommunicate request_size=4 [10:43:03]MH_SAM_APDU [10:43:03]CAPDU: 80 0D 03 02 [10:43:03]Write to MH i2c: E2 08 00 7E 13 80 0D 03 02 00 00 00 00 0C [10:43:03]Write i2c OK [10:43:03]MH_I2C_Read... [10:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:03]Read from MH i2c: E2 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 0B 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 0B 00 7E 13 00 6F 62 FD 28 D6 FF ED E6 90 00 AB [10:43:03]RAPDU: 6F 62 FD 28 D6 FF ED E6 90 00 [10:43:03]wFMCommunicate OK [10:43:03]SAM_PROTO_SignData done [10:43:03]FM_MakeSignedData done [10:43:03]CreateOFDProtocolMessage [10:43:03]wFMCommunicate request_size=4 [10:43:03]MH_SAM_APDU [10:43:03]CAPDU: 80 11 00 00 [10:43:03]Write to MH i2c: E2 08 00 7F 13 80 11 00 00 00 00 00 00 0C [10:43:03]Write i2c OK [10:43:03]MH_I2C_Read... [10:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:03]Read from MH i2c: E2 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 17 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 17 00 7F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 63 [10:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:43:03]wFMCommunicate OK [10:43:03]CreateOFDProtocolMessage done [10:43:03]OFDSenderStorePacket 92413 [10:43:03]StoreOFDPacket docnum=92413 [10:43:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2F 01 00 00 3D C0 27 01 0B 2C 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B8 68 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 68 01 00 35 04 06 00 83 F1 AB 80 CE 88 6F 62 FD 28 D6 FF ED E6 [10:43:03]CheckFolder [10:43:03]dirname=/storage/ofd_packets [10:43:03]CheckFolder done [10:43:03]ProducePacketName [10:43:03]name=ofd_packets/00092413 [10:43:03]NVStorageSaveData ofd_packets/00092413 [10:43:03]File name is /storage/ofd_packets/00092413 [10:43:03]Write 333 bytes [10:43:03]NVStorageSaveData done [10:43:03]OFDSenderStorePacket done [10:43:03]KKMCreateOFDPacket done [10:43:03]NVStorageSaveData kkm_last_timestamp [10:43:03]File name is /storage/kkm_last_timestamp [10:43:03]Write 4 bytes [10:43:03]NVStorageSaveData done [10:43:03]ExternCall_PrintAddStr [10:43:03]wPrintStart [10:43:03]Write to MH i2c: 01 00 00 80 13 93 [10:43:03]Write i2c OK [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: 01 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: 01 07 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: 01 07 00 80 13 00 00 00 00 00 FF 0F A8 [10:43:03]RasterBufferAndPrint [10:43:03]line Счет N : (3)127325 [10:43:03]line ИНН: 02508201610067 [10:43:03]line Контрольно-Кассовый Чек [10:43:03]line ПРОДАЖА [10:43:03]line Товар: 4700002082504 [10:43:03]line Водка Белое золото 0,24л [10:43:03]line 2.000 * 200.00 [10:43:03]line = 400.00 [10:43:03]line НДС 12% НСП 1% [10:43:03]line > о реализуемом товаре [10:43:03]line ИТОГО: 400.00 [10:43:03]line НСП 1% : 3.54 [10:43:03]line НДС 12% : 42.48 [10:43:03]line Наличными: 400.00 [10:43:03]line Безнал.: 0.00 [10:43:03]line Место: АЗС № 5 "Партнер Нефть" [10:43:03]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:43:03]line СНО: Общий режим [10:43:03]line Чек 64 14.09.2024 10:43 [10:43:03]line Смена: 506 ФФД: 1.0 [10:43:03]line ЗНМ: 03000000022 [10:43:03]line РНМ: 0000000000091423 [10:43:03]line Версия ККМ: 001 [10:43:03]line ФМ: 0000000000874692 [10:43:03]line ФД: 92413 [10:43:03]line ФПД: 145073987702408 [10:43:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T104304&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92413&fm=145073987702408&tin=02508201610067®Number=0000000000091423&sum=40000 [10:43:03]OFD Sender: Processing packet 92413 [packets to send 63, broken 62] [10:43:03]ProducePacketName [10:43:03]name=ofd_packets/00092413 [10:43:03]OFD Sender: To server: pG, [10:43:03]CommunicateWithHost lk.salyk.kg:30040 [10:43:03]ConnectInit lk.salyk.kg [10:43:03]line 0 [10:43:03]written 0, free lines is 4095 [10:43:03]Connected sock=10 [10:43:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2F 01 00 00 3D C0 27 01 0B 2C 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B8 68 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 68 01 00 35 04 06 00 83 F1 AB 80 CE 88 6F 62 FD 28 D6 FF ED E6 [10:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AE F7 47 00 0E 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FD 68 01 00 F4 03 04 00 33 11 E5 66 B6 04 01 00 00 11 7B 44 81 D8 06 BA B8 [10:43:03]CommunicateWithHost err = 0 [10:43:03]CheckOFDResponse [10:43:03]1017 (14) - 77093643461234 [10:43:03]1041 (16) - 0000000000874692 [10:43:03]1040 (4) - 92413 [10:43:03]1012 (4) - 14.09.2024 04:29 [10:43:03]1206 (1) - 0 [10:43:03]OFD Sender: Remove packet 92413 [10:43:03]ProducePacketName [10:43:03]name=ofd_packets/00092413 [10:43:03]NVStorageDeleteData [10:43:04]Write to MH i2c: 01 00 00 A8 13 BB [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: 01 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: 01 07 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: 01 07 00 A8 13 00 00 00 00 00 25 0D F4 [10:43:04]RasterBufferAndPrint [10:43:04]line [10:43:04]line [10:43:04]line [10:43:04]line [10:43:04]line [10:43:04]written 0, free lines is 3371 [10:43:04]MH_Cut [10:43:04]Write to MH i2c: D1 01 00 AF 13 01 94 [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: D1 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: D1 01 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: D1 01 00 AF 13 00 93 [10:43:04]Write to MH i2c: 01 00 00 B0 13 C3 [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]OFD Sender: No OFD packet to send [10:43:04]*** Cut start [10:43:04]*** Purtial cut [10:43:04]*** Stage 1: CUTSNS_PIN = 1 [10:43:06]Read from MH i2c: 01 [10:43:06]MH_I2C_Read... [10:43:06]*** Stop cut motor [10:43:06]Read from MH i2c: 01 07 00 [10:43:06]MH_I2C_Read... [10:43:06]*** Cut end [10:43:06]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 FF 0F D8 [10:43:06]process_action close_receipt done [10:43:06]requested_data is exist [10:43:06]produce_requested_data [10:43:06]requested_item fm.sn is exist - process it [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 11 00 00 [10:43:06]Write to MH i2c: E2 08 00 B1 13 80 11 00 00 00 00 00 00 3E [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 17 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 17 00 B1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 95 [10:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:43:06]wFMCommunicate OK [10:43:06]requested_item fd.num is exist - process it [10:43:06]SAM_PROTO_GetFieldsCounters [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 13 00 00 [10:43:06]Write to MH i2c: E2 08 00 B2 13 80 13 00 00 00 00 00 00 41 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 62 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 62 00 B2 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FD 68 01 00 0E 04 04 00 FA 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 81 [10:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FD 68 01 00 0E 04 04 00 FA 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:43:06]wFMCommunicate OK [10:43:06]SAM_PROTO_GetFieldsCounters done [10:43:06]requested_item shift.num is exist - process it [10:43:06]requested_item shift.opened is exist - process it [10:43:06]req_shift_opened [10:43:06]FM_GetShiftState [10:43:06]SAM_PROTO_GetShiftState [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 13 01 00 [10:43:06]Write to MH i2c: E2 08 00 B3 13 80 13 01 00 00 00 00 00 43 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 0E 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 0E 00 B3 13 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DD [10:43:06]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:43:06]wFMCommunicate OK [10:43:06]SAM_PROTO_GetShiftState done [10:43:06]FM_GetShiftState done [10:43:06]req_shift_opened done [10:43:06]requested_item shift.open_date is exist - process it [10:43:06]req_shift_open_date [10:43:06]req_shift_open_date done [10:43:06]produce_requested_data done [10:43:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92413,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:43:06]process_action_free close_receipt [10:43:06]json_value_free [10:43:06]json_value_free done [10:43:06]process_json_proto returns [10:43:06]Send response to host [10:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92413,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:43:06]free response buf [10:43:06]execute_script done [10:43:06]execute_script returns [10:43:06]free content buf [10:43:06]Sock 9.Close socket [10:43:06]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:25]accept exits with 8 [10:59:25]New connection [10:59:25]New thread 3066658148 created [10:59:25]Thread 3066801508 joined [10:59:25]Waiting for new connection... [10:59:25] Sock 8.Parse request [10:59:25]Sock 8.Check first char [10:59:25]Sock 8.First char is OK [10:59:25]request: POST /json_proto HTTP/1.0 [10:59:25]Method: POST [10:59:25]URL: /json_proto [10:59:25]Method is POST - this is cgi request [10:59:25]url: /json_proto [10:59:25]query_string will be loaded in cgi processing [10:59:25]execute_cgi json_proto POST (null) [10:59:25]execute_cgi path=json_proto method=POST [10:59:25]POST find Content-Length [10:59:25]Host: 172.17.57.71:8080 [10:59:25]Content-Length: 819 [10:59:25]Content-Type: application/json [10:59:25] [10:59:25]POST finish read [10:59:25]Found Content-Length = 819 [10:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647408", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:25]execute_script... [10:59:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647408", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:25]POST & json_proto [10:59:25]process_json_proto [10:59:25]json parsed OK: [10:59:25]protocol is kg_v1.0 [10:59:25]action value=close_receipt [10:59:25]process_action close_receipt [10:59:25]cmd_close_receipt [10:59:25]MH_GetDate [10:59:25]Write to MH i2c: F0 00 00 B4 13 B6 [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 09 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 09 00 B4 13 00 90 6C E5 66 33 3A A4 66 7D [10:59:25]GetLastDocTimeStamp 1726310584 [10:59:25]current date 1726311568 [10:59:25]FM_GetShiftState [10:59:25]SAM_PROTO_GetShiftState [10:59:25]wFMCommunicate request_size=4 [10:59:25]MH_SAM_APDU [10:59:25]CAPDU: 80 13 01 00 [10:59:25]Write to MH i2c: E2 08 00 B5 13 80 13 01 00 00 00 00 00 45 [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:25]Read from MH i2c: E2 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0E 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0E 00 B5 13 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DF [10:59:25]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:59:25]wFMCommunicate OK [10:59:25]SAM_PROTO_GetShiftState done [10:59:25]FM_GetShiftState done [10:59:25]opened in 1726273389 [10:59:25]opened+sec_in_day 1726359789 [10:59:25]quantity*price = 100015 [10:59:25]sum+1 = 100017 [10:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 65 14.09.2024 10:59 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92414 ФПД: 211376016929337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T105928&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92414&fm=211376016929337&tin=02508201610067®Number=0000000000091423&sum=100016 [10:59:27]StoreToDocumentArchive [10:59:27]shift 506 fd 92414 [10:59:27]save to /storage/0506/doc_00092414 [10:59:27]save last doc name /storage/0506/doc_00092414 to /storage/kkm_last_doc_name [10:59:27]save OK [10:59:27]Clear old archive folders... [10:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:27]tlvbuf is 00FB5DC0 [10:59:27]SAM_PROTO_ClearQueue [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 09 00 00 [10:59:27]Write to MH i2c: E2 08 00 C2 13 80 09 00 00 00 00 00 00 47 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [10:59:27]RAPDU: 90 00 [10:59:27]wFMCommunicate OK [10:59:27]SAM_PROTO_ClearQueue done [10:59:27]KKMCreateOFDPacket [10:59:27]OFDProtocolAddRootSTLVToBuf [10:59:27]FM_MakeSignedData [10:59:27]FM_MakeSignedData [10:59:27]SAM_PROTO_SignData [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 0D 01 02 [10:59:27]Write to MH i2c: E2 08 00 C3 13 80 0D 01 02 00 00 00 00 4F [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [10:59:27]RAPDU: 90 00 [10:59:27]wFMCommunicate OK [10:59:27]wFMCommunicate request_size=255 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 90 6C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 68 01 00 35 04 06 00 C0 [10:59:27]Write to MH i2c: E2 02 01 C4 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 90 6C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 68 01 00 35 04 06 00 C0 00 00 A0 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 C4 13 00 90 00 4B [10:59:27]RAPDU: 90 00 [10:59:27]wFMCommunicate OK [10:59:27]wFMCommunicate request_size=10 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 0D 02 02 05 3E D0 67 32 39 [10:59:27]Write to MH i2c: E2 0D 00 C5 13 80 0D 02 02 05 00 3E D0 67 32 39 00 00 3C [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 C5 13 00 90 00 4C [10:59:27]RAPDU: 90 00 [10:59:27]wFMCommunicate OK [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 0D 03 02 [10:59:27]Write to MH i2c: E2 08 00 C6 13 80 0D 03 02 00 00 00 00 54 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 0B 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 0B 00 C6 13 00 13 3B CB AE 0B 87 F5 19 90 00 BC [10:59:27]RAPDU: 13 3B CB AE 0B 87 F5 19 90 00 [10:59:27]wFMCommunicate OK [10:59:27]SAM_PROTO_SignData done [10:59:27]FM_MakeSignedData done [10:59:27]CreateOFDProtocolMessage [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 11 00 00 [10:59:27]Write to MH i2c: E2 08 00 C7 13 80 11 00 00 00 00 00 00 54 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 17 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 17 00 C7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AB [10:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:59:27]wFMCommunicate OK [10:59:27]CreateOFDProtocolMessage done [10:59:27]OFDSenderStorePacket 92414 [10:59:27]StoreOFDPacket docnum=92414 [10:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 BF C7 07 01 94 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 90 6C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 68 01 00 35 04 06 00 C0 3E D0 67 32 39 13 3B CB AE 0B 87 F5 19 [10:59:27]CheckFolder [10:59:27]dirname=/storage/ofd_packets [10:59:27]CheckFolder done [10:59:27]ProducePacketName [10:59:27]name=ofd_packets/00092414 [10:59:27]NVStorageSaveData ofd_packets/00092414 [10:59:27]File name is /storage/ofd_packets/00092414 [10:59:27]Write 301 bytes [10:59:27]NVStorageSaveData done [10:59:27]OFDSenderStorePacket done [10:59:27]KKMCreateOFDPacket done [10:59:27]NVStorageSaveData kkm_last_timestamp [10:59:27]File name is /storage/kkm_last_timestamp [10:59:27]Write 4 bytes [10:59:27]NVStorageSaveData done [10:59:27]ExternCall_PrintAddStr [10:59:27]wPrintStart [10:59:27]Write to MH i2c: 01 00 00 C8 13 DB [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 C8 13 00 00 00 00 00 FF 0F F0 [10:59:27]RasterBufferAndPrint [10:59:27]line Счет N : (1)647408 [10:59:27]line ИНН: 02508201610067 [10:59:27]line Контрольно-Кассовый Чек [10:59:27]line ПРОДАЖА [10:59:27]line ТРК (МРК, ГНК) : 33 [10:59:27]line Товар: 2710124130 [10:59:27]line Аи-92-К-5 [10:59:27]line 14.950 * 66.90 [10:59:27]line = 1000.16 [10:59:27]line НДС 12% НСП 1% [10:59:27]line > о реализуемом товаре [10:59:27]line ИТОГО: 1000.16 [10:59:27]line НСП 1% : 8.85 [10:59:27]line НДС 12% : 106.21 [10:59:27]line Наличными: 0.00 [10:59:27]line Безнал.: 1000.16 [10:59:27]line Место: АЗС № 5 "Партнер Нефть" [10:59:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [10:59:27]line СНО: Общий режим [10:59:27]line Чек 65 14.09.2024 10:59 [10:59:27]line Смена: 506 ФФД: 1.0 [10:59:27]line ЗНМ: 03000000022 [10:59:27]line РНМ: 0000000000091423 [10:59:27]line Версия ККМ: 001 [10:59:27]line Платежная система: Бакай Банк [10:59:27]line ФМ: 0000000000874692 [10:59:27]line ФД: 92414 [10:59:27]line ФПД: 211376016929337 [10:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T105928&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92414&fm=211376016929337&tin=02508201610067®Number=0000000000091423&sum=100016 [10:59:27]written 0, free lines is 4095 [10:59:27]OFD Sender: Processing packet 92414 [packets to send 63, broken 62] [10:59:27]ProducePacketName [10:59:27]name=ofd_packets/00092414 [10:59:27]OFD Sender: To server: pG, [10:59:27]CommunicateWithHost lk.salyk.kg:30040 [10:59:27]ConnectInit lk.salyk.kg [10:59:27]Connected sock=10 [10:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 BF C7 07 01 94 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 90 6C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 68 01 00 35 04 06 00 C0 3E D0 67 32 39 13 3B CB AE 0B 87 F5 19 [10:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8C 6B 47 00 1A A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FE 68 01 00 F4 03 04 00 0C 15 E5 66 B6 04 01 00 00 D4 37 5D 2C C7 99 38 3C [10:59:28]CommunicateWithHost err = 0 [10:59:28]CheckOFDResponse [10:59:28]1017 (14) - 77093643461234 [10:59:28]1041 (16) - 0000000000874692 [10:59:28]1040 (4) - 92414 [10:59:28]1012 (4) - 14.09.2024 04:46 [10:59:28]1206 (1) - 0 [10:59:28]OFD Sender: Remove packet 92414 [10:59:28]ProducePacketName [10:59:28]name=ofd_packets/00092414 [10:59:28]NVStorageDeleteData [10:59:28]Write to MH i2c: 01 00 00 F2 13 05 [10:59:28]Write i2c OK [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: 01 [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: 01 07 00 [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: 01 07 00 F2 13 00 00 00 00 00 05 0D 1E [10:59:28]RasterBufferAndPrint [10:59:28]line [10:59:28]line [10:59:28]line [10:59:28]line [10:59:28]line [10:59:28]written 0, free lines is 3340 [10:59:28]MH_Cut [10:59:28]Write to MH i2c: D1 01 00 F9 13 01 DE [10:59:28]Write i2c OK [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: D1 [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: D1 01 00 [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: D1 01 00 F9 13 00 DD [10:59:28]Write to MH i2c: 01 00 00 FA 13 0D [10:59:28]Write i2c OK [10:59:28]MH_I2C_Read... [10:59:28]OFD Sender: No OFD packet to send [10:59:29]*** Cut start [10:59:29]*** Purtial cut [10:59:29]*** Stage 1: CUTSNS_PIN = 1 [10:59:31]Read from MH i2c: 01 [10:59:31]MH_I2C_Read... [10:59:31]*** Stop cut motor [10:59:31]*** Cut end [10:59:31]Read from MH i2c: 01 07 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 07 00 FA 13 00 00 00 00 00 FF 0F 22 [10:59:31]process_action close_receipt done [10:59:31]requested_data is exist [10:59:31]produce_requested_data [10:59:31]requested_item fm.sn is exist - process it [10:59:31]wFMCommunicate request_size=4 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 11 00 00 [10:59:31]Write to MH i2c: E2 08 00 FB 13 80 11 00 00 00 00 00 00 88 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 17 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 17 00 FB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DF [10:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [10:59:31]wFMCommunicate OK [10:59:31]requested_item fd.num is exist - process it [10:59:31]SAM_PROTO_GetFieldsCounters [10:59:31]wFMCommunicate request_size=4 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 13 00 00 [10:59:31]Write to MH i2c: E2 08 00 FC 13 80 13 00 00 00 00 00 00 8B [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 62 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 62 00 FC 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FE 68 01 00 0E 04 04 00 FA 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 CF [10:59:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FE 68 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:31]wFMCommunicate OK [10:59:31]SAM_PROTO_GetFieldsCounters done [10:59:31]requested_item shift.num is exist - process it [10:59:31]requested_item shift.opened is exist - process it [10:59:31]req_shift_opened [10:59:31]FM_GetShiftState [10:59:31]SAM_PROTO_GetShiftState [10:59:31]wFMCommunicate request_size=4 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 13 01 00 [10:59:31]Write to MH i2c: E2 08 00 FD 13 80 13 01 00 00 00 00 00 8D [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 0E 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 0E 00 FD 13 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 27 [10:59:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [10:59:31]wFMCommunicate OK [10:59:31]SAM_PROTO_GetShiftState done [10:59:31]FM_GetShiftState done [10:59:31]req_shift_opened done [10:59:31]requested_item shift.open_date is exist - process it [10:59:31]req_shift_open_date [10:59:31]req_shift_open_date done [10:59:31]produce_requested_data done [10:59:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92414,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [10:59:31]process_action_free close_receipt [10:59:31]json_value_free [10:59:31]json_value_free done [10:59:31]process_json_proto returns [10:59:31]Send response to host [10:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92414,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [10:59:31]free response buf [10:59:31]execute_script done [10:59:31]execute_script returns [10:59:31]free content buf [10:59:31]Sock 8.Close socket [10:59:31]Sock 8.Thread stoped [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:25]accept exits with 9 [11:05:25]New connection [11:05:25]New thread 3066801508 created [11:05:25]Thread 3066658148 joined [11:05:25]Waiting for new connection... [11:05:25] Sock 9.Parse request [11:05:25]Sock 9.Check first char [11:05:25]Sock 9.First char is OK [11:05:25]request: POST /json_proto HTTP/1.0 [11:05:25]Method: POST [11:05:25]URL: /json_proto [11:05:25]Method is POST - this is cgi request [11:05:25]url: /json_proto [11:05:25]query_string will be loaded in cgi processing [11:05:25]execute_cgi json_proto POST (null) [11:05:25]execute_cgi path=json_proto method=POST [11:05:25]POST find Content-Length [11:05:25]Host: 172.17.57.71:8080 [11:05:25]Content-Length: 826 [11:05:25]Content-Type: application/json [11:05:25] [11:05:25]POST finish read [11:05:25]Found Content-Length = 826 [11:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127326", "tax_sys" : 0, "items" : [ { "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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:05:25]execute_script... [11: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)127326", "tax_sys" : 0, "items" : [ { "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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:05:25]POST & json_proto [11:05:25]process_json_proto [11:05:25]json parsed OK: [11:05:25]protocol is kg_v1.0 [11:05:25]action value=close_receipt [11:05:25]process_action close_receipt [11:05:25]cmd_close_receipt [11:05:25]MH_GetDate [11:05:25]Write to MH i2c: F0 00 00 FE 13 00 [11:05:25]Write i2c OK [11:05:25]MH_I2C_Read... [11:05:25]Read from MH i2c: F0 [11:05:25]MH_I2C_Read... [11:05:25]Read from MH i2c: F0 09 00 [11:05:25]MH_I2C_Read... [11:05:25]Read from MH i2c: F0 09 00 FE 13 00 F8 6D E5 66 33 3A A4 66 30 [11:05:25]GetLastDocTimeStamp 1726311568 [11:05:25]current date 1726311928 [11:05:25]FM_GetShiftState [11:05:25]SAM_PROTO_GetShiftState [11:05:25]wFMCommunicate request_size=4 [11:05:25]MH_SAM_APDU [11:05:25]CAPDU: 80 13 01 00 [11:05:25]Write to MH i2c: E2 08 00 FF 13 80 13 01 00 00 00 00 00 8F [11:05:25]Write i2c OK [11:05:25]MH_I2C_Read... [11:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:25]Read from MH i2c: E2 [11:05:25]MH_I2C_Read... [11:05:25]Read from MH i2c: E2 0E 00 [11:05:25]MH_I2C_Read... [11:05:25]Read from MH i2c: E2 0E 00 FF 13 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 29 [11:05:25]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:05:25]wFMCommunicate OK [11:05:25]SAM_PROTO_GetShiftState done [11:05:25]FM_GetShiftState done [11:05:25]opened in 1726273389 [11:05:25]opened+sec_in_day 1726359789 [11:05:25]quantity*price = 4000 [11:05:25]sum+1 = 4001 [11:05:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173617 Жев Orbit Eucalyptus 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 66 14.09.2024 11:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92415 ФПД: 436663930034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T110528&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92415&fm=436663930034&tin=02508201610067®Number=0000000000091423&sum=8500 0 [11:05:26]StoreToDocumentArchive [11:05:26]shift 506 fd 92415 [11:05:26]save to /storage/0506/doc_00092415 [11:05:26]save last doc name /storage/0506/doc_00092415 to /storage/kkm_last_doc_name [11:05:26]save OK [11:05:26]Clear old archive folders... [11:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=361 [11:05:26]tlvbuf is 00F9A080 [11:05:26]SAM_PROTO_ClearQueue [11:05:26]wFMCommunicate request_size=4 [11:05:26]MH_SAM_APDU [11:05:26]CAPDU: 80 09 00 00 [11:05:26]Write to MH i2c: E2 08 00 0C 14 80 09 00 00 00 00 00 00 92 [11:05:26]Write i2c OK [11:05:26]MH_I2C_Read... [11:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:26]Read from MH i2c: E2 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 03 00 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 03 00 0C 14 00 90 00 94 [11:05:26]RAPDU: 90 00 [11:05:26]wFMCommunicate OK [11:05:26]SAM_PROTO_ClearQueue done [11:05:26]KKMCreateOFDPacket [11:05:26]OFDProtocolAddRootSTLVToBuf [11:05:26]FM_MakeSignedData [11:05:26]FM_MakeSignedData [11:05:26]SAM_PROTO_SignData [11:05:26]wFMCommunicate request_size=4 [11:05:26]MH_SAM_APDU [11:05:26]CAPDU: 80 0D 01 02 [11:05:26]Write to MH i2c: E2 08 00 0D 14 80 0D 01 02 00 00 00 00 9A [11:05:26]Write i2c OK [11:05:26]MH_I2C_Read... [11:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:26]Read from MH i2c: E2 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 03 00 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [11:05:26]RAPDU: 90 00 [11:05:26]wFMCommunicate OK [11:05:26]wFMCommunicate request_size=255 [11:05:26]MH_SAM_APDU [11:05:26]CAPDU: 80 0D 02 02 FA 03 00 69 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 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 [11:05:26]Write to MH i2c: E2 02 01 0E 14 80 0D 02 02 FA 00 03 00 69 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 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 59 [11:05:26]Write i2c OK [11:05:26]MH_I2C_Read... [11:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:27]Read from MH i2c: E2 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: E2 03 00 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: E2 03 00 0E 14 00 90 00 96 [11:05:27]RAPDU: 90 00 [11:05:27]wFMCommunicate OK [11:05:27]wFMCommunicate request_size=120 [11:05:27]MH_SAM_APDU [11:05:27]CAPDU: 80 0D 02 02 73 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 42 00 00 00 F4 03 04 00 F8 6D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 68 01 00 35 04 06 00 00 65 AB 32 CC B2 [11:05:27]Write to MH i2c: E2 7B 00 0F 14 80 0D 02 02 73 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 42 00 00 00 F4 03 04 00 F8 6D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 68 01 00 35 04 06 00 00 65 AB 32 CC B2 00 00 25 [11:05:27]Write i2c OK [11:05:27]MH_I2C_Read... [11:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:27]Read from MH i2c: E2 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: E2 03 00 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: E2 03 00 0F 14 00 90 00 97 [11:05:27]RAPDU: 90 00 [11:05:27]wFMCommunicate OK [11:05:27]wFMCommunicate request_size=4 [11:05:27]MH_SAM_APDU [11:05:27]CAPDU: 80 0D 03 02 [11:05:27]Write to MH i2c: E2 08 00 10 14 80 0D 03 02 00 00 00 00 9F [11:05:27]Write i2c OK [11:05:27]MH_I2C_Read... [11:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:27]Read from MH i2c: E2 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: E2 0B 00 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: E2 0B 00 10 14 00 88 B4 A8 EA C6 14 9C 00 90 00 E4 [11:05:27]RAPDU: 88 B4 A8 EA C6 14 9C 00 90 00 [11:05:27]wFMCommunicate OK [11:05:27]SAM_PROTO_SignData done [11:05:27]FM_MakeSignedData done [11:05:27]CreateOFDProtocolMessage [11:05:27]wFMCommunicate request_size=4 [11:05:27]MH_SAM_APDU [11:05:27]CAPDU: 80 11 00 00 [11:05:27]Write to MH i2c: E2 08 00 11 14 80 11 00 00 00 00 00 00 9F [11:05:27]Write i2c OK [11:05:27]MH_I2C_Read... [11:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:27]Read from MH i2c: E2 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: E2 17 00 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: E2 17 00 11 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F6 [11:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:05:27]wFMCommunicate OK [11:05:27]CreateOFDProtocolMessage done [11:05:27]OFDSenderStorePacket 92415 [11:05:27]StoreOFDPacket docnum=92415 [11:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 7D 01 00 00 19 86 75 01 BE 41 5A 03 01 00 03 00 69 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 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 42 00 00 00 F4 03 04 00 F8 6D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 68 01 00 35 04 06 00 00 65 AB 32 CC B2 88 B4 A8 EA C6 14 9C 00 [11:05:27]CheckFolder [11:05:27]dirname=/storage/ofd_packets [11:05:27]CheckFolder done [11:05:27]ProducePacketName [11:05:27]name=ofd_packets/00092415 [11:05:27]NVStorageSaveData ofd_packets/00092415 [11:05:27]File name is /storage/ofd_packets/00092415 [11:05:27]Write 411 bytes [11:05:27]NVStorageSaveData done [11:05:27]OFDSenderStorePacket done [11:05:27]KKMCreateOFDPacket done [11:05:27]NVStorageSaveData kkm_last_timestamp [11:05:27]File name is /storage/kkm_last_timestamp [11:05:27]Write 4 bytes [11:05:27]NVStorageSaveData done [11:05:27]ExternCall_PrintAddStr [11:05:27]wPrintStart [11:05:27]Write to MH i2c: 01 00 00 12 14 26 [11:05:27]Write i2c OK [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: 01 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: 01 07 00 [11:05:27]MH_I2C_Read... [11:05:27]Read from MH i2c: 01 07 00 12 14 00 00 00 00 00 FF 0F 3B [11:05:27]RasterBufferAndPrint [11:05:27]line Счет N : (3)127326 [11:05:27]line ИНН: 02508201610067 [11:05:27]line Контрольно-Кассовый Чек [11:05:27]line ПРОДАЖА [11:05:27]line Товар: 46177872 [11:05:27]line Жев Orbit подушки Citrus [11:05:27]line 1.000 * 40.00 [11:05:27]line = 40.00 [11:05:27]line НДС 12% НСП 1% [11:05:27]line > о реализуемом товаре [11:05:27]line Товар: 50173617 [11:05:27]line Жев Orbit Eucalyptus [11:05:27]line 1.000 * 45.00 [11:05:27]line = 45.00 [11:05:27]line НДС 12% НСП 1% [11:05:27]line > о реализуемом товаре [11:05:27]line ИТОГО: 85.00 [11:05:27]line НСП 1% : 0.75 [11:05:27]line НДС 12% : 9.03 [11:05:27]line Наличными: 85.00 [11:05:27]line Безнал.: 0.00 [11:05:27]line Место: АЗС № 5 "Партнер Нефть" [11:05:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:05:27]line СНО: Общий режим [11:05:27]line Чек 66 14.09.2024 11:05 [11:05:27]line Смена: 506 ФФД: 1.0 [11:05:27]line ЗНМ: 03000000022 [11:05:27]line РНМ: 0000000000091423 [11:05:27]line Версия ККМ: 001 [11:05:27]line ФМ: 0000000000874692 [11:05:27]line ФД: 92415 [11:05:27]line ФПД: 436663930034 [11:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T110528&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92415&fm=436663930034&tin=02508201610067®Number=0000000000091423&sum=8500 [11:05:27]line 0 [11:05:27]OFD Sender: Processing packet 92415 [packets to send 63, broken 62] [11:05:27]ProducePacketName [11:05:27]name=ofd_packets/00092415 [11:05:27]OFD Sender: To server: pG, [11:05:27]CommunicateWithHost lk.salyk.kg:30040 [11:05:27]ConnectInit lk.salyk.kg [11:05:27]written 0, free lines is 4095 [11:05:27]Connected sock=10 [11: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 34 36 39 32 7D 01 00 00 19 86 75 01 BE 41 5A 03 01 00 03 00 69 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 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 42 00 00 00 F4 03 04 00 F8 6D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 68 01 00 35 04 06 00 00 65 AB 32 CC B2 88 B4 A8 EA C6 14 9C 00 [11:05:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 16 9E 47 00 9B 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 FF 68 01 00 F4 03 04 00 74 16 E5 66 B6 04 01 00 00 0C 0A 80 5E D1 64 FE 9C [11:05:28]CommunicateWithHost err = 0 [11:05:28]CheckOFDResponse [11:05:28]1017 (14) - 77093643461234 [11:05:28]1041 (16) - 0000000000874692 [11:05:28]1040 (4) - 92415 [11:05:28]1012 (4) - 14.09.2024 04:52 [11:05:28]1206 (1) - 0 [11:05:28]OFD Sender: Remove packet 92415 [11:05:28]ProducePacketName [11:05:28]name=ofd_packets/00092415 [11:05:28]NVStorageDeleteData [11:05:28]Write to MH i2c: 01 00 00 40 14 54 [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: 01 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: 01 07 00 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: 01 07 00 40 14 00 00 00 00 00 C0 0C 27 [11:05:28]RasterBufferAndPrint [11:05:28]line [11:05:28]line [11:05:28]line [11:05:28]line [11:05:28]line [11:05:28]written 0, free lines is 3271 [11:05:28]MH_Cut [11:05:28]Write to MH i2c: D1 01 00 47 14 01 2D [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: D1 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: D1 01 00 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: D1 01 00 47 14 00 2C [11:05:28]Write to MH i2c: 01 00 00 48 14 5C [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]OFD Sender: No OFD packet to send [11:05:28]*** Cut start [11:05:28]*** Purtial cut [11:05:28]*** Stage 1: CUTSNS_PIN = 1 [11:05:30]Read from MH i2c: 01 [11:05:30]MH_I2C_Read... [11:05:30]*** Stop cut motor [11:05:30]*** Cut end [11:05:30]Read from MH i2c: 01 07 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 48 14 00 00 00 00 00 FF 0F 71 [11:05:30]process_action close_receipt done [11:05:30]requested_data is exist [11:05:30]produce_requested_data [11:05:30]requested_item fm.sn is exist - process it [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 11 00 00 [11:05:30]Write to MH i2c: E2 08 00 49 14 80 11 00 00 00 00 00 00 D7 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 17 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 17 00 49 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [11:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:05:31]wFMCommunicate OK [11:05:31]requested_item fd.num is exist - process it [11:05:31]SAM_PROTO_GetFieldsCounters [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 13 00 00 [11:05:31]Write to MH i2c: E2 08 00 4A 14 80 13 00 00 00 00 00 00 DA [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 62 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 62 00 4A 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FF 68 01 00 0E 04 04 00 FA 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 22 [11:05:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 FF 68 01 00 0E 04 04 00 FA 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:05:31]wFMCommunicate OK [11:05:31]SAM_PROTO_GetFieldsCounters done [11:05:31]requested_item shift.num is exist - process it [11:05:31]requested_item shift.opened is exist - process it [11:05:31]req_shift_opened [11:05:31]FM_GetShiftState [11:05:31]SAM_PROTO_GetShiftState [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 13 01 00 [11:05:31]Write to MH i2c: E2 08 00 4B 14 80 13 01 00 00 00 00 00 DC [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:31]Read from MH i2c: E2 0E 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 0E 00 4B 14 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 76 [11:05:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:05:31]wFMCommunicate OK [11:05:31]SAM_PROTO_GetShiftState done [11:05:31]FM_GetShiftState done [11:05:31]req_shift_opened done [11:05:31]requested_item shift.open_date is exist - process it [11:05:31]req_shift_open_date [11:05:31]req_shift_open_date done [11:05:31]produce_requested_data done [11:05:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92415,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:05:31]process_action_free close_receipt [11:05:31]json_value_free [11:05:31]json_value_free done [11:05:31]process_json_proto returns [11:05:31]Send response to host [11:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92415,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:05:31]free response buf [11:05:31]execute_script done [11:05:31]execute_script returns [11:05:31]free content buf [11:05:31]Sock 9.Close socket [11:05:31]Sock 9.Thread stoped [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:37]accept exits with 8 [11:06:37]New connection [11:06:37]New thread 3066658148 created [11:06:37]Thread 3066801508 joined [11:06:37]Waiting for new connection... [11:06:37] Sock 8.Parse request [11:06:37]Sock 8.Check first char [11:06:37]Sock 8.First char is OK [11:06:37]request: POST /json_proto HTTP/1.0 [11:06:37]Method: POST [11:06:37]URL: /json_proto [11:06:37]Method is POST - this is cgi request [11:06:37]url: /json_proto [11:06:37]query_string will be loaded in cgi processing [11:06:37]execute_cgi json_proto POST (null) [11:06:37]execute_cgi path=json_proto method=POST [11:06:37]POST find Content-Length [11:06:37]Host: 172.17.57.71:8080 [11:06:37]Content-Length: 605 [11:06:37]Content-Type: application/json [11:06:37] [11:06:37]POST finish read [11:06:37]Found Content-Length = 605 [11:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127327", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:37]execute_script... [11:06: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)127327", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:37]POST & json_proto [11:06:37]process_json_proto [11:06:37]json parsed OK: [11:06:37]protocol is kg_v1.0 [11:06:37]action value=close_receipt [11:06:37]process_action close_receipt [11:06:37]cmd_close_receipt [11:06:37]MH_GetDate [11:06:37]Write to MH i2c: F0 00 00 4C 14 4F [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 09 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 09 00 4C 14 00 40 6E E5 66 33 3A A4 66 C8 [11:06:37]GetLastDocTimeStamp 1726311928 [11:06:37]current date 1726312000 [11:06:37]FM_GetShiftState [11:06:37]SAM_PROTO_GetShiftState [11:06:37]wFMCommunicate request_size=4 [11:06:37]MH_SAM_APDU [11:06:37]CAPDU: 80 13 01 00 [11:06:37]Write to MH i2c: E2 08 00 4D 14 80 13 01 00 00 00 00 00 DE [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:37]Read from MH i2c: E2 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 0E 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 0E 00 4D 14 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 78 [11:06:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:06:37]wFMCommunicate OK [11:06:37]SAM_PROTO_GetShiftState done [11:06:37]FM_GetShiftState done [11:06:37]opened in 1726273389 [11:06:37]opened+sec_in_day 1726359789 [11:06:37]quantity*price = 4500 [11:06:37]sum+1 = 4501 [11:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 67 14.09.2024 11:06 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92416 ФПД: 228102146733572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T110640&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92416&fm=228102146733572&tin=02508201610067®Number=0000000000091423&sum=4500 0 [11:06:38]StoreToDocumentArchive [11:06:38]shift 506 fd 92416 [11:06:38]save to /storage/0506/doc_00092416 [11:06:38]save last doc name /storage/0506/doc_00092416 to /storage/kkm_last_doc_name [11:06:38]save OK [11:06:38]Clear old archive folders... [11:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=268 [11:06:38]tlvbuf is 00F8E260 [11:06:38]SAM_PROTO_ClearQueue [11:06:38]wFMCommunicate request_size=4 [11:06:38]MH_SAM_APDU [11:06:38]CAPDU: 80 09 00 00 [11:06:38]Write to MH i2c: E2 08 00 5A 14 80 09 00 00 00 00 00 00 E0 [11:06:38]Write i2c OK [11:06:38]MH_I2C_Read... [11:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:38]Read from MH i2c: E2 [11:06:38]MH_I2C_Read... [11:06:38]Read from MH i2c: E2 03 00 [11:06:38]MH_I2C_Read... [11:06:38]Read from MH i2c: E2 03 00 5A 14 00 90 00 E2 [11:06:38]RAPDU: 90 00 [11:06:38]wFMCommunicate OK [11:06:38]SAM_PROTO_ClearQueue done [11:06:38]KKMCreateOFDPacket [11:06:38]OFDProtocolAddRootSTLVToBuf [11:06:38]FM_MakeSignedData [11:06:38]FM_MakeSignedData [11:06:38]SAM_PROTO_SignData [11:06:38]wFMCommunicate request_size=4 [11:06:38]MH_SAM_APDU [11:06:38]CAPDU: 80 0D 01 02 [11:06:38]Write to MH i2c: E2 08 00 5B 14 80 0D 01 02 00 00 00 00 E8 [11:06:38]Write i2c OK [11:06:38]MH_I2C_Read... [11:06:38]OFD Sender: No OFD packet to send [11:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:38]Read from MH i2c: E2 [11:06:38]MH_I2C_Read... [11:06:38]Read from MH i2c: E2 03 00 [11:06:38]MH_I2C_Read... [11:06:38]Read from MH i2c: E2 03 00 5B 14 00 90 00 E3 [11:06:38]RAPDU: 90 00 [11:06:38]wFMCommunicate OK [11:06:38]wFMCommunicate request_size=255 [11:06:38]MH_SAM_APDU [11:06:38]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 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 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 40 6E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [11:06:38]Write to MH i2c: E2 02 01 5C 14 80 0D 02 02 FA 00 03 00 0C 01 1E 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 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 40 6E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 EC [11:06:38]Write i2c OK [11:06:38]MH_I2C_Read... [11:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:38]Read from MH i2c: E2 [11:06:38]MH_I2C_Read... [11:06:38]Read from MH i2c: E2 03 00 [11:06:38]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 5C 14 00 90 00 E4 [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]wFMCommunicate request_size=27 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 02 02 16 34 36 39 32 10 04 04 00 00 69 01 00 35 04 06 00 CF 75 2B 6D B6 04 [11:06:39]Write to MH i2c: E2 1E 00 5D 14 80 0D 02 02 16 00 34 36 39 32 10 04 04 00 00 69 01 00 35 04 06 00 CF 75 2B 6D B6 04 00 00 43 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 5D 14 00 90 00 E5 [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 03 02 [11:06:39]Write to MH i2c: E2 08 00 5E 14 80 0D 03 02 00 00 00 00 ED [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 0B 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 0B 00 5E 14 00 C5 28 4E DC 1C 08 CF 46 90 00 3E [11:06:39]RAPDU: C5 28 4E DC 1C 08 CF 46 90 00 [11:06:39]wFMCommunicate OK [11:06:39]SAM_PROTO_SignData done [11:06:39]FM_MakeSignedData done [11:06:39]CreateOFDProtocolMessage [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 11 00 00 [11:06:39]Write to MH i2c: E2 08 00 5F 14 80 11 00 00 00 00 00 00 ED [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 17 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 17 00 5F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [11:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:06:39]wFMCommunicate OK [11:06:39]CreateOFDProtocolMessage done [11:06:39]OFDSenderStorePacket 92416 [11:06:39]StoreOFDPacket docnum=92416 [11:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 AB 59 18 01 65 E0 5A 03 01 00 03 00 0C 01 1E 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 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 40 6E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 69 01 00 35 04 06 00 CF 75 2B 6D B6 04 C5 28 4E DC 1C 08 CF 46 [11:06:39]CheckFolder [11:06:39]dirname=/storage/ofd_packets [11:06:39]CheckFolder done [11:06:39]ProducePacketName [11:06:39]name=ofd_packets/00092416 [11:06:39]NVStorageSaveData ofd_packets/00092416 [11:06:39]File name is /storage/ofd_packets/00092416 [11:06:39]Write 318 bytes [11:06:39]NVStorageSaveData done [11:06:39]OFDSenderStorePacket done [11:06:39]KKMCreateOFDPacket done [11:06:39]NVStorageSaveData kkm_last_timestamp [11:06:39]File name is /storage/kkm_last_timestamp [11:06:39]Write 4 bytes [11:06:39]NVStorageSaveData done [11:06:39]ExternCall_PrintAddStr [11:06:39]wPrintStart [11:06:39]Write to MH i2c: 01 00 00 60 14 74 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 07 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 07 00 60 14 00 00 00 00 00 FF 0F 89 [11:06:39]RasterBufferAndPrint [11:06:39]line Счет N : (3)127327 [11:06:39]line ИНН: 02508201610067 [11:06:39]line Контрольно-Кассовый Чек [11:06:39]line ПРОДАЖА [11:06:39]line Товар: 50173976 [11:06:39]line Жев Orbit Winterfresh под [11:06:39]line 1.000 * 45.00 [11:06:39]line = 45.00 [11:06:39]line НДС 12% НСП 1% [11:06:39]line > о реализуемом товаре [11:06:39]line ИТОГО: 45.00 [11:06:39]line НСП 1% : 0.40 [11:06:39]line НДС 12% : 4.78 [11:06:39]line Наличными: 45.00 [11:06:39]line Безнал.: 0.00 [11:06:39]line Место: АЗС № 5 "Партнер Нефть" [11:06:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:06:39]line СНО: Общий режим [11:06:39]line Чек 67 14.09.2024 11:06 [11:06:39]line Смена: 506 ФФД: 1.0 [11:06:39]line ЗНМ: 03000000022 [11:06:39]line РНМ: 0000000000091423 [11:06:39]line Версия ККМ: 001 [11:06:39]line ФМ: 0000000000874692 [11:06:39]line ФД: 92416 [11:06:39]line ФПД: 228102146733572 [11:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T110640&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92416&fm=228102146733572&tin=02508201610067®Number=0000000000091423&sum=4500 [11:06:39]line 0 [11:06:39]OFD Sender: Processing packet 92416 [packets to send 63, broken 62] [11:06:39]ProducePacketName [11:06:39]name=ofd_packets/00092416 [11:06:39]OFD Sender: To server: pG, [11:06:39]CommunicateWithHost lk.salyk.kg:30040 [11:06:39]ConnectInit lk.salyk.kg [11:06:39]written 0, free lines is 4095 [11:06:39]Connected sock=10 [11:06:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 20 01 00 00 AB 59 18 01 65 E0 5A 03 01 00 03 00 0C 01 1E 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 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 40 6E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 69 01 00 35 04 06 00 CF 75 2B 6D B6 04 C5 28 4E DC 1C 08 CF 46 [11:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BF C4 47 00 67 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 69 01 00 F4 03 04 00 BB 16 E5 66 B6 04 01 00 00 1B 64 ED 3B BC 12 E1 15 [11:06:39]CommunicateWithHost err = 0 [11:06:39]CheckOFDResponse [11:06:39]1017 (14) - 77093643461234 [11:06:39]1041 (16) - 0000000000874692 [11:06:39]1040 (4) - 92416 [11:06:39]1012 (4) - 14.09.2024 04:53 [11:06:39]1206 (1) - 0 [11:06:39]OFD Sender: Remove packet 92416 [11:06:39]ProducePacketName [11:06:39]name=ofd_packets/00092416 [11:06:39]NVStorageDeleteData [11:06:39]Write to MH i2c: 01 00 00 88 14 9C [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 07 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 07 00 88 14 00 00 00 00 00 19 0D C9 [11:06:39]RasterBufferAndPrint [11:06:39]line [11:06:39]line [11:06:39]line [11:06:39]line [11:06:39]line [11:06:39]written 0, free lines is 3361 [11:06:39]MH_Cut [11:06:39]Write to MH i2c: D1 01 00 8F 14 01 75 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: D1 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: D1 01 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: D1 01 00 8F 14 00 74 [11:06:39]Write to MH i2c: 01 00 00 90 14 A4 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:40]OFD Sender: No OFD packet to send [11:06:40]*** Cut start [11:06:40]*** Purtial cut [11:06:40]*** Stage 1: CUTSNS_PIN = 1 [11:06:42]Read from MH i2c: 01 [11:06:42]MH_I2C_Read... [11:06:42]*** Stop cut motor [11:06:42]*** Cut end [11:06:42]Read from MH i2c: 01 07 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: 01 07 00 90 14 00 00 00 00 00 FF 0F B9 [11:06:42]process_action close_receipt done [11:06:42]requested_data is exist [11:06:42]produce_requested_data [11:06:42]requested_item fm.sn is exist - process it [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 11 00 00 [11:06:42]Write to MH i2c: E2 08 00 91 14 80 11 00 00 00 00 00 00 1F [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 17 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 17 00 91 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 76 [11:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:06:42]wFMCommunicate OK [11:06:42]requested_item fd.num is exist - process it [11:06:42]SAM_PROTO_GetFieldsCounters [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 13 00 00 [11:06:42]Write to MH i2c: E2 08 00 92 14 80 13 00 00 00 00 00 00 22 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 62 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 62 00 92 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 00 69 01 00 0E 04 04 00 FA 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 6F [11:06:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 00 69 01 00 0E 04 04 00 FA 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:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_GetFieldsCounters done [11:06:42]requested_item shift.num is exist - process it [11:06:42]requested_item shift.opened is exist - process it [11:06:42]req_shift_opened [11:06:42]FM_GetShiftState [11:06:42]SAM_PROTO_GetShiftState [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 13 01 00 [11:06:42]Write to MH i2c: E2 08 00 93 14 80 13 01 00 00 00 00 00 24 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0E 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0E 00 93 14 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BE [11:06:42]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_GetShiftState done [11:06:42]FM_GetShiftState done [11:06:42]req_shift_opened done [11:06:42]requested_item shift.open_date is exist - process it [11:06:42]req_shift_open_date [11:06:42]req_shift_open_date done [11:06:42]produce_requested_data done [11:06:42]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92416,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:06:42]process_action_free close_receipt [11:06:42]json_value_free [11:06:42]json_value_free done [11:06:42]process_json_proto returns [11:06:42]Send response to host [11:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92416,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:06:42]free response buf [11:06:42]execute_script done [11:06:42]execute_script returns [11:06:42]free content buf [11:06:42]Sock 8.Close socket [11:06:42]Sock 8.Thread stoped [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:31]accept exits with 9 [11:07:31]New connection [11:07:31]New thread 3066801508 created [11:07:31]Thread 3066658148 joined [11:07:31]Waiting for new connection... [11:07:31] Sock 9.Parse request [11:07:31]Sock 9.Check first char [11:07:31]Sock 9.First char is OK [11:07:31]request: POST /json_proto HTTP/1.0 [11:07:31]Method: POST [11:07:31]URL: /json_proto [11:07:31]Method is POST - this is cgi request [11:07:31]url: /json_proto [11:07:31]query_string will be loaded in cgi processing [11:07:31]execute_cgi json_proto POST (null) [11:07:31]execute_cgi path=json_proto method=POST [11:07:31]POST find Content-Length [11:07:31]Host: 172.17.57.71:8080 [11:07:31]Content-Length: 813 [11:07:31]Content-Type: application/json [11:07:31] [11:07:31]POST finish read [11:07:31]Found Content-Length = 813 [11:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127328", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:31]execute_script... [11: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)127328", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:31]POST & json_proto [11:07:31]process_json_proto [11:07:31]json parsed OK: [11:07:31]protocol is kg_v1.0 [11:07:31]action value=close_receipt [11:07:31]process_action close_receipt [11:07:31]cmd_close_receipt [11:07:31]MH_GetDate [11:07:31]Write to MH i2c: F0 00 00 94 14 97 [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: F0 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: F0 09 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: F0 09 00 94 14 00 76 6E E5 66 33 3A A4 66 46 [11:07:31]GetLastDocTimeStamp 1726312000 [11:07:31]current date 1726312054 [11:07:31]FM_GetShiftState [11:07:31]SAM_PROTO_GetShiftState [11:07:31]wFMCommunicate request_size=4 [11:07:31]MH_SAM_APDU [11:07:31]CAPDU: 80 13 01 00 [11:07:31]Write to MH i2c: E2 08 00 95 14 80 13 01 00 00 00 00 00 26 [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:31]Read from MH i2c: E2 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 0E 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 0E 00 95 14 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C0 [11:07:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:07:31]wFMCommunicate OK [11:07:31]SAM_PROTO_GetShiftState done [11:07:31]FM_GetShiftState done [11:07:31]opened in 1726273389 [11:07:31]opened+sec_in_day 1726359789 [11:07:31]quantity*price = 26500 [11:07:31]sum+1 = 26501 [11:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 0.00 Безнал.: 265.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 68 14.09.2024 11:07 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92417 ФПД: 120373291553163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T110734&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92417&fm=120373291553163&tin=02508201610067®Number=0000000000091423&sum=26500 0 [11:07:32]StoreToDocumentArchive [11:07:32]shift 506 fd 92417 [11:07:32]save to /storage/0506/doc_00092417 [11:07:32]save last doc name /storage/0506/doc_00092417 to /storage/kkm_last_doc_name [11:07:32]save OK [11:07:32]Clear old archive folders... [11:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=279 [11:07:32]tlvbuf is 01040E70 [11:07:32]SAM_PROTO_ClearQueue [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 09 00 00 [11:07:32]Write to MH i2c: E2 08 00 A2 14 80 09 00 00 00 00 00 00 28 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 A2 14 00 90 00 2A [11:07:32]RAPDU: 90 00 [11:07:32]wFMCommunicate OK [11:07:32]SAM_PROTO_ClearQueue done [11:07:32]KKMCreateOFDPacket [11:07:32]OFDProtocolAddRootSTLVToBuf [11:07:32]FM_MakeSignedData [11:07:32]FM_MakeSignedData [11:07:32]SAM_PROTO_SignData [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 0D 01 02 [11:07:32]Write to MH i2c: E2 08 00 A3 14 80 0D 01 02 00 00 00 00 30 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 A3 14 00 90 00 2B [11:07:32]RAPDU: 90 00 [11:07:32]wFMCommunicate OK [11:07:32]wFMCommunicate request_size=255 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 76 6E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 [11:07:32]Write to MH i2c: E2 02 01 A4 14 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 76 6E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 00 00 07 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:33]Read from MH i2c: E2 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: E2 03 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: E2 03 00 A4 14 00 90 00 2C [11:07:33]RAPDU: 90 00 [11:07:33]wFMCommunicate OK [11:07:33]wFMCommunicate request_size=38 [11:07:33]MH_SAM_APDU [11:07:33]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 69 01 00 35 04 06 00 6D 7A 97 48 91 8B [11:07:33]Write to MH i2c: E2 29 00 A5 14 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 69 01 00 35 04 06 00 6D 7A 97 48 91 8B 00 00 0D [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:33]Read from MH i2c: E2 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: E2 03 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: E2 03 00 A5 14 00 90 00 2D [11:07:33]RAPDU: 90 00 [11:07:33]wFMCommunicate OK [11:07:33]wFMCommunicate request_size=4 [11:07:33]MH_SAM_APDU [11:07:33]CAPDU: 80 0D 03 02 [11:07:33]Write to MH i2c: E2 08 00 A6 14 80 0D 03 02 00 00 00 00 35 [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:33]Read from MH i2c: E2 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: E2 0B 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: E2 0B 00 A6 14 00 04 0E 50 57 C7 D3 A9 E6 90 00 18 [11:07:33]RAPDU: 04 0E 50 57 C7 D3 A9 E6 90 00 [11:07:33]wFMCommunicate OK [11:07:33]SAM_PROTO_SignData done [11:07:33]FM_MakeSignedData done [11:07:33]CreateOFDProtocolMessage [11:07:33]wFMCommunicate request_size=4 [11:07:33]MH_SAM_APDU [11:07:33]CAPDU: 80 11 00 00 [11:07:33]Write to MH i2c: E2 08 00 A7 14 80 11 00 00 00 00 00 00 35 [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:33]Read from MH i2c: E2 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: E2 17 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: E2 17 00 A7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8C [11:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:07:33]wFMCommunicate OK [11:07:33]CreateOFDProtocolMessage done [11:07:33]OFDSenderStorePacket 92417 [11:07:33]StoreOFDPacket docnum=92417 [11:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 43 CB 23 01 7D B9 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 76 6E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 69 01 00 35 04 06 00 6D 7A 97 48 91 8B 04 0E 50 57 C7 D3 A9 E6 [11:07:33]CheckFolder [11:07:33]dirname=/storage/ofd_packets [11:07:33]CheckFolder done [11:07:33]ProducePacketName [11:07:33]name=ofd_packets/00092417 [11:07:33]NVStorageSaveData ofd_packets/00092417 [11:07:33]File name is /storage/ofd_packets/00092417 [11:07:33]Write 329 bytes [11:07:33]NVStorageSaveData done [11:07:33]OFDSenderStorePacket done [11:07:33]KKMCreateOFDPacket done [11:07:33]NVStorageSaveData kkm_last_timestamp [11:07:33]File name is /storage/kkm_last_timestamp [11:07:33]Write 4 bytes [11:07:33]NVStorageSaveData done [11:07:33]ExternCall_PrintAddStr [11:07:33]wPrintStart [11:07:33]Write to MH i2c: 01 00 00 A8 14 BC [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 07 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 07 00 A8 14 00 00 00 00 00 FF 0F D1 [11:07:33]RasterBufferAndPrint [11:07:33]line Счет N : (3)127328 [11:07:33]line ИНН: 02508201610067 [11:07:33]line Контрольно-Кассовый Чек [11:07:33]line ПРОДАЖА [11:07:33]line Товар: 90448300 [11:07:33]line Энерг напиток Red Bull 0,355л [11:07:33]line 1.000 * 265.00 [11:07:33]line = 265.00 [11:07:33]line НДС 12% НСП 1% [11:07:33]line > о реализуемом товаре [11:07:33]line ИТОГО: 265.00 [11:07:33]line НСП 1% : 2.34 [11:07:33]line НДС 12% : 28.14 [11:07:33]line Наличными: 0.00 [11:07:33]line Безнал.: 265.00 [11:07:33]line Место: АЗС № 5 "Партнер Нефть" [11:07:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:07:33]line СНО: Общий режим [11:07:33]line Чек 68 14.09.2024 11:07 [11:07:33]line Смена: 506 ФФД: 1.0 [11:07:33]line ЗНМ: 03000000022 [11:07:33]line РНМ: 0000000000091423 [11:07:33]line Версия ККМ: 001 [11:07:33]line Платежная система: О! деньги [11:07:33]line ФМ: 0000000000874692 [11:07:33]line ФД: 92417 [11:07:33]line ФПД: 120373291553163 [11:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T110734&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92417&fm=120373291553163&tin=02508201610067®Number=0000000000091423&sum=26500 [11:07:33]line 0 [11:07:33]OFD Sender: Processing packet 92417 [packets to send 63, broken 62] [11:07:33]ProducePacketName [11:07:33]name=ofd_packets/00092417 [11:07:33]OFD Sender: To server: pG, [11:07:33]CommunicateWithHost lk.salyk.kg:30040 [11:07:33]ConnectInit lk.salyk.kg [11:07:33]written 0, free lines is 4095 [11:07:33]Connected sock=10 [11:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 43 CB 23 01 7D B9 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 76 6E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 69 01 00 35 04 06 00 6D 7A 97 48 91 8B 04 0E 50 57 C7 D3 A9 E6 [11:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F5 BE 47 00 A5 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 01 69 01 00 F4 03 04 00 F1 16 E5 66 B6 04 01 00 00 39 7B D3 EA E2 C6 10 DA [11:07:33]CommunicateWithHost err = 0 [11:07:33]CheckOFDResponse [11:07:33]1017 (14) - 77093643461234 [11:07:33]1041 (16) - 0000000000874692 [11:07:33]1040 (4) - 92417 [11:07:33]1012 (4) - 14.09.2024 04:54 [11:07:33]1206 (1) - 0 [11:07:33]OFD Sender: Remove packet 92417 [11:07:33]ProducePacketName [11:07:33]name=ofd_packets/00092417 [11:07:33]NVStorageDeleteData [11:07:33]Write to MH i2c: 01 00 00 D2 14 E6 [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 07 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 07 00 D2 14 00 00 00 00 00 0B 0D 05 [11:07:33]RasterBufferAndPrint [11:07:33]line [11:07:33]line [11:07:33]line [11:07:33]line [11:07:33]line [11:07:33]written 0, free lines is 3344 [11:07:33]MH_Cut [11:07:33]Write to MH i2c: D1 01 00 D9 14 01 BF [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: D1 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: D1 01 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: D1 01 00 D9 14 00 BE [11:07:33]Write to MH i2c: 01 00 00 DA 14 EE [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:34]OFD Sender: No OFD packet to send [11:07:34]*** Cut start [11:07:34]*** Purtial cut [11:07:34]*** Stage 1: CUTSNS_PIN = 1 [11:07:36]Read from MH i2c: 01 [11:07:36]MH_I2C_Read... [11:07:36]*** Stop cut motor [11:07:36]*** Cut end [11:07:36]Read from MH i2c: 01 07 00 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: 01 07 00 DA 14 00 00 00 00 00 FF 0F 03 [11:07:36]process_action close_receipt done [11:07:36]requested_data is exist [11:07:36]produce_requested_data [11:07:36]requested_item fm.sn is exist - process it [11:07:36]wFMCommunicate request_size=4 [11:07:36]MH_SAM_APDU [11:07:36]CAPDU: 80 11 00 00 [11:07:36]Write to MH i2c: E2 08 00 DB 14 80 11 00 00 00 00 00 00 69 [11:07:36]Write i2c OK [11:07:36]MH_I2C_Read... [11:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:36]Read from MH i2c: E2 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: E2 17 00 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: E2 17 00 DB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C0 [11:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:07:36]wFMCommunicate OK [11:07:36]requested_item fd.num is exist - process it [11:07:36]SAM_PROTO_GetFieldsCounters [11:07:36]wFMCommunicate request_size=4 [11:07:36]MH_SAM_APDU [11:07:36]CAPDU: 80 13 00 00 [11:07:36]Write to MH i2c: E2 08 00 DC 14 80 13 00 00 00 00 00 00 6C [11:07:36]Write i2c OK [11:07:36]MH_I2C_Read... [11:07:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:36]Read from MH i2c: E2 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: E2 62 00 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: E2 62 00 DC 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 01 69 01 00 0E 04 04 00 FA 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 BD [11:07:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 01 69 01 00 0E 04 04 00 FA 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:07:36]wFMCommunicate OK [11:07:36]SAM_PROTO_GetFieldsCounters done [11:07:36]requested_item shift.num is exist - process it [11:07:36]requested_item shift.opened is exist - process it [11:07:36]req_shift_opened [11:07:36]FM_GetShiftState [11:07:36]SAM_PROTO_GetShiftState [11:07:36]wFMCommunicate request_size=4 [11:07:36]MH_SAM_APDU [11:07:36]CAPDU: 80 13 01 00 [11:07:36]Write to MH i2c: E2 08 00 DD 14 80 13 01 00 00 00 00 00 6E [11:07:36]Write i2c OK [11:07:36]MH_I2C_Read... [11:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:36]Read from MH i2c: E2 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: E2 0E 00 [11:07:36]MH_I2C_Read... [11:07:36]Read from MH i2c: E2 0E 00 DD 14 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 08 [11:07:36]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:07:36]wFMCommunicate OK [11:07:36]SAM_PROTO_GetShiftState done [11:07:36]FM_GetShiftState done [11:07:36]req_shift_opened done [11:07:36]requested_item shift.open_date is exist - process it [11:07:36]req_shift_open_date [11:07:36]req_shift_open_date done [11:07:36]produce_requested_data done [11:07:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92417,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:07:36]process_action_free close_receipt [11:07:36]json_value_free [11:07:36]json_value_free done [11:07:36]process_json_proto returns [11:07:36]Send response to host [11:07:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92417,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:07:36]free response buf [11:07:36]execute_script done [11:07:36]execute_script returns [11:07:36]free content buf [11:07:36]Sock 9.Close socket [11:07:36]Sock 9.Thread stoped [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]accept exits with 8 [11:13:39]New connection [11:13:39]New thread 3066658148 created [11:13:39]Thread 3066801508 joined [11:13:39]Waiting for new connection... [11:13:39] Sock 8.Parse request [11:13:39]Sock 8.Check first char [11:13:39]Sock 8.First char is OK [11:13:39]request: POST /json_proto HTTP/1.0 [11:13:39]Method: POST [11:13:39]URL: /json_proto [11:13:39]Method is POST - this is cgi request [11:13:39]url: /json_proto [11:13:39]query_string will be loaded in cgi processing [11:13:39]execute_cgi json_proto POST (null) [11:13:39]execute_cgi path=json_proto method=POST [11:13:39]POST find Content-Length [11:13:39]Host: 172.17.57.71:8080 [11:13:39]Content-Length: 946 [11:13:39]Content-Type: application/json [11:13:39] [11:13:39]POST finish read [11:13:39]Found Content-Length = 946 [11:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127329", "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" : 2.000, "sum" : 80.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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:39]execute_script... [11:13: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)127329", "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" : 2.000, "sum" : 80.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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:39]POST & json_proto [11:13:39]process_json_proto [11:13:39]json parsed OK: [11:13:39]protocol is kg_v1.0 [11:13:39]action value=close_receipt [11:13:39]process_action close_receipt [11:13:39]cmd_close_receipt [11:13:39]MH_GetDate [11:13:39]Write to MH i2c: F0 00 00 DE 14 E1 [11:13:39]Write i2c OK [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: F0 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: F0 09 00 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: F0 09 00 DE 14 00 E6 6F E5 66 33 3A A4 66 01 [11:13:39]GetLastDocTimeStamp 1726312054 [11:13:39]current date 1726312422 [11:13:39]FM_GetShiftState [11:13:39]SAM_PROTO_GetShiftState [11:13:39]wFMCommunicate request_size=4 [11:13:39]MH_SAM_APDU [11:13:39]CAPDU: 80 13 01 00 [11:13:39]Write to MH i2c: E2 08 00 DF 14 80 13 01 00 00 00 00 00 70 [11:13:39]Write i2c OK [11:13:39]MH_I2C_Read... [11:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:39]Read from MH i2c: E2 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: E2 0E 00 [11:13:39]MH_I2C_Read... [11:13:39]Read from MH i2c: E2 0E 00 DF 14 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0A [11:13:39]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:13:39]wFMCommunicate OK [11:13:39]SAM_PROTO_GetShiftState done [11:13:39]FM_GetShiftState done [11:13:39]opened in 1726273389 [11:13:39]opened+sec_in_day 1726359789 [11:13:39]quantity*price = 8000 [11:13:39]sum+1 = 8001 [11:13:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 69 14.09.2024 11:13 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92418 ФПД: 74587490748185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T111342&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92418&fm=74587490748185&tin=02508201610067®Number=0000000000091423&sum=21000 0 [11:13:40]StoreToDocumentArchive [11:13:40]shift 506 fd 92418 [11:13:40]save to /storage/0506/doc_00092418 [11:13:40]save last doc name /storage/0506/doc_00092418 to /storage/kkm_last_doc_name [11:13:40]save OK [11:13:40]Clear old archive folders... [11:13:40]ProcessDocumentItem done err = 0, tmpTLVsize=395 [11:13:40]tlvbuf is 00FDB330 [11:13:40]SAM_PROTO_ClearQueue [11:13:40]wFMCommunicate request_size=4 [11:13:40]MH_SAM_APDU [11:13:40]CAPDU: 80 09 00 00 [11:13:40]Write to MH i2c: E2 08 00 EC 14 80 09 00 00 00 00 00 00 72 [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:40]Read from MH i2c: E2 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 03 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 03 00 EC 14 00 90 00 74 [11:13:40]RAPDU: 90 00 [11:13:40]wFMCommunicate OK [11:13:40]SAM_PROTO_ClearQueue done [11:13:40]KKMCreateOFDPacket [11:13:40]OFDProtocolAddRootSTLVToBuf [11:13:40]FM_MakeSignedData [11:13:40]FM_MakeSignedData [11:13:40]SAM_PROTO_SignData [11:13:40]wFMCommunicate request_size=4 [11:13:40]MH_SAM_APDU [11:13:40]CAPDU: 80 0D 01 02 [11:13:40]Write to MH i2c: E2 08 00 ED 14 80 0D 01 02 00 00 00 00 7A [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:40]Read from MH i2c: E2 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 03 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: E2 03 00 ED 14 00 90 00 75 [11:13:40]RAPDU: 90 00 [11:13:40]wFMCommunicate OK [11:13:40]wFMCommunicate request_size=255 [11:13:40]MH_SAM_APDU [11:13:40]CAPDU: 80 0D 02 02 FA 03 00 8B 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 [11:13:40]Write to MH i2c: E2 02 01 EE 14 80 0D 02 02 FA 00 03 00 8B 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 00 00 6F [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:41]Read from MH i2c: E2 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 03 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 03 00 EE 14 00 90 00 76 [11:13:41]RAPDU: 90 00 [11:13:41]wFMCommunicate OK [11:13:41]wFMCommunicate request_size=154 [11:13:41]MH_SAM_APDU [11:13:41]CAPDU: 80 0D 02 02 95 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 45 00 00 00 F4 03 04 00 E6 6F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 02 69 01 00 35 04 06 00 43 D6 40 E4 07 19 [11:13:41]Write to MH i2c: E2 9D 00 EF 14 80 0D 02 02 95 00 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 45 00 00 00 F4 03 04 00 E6 6F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 02 69 01 00 35 04 06 00 43 D6 40 E4 07 19 00 00 57 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:41]Read from MH i2c: E2 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 03 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 03 00 EF 14 00 90 00 77 [11:13:41]RAPDU: 90 00 [11:13:41]wFMCommunicate OK [11:13:41]wFMCommunicate request_size=4 [11:13:41]MH_SAM_APDU [11:13:41]CAPDU: 80 0D 03 02 [11:13:41]Write to MH i2c: E2 08 00 F0 14 80 0D 03 02 00 00 00 00 7F [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:41]Read from MH i2c: E2 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 0B 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 0B 00 F0 14 00 28 75 5B B1 8D 1C 06 02 90 00 DA [11:13:41]RAPDU: 28 75 5B B1 8D 1C 06 02 90 00 [11:13:41]wFMCommunicate OK [11:13:41]SAM_PROTO_SignData done [11:13:41]FM_MakeSignedData done [11:13:41]CreateOFDProtocolMessage [11:13:41]wFMCommunicate request_size=4 [11:13:41]MH_SAM_APDU [11:13:41]CAPDU: 80 11 00 00 [11:13:41]Write to MH i2c: E2 08 00 F1 14 80 11 00 00 00 00 00 00 7F [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:41]Read from MH i2c: E2 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 17 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 17 00 F1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D6 [11:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:13:41]wFMCommunicate OK [11:13:41]CreateOFDProtocolMessage done [11:13:41]OFDSenderStorePacket 92418 [11:13:41]StoreOFDPacket docnum=92418 [11:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9F 01 00 00 3B 79 97 01 18 F4 5A 03 01 00 03 00 8B 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 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 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 45 00 00 00 F4 03 04 00 E6 6F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 02 69 01 00 35 04 06 00 43 D6 40 E4 07 19 28 75 5B B1 8D 1C 06 02 [11:13:41]CheckFolder [11:13:41]dirname=/storage/ofd_packets [11:13:41]CheckFolder done [11:13:41]ProducePacketName [11:13:41]name=ofd_packets/00092418 [11:13:41]NVStorageSaveData ofd_packets/00092418 [11:13:41]File name is /storage/ofd_packets/00092418 [11:13:41]Write 445 bytes [11:13:41]NVStorageSaveData done [11:13:41]OFDSenderStorePacket done [11:13:41]KKMCreateOFDPacket done [11:13:41]NVStorageSaveData kkm_last_timestamp [11:13:41]File name is /storage/kkm_last_timestamp [11:13:41]Write 4 bytes [11:13:41]NVStorageSaveData done [11:13:41]ExternCall_PrintAddStr [11:13:41]wPrintStart [11:13:41]Write to MH i2c: 01 00 00 F2 14 06 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: 01 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: 01 07 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: 01 07 00 F2 14 00 00 00 00 00 FF 0F 1B [11:13:41]RasterBufferAndPrint [11:13:41]line Счет N : (3)127329 [11:13:41]line ИНН: 02508201610067 [11:13:41]line Контрольно-Кассовый Чек [11:13:41]line ПРОДАЖА [11:13:41]line Товар: 4700000160211 [11:13:41]line Вода Легенда 0,5л [11:13:41]line 2.000 * 40.00 [11:13:41]line = 80.00 [11:13:41]line НДС 12% НСП 1% [11:13:41]line > о реализуемом товаре [11:13:41]line Товар: 2000032760017 [11:13:41]line Слойка DC треугольная мясо110г [11:13:41]line 2.000 * 65.00 [11:13:41]line = 130.00 [11:13:41]line НДС 12% НСП 1% [11:13:41]line > о реализуемом товаре [11:13:41]line ИТОГО: 210.00 [11:13:41]line НСП 1% : 1.86 [11:13:41]line НДС 12% : 22.30 [11:13:41]line Наличными: 210.00 [11:13:41]line Безнал.: 0.00 [11:13:41]line Место: АЗС № 5 "Партнер Нефть" [11:13:41]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:13:41]line СНО: Общий режим [11:13:41]line Чек 69 14.09.2024 11:13 [11:13:41]line Смена: 506 ФФД: 1.0 [11:13:41]line ЗНМ: 03000000022 [11:13:41]line РНМ: 0000000000091423 [11:13:41]line Версия ККМ: 001 [11:13:41]line ФМ: 0000000000874692 [11:13:41]line ФД: 92418 [11:13:41]line ФПД: 74587490748185 [11:13:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T111342&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92418&fm=74587490748185&tin=02508201610067®Number=0000000000091423&sum=21000 [11:13:41]line 0 [11:13:41]OFD Sender: Processing packet 92418 [packets to send 63, broken 62] [11:13:41]ProducePacketName [11:13:41]name=ofd_packets/00092418 [11:13:41]OFD Sender: To server: pG, [11:13:41]CommunicateWithHost lk.salyk.kg:30040 [11:13:41]ConnectInit lk.salyk.kg [11:13:41]written 0, free lines is 4095 [11:13:41]Connected sock=10 [11:13:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9F 01 00 00 3B 79 97 01 18 F4 5A 03 01 00 03 00 8B 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 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 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 45 00 00 00 F4 03 04 00 E6 6F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 02 69 01 00 35 04 06 00 43 D6 40 E4 07 19 28 75 5B B1 8D 1C 06 02 [11:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 23 20 47 00 D9 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 02 69 01 00 F4 03 04 00 62 18 E5 66 B6 04 01 00 00 0A 4F 85 F0 85 A2 4D 13 [11:13:42]CommunicateWithHost err = 0 [11:13:42]CheckOFDResponse [11:13:42]1017 (14) - 77093643461234 [11:13:42]1041 (16) - 0000000000874692 [11:13:42]1040 (4) - 92418 [11:13:42]1012 (4) - 14.09.2024 05:00 [11:13:42]1206 (1) - 0 [11:13:42]OFD Sender: Remove packet 92418 [11:13:42]ProducePacketName [11:13:42]name=ofd_packets/00092418 [11:13:42]NVStorageDeleteData [11:13:42]Write to MH i2c: 01 00 00 21 15 36 [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: 01 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: 01 07 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: 01 07 00 21 15 00 00 00 00 00 BB 0C 04 [11:13:42]RasterBufferAndPrint [11:13:42]line [11:13:42]line [11:13:42]line [11:13:42]line [11:13:42]line [11:13:42]written 0, free lines is 3268 [11:13:42]MH_Cut [11:13:42]Write to MH i2c: D1 01 00 28 15 01 0F [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: D1 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: D1 01 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: D1 01 00 28 15 00 0E [11:13:42]Write to MH i2c: 01 00 00 29 15 3E [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]OFD Sender: No OFD packet to send [11:13:42]*** Cut start [11:13:42]*** Purtial cut [11:13:42]*** Stage 1: CUTSNS_PIN = 1 [11:13:44]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]*** Stop cut motor [11:13:45]*** Cut end [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 29 15 00 00 00 00 00 FF 0F 53 [11:13:45]process_action close_receipt done [11:13:45]requested_data is exist [11:13:45]produce_requested_data [11:13:45]requested_item fm.sn is exist - process it [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 11 00 00 [11:13:45]Write to MH i2c: E2 08 00 2A 15 80 11 00 00 00 00 00 00 B9 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 2A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 10 [11:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:13:45]wFMCommunicate OK [11:13:45]requested_item fd.num is exist - process it [11:13:45]SAM_PROTO_GetFieldsCounters [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 00 00 [11:13:45]Write to MH i2c: E2 08 00 2B 15 80 13 00 00 00 00 00 00 BC [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 2B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 02 69 01 00 0E 04 04 00 FA 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 [11:13:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 02 69 01 00 0E 04 04 00 FA 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:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetFieldsCounters done [11:13:45]requested_item shift.num is exist - process it [11:13:45]requested_item shift.opened is exist - process it [11:13:45]req_shift_opened [11:13:45]FM_GetShiftState [11:13:45]SAM_PROTO_GetShiftState [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 01 00 [11:13:45]Write to MH i2c: E2 08 00 2C 15 80 13 01 00 00 00 00 00 BE [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 2C 15 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 58 [11:13:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetShiftState done [11:13:45]FM_GetShiftState done [11:13:45]req_shift_opened done [11:13:45]requested_item shift.open_date is exist - process it [11:13:45]req_shift_open_date [11:13:45]req_shift_open_date done [11:13:45]produce_requested_data done [11:13:45]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92418,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:13:45]process_action_free close_receipt [11:13:45]json_value_free [11:13:45]json_value_free done [11:13:45]process_json_proto returns [11:13:45]Send response to host [11:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92418,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:13:45]free response buf [11:13:45]execute_script done [11:13:45]execute_script returns [11:13:45]free content buf [11:13:45]Sock 8.Close socket [11:13:45]Sock 8.Thread stoped [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:13:58]accept exits with 9 [11:13:58]New connection [11:13:58]New thread 3066801508 created [11:13:58]Thread 3066658148 joined [11:13:58]Waiting for new connection... [11:13:58] Sock 9.Parse request [11:13:58]Sock 9.Check first char [11:13:58]Sock 9.First char is OK [11:13:58]request: POST /json_proto HTTP/1.0 [11:13:58]Method: POST [11:13:58]URL: /json_proto [11:13:58]Method is POST - this is cgi request [11:13:58]url: /json_proto [11:13:58]query_string will be loaded in cgi processing [11:13:58]execute_cgi json_proto POST (null) [11:13:58]execute_cgi path=json_proto method=POST [11:13:58]POST find Content-Length [11:13:58]Host: 172.17.57.71:8080 [11:13:58]Content-Length: 798 [11:13:58]Content-Type: application/json [11:13:58] [11:13:58]POST finish read [11:13:58]Found Content-Length = 798 [11:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127330", "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" : 2.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: \u041E! \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" ] } } [11:13:58]execute_script... [11:13: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)127330", "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" : 2.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: \u041E! \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" ] } } [11:13:58]POST & json_proto [11:13:58]process_json_proto [11:13:58]json parsed OK: [11:13:58]protocol is kg_v1.0 [11:13:58]action value=close_receipt [11:13:58]process_action close_receipt [11:13:58]cmd_close_receipt [11:13:58]MH_GetDate [11:13:58]Write to MH i2c: F0 00 00 2D 15 31 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: F0 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: F0 09 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: F0 09 00 2D 15 00 F9 6F E5 66 33 3A A4 66 64 [11:13:58]GetLastDocTimeStamp 1726312422 [11:13:58]current date 1726312441 [11:13:58]FM_GetShiftState [11:13:58]SAM_PROTO_GetShiftState [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 13 01 00 [11:13:58]Write to MH i2c: E2 08 00 2E 15 80 13 01 00 00 00 00 00 C0 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 0E 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 0E 00 2E 15 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5A [11:13:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:13:58]wFMCommunicate OK [11:13:58]SAM_PROTO_GetShiftState done [11:13:58]FM_GetShiftState done [11:13:58]opened in 1726273389 [11:13:58]opened+sec_in_day 1726359789 [11:13:58]quantity*price = 8000 [11:13:58]sum+1 = 8001 [11:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 70 14.09.2024 11:14 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92419 ФПД: 132658016207044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T111401&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92419&fm=132658016207044&tin=02508201610067®Number=0000000000091423&sum=8000 0 [11:13:59]StoreToDocumentArchive [11:13:59]shift 506 fd 92419 [11:13:59]save to /storage/0506/doc_00092419 [11:13:59]save last doc name /storage/0506/doc_00092419 to /storage/kkm_last_doc_name [11:13:59]save OK [11:13:59]Clear old archive folders... [11:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:13:59]tlvbuf is 01041190 [11:13:59]SAM_PROTO_ClearQueue [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 09 00 00 [11:13:59]Write to MH i2c: E2 08 00 3B 15 80 09 00 00 00 00 00 00 C2 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 3B 15 00 90 00 C4 [11:13:59]RAPDU: 90 00 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_ClearQueue done [11:13:59]KKMCreateOFDPacket [11:13:59]OFDProtocolAddRootSTLVToBuf [11:13:59]FM_MakeSignedData [11:13:59]FM_MakeSignedData [11:13:59]SAM_PROTO_SignData [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 0D 01 02 [11:13:59]Write to MH i2c: E2 08 00 3C 15 80 0D 01 02 00 00 00 00 CA [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 3C 15 00 90 00 C5 [11:13:59]RAPDU: 90 00 [11:13:59]wFMCommunicate OK [11:13:59]wFMCommunicate request_size=255 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 46 00 00 00 F4 03 04 00 F9 6F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:13:59]Write to MH i2c: E2 02 01 3D 15 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 46 00 00 00 F4 03 04 00 F9 6F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 68 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 3D 15 00 90 00 C6 [11:14:00]RAPDU: 90 00 [11:14:00]wFMCommunicate OK [11:14:00]wFMCommunicate request_size=30 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 03 69 01 00 35 04 06 00 78 A6 D9 EE C0 C4 [11:14:00]Write to MH i2c: E2 21 00 3E 15 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 03 69 01 00 35 04 06 00 78 A6 D9 EE C0 C4 00 00 A0 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 3E 15 00 90 00 C7 [11:14:00]RAPDU: 90 00 [11:14:00]wFMCommunicate OK [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 0D 03 02 [11:14:00]Write to MH i2c: E2 08 00 3F 15 80 0D 03 02 00 00 00 00 CF [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0B 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0B 00 3F 15 00 80 BA E5 D1 6F C9 08 62 90 00 62 [11:14:00]RAPDU: 80 BA E5 D1 6F C9 08 62 90 00 [11:14:00]wFMCommunicate OK [11:14:00]SAM_PROTO_SignData done [11:14:00]FM_MakeSignedData done [11:14:00]CreateOFDProtocolMessage [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 11 00 00 [11:14:00]Write to MH i2c: E2 08 00 40 15 80 11 00 00 00 00 00 00 CF [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 17 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 17 00 40 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 26 [11:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:14:00]wFMCommunicate OK [11:14:00]CreateOFDProtocolMessage done [11:14:00]OFDSenderStorePacket 92419 [11:14:00]StoreOFDPacket docnum=92419 [11:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 DF 5F 1B 01 5D 47 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 46 00 00 00 F4 03 04 00 F9 6F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 03 69 01 00 35 04 06 00 78 A6 D9 EE C0 C4 80 BA E5 D1 6F C9 08 62 [11:14:00]CheckFolder [11:14:00]dirname=/storage/ofd_packets [11:14:00]CheckFolder done [11:14:00]ProducePacketName [11:14:00]name=ofd_packets/00092419 [11:14:00]NVStorageSaveData ofd_packets/00092419 [11:14:00]File name is /storage/ofd_packets/00092419 [11:14:00]Write 321 bytes [11:14:00]NVStorageSaveData done [11:14:00]OFDSenderStorePacket done [11:14:00]KKMCreateOFDPacket done [11:14:00]NVStorageSaveData kkm_last_timestamp [11:14:00]File name is /storage/kkm_last_timestamp [11:14:00]Write 4 bytes [11:14:00]NVStorageSaveData done [11:14:00]ExternCall_PrintAddStr [11:14:00]wPrintStart [11:14:00]Write to MH i2c: 01 00 00 41 15 56 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 41 15 00 00 00 00 00 FF 0F 6B [11:14:00]RasterBufferAndPrint [11:14:00]line Счет N : (3)127330 [11:14:00]line ИНН: 02508201610067 [11:14:00]line Контрольно-Кассовый Чек [11:14:00]line ПРОДАЖА [11:14:00]line Товар: 4700000160211 [11:14:00]line Вода Легенда 0,5л [11:14:00]line 2.000 * 40.00 [11:14:00]line = 80.00 [11:14:00]line НДС 12% НСП 1% [11:14:00]line > о реализуемом товаре [11:14:00]line ИТОГО: 80.00 [11:14:00]line НСП 1% : 0.71 [11:14:00]line НДС 12% : 8.50 [11:14:00]line Наличными: 0.00 [11:14:00]line Безнал.: 80.00 [11:14:00]line Место: АЗС № 5 "Партнер Нефть" [11:14:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:14:00]line СНО: Общий режим [11:14:00]line Чек 70 14.09.2024 11:14 [11:14:00]line Смена: 506 ФФД: 1.0 [11:14:00]line ЗНМ: 03000000022 [11:14:00]line РНМ: 0000000000091423 [11:14:00]line Версия ККМ: 001 [11:14:00]line Платежная система: О! деньги [11:14:00]line ФМ: 0000000000874692 [11:14:00]line ФД: 92419 [11:14:00]line ФПД: 132658016207044 [11:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T111401&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92419&fm=132658016207044&tin=02508201610067®Number=0000000000091423&sum=8000 [11:14:00]OFD Sender: Processing packet 92419 [packets to send 63, broken 62] [11:14:00]ProducePacketName [11:14:00]name=ofd_packets/00092419 [11:14:00]OFD Sender: To server: pG, [11:14:00]CommunicateWithHost lk.salyk.kg:30040 [11:14:00]ConnectInit lk.salyk.kg [11:14:00]line 0 [11:14:00]written 0, free lines is 4095 [11:14:00]Connected sock=10 [11:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 DF 5F 1B 01 5D 47 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 46 00 00 00 F4 03 04 00 F9 6F E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 03 69 01 00 35 04 06 00 78 A6 D9 EE C0 C4 80 BA E5 D1 6F C9 08 62 [11:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 11 33 47 00 B3 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 03 69 01 00 F4 03 04 00 74 18 E5 66 B6 04 01 00 00 46 0D E9 E2 DD 0B 67 30 [11:14:00]CommunicateWithHost err = 0 [11:14:00]CheckOFDResponse [11:14:00]1017 (14) - 77093643461234 [11:14:00]1041 (16) - 0000000000874692 [11:14:00]1040 (4) - 92419 [11:14:00]1012 (4) - 14.09.2024 05:00 [11:14:00]1206 (1) - 0 [11:14:00]OFD Sender: Remove packet 92419 [11:14:00]ProducePacketName [11:14:00]name=ofd_packets/00092419 [11:14:00]NVStorageDeleteData [11:14:01]Write to MH i2c: 01 00 00 6B 15 80 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 6B 15 00 00 00 00 00 FE 0C 91 [11:14:01]RasterBufferAndPrint [11:14:01]line [11:14:01]line [11:14:01]line [11:14:01]line [11:14:01]line [11:14:01]written 0, free lines is 3332 [11:14:01]MH_Cut [11:14:01]Write to MH i2c: D1 01 00 72 15 01 59 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: D1 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: D1 01 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: D1 01 00 72 15 00 58 [11:14:01]Write to MH i2c: 01 00 00 73 15 88 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]OFD Sender: No OFD packet to send [11:14:01]*** Cut start [11:14:01]*** Purtial cut [11:14:01]*** Stage 1: CUTSNS_PIN = 1 [11:14:03]Read from MH i2c: 01 [11:14:03]MH_I2C_Read... [11:14:03]*** Stop cut motor [11:14:03]*** Cut end [11:14:03]Read from MH i2c: 01 07 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: 01 07 00 73 15 00 00 00 00 00 FF 0F 9D [11:14:03]process_action close_receipt done [11:14:03]requested_data is exist [11:14:03]produce_requested_data [11:14:03]requested_item fm.sn is exist - process it [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 11 00 00 [11:14:03]Write to MH i2c: E2 08 00 74 15 80 11 00 00 00 00 00 00 03 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 74 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5A [11:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:14:03]wFMCommunicate OK [11:14:03]requested_item fd.num is exist - process it [11:14:03]SAM_PROTO_GetFieldsCounters [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 00 00 [11:14:03]Write to MH i2c: E2 08 00 75 15 80 13 00 00 00 00 00 00 06 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 75 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 03 69 01 00 0E 04 04 00 FA 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 5F [11:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 03 69 01 00 0E 04 04 00 FA 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:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetFieldsCounters done [11:14:03]requested_item shift.num is exist - process it [11:14:03]requested_item shift.opened is exist - process it [11:14:03]req_shift_opened [11:14:03]FM_GetShiftState [11:14:03]SAM_PROTO_GetShiftState [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 01 00 [11:14:03]Write to MH i2c: E2 08 00 76 15 80 13 01 00 00 00 00 00 08 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 76 15 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A2 [11:14:03]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetShiftState done [11:14:03]FM_GetShiftState done [11:14:03]req_shift_opened done [11:14:03]requested_item shift.open_date is exist - process it [11:14:03]req_shift_open_date [11:14:03]req_shift_open_date done [11:14:03]produce_requested_data done [11:14:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92419,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:14:03]process_action_free close_receipt [11:14:03]json_value_free [11:14:03]json_value_free done [11:14:03]process_json_proto returns [11:14:03]Send response to host [11:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92419,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:14:03]free response buf [11:14:03]execute_script done [11:14:03]execute_script returns [11:14:03]free content buf [11:14:03]Sock 9.Close socket [11:14:03]Sock 9.Thread stoped [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:49]accept exits with 8 [11:17:49]New connection [11:17:49]New thread 3066658148 created [11:17:49]Thread 3066801508 joined [11:17:49]Waiting for new connection... [11:17:49] Sock 8.Parse request [11:17:49]Sock 8.Check first char [11:17:49]Sock 8.First char is OK [11:17:49]request: POST /json_proto HTTP/1.0 [11:17:49]Method: POST [11:17:49]URL: /json_proto [11:17:49]Method is POST - this is cgi request [11:17:49]url: /json_proto [11:17:49]query_string will be loaded in cgi processing [11:17:49]execute_cgi json_proto POST (null) [11:17:49]execute_cgi path=json_proto method=POST [11:17:49]POST find Content-Length [11:17:49]Host: 172.17.57.71:8080 [11:17:49]Content-Length: 676 [11:17:49]Content-Type: application/json [11:17:49] [11:17:49]POST finish read [11:17:49]Found Content-Length = 676 [11:17:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127331", "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" : 10.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" ] } } [11:17:49]execute_script... [11:17:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127331", "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" : 10.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" ] } } [11:17:49]POST & json_proto [11:17:49]process_json_proto [11:17:49]json parsed OK: [11:17:49]protocol is kg_v1.0 [11:17:49]action value=close_receipt [11:17:49]process_action close_receipt [11:17:49]cmd_close_receipt [11:17:49]MH_GetDate [11:17:49]Write to MH i2c: F0 00 00 77 15 7B [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: F0 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: F0 09 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: F0 09 00 77 15 00 E0 70 E5 66 33 3A A4 66 96 [11:17:49]GetLastDocTimeStamp 1726312441 [11:17:49]current date 1726312672 [11:17:49]FM_GetShiftState [11:17:49]SAM_PROTO_GetShiftState [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 13 01 00 [11:17:49]Write to MH i2c: E2 08 00 78 15 80 13 01 00 00 00 00 00 0A [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 0E 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 0E 00 78 15 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A4 [11:17:49]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:17:49]wFMCommunicate OK [11:17:49]SAM_PROTO_GetShiftState done [11:17:49]FM_GetShiftState done [11:17:49]opened in 1726273389 [11:17:49]opened+sec_in_day 1726359789 [11:17:49]quantity*price = 7000 [11:17:49]sum+1 = 7001 [11:17:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 71 14.09.2024 11:17 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92420 ФПД: 161019992330224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T111752&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92420&fm=161019992330224&tin=02508201610067®Number=0000000000091423&sum=7000 0 [11:17:50]StoreToDocumentArchive [11:17:50]shift 506 fd 92420 [11:17:50]save to /storage/0506/doc_00092420 [11:17:50]save last doc name /storage/0506/doc_00092420 to /storage/kkm_last_doc_name [11:17:50]save OK [11:17:50]Clear old archive folders... [11:17:50]ProcessDocumentItem done err = 0, tmpTLVsize=287 [11:17:50]tlvbuf is 00FAE5E0 [11:17:50]SAM_PROTO_ClearQueue [11:17:50]wFMCommunicate request_size=4 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 09 00 00 [11:17:50]Write to MH i2c: E2 08 00 85 15 80 09 00 00 00 00 00 00 0C [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 85 15 00 90 00 0E [11:17:50]RAPDU: 90 00 [11:17:50]wFMCommunicate OK [11:17:50]SAM_PROTO_ClearQueue done [11:17:50]KKMCreateOFDPacket [11:17:50]OFDProtocolAddRootSTLVToBuf [11:17:50]FM_MakeSignedData [11:17:50]FM_MakeSignedData [11:17:50]SAM_PROTO_SignData [11:17:50]wFMCommunicate request_size=4 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 0D 01 02 [11:17:50]Write to MH i2c: E2 08 00 86 15 80 0D 01 02 00 00 00 00 14 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 86 15 00 90 00 0F [11:17:50]RAPDU: 90 00 [11:17:50]wFMCommunicate OK [11:17:50]wFMCommunicate request_size=255 [11:17:50]MH_SAM_APDU [11:17:50]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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 47 00 00 00 F4 03 04 00 E0 70 E5 66 0E 04 04 00 FA 01 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:17:50]Write to MH i2c: E2 02 01 87 15 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 47 00 00 00 F4 03 04 00 E0 70 E5 66 0E 04 04 00 FA 01 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 6E [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 87 15 00 90 00 10 [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]wFMCommunicate request_size=46 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 69 01 00 35 04 06 00 92 72 63 71 CF F0 [11:17:51]Write to MH i2c: E2 31 00 88 15 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 69 01 00 35 04 06 00 92 72 63 71 CF F0 00 00 A7 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 88 15 00 90 00 11 [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 03 02 [11:17:51]Write to MH i2c: E2 08 00 89 15 80 0D 03 02 00 00 00 00 19 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0B 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0B 00 89 15 00 E1 65 09 88 1E 2D E5 AA 90 00 CB [11:17:51]RAPDU: E1 65 09 88 1E 2D E5 AA 90 00 [11:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_SignData done [11:17:51]FM_MakeSignedData done [11:17:51]CreateOFDProtocolMessage [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 11 00 00 [11:17:51]Write to MH i2c: E2 08 00 8A 15 80 11 00 00 00 00 00 00 19 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 8A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 70 [11:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:17:51]wFMCommunicate OK [11:17:51]CreateOFDProtocolMessage done [11:17:51]OFDSenderStorePacket 92420 [11:17:51]StoreOFDPacket docnum=92420 [11:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 05 74 2B 01 85 5A 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 47 00 00 00 F4 03 04 00 E0 70 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 69 01 00 35 04 06 00 92 72 63 71 CF F0 E1 65 09 88 1E 2D E5 AA [11:17:51]CheckFolder [11:17:51]dirname=/storage/ofd_packets [11:17:51]CheckFolder done [11:17:51]ProducePacketName [11:17:51]name=ofd_packets/00092420 [11:17:51]NVStorageSaveData ofd_packets/00092420 [11:17:51]File name is /storage/ofd_packets/00092420 [11:17:51]Write 337 bytes [11:17:51]NVStorageSaveData done [11:17:51]OFDSenderStorePacket done [11:17:51]KKMCreateOFDPacket done [11:17:51]NVStorageSaveData kkm_last_timestamp [11:17:51]File name is /storage/kkm_last_timestamp [11:17:51]Write 4 bytes [11:17:51]NVStorageSaveData done [11:17:51]ExternCall_PrintAddStr [11:17:51]wPrintStart [11:17:51]Write to MH i2c: 01 00 00 8B 15 A0 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 8B 15 00 00 00 00 00 FF 0F B5 [11:17:51]RasterBufferAndPrint [11:17:51]line Счет N : (3)127331 [11:17:51]line ИНН: 02508201610067 [11:17:51]line Контрольно-Кассовый Чек [11:17:51]line ПРОДАЖА [11:17:51]line Товар: 2000053020015 [11:17:51]line Бумажные стаканы 250мл 1шт [11:17:51]line 10.000 * 7.00 [11:17:51]line = 70.00 [11:17:51]line НДС 12% НСП 1% [11:17:51]line > о реализуемом товаре [11:17:51]line ИТОГО: 70.00 [11:17:51]line НСП 1% : 0.62 [11:17:51]line НДС 12% : 7.43 [11:17:51]line Наличными: 70.00 [11:17:51]line Безнал.: 0.00 [11:17:51]line Место: АЗС № 5 "Партнер Нефть" [11:17:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:17:51]line СНО: Общий режим [11:17:51]line Чек 71 14.09.2024 11:17 [11:17:51]line Смена: 506 ФФД: 1.0 [11:17:51]line ЗНМ: 03000000022 [11:17:51]line РНМ: 0000000000091423 [11:17:51]line Версия ККМ: 001 [11:17:51]line ФМ: 0000000000874692 [11:17:51]line ФД: 92420 [11:17:51]line ФПД: 161019992330224 [11:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T111752&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92420&fm=161019992330224&tin=02508201610067®Number=0000000000091423&sum=7000 [11:17:51]line 0 [11:17:51]OFD Sender: Processing packet 92420 [packets to send 63, broken 62] [11:17:51]ProducePacketName [11:17:51]name=ofd_packets/00092420 [11:17:51]OFD Sender: To server: pG, [11:17:51]CommunicateWithHost lk.salyk.kg:30040 [11:17:51]ConnectInit lk.salyk.kg [11:17:51]written 0, free lines is 4095 [11:17:51]Connected sock=10 [11:17:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 05 74 2B 01 85 5A 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 47 00 00 00 F4 03 04 00 E0 70 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 69 01 00 35 04 06 00 92 72 63 71 CF F0 E1 65 09 88 1E 2D E5 AA [11:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B3 7C 47 00 EE 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 04 69 01 00 F4 03 04 00 5B 19 E5 66 B6 04 01 00 00 D1 80 C0 A0 00 30 43 70 [11:17:51]CommunicateWithHost err = 0 [11:17:51]CheckOFDResponse [11:17:51]1017 (14) - 77093643461234 [11:17:51]1041 (16) - 0000000000874692 [11:17:51]1040 (4) - 92420 [11:17:51]1012 (4) - 14.09.2024 05:04 [11:17:51]1206 (1) - 0 [11:17:51]OFD Sender: Remove packet 92420 [11:17:51]ProducePacketName [11:17:51]name=ofd_packets/00092420 [11:17:51]NVStorageDeleteData [11:17:51]Write to MH i2c: 01 00 00 B4 15 C9 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 B4 15 00 00 00 00 00 06 0D E3 [11:17:51]RasterBufferAndPrint [11:17:51]line [11:17:51]line [11:17:51]line [11:17:51]line [11:17:51]line [11:17:51]written 0, free lines is 3339 [11:17:51]MH_Cut [11:17:51]Write to MH i2c: D1 01 00 BB 15 01 A2 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: D1 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: D1 01 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: D1 01 00 BB 15 00 A1 [11:17:51]Write to MH i2c: 01 00 00 BC 15 D1 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:52]OFD Sender: No OFD packet to send [11:17:52]*** Cut start [11:17:52]*** Purtial cut [11:17:52]*** Stage 1: CUTSNS_PIN = 1 [11:17:54]Read from MH i2c: 01 [11:17:54]MH_I2C_Read... [11:17:54]*** Stop cut motor [11:17:54]*** Cut end [11:17:54]Read from MH i2c: 01 07 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: 01 07 00 BC 15 00 00 00 00 00 FF 0F E6 [11:17:54]process_action close_receipt done [11:17:54]requested_data is exist [11:17:54]produce_requested_data [11:17:54]requested_item fm.sn is exist - process it [11:17:54]wFMCommunicate request_size=4 [11:17:54]MH_SAM_APDU [11:17:54]CAPDU: 80 11 00 00 [11:17:54]Write to MH i2c: E2 08 00 BD 15 80 11 00 00 00 00 00 00 4C [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 17 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 17 00 BD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A3 [11:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:17:54]wFMCommunicate OK [11:17:54]requested_item fd.num is exist - process it [11:17:54]SAM_PROTO_GetFieldsCounters [11:17:54]wFMCommunicate request_size=4 [11:17:54]MH_SAM_APDU [11:17:54]CAPDU: 80 13 00 00 [11:17:54]Write to MH i2c: E2 08 00 BE 15 80 13 00 00 00 00 00 00 4F [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 62 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 62 00 BE 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 04 69 01 00 0E 04 04 00 FA 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 AC [11:17:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 04 69 01 00 0E 04 04 00 FA 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:17:54]wFMCommunicate OK [11:17:54]SAM_PROTO_GetFieldsCounters done [11:17:54]requested_item shift.num is exist - process it [11:17:54]requested_item shift.opened is exist - process it [11:17:54]req_shift_opened [11:17:54]FM_GetShiftState [11:17:54]SAM_PROTO_GetShiftState [11:17:54]wFMCommunicate request_size=4 [11:17:54]MH_SAM_APDU [11:17:54]CAPDU: 80 13 01 00 [11:17:54]Write to MH i2c: E2 08 00 BF 15 80 13 01 00 00 00 00 00 51 [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 0E 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 0E 00 BF 15 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EB [11:17:54]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:17:54]wFMCommunicate OK [11:17:54]SAM_PROTO_GetShiftState done [11:17:54]FM_GetShiftState done [11:17:54]req_shift_opened done [11:17:54]requested_item shift.open_date is exist - process it [11:17:54]req_shift_open_date [11:17:54]req_shift_open_date done [11:17:54]produce_requested_data done [11:17:54]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92420,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:17:54]process_action_free close_receipt [11:17:54]json_value_free [11:17:54]json_value_free done [11:17:54]process_json_proto returns [11:17:54]Send response to host [11:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92420,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:17:54]free response buf [11:17:54]execute_script done [11:17:54]execute_script returns [11:17:54]free content buf [11:17:54]Sock 8.Close socket [11:17:54]Sock 8.Thread stoped [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:04]accept exits with 9 [11:18:04]New connection [11:18:04]New thread 3066801508 created [11:18:04]Thread 3066658148 joined [11:18:04]Waiting for new connection... [11:18:04] Sock 9.Parse request [11:18:04]Sock 9.Check first char [11:18:04]Sock 9.First char is OK [11:18:04]request: POST /json_proto HTTP/1.0 [11:18:04]Method: POST [11:18:04]URL: /json_proto [11:18:04]Method is POST - this is cgi request [11:18:04]url: /json_proto [11:18:04]query_string will be loaded in cgi processing [11:18:04]execute_cgi json_proto POST (null) [11:18:04]execute_cgi path=json_proto method=POST [11:18:04]POST find Content-Length [11:18:04]Host: 172.17.57.71:8080 [11:18:04]Content-Length: 622 [11:18:04]Content-Type: application/json [11:18:04] [11:18:04]POST finish read [11:18:04]Found Content-Length = 622 [11:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127332", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "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 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:04]execute_script... [11:18:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127332", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "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 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:04]POST & json_proto [11:18:04]process_json_proto [11:18:04]json parsed OK: [11:18:04]protocol is kg_v1.0 [11:18:04]action value=close_receipt [11:18:04]process_action close_receipt [11:18:04]cmd_close_receipt [11:18:04]MH_GetDate [11:18:04]Write to MH i2c: F0 00 00 C0 15 C4 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 09 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 09 00 C0 15 00 EF 70 E5 66 33 3A A4 66 EE [11:18:04]GetLastDocTimeStamp 1726312672 [11:18:04]current date 1726312687 [11:18:04]FM_GetShiftState [11:18:04]SAM_PROTO_GetShiftState [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 13 01 00 [11:18:04]Write to MH i2c: E2 08 00 C1 15 80 13 01 00 00 00 00 00 53 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:04]Read from MH i2c: E2 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 C1 15 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 ED [11:18:04]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:18:04]wFMCommunicate OK [11:18:04]SAM_PROTO_GetShiftState done [11:18:04]FM_GetShiftState done [11:18:04]opened in 1726273389 [11:18:04]opened+sec_in_day 1726359789 [11:18:04]quantity*price = 15000 [11:18:04]sum+1 = 15001 [11:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 72 14.09.2024 11:18 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92421 ФПД: 102537454405885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T111807&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92421&fm=102537454405885&tin=02508201610067®Number=0000000000091423&sum=15000 0 [11:18:05]StoreToDocumentArchive [11:18:05]shift 506 fd 92421 [11:18:05]save to /storage/0506/doc_00092421 [11:18:05]save last doc name /storage/0506/doc_00092421 to /storage/kkm_last_doc_name [11:18:05]save OK [11:18:05]Clear old archive folders... [11:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:18:05]tlvbuf is 00F8E1D0 [11:18:05]SAM_PROTO_ClearQueue [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 09 00 00 [11:18:05]Write to MH i2c: E2 08 00 CE 15 80 09 00 00 00 00 00 00 55 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]SAM_PROTO_ClearQueue done [11:18:05]KKMCreateOFDPacket [11:18:05]OFDProtocolAddRootSTLVToBuf [11:18:05]FM_MakeSignedData [11:18:05]FM_MakeSignedData [11:18:05]SAM_PROTO_SignData [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 01 02 [11:18:05]Write to MH i2c: E2 08 00 CF 15 80 0D 01 02 00 00 00 00 5D [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=255 [11:18:05]MH_SAM_APDU [11:18:05]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 32 31 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 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 48 00 00 00 F4 03 04 00 EF 70 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [11:18:05]Write to MH i2c: E2 02 01 D0 15 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 32 31 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 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 48 00 00 00 F4 03 04 00 EF 70 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 E5 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=33 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 69 01 00 35 04 06 00 5D 41 DC 8B C8 FD [11:18:05]Write to MH i2c: E2 24 00 D1 15 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 69 01 00 35 04 06 00 5D 41 DC 8B C8 FD 00 00 2C [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 D1 15 00 90 00 5A [11:18:06]RAPDU: 90 00 [11:18:06]wFMCommunicate OK [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 0D 03 02 [11:18:06]Write to MH i2c: E2 08 00 D2 15 80 0D 03 02 00 00 00 00 62 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 0B 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 0B 00 D2 15 00 2A 33 54 E3 20 5C 8F 5C 90 00 5E [11:18:06]RAPDU: 2A 33 54 E3 20 5C 8F 5C 90 00 [11:18:06]wFMCommunicate OK [11:18:06]SAM_PROTO_SignData done [11:18:06]FM_MakeSignedData done [11:18:06]CreateOFDProtocolMessage [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 11 00 00 [11:18:06]Write to MH i2c: E2 08 00 D3 15 80 11 00 00 00 00 00 00 62 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 17 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 17 00 D3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B9 [11:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:18:06]wFMCommunicate OK [11:18:06]CreateOFDProtocolMessage done [11:18:06]OFDSenderStorePacket 92421 [11:18:06]StoreOFDPacket docnum=92421 [11:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 0B EE 1E 01 E5 42 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 32 31 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 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 48 00 00 00 F4 03 04 00 EF 70 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 69 01 00 35 04 06 00 5D 41 DC 8B C8 FD 2A 33 54 E3 20 5C 8F 5C [11:18:06]CheckFolder [11:18:06]dirname=/storage/ofd_packets [11:18:06]CheckFolder done [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00092421 [11:18:06]NVStorageSaveData ofd_packets/00092421 [11:18:06]File name is /storage/ofd_packets/00092421 [11:18:06]Write 324 bytes [11:18:06]NVStorageSaveData done [11:18:06]OFDSenderStorePacket done [11:18:06]KKMCreateOFDPacket done [11:18:06]NVStorageSaveData kkm_last_timestamp [11:18:06]File name is /storage/kkm_last_timestamp [11:18:06]Write 4 bytes [11:18:06]NVStorageSaveData done [11:18:06]ExternCall_PrintAddStr [11:18:06]wPrintStart [11:18:06]Write to MH i2c: 01 00 00 D4 15 E9 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 D4 15 00 00 00 00 00 FF 0F FE [11:18:06]RasterBufferAndPrint [11:18:06]line Счет N : (3)127332 [11:18:06]line ИНН: 02508201610067 [11:18:06]line Контрольно-Кассовый Чек [11:18:06]line ПРОДАЖА [11:18:06]line Товар: 4640030091621 [11:18:06]line Сигареты ESSE Exchange W [11:18:06]line 1.000 * 150.00 [11:18:06]line = 150.00 [11:18:06]line НДС 12% НСП 1% [11:18:06]line > о реализуемом товаре [11:18:06]line ИТОГО: 150.00 [11:18:06]line НСП 1% : 1.33 [11:18:06]line НДС 12% : 15.93 [11:18:06]line Наличными: 150.00 [11:18:06]line Безнал.: 0.00 [11:18:06]line Место: АЗС № 5 "Партнер Нефть" [11:18:06]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:18:06]line СНО: Общий режим [11:18:06]line Чек 72 14.09.2024 11:18 [11:18:06]line Смена: 506 ФФД: 1.0 [11:18:06]line ЗНМ: 03000000022 [11:18:06]line РНМ: 0000000000091423 [11:18:06]line Версия ККМ: 001 [11:18:06]line ФМ: 0000000000874692 [11:18:06]line ФД: 92421 [11:18:06]line ФПД: 102537454405885 [11:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T111807&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92421&fm=102537454405885&tin=02508201610067®Number=0000000000091423&sum=15000 [11:18:06]line 0 [11:18:06]OFD Sender: Processing packet 92421 [packets to send 63, broken 62] [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00092421 [11:18:06]OFD Sender: To server: pG, [11:18:06]CommunicateWithHost lk.salyk.kg:30040 [11:18:06]ConnectInit lk.salyk.kg [11:18:06]written 0, free lines is 4095 [11:18:06]Connected sock=11 [11:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 0B EE 1E 01 E5 42 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 32 31 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 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 48 00 00 00 F4 03 04 00 EF 70 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 05 69 01 00 35 04 06 00 5D 41 DC 8B C8 FD 2A 33 54 E3 20 5C 8F 5C [11:18:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BD 48 47 00 DD 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 34 36 39 32 10 04 04 00 05 69 01 00 F4 03 04 00 6A 19 E5 66 B6 04 01 00 00 C4 C7 EE 97 EA AF 86 6C [11:18:06]CommunicateWithHost err = 0 [11:18:06]CheckOFDResponse [11:18:06]1017 (14) - 77093643461234 [11:18:06]1041 (16) - 0000000000874692 [11:18:06]1040 (4) - 92421 [11:18:06]1012 (4) - 14.09.2024 05:04 [11:18:06]1206 (1) - 0 [11:18:06]OFD Sender: Remove packet 92421 [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00092421 [11:18:06]NVStorageDeleteData [11:18:06]Write to MH i2c: 01 00 00 FC 15 11 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 FC 15 00 00 00 00 00 21 0D 46 [11:18:06]RasterBufferAndPrint [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]written 0, free lines is 3366 [11:18:06]MH_Cut [11:18:06]Write to MH i2c: D1 01 00 03 16 01 EB [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 01 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 01 00 03 16 00 EA [11:18:06]Write to MH i2c: 01 00 00 04 16 1A [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:07]OFD Sender: No OFD packet to send [11:18:07]*** Cut start [11:18:07]*** Purtial cut [11:18:07]*** Stage 1: CUTSNS_PIN = 1 [11:18:09]Read from MH i2c: 01 [11:18:09]MH_I2C_Read... [11:18:09]*** Stop cut motor [11:18:09]*** Cut end [11:18:09]Read from MH i2c: 01 07 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: 01 07 00 04 16 00 00 00 00 00 FF 0F 2F [11:18:09]process_action close_receipt done [11:18:09]requested_data is exist [11:18:09]produce_requested_data [11:18:09]requested_item fm.sn is exist - process it [11:18:09]wFMCommunicate request_size=4 [11:18:09]MH_SAM_APDU [11:18:09]CAPDU: 80 11 00 00 [11:18:09]Write to MH i2c: E2 08 00 05 16 80 11 00 00 00 00 00 00 95 [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:09]Read from MH i2c: E2 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 17 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 17 00 05 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EC [11:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:18:09]wFMCommunicate OK [11:18:09]requested_item fd.num is exist - process it [11:18:09]SAM_PROTO_GetFieldsCounters [11:18:09]wFMCommunicate request_size=4 [11:18:09]MH_SAM_APDU [11:18:09]CAPDU: 80 13 00 00 [11:18:09]Write to MH i2c: E2 08 00 06 16 80 13 00 00 00 00 00 00 98 [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:09]Read from MH i2c: E2 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 62 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 62 00 06 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 05 69 01 00 0E 04 04 00 FA 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 F9 [11:18:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 05 69 01 00 0E 04 04 00 FA 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:18:09]wFMCommunicate OK [11:18:09]SAM_PROTO_GetFieldsCounters done [11:18:09]requested_item shift.num is exist - process it [11:18:09]requested_item shift.opened is exist - process it [11:18:09]req_shift_opened [11:18:09]FM_GetShiftState [11:18:09]SAM_PROTO_GetShiftState [11:18:09]wFMCommunicate request_size=4 [11:18:09]MH_SAM_APDU [11:18:09]CAPDU: 80 13 01 00 [11:18:09]Write to MH i2c: E2 08 00 07 16 80 13 01 00 00 00 00 00 9A [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:09]Read from MH i2c: E2 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 0E 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 0E 00 07 16 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 34 [11:18:09]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:18:09]wFMCommunicate OK [11:18:09]SAM_PROTO_GetShiftState done [11:18:09]FM_GetShiftState done [11:18:09]req_shift_opened done [11:18:09]requested_item shift.open_date is exist - process it [11:18:09]req_shift_open_date [11:18:09]req_shift_open_date done [11:18:09]produce_requested_data done [11:18:09]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92421,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:18:09]process_action_free close_receipt [11:18:09]json_value_free [11:18:09]json_value_free done [11:18:09]process_json_proto returns [11:18:09]Send response to host [11:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92421,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:18:09]free response buf [11:18:09]execute_script done [11:18:09]execute_script returns [11:18:09]free content buf [11:18:09]Sock 9.Close socket [11:18:09]Sock 9.Thread stoped [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:33]accept exits with 8 [11:26:33]New connection [11:26:33]New thread 3066658148 created [11:26:33]Thread 3066801508 joined [11:26:33]Waiting for new connection... [11:26:33] Sock 8.Parse request [11:26:33]Sock 8.Check first char [11:26:33]Sock 8.First char is OK [11:26:33]request: POST /json_proto HTTP/1.0 [11:26:33]Method: POST [11:26:33]URL: /json_proto [11:26:33]Method is POST - this is cgi request [11:26:33]url: /json_proto [11:26:33]query_string will be loaded in cgi processing [11:26:33]execute_cgi json_proto POST (null) [11:26:33]execute_cgi path=json_proto method=POST [11:26:33]POST find Content-Length [11:26:33]Host: 172.17.57.71:8080 [11:26:33]Content-Length: 620 [11:26:33]Content-Type: application/json [11:26:33] [11:26:33]POST finish read [11:26:33]Found Content-Length = 620 [11:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127333", "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" ] } } [11:26:33]execute_script... [11: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)127333", "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" ] } } [11:26:33]POST & json_proto [11:26:33]process_json_proto [11:26:33]json parsed OK: [11:26:33]protocol is kg_v1.0 [11:26:33]action value=close_receipt [11:26:33]process_action close_receipt [11:26:33]cmd_close_receipt [11:26:33]MH_GetDate [11:26:33]Write to MH i2c: F0 00 00 08 16 0D [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: F0 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: F0 09 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: F0 09 00 08 16 00 EC 72 E5 66 33 3A A4 66 36 [11:26:33]GetLastDocTimeStamp 1726312687 [11:26:33]current date 1726313196 [11:26:33]FM_GetShiftState [11:26:33]SAM_PROTO_GetShiftState [11:26:33]wFMCommunicate request_size=4 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 13 01 00 [11:26:33]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 0E 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 36 [11:26:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:26:33]wFMCommunicate OK [11:26:33]SAM_PROTO_GetShiftState done [11:26:33]FM_GetShiftState done [11:26:33]opened in 1726273389 [11:26:33]opened+sec_in_day 1726359789 [11:26:33]quantity*price = 13900 [11:26:33]sum+1 = 13901 [11:26:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 73 14.09.2024 11:26 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92422 ФПД: 191141764810270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T112636&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92422&fm=191141764810270&tin=02508201610067®Number=0000000000091423&sum=13900 0 [11:26:34]StoreToDocumentArchive [11:26:34]shift 506 fd 92422 [11:26:34]save to /storage/0506/doc_00092422 [11:26:34]save last doc name /storage/0506/doc_00092422 to /storage/kkm_last_doc_name [11:26:34]save OK [11:26:34]Clear old archive folders... [11:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:26:34]tlvbuf is 00F8E2C0 [11:26:34]SAM_PROTO_ClearQueue [11:26:34]wFMCommunicate request_size=4 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 09 00 00 [11:26:34]Write to MH i2c: E2 08 00 16 16 80 09 00 00 00 00 00 00 9E [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 16 16 00 90 00 A0 [11:26:34]RAPDU: 90 00 [11:26:34]wFMCommunicate OK [11:26:34]SAM_PROTO_ClearQueue done [11:26:34]KKMCreateOFDPacket [11:26:34]OFDProtocolAddRootSTLVToBuf [11:26:34]FM_MakeSignedData [11:26:34]FM_MakeSignedData [11:26:34]SAM_PROTO_SignData [11:26:34]wFMCommunicate request_size=4 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 0D 01 02 [11:26:34]Write to MH i2c: E2 08 00 17 16 80 0D 01 02 00 00 00 00 A6 [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 17 16 00 90 00 A1 [11:26:34]RAPDU: 90 00 [11:26:34]wFMCommunicate OK [11:26:34]wFMCommunicate request_size=255 [11:26:34]MH_SAM_APDU [11:26:34]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 49 00 00 00 F4 03 04 00 EC 72 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [11:26:34]Write to MH i2c: E2 02 01 18 16 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 49 00 00 00 F4 03 04 00 EC 72 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 BE [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [11:26:34]RAPDU: 90 00 [11:26:34]wFMCommunicate OK [11:26:34]wFMCommunicate request_size=31 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 06 69 01 00 35 04 06 00 AD D7 A8 FE 46 1E [11:26:34]Write to MH i2c: E2 22 00 19 16 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 06 69 01 00 35 04 06 00 AD D7 A8 FE 46 1E 00 00 D6 [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [11:26:35]RAPDU: 90 00 [11:26:35]wFMCommunicate OK [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 0D 03 02 [11:26:35]Write to MH i2c: E2 08 00 1A 16 80 0D 03 02 00 00 00 00 AB [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 0B 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 0B 00 1A 16 00 5B 59 D0 6B E0 B9 6F 0E 90 00 B1 [11:26:35]RAPDU: 5B 59 D0 6B E0 B9 6F 0E 90 00 [11:26:35]wFMCommunicate OK [11:26:35]SAM_PROTO_SignData done [11:26:35]FM_MakeSignedData done [11:26:35]CreateOFDProtocolMessage [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 11 00 00 [11:26:35]Write to MH i2c: E2 08 00 1B 16 80 11 00 00 00 00 00 00 AB [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 17 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 17 00 1B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 02 [11:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:26:35]wFMCommunicate OK [11:26:35]CreateOFDProtocolMessage done [11:26:35]OFDSenderStorePacket 92422 [11:26:35]StoreOFDPacket docnum=92422 [11:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 8B F6 1C 01 B5 A5 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 49 00 00 00 F4 03 04 00 EC 72 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 06 69 01 00 35 04 06 00 AD D7 A8 FE 46 1E 5B 59 D0 6B E0 B9 6F 0E [11:26:35]CheckFolder [11:26:35]dirname=/storage/ofd_packets [11:26:35]CheckFolder done [11:26:35]ProducePacketName [11:26:35]name=ofd_packets/00092422 [11:26:35]NVStorageSaveData ofd_packets/00092422 [11:26:35]File name is /storage/ofd_packets/00092422 [11:26:35]Write 322 bytes [11:26:35]NVStorageSaveData done [11:26:35]OFDSenderStorePacket done [11:26:35]KKMCreateOFDPacket done [11:26:35]NVStorageSaveData kkm_last_timestamp [11:26:35]File name is /storage/kkm_last_timestamp [11:26:35]Write 4 bytes [11:26:35]NVStorageSaveData done [11:26:35]ExternCall_PrintAddStr [11:26:35]wPrintStart [11:26:35]Write to MH i2c: 01 00 00 1C 16 32 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 07 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 07 00 1C 16 00 00 00 00 00 FF 0F 47 [11:26:35]RasterBufferAndPrint [11:26:35]line Счет N : (3)127333 [11:26:35]line ИНН: 02508201610067 [11:26:35]line Контрольно-Кассовый Чек [11:26:35]line ПРОДАЖА [11:26:35]line Товар: 48745000 [11:26:35]line Сигареты Winston Purple Mix [11:26:35]line 1.000 * 139.00 [11:26:35]line = 139.00 [11:26:35]line НДС 12% НСП 1% [11:26:35]line > о реализуемом товаре [11:26:35]line ИТОГО: 139.00 [11:26:35]line НСП 1% : 1.23 [11:26:35]line НДС 12% : 14.76 [11:26:35]line Наличными: 139.00 [11:26:35]line Безнал.: 0.00 [11:26:35]line Место: АЗС № 5 "Партнер Нефть" [11:26:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:26:35]line СНО: Общий режим [11:26:35]line Чек 73 14.09.2024 11:26 [11:26:35]line Смена: 506 ФФД: 1.0 [11:26:35]line ЗНМ: 03000000022 [11:26:35]line РНМ: 0000000000091423 [11:26:35]line Версия ККМ: 001 [11:26:35]line ФМ: 0000000000874692 [11:26:35]line ФД: 92422 [11:26:35]line ФПД: 191141764810270 [11:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T112636&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92422&fm=191141764810270&tin=02508201610067®Number=0000000000091423&sum=13900 [11:26:35]line 0 [11:26:35]OFD Sender: Processing packet 92422 [packets to send 63, broken 62] [11:26:35]ProducePacketName [11:26:35]name=ofd_packets/00092422 [11:26:35]OFD Sender: To server: pG, [11:26:35]CommunicateWithHost lk.salyk.kg:30040 [11:26:35]ConnectInit lk.salyk.kg [11:26:35]written 0, free lines is 4095 [11:26:35]Connected sock=10 [11: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 34 36 39 32 24 01 00 00 8B F6 1C 01 B5 A5 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 49 00 00 00 F4 03 04 00 EC 72 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 06 69 01 00 35 04 06 00 AD D7 A8 FE 46 1E 5B 59 D0 6B E0 B9 6F 0E [11:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 79 37 47 00 7C 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 06 69 01 00 F4 03 04 00 67 1B E5 66 B6 04 01 00 00 63 9F 48 A8 1A BD C3 E8 [11:26:35]CommunicateWithHost err = 0 [11:26:35]CheckOFDResponse [11:26:35]1017 (14) - 77093643461234 [11:26:35]1041 (16) - 0000000000874692 [11:26:35]1040 (4) - 92422 [11:26:35]1012 (4) - 14.09.2024 05:13 [11:26:35]1206 (1) - 0 [11:26:35]OFD Sender: Remove packet 92422 [11:26:35]ProducePacketName [11:26:35]name=ofd_packets/00092422 [11:26:35]NVStorageDeleteData [11:26:35]Write to MH i2c: 01 00 00 44 16 5A [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 07 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 07 00 44 16 00 00 00 00 00 1E 0D 8C [11:26:35]RasterBufferAndPrint [11:26:35]line [11:26:35]line [11:26:35]line [11:26:35]line [11:26:35]line [11:26:35]written 0, free lines is 3364 [11:26:35]MH_Cut [11:26:35]Write to MH i2c: D1 01 00 4B 16 01 33 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: D1 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: D1 01 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: D1 01 00 4B 16 00 32 [11:26:35]Write to MH i2c: 01 00 00 4C 16 62 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:36]OFD Sender: No OFD packet to send [11:26:36]*** Cut start [11:26:36]*** Purtial cut [11:26:36]*** Stage 1: CUTSNS_PIN = 1 [11:26:38]Read from MH i2c: 01 [11:26:38]MH_I2C_Read... [11:26:38]*** Stop cut motor [11:26:38]*** Cut end [11:26:38]Read from MH i2c: 01 07 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: 01 07 00 4C 16 00 00 00 00 00 FF 0F 77 [11:26:38]process_action close_receipt done [11:26:38]requested_data is exist [11:26:38]produce_requested_data [11:26:38]requested_item fm.sn is exist - process it [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 11 00 00 [11:26:38]Write to MH i2c: E2 08 00 4D 16 80 11 00 00 00 00 00 00 DD [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 17 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 17 00 4D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 34 [11:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:26:38]wFMCommunicate OK [11:26:38]requested_item fd.num is exist - process it [11:26:38]SAM_PROTO_GetFieldsCounters [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 13 00 00 [11:26:38]Write to MH i2c: E2 08 00 4E 16 80 13 00 00 00 00 00 00 E0 [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 62 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 62 00 4E 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 06 69 01 00 0E 04 04 00 FA 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 45 [11: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 06 69 01 00 0E 04 04 00 FA 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:26:38]wFMCommunicate OK [11:26:38]SAM_PROTO_GetFieldsCounters done [11:26:38]requested_item shift.num is exist - process it [11:26:38]requested_item shift.opened is exist - process it [11:26:38]req_shift_opened [11:26:38]FM_GetShiftState [11:26:38]SAM_PROTO_GetShiftState [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 13 01 00 [11:26:38]Write to MH i2c: E2 08 00 4F 16 80 13 01 00 00 00 00 00 E2 [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 0E 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 0E 00 4F 16 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7C [11:26:38]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:26:38]wFMCommunicate OK [11:26:38]SAM_PROTO_GetShiftState done [11:26:38]FM_GetShiftState done [11:26:38]req_shift_opened done [11:26:38]requested_item shift.open_date is exist - process it [11:26:38]req_shift_open_date [11:26:38]req_shift_open_date done [11:26:38]produce_requested_data done [11:26:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92422,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:26:38]process_action_free close_receipt [11:26:38]json_value_free [11:26:38]json_value_free done [11:26:38]process_json_proto returns [11:26:38]Send response to host [11:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92422,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:26:38]free response buf [11:26:38]execute_script done [11:26:38]execute_script returns [11:26:38]free content buf [11:26:38]Sock 8.Close socket [11:26:38]Sock 8.Thread stoped [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:30]accept exits with 9 [11:31:30]New connection [11:31:30]New thread 3066801508 created [11:31:30]Thread 3066658148 joined [11:31:30]Waiting for new connection... [11:31:30] Sock 9.Parse request [11:31:30]Sock 9.Check first char [11:31:30]Sock 9.First char is OK [11:31:30]request: POST /json_proto HTTP/1.0 [11:31:30]Method: POST [11:31:30]URL: /json_proto [11:31:30]Method is POST - this is cgi request [11:31:30]url: /json_proto [11:31:30]query_string will be loaded in cgi processing [11:31:30]execute_cgi json_proto POST (null) [11:31:30]execute_cgi path=json_proto method=POST [11:31:30]POST find Content-Length [11:31:30]Host: 172.17.57.71:8080 [11:31:30]Content-Length: 605 [11:31:30]Content-Type: application/json [11:31:30] [11:31:30]POST finish read [11:31:30]Found Content-Length = 605 [11:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127334", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:30]execute_script... [11:31:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127334", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:30]POST & json_proto [11:31:30]process_json_proto [11:31:30]json parsed OK: [11:31:30]protocol is kg_v1.0 [11:31:30]action value=close_receipt [11:31:30]process_action close_receipt [11:31:30]cmd_close_receipt [11:31:30]MH_GetDate [11:31:30]Write to MH i2c: F0 00 00 50 16 55 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: F0 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: F0 09 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: F0 09 00 50 16 00 15 74 E5 66 33 3A A4 66 A9 [11:31:30]GetLastDocTimeStamp 1726313196 [11:31:30]current date 1726313493 [11:31:30]FM_GetShiftState [11:31:30]SAM_PROTO_GetShiftState [11:31:30]wFMCommunicate request_size=4 [11:31:30]MH_SAM_APDU [11:31:30]CAPDU: 80 13 01 00 [11:31:30]Write to MH i2c: E2 08 00 51 16 80 13 01 00 00 00 00 00 E4 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:30]Read from MH i2c: E2 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 0E 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 0E 00 51 16 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7E [11:31:30]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:31:30]wFMCommunicate OK [11:31:30]SAM_PROTO_GetShiftState done [11:31:30]FM_GetShiftState done [11:31:30]opened in 1726273389 [11:31:30]opened+sec_in_day 1726359789 [11:31:30]quantity*price = 4500 [11:31:30]sum+1 = 4501 [11:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 74 14.09.2024 11:31 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92423 ФПД: 17319541178989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T113133&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92423&fm=17319541178989&tin=02508201610067®Number=0000000000091423&sum=4500 0 [11:31:31]StoreToDocumentArchive [11:31:31]shift 506 fd 92423 [11:31:31]save to /storage/0506/doc_00092423 [11:31:31]save last doc name /storage/0506/doc_00092423 to /storage/kkm_last_doc_name [11:31:31]save OK [11:31:31]Clear old archive folders... [11:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=260 [11:31:31]tlvbuf is 00F8E1D0 [11:31:31]SAM_PROTO_ClearQueue [11:31:31]wFMCommunicate request_size=4 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 09 00 00 [11:31:31]Write to MH i2c: E2 08 00 5E 16 80 09 00 00 00 00 00 00 E6 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 03 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 03 00 5E 16 00 90 00 E8 [11:31:31]RAPDU: 90 00 [11:31:31]wFMCommunicate OK [11:31:31]SAM_PROTO_ClearQueue done [11:31:31]KKMCreateOFDPacket [11:31:31]OFDProtocolAddRootSTLVToBuf [11:31:31]FM_MakeSignedData [11:31:31]FM_MakeSignedData [11:31:31]SAM_PROTO_SignData [11:31:31]wFMCommunicate request_size=4 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 0D 01 02 [11:31:31]Write to MH i2c: E2 08 00 5F 16 80 0D 01 02 00 00 00 00 EE [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]OFD Sender: No OFD packet to send [11:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 03 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [11:31:31]RAPDU: 90 00 [11:31:31]wFMCommunicate OK [11:31:31]wFMCommunicate request_size=255 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 15 74 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 [11:31:31]Write to MH i2c: E2 02 01 60 16 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 15 74 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 00 72 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 03 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 03 00 60 16 00 90 00 EA [11:31:31]RAPDU: 90 00 [11:31:31]wFMCommunicate OK [11:31:31]wFMCommunicate request_size=19 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 0D 02 02 0E 07 69 01 00 35 04 06 00 0F C0 85 19 82 6D [11:31:31]Write to MH i2c: E2 16 00 61 16 80 0D 02 02 0E 00 07 69 01 00 35 04 06 00 0F C0 85 19 82 6D 00 00 19 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 03 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 03 00 61 16 00 90 00 EB [11:31:31]RAPDU: 90 00 [11:31:31]wFMCommunicate OK [11:31:31]wFMCommunicate request_size=4 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 0D 03 02 [11:31:31]Write to MH i2c: E2 08 00 62 16 80 0D 03 02 00 00 00 00 F3 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 0B 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 0B 00 62 16 00 05 BF E8 11 85 9B C1 1E 90 00 B0 [11:31:31]RAPDU: 05 BF E8 11 85 9B C1 1E 90 00 [11:31:31]wFMCommunicate OK [11:31:31]SAM_PROTO_SignData done [11:31:31]FM_MakeSignedData done [11:31:31]CreateOFDProtocolMessage [11:31:31]wFMCommunicate request_size=4 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 11 00 00 [11:31:31]Write to MH i2c: E2 08 00 63 16 80 11 00 00 00 00 00 00 F3 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:32]Read from MH i2c: E2 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 17 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 17 00 63 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4A [11:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:31:32]wFMCommunicate OK [11:31:32]CreateOFDProtocolMessage done [11:31:32]OFDSenderStorePacket 92423 [11:31:32]StoreOFDPacket docnum=92423 [11:31:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 18 01 00 00 24 FA 10 01 D0 C4 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 15 74 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 07 69 01 00 35 04 06 00 0F C0 85 19 82 6D 05 BF E8 11 85 9B C1 1E [11:31:32]CheckFolder [11:31:32]dirname=/storage/ofd_packets [11:31:32]CheckFolder done [11:31:32]ProducePacketName [11:31:32]name=ofd_packets/00092423 [11:31:32]NVStorageSaveData ofd_packets/00092423 [11:31:32]File name is /storage/ofd_packets/00092423 [11:31:32]Write 310 bytes [11:31:32]NVStorageSaveData done [11:31:32]OFDSenderStorePacket done [11:31:32]KKMCreateOFDPacket done [11:31:32]NVStorageSaveData kkm_last_timestamp [11:31:32]File name is /storage/kkm_last_timestamp [11:31:32]Write 4 bytes [11:31:32]NVStorageSaveData done [11:31:32]ExternCall_PrintAddStr [11:31:32]wPrintStart [11:31:32]Write to MH i2c: 01 00 00 64 16 7A [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: 01 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: 01 07 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: 01 07 00 64 16 00 00 00 00 00 FF 0F 8F [11:31:32]RasterBufferAndPrint [11:31:32]line Счет N : (3)127334 [11:31:32]line ИНН: 02508201610067 [11:31:32]line Контрольно-Кассовый Чек [11:31:32]line ПРОДАЖА [11:31:32]line Товар: 42113270 [11:31:32]line Жев Orbit арбуз [11:31:32]line 1.000 * 45.00 [11:31:32]line = 45.00 [11:31:32]line НДС 12% НСП 1% [11:31:32]line > о реализуемом товаре [11:31:32]line ИТОГО: 45.00 [11:31:32]line НСП 1% : 0.40 [11:31:32]line НДС 12% : 4.78 [11:31:32]line Наличными: 45.00 [11:31:32]line Безнал.: 0.00 [11:31:32]line Место: АЗС № 5 "Партнер Нефть" [11:31:32]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:31:32]line СНО: Общий режим [11:31:32]line Чек 74 14.09.2024 11:31 [11:31:32]line Смена: 506 ФФД: 1.0 [11:31:32]line ЗНМ: 03000000022 [11:31:32]line РНМ: 0000000000091423 [11:31:32]line Версия ККМ: 001 [11:31:32]line ФМ: 0000000000874692 [11:31:32]line ФД: 92423 [11:31:32]line ФПД: 17319541178989 [11:31:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T113133&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92423&fm=17319541178989&tin=02508201610067®Number=0000000000091423&sum=4500 [11:31:32]line 0 [11:31:32]OFD Sender: Processing packet 92423 [packets to send 63, broken 62] [11:31:32]ProducePacketName [11:31:32]name=ofd_packets/00092423 [11:31:32]OFD Sender: To server: pG, [11:31:32]CommunicateWithHost lk.salyk.kg:30040 [11:31:32]ConnectInit lk.salyk.kg [11:31:32]written 0, free lines is 4095 [11:31:32]Connected sock=10 [11:31:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 18 01 00 00 24 FA 10 01 D0 C4 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 15 74 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 07 69 01 00 35 04 06 00 0F C0 85 19 82 6D 05 BF E8 11 85 9B C1 1E [11:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2F 51 47 00 82 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 07 69 01 00 F4 03 04 00 90 1C E5 66 B6 04 01 00 00 AE 37 B4 B4 53 07 6E 95 [11:31:32]CommunicateWithHost err = 0 [11:31:32]CheckOFDResponse [11:31:32]1017 (14) - 77093643461234 [11:31:32]1041 (16) - 0000000000874692 [11:31:32]1040 (4) - 92423 [11:31:32]1012 (4) - 14.09.2024 05:18 [11:31:32]1206 (1) - 0 [11:31:32]OFD Sender: Remove packet 92423 [11:31:32]ProducePacketName [11:31:32]name=ofd_packets/00092423 [11:31:32]NVStorageDeleteData [11:31:32]Write to MH i2c: 01 00 00 8C 16 A2 [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: 01 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: 01 07 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: 01 07 00 8C 16 00 00 00 00 00 08 0D BE [11:31:32]RasterBufferAndPrint [11:31:32]line [11:31:32]line [11:31:32]line [11:31:32]line [11:31:32]line [11:31:32]written 0, free lines is 3343 [11:31:32]MH_Cut [11:31:32]Write to MH i2c: D1 01 00 93 16 01 7B [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: D1 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: D1 01 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: D1 01 00 93 16 00 7A [11:31:32]Write to MH i2c: 01 00 00 94 16 AA [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:33]OFD Sender: No OFD packet to send [11:31:33]*** Cut start [11:31:33]*** Purtial cut [11:31:33]*** Stage 1: CUTSNS_PIN = 1 [11:31:35]Read from MH i2c: 01 [11:31:35]MH_I2C_Read... [11:31:35]*** Stop cut motor [11:31:35]*** Cut end [11:31:35]Read from MH i2c: 01 07 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 FF 0F BF [11:31:35]process_action close_receipt done [11:31:35]requested_data is exist [11:31:35]produce_requested_data [11:31:35]requested_item fm.sn is exist - process it [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 11 00 00 [11:31:35]Write to MH i2c: E2 08 00 95 16 80 11 00 00 00 00 00 00 25 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 17 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 17 00 95 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7C [11:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:31:35]wFMCommunicate OK [11:31:35]requested_item fd.num is exist - process it [11:31:35]SAM_PROTO_GetFieldsCounters [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 13 00 00 [11:31:35]Write to MH i2c: E2 08 00 96 16 80 13 00 00 00 00 00 00 28 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 62 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 62 00 96 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 07 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [11:31:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 07 69 01 00 0E 04 04 00 FA 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:31:35]wFMCommunicate OK [11:31:35]SAM_PROTO_GetFieldsCounters done [11:31:35]requested_item shift.num is exist - process it [11:31:35]requested_item shift.opened is exist - process it [11:31:35]req_shift_opened [11:31:35]FM_GetShiftState [11:31:35]SAM_PROTO_GetShiftState [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 13 01 00 [11:31:35]Write to MH i2c: E2 08 00 97 16 80 13 01 00 00 00 00 00 2A [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 0E 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 0E 00 97 16 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C4 [11:31:35]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:31:35]wFMCommunicate OK [11:31:35]SAM_PROTO_GetShiftState done [11:31:35]FM_GetShiftState done [11:31:35]req_shift_opened done [11:31:35]requested_item shift.open_date is exist - process it [11:31:35]req_shift_open_date [11:31:35]req_shift_open_date done [11:31:35]produce_requested_data done [11:31:35]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92423,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:31:35]process_action_free close_receipt [11:31:35]json_value_free [11:31:35]json_value_free done [11:31:35]process_json_proto returns [11:31:35]Send response to host [11:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92423,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:31:35]free response buf [11:31:35]execute_script done [11:31:35]execute_script returns [11:31:35]free content buf [11:31:35]Sock 9.Close socket [11:31:35]Sock 9.Thread stoped [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:34:59]accept exits with 8 [11:34:59]New connection [11:34:59]New thread 3066658148 created [11:34:59]Thread 3066801508 joined [11:34:59]Waiting for new connection... [11:34:59] Sock 8.Parse request [11:34:59]Sock 8.Check first char [11:34:59]Sock 8.First char is OK [11:34:59]request: POST /json_proto HTTP/1.0 [11:34:59]Method: POST [11:34:59]URL: /json_proto [11:34:59]Method is POST - this is cgi request [11:34:59]url: /json_proto [11:34:59]query_string will be loaded in cgi processing [11:34:59]execute_cgi json_proto POST (null) [11:34:59]execute_cgi path=json_proto method=POST [11:34:59]POST find Content-Length [11:34:59]Host: 172.17.57.71:8080 [11:34:59]Content-Length: 916 [11:34:59]Content-Type: application/json [11:34:59] [11:34:59]POST finish read [11:34:59]Found Content-Length = 916 [11:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127335", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:59]execute_script... [11:34: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)127335", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:59]POST & json_proto [11:34:59]process_json_proto [11:34:59]json parsed OK: [11:34:59]protocol is kg_v1.0 [11:34:59]action value=close_receipt [11:34:59]process_action close_receipt [11:34:59]cmd_close_receipt [11:34:59]MH_GetDate [11:34:59]Write to MH i2c: F0 00 00 98 16 9D [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: F0 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: F0 09 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: F0 09 00 98 16 00 E6 74 E5 66 33 3A A4 66 C2 [11:34:59]GetLastDocTimeStamp 1726313493 [11:34:59]current date 1726313702 [11:34:59]FM_GetShiftState [11:34:59]SAM_PROTO_GetShiftState [11:34:59]wFMCommunicate request_size=4 [11:34:59]MH_SAM_APDU [11:34:59]CAPDU: 80 13 01 00 [11:34:59]Write to MH i2c: E2 08 00 99 16 80 13 01 00 00 00 00 00 2C [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:59]Read from MH i2c: E2 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 0E 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: E2 0E 00 99 16 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C6 [11:34:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:34:59]wFMCommunicate OK [11:34:59]SAM_PROTO_GetShiftState done [11:34:59]FM_GetShiftState done [11:34:59]opened in 1726273389 [11:34:59]opened+sec_in_day 1726359789 [11:34:59]quantity*price = 9500 [11:34:59]sum+1 = 9501 [11:34:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 75 14.09.2024 11:35 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92424 ФПД: 24162020410202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T113502&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92424&fm=24162020410202&tin=02508201610067®Number=0000000000091423&sum=9500 0 [11:35:00]StoreToDocumentArchive [11:35:00]shift 506 fd 92424 [11:35:00]save to /storage/0506/doc_00092424 [11:35:00]save last doc name /storage/0506/doc_00092424 to /storage/kkm_last_doc_name [11:35:00]save OK [11:35:00]Clear old archive folders... [11:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=313 [11:35:00]tlvbuf is 00FCB460 [11:35:00]SAM_PROTO_ClearQueue [11:35:00]wFMCommunicate request_size=4 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 09 00 00 [11:35:00]Write to MH i2c: E2 08 00 A6 16 80 09 00 00 00 00 00 00 2E [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:00]Read from MH i2c: E2 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 03 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 03 00 A6 16 00 90 00 30 [11:35:00]RAPDU: 90 00 [11:35:00]wFMCommunicate OK [11:35:00]SAM_PROTO_ClearQueue done [11:35:00]KKMCreateOFDPacket [11:35:00]OFDProtocolAddRootSTLVToBuf [11:35:00]FM_MakeSignedData [11:35:00]FM_MakeSignedData [11:35:00]SAM_PROTO_SignData [11:35:00]wFMCommunicate request_size=4 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 0D 01 02 [11:35:00]Write to MH i2c: E2 08 00 A7 16 80 0D 01 02 00 00 00 00 36 [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:00]Read from MH i2c: E2 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 03 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [11:35:00]RAPDU: 90 00 [11:35:00]wFMCommunicate OK [11:35:00]wFMCommunicate request_size=255 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 0D 02 02 FA 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 E6 74 E5 66 0E 04 04 00 [11:35:00]Write to MH i2c: E2 02 01 A8 16 80 0D 02 02 FA 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 E6 74 E5 66 0E 04 04 00 00 00 15 [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:00]Read from MH i2c: E2 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 03 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 03 00 A8 16 00 90 00 32 [11:35:00]RAPDU: 90 00 [11:35:00]wFMCommunicate OK [11:35:00]wFMCommunicate request_size=72 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 0D 02 02 43 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 69 01 00 35 04 06 00 15 F9 A8 A4 C3 5A [11:35:00]Write to MH i2c: E2 4B 00 A9 16 80 0D 02 02 43 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 69 01 00 35 04 06 00 15 F9 A8 A4 C3 5A 00 00 36 [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:00]Read from MH i2c: E2 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 03 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [11:35:00]RAPDU: 90 00 [11:35:00]wFMCommunicate OK [11:35:00]wFMCommunicate request_size=4 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 0D 03 02 [11:35:00]Write to MH i2c: E2 08 00 AA 16 80 0D 03 02 00 00 00 00 3B [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0B 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0B 00 AA 16 00 8B CE 1A F0 96 6E 09 9A 90 00 46 [11:35:01]RAPDU: 8B CE 1A F0 96 6E 09 9A 90 00 [11:35:01]wFMCommunicate OK [11:35:01]SAM_PROTO_SignData done [11:35:01]FM_MakeSignedData done [11:35:01]CreateOFDProtocolMessage [11:35:01]wFMCommunicate request_size=4 [11:35:01]MH_SAM_APDU [11:35:01]CAPDU: 80 11 00 00 [11:35:01]Write to MH i2c: E2 08 00 AB 16 80 11 00 00 00 00 00 00 3B [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 17 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 17 00 AB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 92 [11:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:35:01]wFMCommunicate OK [11:35:01]CreateOFDProtocolMessage done [11:35:01]OFDSenderStorePacket 92424 [11:35:01]StoreOFDPacket docnum=92424 [11:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4D 01 00 00 95 77 45 01 35 89 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 E6 74 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 69 01 00 35 04 06 00 15 F9 A8 A4 C3 5A 8B CE 1A F0 96 6E 09 9A [11:35:01]CheckFolder [11:35:01]dirname=/storage/ofd_packets [11:35:01]CheckFolder done [11:35:01]ProducePacketName [11:35:01]name=ofd_packets/00092424 [11:35:01]NVStorageSaveData ofd_packets/00092424 [11:35:01]File name is /storage/ofd_packets/00092424 [11:35:01]Write 363 bytes [11:35:01]NVStorageSaveData done [11:35:01]OFDSenderStorePacket done [11:35:01]KKMCreateOFDPacket done [11:35:01]NVStorageSaveData kkm_last_timestamp [11:35:01]File name is /storage/kkm_last_timestamp [11:35:01]Write 4 bytes [11:35:01]NVStorageSaveData done [11:35:01]ExternCall_PrintAddStr [11:35:01]wPrintStart [11:35:01]Write to MH i2c: 01 00 00 AC 16 C2 [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: 01 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: 01 07 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: 01 07 00 AC 16 00 00 00 00 00 FF 0F D7 [11:35:01]RasterBufferAndPrint [11:35:01]line Счет N : (3)127335 [11:35:01]line ИНН: 02508201610067 [11:35:01]line Контрольно-Кассовый Чек [11:35:01]line ПРОДАЖА [11:35:01]line Товар: 4700000483297 [11:35:01]line Энергетический напиток Nitro Ананас-гуав [11:35:01]line 1.000 * 95.00 [11:35:01]line = 95.00 [11:35:01]line НДС 12% НСП 1% [11:35:01]line > о реализуемом товаре [11:35:01]line ИТОГО: 95.00 [11:35:01]line НСП 1% : 0.84 [11:35:01]line НДС 12% : 10.09 [11:35:01]line Наличными: 0.00 [11:35:01]line Безнал.: 95.00 [11:35:01]line Место: АЗС № 5 "Партнер Нефть" [11:35:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:35:01]line СНО: Общий режим [11:35:01]line Чек 75 14.09.2024 11:35 [11:35:01]line Смена: 506 ФФД: 1.0 [11:35:01]line ЗНМ: 03000000022 [11:35:01]line РНМ: 0000000000091423 [11:35:01]line Версия ККМ: 001 [11:35:01]line Платежная система: О! деньги [11:35:01]line ФМ: 0000000000874692 [11:35:01]line ФД: 92424 [11:35:01]line ФПД: 24162020410202 [11:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T113502&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92424&fm=24162020410202&tin=02508201610067®Number=0000000000091423&sum=9500 [11:35:01]line 0 [11:35:01]OFD Sender: Processing packet 92424 [packets to send 63, broken 62] [11:35:01]ProducePacketName [11:35:01]name=ofd_packets/00092424 [11:35:01]OFD Sender: To server: pG, [11:35:01]CommunicateWithHost lk.salyk.kg:30040 [11:35:01]ConnectInit lk.salyk.kg [11:35:01]written 0, free lines is 4095 [11:35:01]Connected sock=10 [11:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4D 01 00 00 95 77 45 01 35 89 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 E6 74 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 69 01 00 35 04 06 00 15 F9 A8 A4 C3 5A 8B CE 1A F0 96 6E 09 9A [11:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CA EE 47 00 1F 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 08 69 01 00 F4 03 04 00 61 1D E5 66 B6 04 01 00 00 E4 3A CD 57 0C 3B CD 1C [11:35:01]CommunicateWithHost err = 0 [11:35:01]CheckOFDResponse [11:35:01]1017 (14) - 77093643461234 [11:35:01]1041 (16) - 0000000000874692 [11:35:01]1040 (4) - 92424 [11:35:01]1012 (4) - 14.09.2024 05:21 [11:35:01]1206 (1) - 0 [11:35:01]OFD Sender: Remove packet 92424 [11:35:01]ProducePacketName [11:35:01]name=ofd_packets/00092424 [11:35:01]NVStorageDeleteData [11:35:01]Write to MH i2c: 01 00 00 D7 16 ED [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: 01 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: 01 07 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: 01 07 00 D7 16 00 00 00 00 00 E9 0C E9 [11:35:01]RasterBufferAndPrint [11:35:01]line [11:35:01]line [11:35:01]line [11:35:01]line [11:35:01]line [11:35:01]written 0, free lines is 3312 [11:35:01]MH_Cut [11:35:01]Write to MH i2c: D1 01 00 DE 16 01 C6 [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: D1 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: D1 01 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: D1 01 00 DE 16 00 C5 [11:35:01]Write to MH i2c: 01 00 00 DF 16 F5 [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:02]OFD Sender: No OFD packet to send [11:35:02]*** Cut start [11:35:02]*** Purtial cut [11:35:02]*** Stage 1: CUTSNS_PIN = 1 [11:35:04]Read from MH i2c: 01 [11:35:04]MH_I2C_Read... [11:35:04]*** Stop cut motor [11:35:04]*** Cut end [11:35:04]Read from MH i2c: 01 07 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 FF 0F 0A [11:35:04]process_action close_receipt done [11:35:04]requested_data is exist [11:35:04]produce_requested_data [11:35:04]requested_item fm.sn is exist - process it [11:35:04]wFMCommunicate request_size=4 [11:35:04]MH_SAM_APDU [11:35:04]CAPDU: 80 11 00 00 [11:35:04]Write to MH i2c: E2 08 00 E0 16 80 11 00 00 00 00 00 00 70 [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:04]Read from MH i2c: E2 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: E2 17 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: E2 17 00 E0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C7 [11:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:35:04]wFMCommunicate OK [11:35:04]requested_item fd.num is exist - process it [11:35:04]SAM_PROTO_GetFieldsCounters [11:35:04]wFMCommunicate request_size=4 [11:35:04]MH_SAM_APDU [11:35:04]CAPDU: 80 13 00 00 [11:35:04]Write to MH i2c: E2 08 00 E1 16 80 13 00 00 00 00 00 00 73 [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:04]Read from MH i2c: E2 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: E2 62 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: E2 62 00 E1 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 08 69 01 00 0E 04 04 00 FA 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 E0 [11:35:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 08 69 01 00 0E 04 04 00 FA 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:35:04]wFMCommunicate OK [11:35:04]SAM_PROTO_GetFieldsCounters done [11:35:04]requested_item shift.num is exist - process it [11:35:04]requested_item shift.opened is exist - process it [11:35:04]req_shift_opened [11:35:04]FM_GetShiftState [11:35:04]SAM_PROTO_GetShiftState [11:35:04]wFMCommunicate request_size=4 [11:35:04]MH_SAM_APDU [11:35:04]CAPDU: 80 13 01 00 [11:35:04]Write to MH i2c: E2 08 00 E2 16 80 13 01 00 00 00 00 00 75 [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:04]Read from MH i2c: E2 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: E2 0E 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: E2 0E 00 E2 16 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0F [11:35:04]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:35:04]wFMCommunicate OK [11:35:04]SAM_PROTO_GetShiftState done [11:35:04]FM_GetShiftState done [11:35:04]req_shift_opened done [11:35:04]requested_item shift.open_date is exist - process it [11:35:04]req_shift_open_date [11:35:04]req_shift_open_date done [11:35:04]produce_requested_data done [11:35:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92424,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:35:04]process_action_free close_receipt [11:35:04]json_value_free [11:35:04]json_value_free done [11:35:04]process_json_proto returns [11:35:04]Send response to host [11:35:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92424,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:35:04]free response buf [11:35:04]execute_script done [11:35:04]execute_script returns [11:35:04]free content buf [11:35:04]Sock 8.Close socket [11:35:04]Sock 8.Thread stoped [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:47]accept exits with 9 [11:35:47]New connection [11:35:47]New thread 3066801508 created [11:35:47]Thread 3066658148 joined [11:35:47]Waiting for new connection... [11:35:47] Sock 9.Parse request [11:35:47]Sock 9.Check first char [11:35:47]Sock 9.First char is OK [11:35:47]request: POST /json_proto HTTP/1.0 [11:35:47]Method: POST [11:35:47]URL: /json_proto [11:35:47]Method is POST - this is cgi request [11:35:47]url: /json_proto [11:35:47]query_string will be loaded in cgi processing [11:35:47]execute_cgi json_proto POST (null) [11:35:47]execute_cgi path=json_proto method=POST [11:35:47]POST find Content-Length [11:35:47]Host: 172.17.57.71:8080 [11:35:47]Content-Length: 816 [11:35:47]Content-Type: application/json [11:35:47] [11:35:47]POST finish read [11:35:47]Found Content-Length = 816 [11:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:47]execute_script... [11:35:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:47]POST & json_proto [11:35:47]process_json_proto [11:35:47]json parsed OK: [11:35:47]protocol is kg_v1.0 [11:35:47]action value=close_receipt [11:35:47]process_action close_receipt [11:35:47]cmd_close_receipt [11:35:47]MH_GetDate [11:35:47]Write to MH i2c: F0 00 00 E3 16 E8 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: F0 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: F0 09 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: F0 09 00 E3 16 00 16 75 E5 66 33 3A A4 66 3E [11:35:47]GetLastDocTimeStamp 1726313702 [11:35:47]current date 1726313750 [11:35:47]FM_GetShiftState [11:35:47]SAM_PROTO_GetShiftState [11:35:47]wFMCommunicate request_size=4 [11:35:47]MH_SAM_APDU [11:35:47]CAPDU: 80 13 01 00 [11:35:47]Write to MH i2c: E2 08 00 E4 16 80 13 01 00 00 00 00 00 77 [11:35:47]Write i2c OK [11:35:47]MH_I2C_Read... [11:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:47]Read from MH i2c: E2 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 0E 00 [11:35:47]MH_I2C_Read... [11:35:47]Read from MH i2c: E2 0E 00 E4 16 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 11 [11:35:47]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:35:47]wFMCommunicate OK [11:35:47]SAM_PROTO_GetShiftState done [11:35:47]FM_GetShiftState done [11:35:47]opened in 1726273389 [11:35:47]opened+sec_in_day 1726359789 [11:35:47]quantity*price = 50041 [11:35:47]sum+1 = 50042 [11:35:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 76 14.09.2024 11:35 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92425 ФПД: 263074117158884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T113550&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92425&fm=263074117158884&tin=02508201610067®Number=0000000000091423&sum=50041 [11:35:48]StoreToDocumentArchive [11:35:48]shift 506 fd 92425 [11:35:48]save to /storage/0506/doc_00092425 [11:35:48]save last doc name /storage/0506/doc_00092425 to /storage/kkm_last_doc_name [11:35:48]save OK [11:35:48]Clear old archive folders... [11:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:48]tlvbuf is 00F8E710 [11:35:48]SAM_PROTO_ClearQueue [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 09 00 00 [11:35:48]Write to MH i2c: E2 08 00 F1 16 80 09 00 00 00 00 00 00 79 [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 F1 16 00 90 00 7B [11:35:48]RAPDU: 90 00 [11:35:48]wFMCommunicate OK [11:35:48]SAM_PROTO_ClearQueue done [11:35:48]KKMCreateOFDPacket [11:35:48]OFDProtocolAddRootSTLVToBuf [11:35:48]FM_MakeSignedData [11:35:48]FM_MakeSignedData [11:35:48]SAM_PROTO_SignData [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 0D 01 02 [11:35:48]Write to MH i2c: E2 08 00 F2 16 80 0D 01 02 00 00 00 00 81 [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 F2 16 00 90 00 7C [11:35:48]RAPDU: 90 00 [11:35:48]wFMCommunicate OK [11:35:48]wFMCommunicate request_size=255 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 16 75 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 69 01 00 35 04 06 00 EF [11:35:48]Write to MH i2c: E2 02 01 F3 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 16 75 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 69 01 00 35 04 06 00 EF 00 00 DF [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 F3 16 00 90 00 7D [11:35:49]RAPDU: 90 00 [11:35:49]wFMCommunicate OK [11:35:49]wFMCommunicate request_size=10 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 0D 02 02 05 43 B7 4D 87 E4 [11:35:49]Write to MH i2c: E2 0D 00 F4 16 80 0D 02 02 05 00 43 B7 4D 87 E4 00 00 40 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 03 00 F4 16 00 90 00 7E [11:35:49]RAPDU: 90 00 [11:35:49]wFMCommunicate OK [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 0D 03 02 [11:35:49]Write to MH i2c: E2 08 00 F5 16 80 0D 03 02 00 00 00 00 86 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0B 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0B 00 F5 16 00 AF E7 AD BC FB 98 19 CC 90 00 FE [11:35:49]RAPDU: AF E7 AD BC FB 98 19 CC 90 00 [11:35:49]wFMCommunicate OK [11:35:49]SAM_PROTO_SignData done [11:35:49]FM_MakeSignedData done [11:35:49]CreateOFDProtocolMessage [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 11 00 00 [11:35:49]Write to MH i2c: E2 08 00 F6 16 80 11 00 00 00 00 00 00 86 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 17 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 17 00 F6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [11:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:35:49]wFMCommunicate OK [11:35:49]CreateOFDProtocolMessage done [11:35:49]OFDSenderStorePacket 92425 [11:35:49]StoreOFDPacket docnum=92425 [11:35:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 68 7C 07 01 7A A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 16 75 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 69 01 00 35 04 06 00 EF 43 B7 4D 87 E4 AF E7 AD BC FB 98 19 CC [11:35:49]CheckFolder [11:35:49]dirname=/storage/ofd_packets [11:35:49]CheckFolder done [11:35:49]ProducePacketName [11:35:49]name=ofd_packets/00092425 [11:35:49]NVStorageSaveData ofd_packets/00092425 [11:35:49]File name is /storage/ofd_packets/00092425 [11:35:49]Write 301 bytes [11:35:49]NVStorageSaveData done [11:35:49]OFDSenderStorePacket done [11:35:49]KKMCreateOFDPacket done [11:35:49]NVStorageSaveData kkm_last_timestamp [11:35:49]File name is /storage/kkm_last_timestamp [11:35:49]Write 4 bytes [11:35:49]NVStorageSaveData done [11:35:49]ExternCall_PrintAddStr [11:35:49]wPrintStart [11:35:49]Write to MH i2c: 01 00 00 F7 16 0D [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 07 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 07 00 F7 16 00 00 00 00 00 FF 0F 22 [11:35:49]RasterBufferAndPrint [11:35:49]line Счет N : (1)647449 [11:35:49]line ИНН: 02508201610067 [11:35:49]line Контрольно-Кассовый Чек [11:35:49]line ПРОДАЖА [11:35:49]line ТРК (МРК, ГНК) : 13 [11:35:49]line Товар: 2710124130 [11:35:49]line Аи-92-К-5 [11:35:49]line 7.480 * 66.90 [11:35:49]line = 500.41 [11:35:49]line НДС 12% НСП 1% [11:35:49]line > о реализуемом товаре [11:35:49]line ИТОГО: 500.41 [11:35:49]line НСП 1% : 4.43 [11:35:49]line НДС 12% : 53.14 [11:35:49]line Наличными: 0.00 [11:35:49]line Безнал.: 500.41 [11:35:49]line Место: АЗС № 5 "Партнер Нефть" [11:35:49]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:35:49]line СНО: Общий режим [11:35:49]line Чек 76 14.09.2024 11:35 [11:35:49]line Смена: 506 ФФД: 1.0 [11:35:49]line ЗНМ: 03000000022 [11:35:49]line РНМ: 0000000000091423 [11:35:49]line Версия ККМ: 001 [11:35:49]line Платежная система: Бакай Банк [11:35:49]line ФМ: 0000000000874692 [11:35:49]line ФД: 92425 [11:35:49]line ФПД: 263074117158884 [11:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T113550&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92425&fm=263074117158884&tin=02508201610067®Number=0000000000091423&sum=50041 [11:35:49]written 0, free lines is 4095 [11:35:49]OFD Sender: Processing packet 92425 [packets to send 63, broken 62] [11:35:49]ProducePacketName [11:35:49]name=ofd_packets/00092425 [11:35:49]OFD Sender: To server: pG, [11:35:49]CommunicateWithHost lk.salyk.kg:30040 [11:35:49]ConnectInit lk.salyk.kg [11:35:49]Connected sock=10 [11: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 34 36 39 32 0F 01 00 00 68 7C 07 01 7A A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 16 75 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 69 01 00 35 04 06 00 EF 43 B7 4D 87 E4 AF E7 AD BC FB 98 19 CC [11:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4A 5D 47 00 AD 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 09 69 01 00 F4 03 04 00 91 1D E5 66 B6 04 01 00 00 E0 4D D0 4A D6 DF 27 5E [11:35:49]CommunicateWithHost err = 0 [11:35:49]CheckOFDResponse [11:35:49]1017 (14) - 77093643461234 [11:35:49]1041 (16) - 0000000000874692 [11:35:49]1040 (4) - 92425 [11:35:49]1012 (4) - 14.09.2024 05:22 [11:35:49]1206 (1) - 0 [11:35:49]OFD Sender: Remove packet 92425 [11:35:49]ProducePacketName [11:35:49]name=ofd_packets/00092425 [11:35:49]NVStorageDeleteData [11:35:49]Write to MH i2c: 01 00 00 21 17 38 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 07 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 07 00 21 17 00 00 00 00 00 F8 0C 43 [11:35:49]RasterBufferAndPrint [11:35:49]line [11:35:49]line [11:35:49]line [11:35:49]line [11:35:49]line [11:35:49]written 0, free lines is 3327 [11:35:49]MH_Cut [11:35:49]Write to MH i2c: D1 01 00 28 17 01 11 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: D1 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: D1 01 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: D1 01 00 28 17 00 10 [11:35:49]Write to MH i2c: 01 00 00 29 17 40 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:50]OFD Sender: No OFD packet to send [11:35:50]*** Cut start [11:35:50]*** Purtial cut [11:35:50]*** Stage 1: CUTSNS_PIN = 1 [11:35:52]Read from MH i2c: 01 [11:35:52]MH_I2C_Read... [11:35:52]*** Stop cut motor [11:35:52]*** Cut end [11:35:52]Read from MH i2c: 01 07 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: 01 07 00 29 17 00 00 00 00 00 FF 0F 55 [11:35:52]process_action close_receipt done [11:35:52]requested_data is exist [11:35:52]produce_requested_data [11:35:52]requested_item fm.sn is exist - process it [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 11 00 00 [11:35:52]Write to MH i2c: E2 08 00 2A 17 80 11 00 00 00 00 00 00 BB [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 17 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 17 00 2A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 12 [11:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:35:52]wFMCommunicate OK [11:35:52]requested_item fd.num is exist - process it [11:35:52]SAM_PROTO_GetFieldsCounters [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 13 00 00 [11:35:52]Write to MH i2c: E2 08 00 2B 17 80 13 00 00 00 00 00 00 BE [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 62 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 62 00 2B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 09 69 01 00 0E 04 04 00 FA 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 2F [11:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 09 69 01 00 0E 04 04 00 FA 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:35:52]wFMCommunicate OK [11:35:52]SAM_PROTO_GetFieldsCounters done [11:35:52]requested_item shift.num is exist - process it [11:35:52]requested_item shift.opened is exist - process it [11:35:52]req_shift_opened [11:35:52]FM_GetShiftState [11:35:52]SAM_PROTO_GetShiftState [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 13 01 00 [11:35:52]Write to MH i2c: E2 08 00 2C 17 80 13 01 00 00 00 00 00 C0 [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 0E 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 0E 00 2C 17 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5A [11:35:52]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:35:52]wFMCommunicate OK [11:35:52]SAM_PROTO_GetShiftState done [11:35:52]FM_GetShiftState done [11:35:52]req_shift_opened done [11:35:52]requested_item shift.open_date is exist - process it [11:35:52]req_shift_open_date [11:35:52]req_shift_open_date done [11:35:52]produce_requested_data done [11:35:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92425,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:35:52]process_action_free close_receipt [11:35:52]json_value_free [11:35:52]json_value_free done [11:35:52]process_json_proto returns [11:35:52]Send response to host [11:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92425,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:35:52]free response buf [11:35:52]execute_script done [11:35:52]execute_script returns [11:35:52]free content buf [11:35:52]Sock 9.Close socket [11:35:52]Sock 9.Thread stoped [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:34]accept exits with 8 [11:38:34]New connection [11:38:34]New thread 3066658148 created [11:38:34]Thread 3066801508 joined [11:38:34]Waiting for new connection... [11:38:34] Sock 8.Parse request [11:38:34]Sock 8.Check first char [11:38:34]Sock 8.First char is OK [11:38:34]request: POST /json_proto HTTP/1.0 [11:38:34]Method: POST [11:38:34]URL: /json_proto [11:38:34]Method is POST - this is cgi request [11:38:34]url: /json_proto [11:38:34]query_string will be loaded in cgi processing [11:38:34]execute_cgi json_proto POST (null) [11:38:34]execute_cgi path=json_proto method=POST [11:38:34]POST find Content-Length [11:38:34]Host: 172.17.57.71:8080 [11:38:34]Content-Length: 654 [11:38:34]Content-Type: application/json [11:38:34] [11:38:34]POST finish read [11:38:34]Found Content-Length = 654 [11:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127336", "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" ] } } [11:38:34]execute_script... [11: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)127336", "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" ] } } [11:38:34]POST & json_proto [11:38:34]process_json_proto [11:38:34]json parsed OK: [11:38:34]protocol is kg_v1.0 [11:38:34]action value=close_receipt [11:38:34]process_action close_receipt [11:38:34]cmd_close_receipt [11:38:34]MH_GetDate [11:38:34]Write to MH i2c: F0 00 00 2D 17 33 [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: F0 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: F0 09 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: F0 09 00 2D 17 00 BD 75 E5 66 33 3A A4 66 30 [11:38:34]GetLastDocTimeStamp 1726313750 [11:38:34]current date 1726313917 [11:38:34]FM_GetShiftState [11:38:34]SAM_PROTO_GetShiftState [11:38:34]wFMCommunicate request_size=4 [11:38:34]MH_SAM_APDU [11:38:34]CAPDU: 80 13 01 00 [11:38:34]Write to MH i2c: E2 08 00 2E 17 80 13 01 00 00 00 00 00 C2 [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:34]Read from MH i2c: E2 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 0E 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 0E 00 2E 17 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5C [11:38:34]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:38:34]wFMCommunicate OK [11:38:34]SAM_PROTO_GetShiftState done [11:38:34]FM_GetShiftState done [11:38:34]opened in 1726273389 [11:38:34]opened+sec_in_day 1726359789 [11:38:34]quantity*price = 7700 [11:38:34]sum+1 = 7701 [11:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 77 14.09.2024 11:38 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92426 ФПД: 155762877687778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T113837&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92426&fm=155762877687778&tin=02508201610067®Number=0000000000091423&sum=7700 0 [11:38:35]StoreToDocumentArchive [11:38:35]shift 506 fd 92426 [11:38:35]save to /storage/0506/doc_00092426 [11:38:35]save last doc name /storage/0506/doc_00092426 to /storage/kkm_last_doc_name [11:38:35]save OK [11:38:35]Clear old archive folders... [11:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:38:35]tlvbuf is 01038630 [11:38:35]SAM_PROTO_ClearQueue [11:38:35]wFMCommunicate request_size=4 [11:38:35]MH_SAM_APDU [11:38:35]CAPDU: 80 09 00 00 [11:38:35]Write to MH i2c: E2 08 00 3B 17 80 09 00 00 00 00 00 00 C4 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:35]Read from MH i2c: E2 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 03 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 03 00 3B 17 00 90 00 C6 [11:38:35]RAPDU: 90 00 [11:38:35]wFMCommunicate OK [11:38:35]SAM_PROTO_ClearQueue done [11:38:35]KKMCreateOFDPacket [11:38:35]OFDProtocolAddRootSTLVToBuf [11:38:35]FM_MakeSignedData [11:38:35]FM_MakeSignedData [11:38:35]SAM_PROTO_SignData [11:38:35]wFMCommunicate request_size=4 [11:38:35]MH_SAM_APDU [11:38:35]CAPDU: 80 0D 01 02 [11:38:35]Write to MH i2c: E2 08 00 3C 17 80 0D 01 02 00 00 00 00 CC [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:35]Read from MH i2c: E2 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 03 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 03 00 3C 17 00 90 00 C7 [11:38:35]RAPDU: 90 00 [11:38:35]wFMCommunicate OK [11:38:35]wFMCommunicate request_size=255 [11:38:35]MH_SAM_APDU [11:38:35]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 4D 00 00 00 F4 03 04 00 BD 75 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:38:35]Write to MH i2c: E2 02 01 3D 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 4D 00 00 00 F4 03 04 00 BD 75 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 26 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:35]Read from MH i2c: E2 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 03 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 03 00 3D 17 00 90 00 C8 [11:38:35]RAPDU: 90 00 [11:38:35]wFMCommunicate OK [11:38:35]wFMCommunicate request_size=52 [11:38:35]MH_SAM_APDU [11:38:35]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 69 01 00 35 04 06 00 8D AA 5E FE 67 E2 [11:38:35]Write to MH i2c: E2 37 00 3E 17 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 69 01 00 35 04 06 00 8D AA 5E FE 67 E2 00 00 E0 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:35]Read from MH i2c: E2 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 03 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 03 00 3E 17 00 90 00 C9 [11:38:35]RAPDU: 90 00 [11:38:35]wFMCommunicate OK [11:38:35]wFMCommunicate request_size=4 [11:38:35]MH_SAM_APDU [11:38:35]CAPDU: 80 0D 03 02 [11:38:35]Write to MH i2c: E2 08 00 3F 17 80 0D 03 02 00 00 00 00 D1 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:36]Read from MH i2c: E2 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 0B 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 0B 00 3F 17 00 6B 42 19 3D 6C 97 61 13 90 00 4C [11:38:36]RAPDU: 6B 42 19 3D 6C 97 61 13 90 00 [11:38:36]wFMCommunicate OK [11:38:36]SAM_PROTO_SignData done [11:38:36]FM_MakeSignedData done [11:38:36]CreateOFDProtocolMessage [11:38:36]wFMCommunicate request_size=4 [11:38:36]MH_SAM_APDU [11:38:36]CAPDU: 80 11 00 00 [11:38:36]Write to MH i2c: E2 08 00 40 17 80 11 00 00 00 00 00 00 D1 [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:36]Read from MH i2c: E2 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 17 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 17 00 40 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 28 [11:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:38:36]wFMCommunicate OK [11:38:36]CreateOFDProtocolMessage done [11:38:36]OFDSenderStorePacket 92426 [11:38:36]StoreOFDPacket docnum=92426 [11:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 E3 F4 31 01 B4 21 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 4D 00 00 00 F4 03 04 00 BD 75 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 69 01 00 35 04 06 00 8D AA 5E FE 67 E2 6B 42 19 3D 6C 97 61 13 [11:38:36]CheckFolder [11:38:36]dirname=/storage/ofd_packets [11:38:36]CheckFolder done [11:38:36]ProducePacketName [11:38:36]name=ofd_packets/00092426 [11:38:36]NVStorageSaveData ofd_packets/00092426 [11:38:36]File name is /storage/ofd_packets/00092426 [11:38:36]Write 343 bytes [11:38:36]NVStorageSaveData done [11:38:36]OFDSenderStorePacket done [11:38:36]KKMCreateOFDPacket done [11:38:36]NVStorageSaveData kkm_last_timestamp [11:38:36]File name is /storage/kkm_last_timestamp [11:38:36]Write 4 bytes [11:38:36]NVStorageSaveData done [11:38:36]ExternCall_PrintAddStr [11:38:36]wPrintStart [11:38:36]Write to MH i2c: 01 00 00 41 17 58 [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: 01 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: 01 07 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: 01 07 00 41 17 00 00 00 00 00 FF 0F 6D [11:38:36]RasterBufferAndPrint [11:38:36]line Счет N : (3)127336 [11:38:36]line ИНН: 02508201610067 [11:38:36]line Контрольно-Кассовый Чек [11:38:36]line ПРОДАЖА [11:38:36]line Товар: 4700000480050 [11:38:36]line Напиток Nitro Energy эн green ж/б 0,45л [11:38:36]line 1.000 * 77.00 [11:38:36]line = 77.00 [11:38:36]line НДС 12% НСП 1% [11:38:36]line > о реализуемом товаре [11:38:36]line ИТОГО: 77.00 [11:38:36]line НСП 1% : 0.68 [11:38:36]line НДС 12% : 8.18 [11:38:36]line Наличными: 77.00 [11:38:36]line Безнал.: 0.00 [11:38:36]line Место: АЗС № 5 "Партнер Нефть" [11:38:36]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:38:36]line СНО: Общий режим [11:38:36]line Чек 77 14.09.2024 11:38 [11:38:36]line Смена: 506 ФФД: 1.0 [11:38:36]line ЗНМ: 03000000022 [11:38:36]line РНМ: 0000000000091423 [11:38:36]line Версия ККМ: 001 [11:38:36]line ФМ: 0000000000874692 [11:38:36]line ФД: 92426 [11:38:36]line ФПД: 155762877687778 [11:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T113837&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92426&fm=155762877687778&tin=02508201610067®Number=0000000000091423&sum=7700 [11:38:36]line 0 [11:38:36]OFD Sender: Processing packet 92426 [packets to send 63, broken 62] [11:38:36]ProducePacketName [11:38:36]name=ofd_packets/00092426 [11:38:36]OFD Sender: To server: pG, [11:38:36]CommunicateWithHost lk.salyk.kg:30040 [11:38:36]ConnectInit lk.salyk.kg [11:38:36]written 0, free lines is 4095 [11:38:36]Connected sock=10 [11:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 E3 F4 31 01 B4 21 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 4D 00 00 00 F4 03 04 00 BD 75 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0A 69 01 00 35 04 06 00 8D AA 5E FE 67 E2 6B 42 19 3D 6C 97 61 13 [11:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E6 1A 47 00 97 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 34 36 39 32 10 04 04 00 0A 69 01 00 F4 03 04 00 38 1E E5 66 B6 04 01 00 00 B0 4C 2A EE 7E C2 8A 9D [11:38:36]CommunicateWithHost err = 0 [11:38:36]CheckOFDResponse [11:38:36]1017 (14) - 77093643461234 [11:38:36]1041 (16) - 0000000000874692 [11:38:36]1040 (4) - 92426 [11:38:36]1012 (4) - 14.09.2024 05:25 [11:38:36]1206 (1) - 0 [11:38:36]OFD Sender: Remove packet 92426 [11:38:36]ProducePacketName [11:38:36]name=ofd_packets/00092426 [11:38:36]NVStorageDeleteData [11:38:36]Write to MH i2c: 01 00 00 6A 17 81 [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: 01 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: 01 07 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: 01 07 00 6A 17 00 00 00 00 00 16 0D AB [11:38:36]RasterBufferAndPrint [11:38:36]line [11:38:36]line [11:38:36]line [11:38:36]line [11:38:36]line [11:38:36]written 0, free lines is 3357 [11:38:36]MH_Cut [11:38:36]Write to MH i2c: D1 01 00 71 17 01 5A [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: D1 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: D1 01 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: D1 01 00 71 17 00 59 [11:38:36]Write to MH i2c: 01 00 00 72 17 89 [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:37]OFD Sender: No OFD packet to send [11:38:37]*** Cut start [11:38:37]*** Purtial cut [11:38:37]*** Stage 1: CUTSNS_PIN = 1 [11:38:39]Read from MH i2c: 01 [11:38:39]MH_I2C_Read... [11:38:39]*** Stop cut motor [11:38:39]*** Cut end [11:38:39]Read from MH i2c: 01 07 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: 01 07 00 72 17 00 00 00 00 00 FF 0F 9E [11:38:39]process_action close_receipt done [11:38:39]requested_data is exist [11:38:39]produce_requested_data [11:38:39]requested_item fm.sn is exist - process it [11:38:39]wFMCommunicate request_size=4 [11:38:39]MH_SAM_APDU [11:38:39]CAPDU: 80 11 00 00 [11:38:39]Write to MH i2c: E2 08 00 73 17 80 11 00 00 00 00 00 00 04 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:39]Read from MH i2c: E2 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 17 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 17 00 73 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5B [11:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:38:39]wFMCommunicate OK [11:38:39]requested_item fd.num is exist - process it [11:38:39]SAM_PROTO_GetFieldsCounters [11:38:39]wFMCommunicate request_size=4 [11:38:39]MH_SAM_APDU [11:38:39]CAPDU: 80 13 00 00 [11:38:39]Write to MH i2c: E2 08 00 74 17 80 13 00 00 00 00 00 00 07 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:39]Read from MH i2c: E2 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 62 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 62 00 74 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0A 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:38:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0A 69 01 00 0E 04 04 00 FA 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:38:39]wFMCommunicate OK [11:38:39]SAM_PROTO_GetFieldsCounters done [11:38:39]requested_item shift.num is exist - process it [11:38:39]requested_item shift.opened is exist - process it [11:38:39]req_shift_opened [11:38:39]FM_GetShiftState [11:38:39]SAM_PROTO_GetShiftState [11:38:39]wFMCommunicate request_size=4 [11:38:39]MH_SAM_APDU [11:38:39]CAPDU: 80 13 01 00 [11:38:39]Write to MH i2c: E2 08 00 75 17 80 13 01 00 00 00 00 00 09 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:39]Read from MH i2c: E2 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 0E 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 0E 00 75 17 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A3 [11:38:39]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:38:39]wFMCommunicate OK [11:38:39]SAM_PROTO_GetShiftState done [11:38:39]FM_GetShiftState done [11:38:39]req_shift_opened done [11:38:39]requested_item shift.open_date is exist - process it [11:38:39]req_shift_open_date [11:38:39]req_shift_open_date done [11:38:39]produce_requested_data done [11:38:39]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92426,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:38:39]process_action_free close_receipt [11:38:39]json_value_free [11:38:39]json_value_free done [11:38:39]process_json_proto returns [11:38:39]Send response to host [11:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92426,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:38:39]free response buf [11:38:39]execute_script done [11:38:39]execute_script returns [11:38:39]free content buf [11:38:39]Sock 8.Close socket [11:38:39]Sock 8.Thread stoped [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:54]accept exits with 9 [11:46:54]New connection [11:46:54]New thread 3066801508 created [11:46:54]Thread 3066658148 joined [11:46:54]Waiting for new connection... [11:46:54] Sock 9.Parse request [11:46:54]Sock 9.Check first char [11:46:54]Sock 9.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.57.71:8080 [11:46:54]Content-Length: 808 [11:46:54]Content-Type: application/json [11:46:54] [11:46:54]POST finish read [11:46:54]Found Content-Length = 808 [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)127337", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 3.000, "sum" : 585.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 585.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)127337", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 3.000, "sum" : 585.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 585.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 76 17 7C [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 76 17 00 B1 77 E5 66 33 3A A4 66 6F [11:46:54]GetLastDocTimeStamp 1726313917 [11:46:54]current date 1726314417 [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 77 17 80 13 01 00 00 00 00 00 0B [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 77 17 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A5 [11:46:54]RAPDU: 09 00 01 6D D7 E4 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 1726273389 [11:46:54]opened+sec_in_day 1726359789 [11:46:54]quantity*price = 58500 [11:46:54]sum+1 = 58501 [11:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 585.00 НСП 1% : 5.18 НДС 12% : 62.12 Наличными: 0.00 Безнал.: 585.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 78 14.09.2024 11:46 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92427 ФПД: 170290520032623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T114657&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92427&fm=170290520032623&tin=02508201610067®Number=0000000000091423&sum=58500 0 [11:46:55]StoreToDocumentArchive [11:46:55]shift 506 fd 92427 [11:46:55]save to /storage/0506/doc_00092427 [11:46:55]save last doc name /storage/0506/doc_00092427 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=270 [11:46:55]tlvbuf is 00F8E330 [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 84 17 80 09 00 00 00 00 00 00 0D [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 84 17 00 90 00 0F [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 85 17 80 0D 01 02 00 00 00 00 15 [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 85 17 00 90 00 10 [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 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 84 E4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 E4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B1 77 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [11:46:55]Write to MH i2c: E2 02 01 86 17 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 84 E4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 E4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B1 77 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 18 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]*** iso7816_exchange 80 0D 02 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 86 17 00 90 00 11 [11:46:55]RAPDU: 90 00 [11:46:55]wFMCommunicate OK [11:46:55]wFMCommunicate request_size=29 [11:46:55]MH_SAM_APDU [11:46:55]CAPDU: 80 0D 02 02 18 38 37 34 36 39 32 10 04 04 00 0B 69 01 00 35 04 06 00 9A E0 D9 F4 85 6F [11:46:55]Write to MH i2c: E2 20 00 87 17 80 0D 02 02 18 00 38 37 34 36 39 32 10 04 04 00 0B 69 01 00 35 04 06 00 9A E0 D9 F4 85 6F 00 00 93 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]*** iso7816_exchange 80 0D 02 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 87 17 00 90 00 12 [11:46:55]RAPDU: 90 00 [11:46:55]wFMCommunicate OK [11:46:55]wFMCommunicate request_size=4 [11:46:55]MH_SAM_APDU [11:46:55]CAPDU: 80 0D 03 02 [11:46:55]Write to MH i2c: E2 08 00 88 17 80 0D 03 02 00 00 00 00 1A [11:46:55]Write i2c OK [11:46:55]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 88 17 00 46 1D 30 97 C7 EB 33 8F 90 00 B9 [11:46:56]RAPDU: 46 1D 30 97 C7 EB 33 8F 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 89 17 80 11 00 00 00 00 00 00 1A [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 89 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 71 [11:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:46:56]wFMCommunicate OK [11:46:56]CreateOFDProtocolMessage done [11:46:56]OFDSenderStorePacket 92427 [11:46:56]StoreOFDPacket docnum=92427 [11:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 01 00 00 2C A4 1A 01 67 21 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 84 E4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 E4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B1 77 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0B 69 01 00 35 04 06 00 9A E0 D9 F4 85 6F 46 1D 30 97 C7 EB 33 8F [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/00092427 [11:46:56]NVStorageSaveData ofd_packets/00092427 [11:46:56]File name is /storage/ofd_packets/00092427 [11:46:56]Write 320 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 8A 17 A1 [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 8A 17 00 00 00 00 00 FF 0F B6 [11:46:56]RasterBufferAndPrint [11:46:56]line Счет N : (3)127337 [11:46:56]line ИНН: 02508201610067 [11:46:56]line Контрольно-Кассовый Чек [11:46:56]line ПРОДАЖА [11:46:56]line Товар: 58411125749 [11:46:56]line Те самые макарон [11:46:56]line 3.000 * 195.00 [11:46:56]line = 585.00 [11:46:56]line НДС 12% НСП 1% [11:46:56]line > о реализуемом товаре [11:46:56]line ИТОГО: 585.00 [11:46:56]line НСП 1% : 5.18 [11:46:56]line НДС 12% : 62.12 [11:46:56]line Наличными: 0.00 [11:46:56]line Безнал.: 585.00 [11:46:56]line Место: АЗС № 5 "Партнер Нефть" [11:46:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:46:56]line СНО: Общий режим [11:46:56]line Чек 78 14.09.2024 11:46 [11:46:56]line Смена: 506 ФФД: 1.0 [11:46:56]line ЗНМ: 03000000022 [11:46:56]line РНМ: 0000000000091423 [11:46:56]line Версия ККМ: 001 [11:46:56]line Платежная система: О! деньги [11:46:56]line ФМ: 0000000000874692 [11:46:56]line ФД: 92427 [11:46:56]line ФПД: 170290520032623 [11:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T114657&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92427&fm=170290520032623&tin=02508201610067®Number=0000000000091423&sum=58500 [11:46:56]OFD Sender: Processing packet 92427 [packets to send 63, broken 62] [11:46:56]ProducePacketName [11:46:56]name=ofd_packets/00092427 [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]line 0 [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 34 36 39 32 22 01 00 00 2C A4 1A 01 67 21 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 84 E4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 E4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B1 77 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0B 69 01 00 35 04 06 00 9A E0 D9 F4 85 6F 46 1D 30 97 C7 EB 33 8F [11:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4B 78 47 00 FF 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0B 69 01 00 F4 03 04 00 2C 20 E5 66 B6 04 01 00 00 F2 95 9B 97 51 CD E5 06 [11:46:56]CommunicateWithHost err = 0 [11:46:56]CheckOFDResponse [11:46:56]1017 (14) - 77093643461234 [11:46:56]1041 (16) - 0000000000874692 [11:46:56]1040 (4) - 92427 [11:46:56]1012 (4) - 14.09.2024 05:33 [11:46:56]1206 (1) - 0 [11:46:56]OFD Sender: Remove packet 92427 [11:46:56]ProducePacketName [11:46:56]name=ofd_packets/00092427 [11:46:56]NVStorageDeleteData [11:46:56]Write to MH i2c: 01 00 00 B4 17 CB [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 B4 17 00 00 00 00 00 07 0D E6 [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 3341 [11:46:56]MH_Cut [11:46:56]Write to MH i2c: D1 01 00 BB 17 01 A4 [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: D1 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: D1 01 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: D1 01 00 BB 17 00 A3 [11:46:56]Write to MH i2c: 01 00 00 BC 17 D3 [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:57]OFD Sender: No OFD packet to send [11:46:57]*** Cut start [11:46:57]*** Purtial cut [11:46:57]*** Stage 1: CUTSNS_PIN = 1 [11:46:59]Read from MH i2c: 01 [11:46:59]MH_I2C_Read... [11:46:59]*** Stop cut motor [11:46:59]*** Cut end [11:46:59]Read from MH i2c: 01 07 00 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: 01 07 00 BC 17 00 00 00 00 00 FF 0F E8 [11:46:59]process_action close_receipt done [11:46:59]requested_data is exist [11:46:59]produce_requested_data [11:46:59]requested_item fm.sn is exist - process it [11:46:59]wFMCommunicate request_size=4 [11:46:59]MH_SAM_APDU [11:46:59]CAPDU: 80 11 00 00 [11:46:59]Write to MH i2c: E2 08 00 BD 17 80 11 00 00 00 00 00 00 4E [11:46:59]Write i2c OK [11:46:59]MH_I2C_Read... [11:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:59]Read from MH i2c: E2 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: E2 17 00 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: E2 17 00 BD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A5 [11:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:46:59]wFMCommunicate OK [11:46:59]requested_item fd.num is exist - process it [11:46:59]SAM_PROTO_GetFieldsCounters [11:46:59]wFMCommunicate request_size=4 [11:46:59]MH_SAM_APDU [11:46:59]CAPDU: 80 13 00 00 [11:46:59]Write to MH i2c: E2 08 00 BE 17 80 13 00 00 00 00 00 00 51 [11:46:59]Write i2c OK [11:46:59]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 BE 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0B 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0B 69 01 00 0E 04 04 00 FA 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: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 BF 17 80 13 01 00 00 00 00 00 53 [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 BF 17 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 ED [11:46:59]RAPDU: 09 00 01 6D D7 E4 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":"0000000000874692","fd.num":92427,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [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":"0000000000874692","fd.num":92427,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [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 9.Close socket [11:46:59]Sock 9.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:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50: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:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:57:59]accept exits with 8 [11:57:59]New connection [11:57:59]New thread 3066658148 created [11:57:59]Thread 3066801508 joined [11:57:59]Waiting for new connection... [11:57:59] Sock 8.Parse request [11:57:59]Sock 8.Check first char [11:57:59]Sock 8.First char is OK [11:57:59]request: POST /json_proto HTTP/1.0 [11:57:59]Method: POST [11:57:59]URL: /json_proto [11:57:59]Method is POST - this is cgi request [11:57:59]url: /json_proto [11:57:59]query_string will be loaded in cgi processing [11:57:59]execute_cgi json_proto POST (null) [11:57:59]execute_cgi path=json_proto method=POST [11:57:59]POST find Content-Length [11:57:59]Host: 172.17.57.71:8080 [11:57:59]Content-Length: 808 [11:57:59]Content-Type: application/json [11:57:59] [11:57:59]POST finish read [11:57:59]Found Content-Length = 808 [11:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:59]execute_script... [11:57: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)647469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:59]POST & json_proto [11:57:59]process_json_proto [11:57:59]json parsed OK: [11:57:59]protocol is kg_v1.0 [11:57:59]action value=close_receipt [11:57:59]process_action close_receipt [11:57:59]cmd_close_receipt [11:57:59]MH_GetDate [11:57:59]Write to MH i2c: F0 00 00 C0 17 C6 [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: F0 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: F0 09 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: F0 09 00 C0 17 00 4A 7A E5 66 33 3A A4 66 55 [11:57:59]GetLastDocTimeStamp 1726314417 [11:57:59]current date 1726315082 [11:57:59]FM_GetShiftState [11:57:59]SAM_PROTO_GetShiftState [11:57:59]wFMCommunicate request_size=4 [11:57:59]MH_SAM_APDU [11:57:59]CAPDU: 80 13 01 00 [11:57:59]Write to MH i2c: E2 08 00 C1 17 80 13 01 00 00 00 00 00 55 [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:59]Read from MH i2c: E2 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 0E 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 0E 00 C1 17 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EF [11:57:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:57:59]wFMCommunicate OK [11:57:59]SAM_PROTO_GetShiftState done [11:57:59]FM_GetShiftState done [11:57:59]opened in 1726273389 [11:57:59]opened+sec_in_day 1726359789 [11:57:59]quantity*price = 100015 [11:57:59]sum+1 = 100017 [11:57:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 79 14.09.2024 11:58 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92428 ФПД: 137534926056054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T115802&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92428&fm=137534926056054&tin=02508201610067®Number=0000000000091423&sum=100016 [11:58:00]StoreToDocumentArchive [11:58:00]shift 506 fd 92428 [11:58:00]save to /storage/0506/doc_00092428 [11:58:00]save last doc name /storage/0506/doc_00092428 to /storage/kkm_last_doc_name [11:58:00]save OK [11:58:00]Clear old archive folders... [11:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:00]tlvbuf is B6F30910 [11:58:00]SAM_PROTO_ClearQueue [11:58:00]wFMCommunicate request_size=4 [11:58:00]MH_SAM_APDU [11:58:00]CAPDU: 80 09 00 00 [11:58:00]Write to MH i2c: E2 08 00 CE 17 80 09 00 00 00 00 00 00 57 [11:58:00]Write i2c OK [11:58:00]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [11:58:01]RAPDU: 90 00 [11:58:01]wFMCommunicate OK [11:58:01]SAM_PROTO_ClearQueue done [11:58:01]KKMCreateOFDPacket [11:58:01]OFDProtocolAddRootSTLVToBuf [11:58:01]FM_MakeSignedData [11:58:01]FM_MakeSignedData [11:58:01]SAM_PROTO_SignData [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 0D 01 02 [11:58:01]Write to MH i2c: E2 08 00 CF 17 80 0D 01 02 00 00 00 00 5F [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 CF 17 00 90 00 5A [11:58:01]RAPDU: 90 00 [11:58:01]wFMCommunicate OK [11:58:01]wFMCommunicate request_size=255 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 4A 7A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 69 01 00 35 04 06 00 7D [11:58:01]Write to MH i2c: E2 02 01 D0 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 4A 7A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 69 01 00 35 04 06 00 7D 00 00 52 [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:01]Read from MH i2c: E2 03 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 D0 17 00 90 00 5B [11:58:01]RAPDU: 90 00 [11:58:01]wFMCommunicate OK [11:58:01]wFMCommunicate request_size=10 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 0D 02 02 05 16 58 69 6A 76 [11:58:01]Write to MH i2c: E2 0D 00 D1 17 80 0D 02 02 05 00 16 58 69 6A 76 00 00 23 [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 D1 17 00 90 00 5C [11:58:01]RAPDU: 90 00 [11:58:01]wFMCommunicate OK [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 0D 03 02 [11:58:01]Write to MH i2c: E2 08 00 D2 17 80 0D 03 02 00 00 00 00 64 [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 0B 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 0B 00 D2 17 00 FD 23 0D B4 CC B8 DE E2 90 00 8A [11:58:01]RAPDU: FD 23 0D B4 CC B8 DE E2 90 00 [11:58:01]wFMCommunicate OK [11:58:01]SAM_PROTO_SignData done [11:58:01]FM_MakeSignedData done [11:58:01]CreateOFDProtocolMessage [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 11 00 00 [11:58:01]Write to MH i2c: E2 08 00 D3 17 80 11 00 00 00 00 00 00 64 [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 17 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 17 00 D3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BB [11:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:58:01]wFMCommunicate OK [11:58:01]CreateOFDProtocolMessage done [11:58:01]OFDSenderStorePacket 92428 [11:58:01]StoreOFDPacket docnum=92428 [11:58:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 41 D4 07 01 FF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 4A 7A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 69 01 00 35 04 06 00 7D 16 58 69 6A 76 FD 23 0D B4 CC B8 DE E2 [11:58:01]CheckFolder [11:58:01]dirname=/storage/ofd_packets [11:58:01]CheckFolder done [11:58:01]ProducePacketName [11:58:01]name=ofd_packets/00092428 [11:58:01]NVStorageSaveData ofd_packets/00092428 [11:58:01]File name is /storage/ofd_packets/00092428 [11:58:01]Write 301 bytes [11:58:01]NVStorageSaveData done [11:58:01]OFDSenderStorePacket done [11:58:01]KKMCreateOFDPacket done [11:58:01]NVStorageSaveData kkm_last_timestamp [11:58:01]File name is /storage/kkm_last_timestamp [11:58:01]Write 4 bytes [11:58:01]NVStorageSaveData done [11:58:01]ExternCall_PrintAddStr [11:58:01]wPrintStart [11:58:01]Write to MH i2c: 01 00 00 D4 17 EB [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: 01 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: 01 07 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: 01 07 00 D4 17 00 00 00 00 00 FF 0F 00 [11:58:01]RasterBufferAndPrint [11:58:01]line Счет N : (1)647469 [11:58:01]line ИНН: 02508201610067 [11:58:01]line Контрольно-Кассовый Чек [11:58:01]line ПРОДАЖА [11:58:01]line ТРК (МРК, ГНК) : 23 [11:58:01]line Товар: 2710124130 [11:58:01]line Аи-92-К-5 [11:58:01]line 14.950 * 66.90 [11:58:01]line = 1000.16 [11:58:01]line НДС 12% НСП 1% [11:58:01]line > о реализуемом товаре [11:58:01]line ИТОГО: 1000.16 [11:58:01]line НСП 1% : 8.85 [11:58:01]line НДС 12% : 106.21 [11:58:01]line Наличными: 0.00 [11:58:01]line Безнал.: 1000.16 [11:58:01]line Место: АЗС № 5 "Партнер Нефть" [11:58:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [11:58:01]line СНО: Общий режим [11:58:01]line Чек 79 14.09.2024 11:58 [11:58:01]line Смена: 506 ФФД: 1.0 [11:58:01]line ЗНМ: 03000000022 [11:58:01]line РНМ: 0000000000091423 [11:58:01]line Версия ККМ: 001 [11:58:01]line Платежная система: О! деньги [11:58:01]line ФМ: 0000000000874692 [11:58:01]line ФД: 92428 [11:58:01]line ФПД: 137534926056054 [11:58:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T115802&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92428&fm=137534926056054&tin=02508201610067®Number=0000000000091423&sum=100016 [11:58:01]written 0, free lines is 4095 [11:58:01]OFD Sender: Processing packet 92428 [packets to send 63, broken 62] [11:58:01]ProducePacketName [11:58:01]name=ofd_packets/00092428 [11:58:01]OFD Sender: To server: pG, [11:58:01]CommunicateWithHost lk.salyk.kg:30040 [11:58:01]ConnectInit lk.salyk.kg [11:58:01]Connected sock=10 [11:58:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 41 D4 07 01 FF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 4A 7A E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 69 01 00 35 04 06 00 7D 16 58 69 6A 76 FD 23 0D B4 CC B8 DE E2 [11:58:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CA 81 47 00 4D 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0C 69 01 00 F4 03 04 00 C6 22 E5 66 B6 04 01 00 00 D6 E5 9C 7F 4A FC DA 6E [11:58:02]CommunicateWithHost err = 0 [11:58:02]CheckOFDResponse [11:58:02]1017 (14) - 77093643461234 [11:58:02]1041 (16) - 0000000000874692 [11:58:02]1040 (4) - 92428 [11:58:02]1012 (4) - 14.09.2024 05:44 [11:58:02]1206 (1) - 0 [11:58:02]OFD Sender: Remove packet 92428 [11:58:02]ProducePacketName [11:58:02]name=ofd_packets/00092428 [11:58:02]NVStorageDeleteData [11:58:02]Write to MH i2c: 01 00 00 FE 17 15 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 07 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 07 00 FE 17 00 00 00 00 00 FC 0C 24 [11:58:02]RasterBufferAndPrint [11:58:02]line [11:58:02]line [11:58:02]line [11:58:02]line [11:58:02]line [11:58:02]written 0, free lines is 3332 [11:58:02]MH_Cut [11:58:02]Write to MH i2c: D1 01 00 05 18 01 EF [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: D1 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: D1 01 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: D1 01 00 05 18 00 EE [11:58:02]Write to MH i2c: 01 00 00 06 18 1E [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]OFD Sender: No OFD packet to send [11:58:02]*** Cut start [11:58:02]*** Purtial cut [11:58:02]*** Stage 1: CUTSNS_PIN = 1 [11:58:04]Read from MH i2c: 01 [11:58:04]MH_I2C_Read... [11:58:04]*** Stop cut motor [11:58:04]*** Cut end [11:58:04]Read from MH i2c: 01 07 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 FF 0F 33 [11:58:04]process_action close_receipt done [11:58:04]requested_data is exist [11:58:04]produce_requested_data [11:58:04]requested_item fm.sn is exist - process it [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 11 00 00 [11:58:04]Write to MH i2c: E2 08 00 07 18 80 11 00 00 00 00 00 00 99 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 17 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 17 00 07 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [11:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [11:58:05]wFMCommunicate OK [11:58:05]requested_item fd.num is exist - process it [11:58:05]SAM_PROTO_GetFieldsCounters [11:58:05]wFMCommunicate request_size=4 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 13 00 00 [11:58:05]Write to MH i2c: E2 08 00 08 18 80 13 00 00 00 00 00 00 9C [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 62 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 62 00 08 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0C 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [11:58:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0C 69 01 00 0E 04 04 00 FA 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:58:05]wFMCommunicate OK [11:58:05]SAM_PROTO_GetFieldsCounters done [11:58:05]requested_item shift.num is exist - process it [11:58:05]requested_item shift.opened is exist - process it [11:58:05]req_shift_opened [11:58:05]FM_GetShiftState [11:58:05]SAM_PROTO_GetShiftState [11:58:05]wFMCommunicate request_size=4 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 13 01 00 [11:58:05]Write to MH i2c: E2 08 00 09 18 80 13 01 00 00 00 00 00 9E [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 0E 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 0E 00 09 18 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 38 [11:58:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [11:58:05]wFMCommunicate OK [11:58:05]SAM_PROTO_GetShiftState done [11:58:05]FM_GetShiftState done [11:58:05]req_shift_opened done [11:58:05]requested_item shift.open_date is exist - process it [11:58:05]req_shift_open_date [11:58:05]req_shift_open_date done [11:58:05]produce_requested_data done [11:58:05]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92428,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [11:58:05]process_action_free close_receipt [11:58:05]json_value_free [11:58:05]json_value_free done [11:58:05]process_json_proto returns [11:58:05]Send response to host [11:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92428,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [11:58:05]free response buf [11:58:05]execute_script done [11:58:05]execute_script returns [11:58:05]free content buf [11:58:05]Sock 8.Close socket [11:58:05]Sock 8.Thread stoped [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:20]accept exits with 9 [12:02:20]New connection [12:02:20]New thread 3066801508 created [12:02:20]Thread 3066658148 joined [12:02:20]Waiting for new connection... [12:02:20] Sock 9.Parse request [12:02:20]Sock 9.Check first char [12:02:20]Sock 9.First char is OK [12:02:20]request: POST /json_proto HTTP/1.0 [12:02:20]Method: POST [12:02:20]URL: /json_proto [12:02:20]Method is POST - this is cgi request [12:02:20]url: /json_proto [12:02:20]query_string will be loaded in cgi processing [12:02:20]execute_cgi json_proto POST (null) [12:02:20]execute_cgi path=json_proto method=POST [12:02:20]POST find Content-Length [12:02:20]Host: 172.17.57.71:8080 [12:02:20]Content-Length: 623 [12:02:20]Content-Type: application/json [12:02:20] [12:02:20]POST finish read [12:02:20]Found Content-Length = 623 [12:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127338", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 134.00, "quantity" : 2.000, "sum" : 268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:20]execute_script... [12:02: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)127338", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 134.00, "quantity" : 2.000, "sum" : 268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:20]POST & json_proto [12:02:20]process_json_proto [12:02:20]json parsed OK: [12:02:20]protocol is kg_v1.0 [12:02:20]action value=close_receipt [12:02:20]process_action close_receipt [12:02:20]cmd_close_receipt [12:02:20]MH_GetDate [12:02:20]Write to MH i2c: F0 00 00 0A 18 11 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: F0 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: F0 09 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: F0 09 00 0A 18 00 4F 7B E5 66 33 3A A4 66 A6 [12:02:20]GetLastDocTimeStamp 1726315082 [12:02:20]current date 1726315343 [12:02:20]FM_GetShiftState [12:02:20]SAM_PROTO_GetShiftState [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 13 01 00 [12:02:20]Write to MH i2c: E2 08 00 0B 18 80 13 01 00 00 00 00 00 A0 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0E 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0E 00 0B 18 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3A [12:02:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:02:20]wFMCommunicate OK [12:02:20]SAM_PROTO_GetShiftState done [12:02:20]FM_GetShiftState done [12:02:20]opened in 1726273389 [12:02:20]opened+sec_in_day 1726359789 [12:02:20]quantity*price = 26800 [12:02:20]sum+1 = 26801 [12:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.46 Наличными: 268.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 80 14.09.2024 12:02 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92429 ФПД: 131688919905060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120223&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92429&fm=131688919905060&tin=02508201610067®Number=0000000000091423&sum=26800 0 [12:02:21]StoreToDocumentArchive [12:02:21]shift 506 fd 92429 [12:02:21]save to /storage/0506/doc_00092429 [12:02:21]save last doc name /storage/0506/doc_00092429 to /storage/kkm_last_doc_name [12:02:21]save OK [12:02:21]Clear old archive folders... [12:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:02:21]tlvbuf is 0102B950 [12:02:21]SAM_PROTO_ClearQueue [12:02:21]wFMCommunicate request_size=4 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 09 00 00 [12:02:21]Write to MH i2c: E2 08 00 18 18 80 09 00 00 00 00 00 00 A2 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [12:02:21]RAPDU: 90 00 [12:02:21]wFMCommunicate OK [12:02:21]SAM_PROTO_ClearQueue done [12:02:21]KKMCreateOFDPacket [12:02:21]OFDProtocolAddRootSTLVToBuf [12:02:21]FM_MakeSignedData [12:02:21]FM_MakeSignedData [12:02:21]SAM_PROTO_SignData [12:02:21]wFMCommunicate request_size=4 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 0D 01 02 [12:02:21]Write to MH i2c: E2 08 00 19 18 80 0D 01 02 00 00 00 00 AA [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [12:02:21]RAPDU: 90 00 [12:02:21]wFMCommunicate OK [12:02:21]wFMCommunicate request_size=255 [12:02:21]MH_SAM_APDU [12:02:21]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 31 34 31 35 06 04 26 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 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 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 50 00 00 00 F4 03 04 00 4F 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [12:02:21]Write to MH i2c: E2 02 01 1A 18 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 31 34 31 35 06 04 26 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 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 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 50 00 00 00 F4 03 04 00 4F 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 E0 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [12:02:21]RAPDU: 90 00 [12:02:21]wFMCommunicate OK [12:02:21]wFMCommunicate request_size=34 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 69 01 00 35 04 06 00 77 C5 37 4A B3 24 [12:02:21]Write to MH i2c: E2 25 00 1B 18 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 69 01 00 35 04 06 00 77 C5 37 4A B3 24 00 00 7D [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 03 00 1B 18 00 90 00 A7 [12:02:22]RAPDU: 90 00 [12:02:22]wFMCommunicate OK [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 0D 03 02 [12:02:22]Write to MH i2c: E2 08 00 1C 18 80 0D 03 02 00 00 00 00 AF [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 0B 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 0B 00 1C 18 00 AC 4E 35 C7 53 AB 38 9D 90 00 79 [12:02:22]RAPDU: AC 4E 35 C7 53 AB 38 9D 90 00 [12:02:22]wFMCommunicate OK [12:02:22]SAM_PROTO_SignData done [12:02:22]FM_MakeSignedData done [12:02:22]CreateOFDProtocolMessage [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 11 00 00 [12:02:22]Write to MH i2c: E2 08 00 1D 18 80 11 00 00 00 00 00 00 AF [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 17 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 17 00 1D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 06 [12:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:02:22]wFMCommunicate OK [12:02:22]CreateOFDProtocolMessage done [12:02:22]OFDSenderStorePacket 92429 [12:02:22]StoreOFDPacket docnum=92429 [12:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 8E 27 1F 01 56 3C 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 31 34 31 35 06 04 26 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 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 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 50 00 00 00 F4 03 04 00 4F 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 69 01 00 35 04 06 00 77 C5 37 4A B3 24 AC 4E 35 C7 53 AB 38 9D [12:02:22]CheckFolder [12:02:22]dirname=/storage/ofd_packets [12:02:22]CheckFolder done [12:02:22]ProducePacketName [12:02:22]name=ofd_packets/00092429 [12:02:22]NVStorageSaveData ofd_packets/00092429 [12:02:22]File name is /storage/ofd_packets/00092429 [12:02:22]Write 325 bytes [12:02:22]NVStorageSaveData done [12:02:22]OFDSenderStorePacket done [12:02:22]KKMCreateOFDPacket done [12:02:22]NVStorageSaveData kkm_last_timestamp [12:02:22]File name is /storage/kkm_last_timestamp [12:02:22]Write 4 bytes [12:02:22]NVStorageSaveData done [12:02:22]ExternCall_PrintAddStr [12:02:22]wPrintStart [12:02:22]Write to MH i2c: 01 00 00 1E 18 36 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 1E 18 00 00 00 00 00 FF 0F 4B [12:02:22]RasterBufferAndPrint [12:02:22]line Счет N : (3)127338 [12:02:22]line ИНН: 02508201610067 [12:02:22]line Контрольно-Кассовый Чек [12:02:22]line ПРОДАЖА [12:02:22]line Товар: 48741415 [12:02:22]line Сигареты LD Super Slims Violet [12:02:22]line 2.000 * 134.00 [12:02:22]line = 268.00 [12:02:22]line НДС 12% НСП 1% [12:02:22]line > о реализуемом товаре [12:02:22]line ИТОГО: 268.00 [12:02:22]line НСП 1% : 2.37 [12:02:22]line НДС 12% : 28.46 [12:02:22]line Наличными: 268.00 [12:02:22]line Безнал.: 0.00 [12:02:22]line Место: АЗС № 5 "Партнер Нефть" [12:02:22]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:02:22]line СНО: Общий режим [12:02:22]line Чек 80 14.09.2024 12:02 [12:02:22]line Смена: 506 ФФД: 1.0 [12:02:22]line ЗНМ: 03000000022 [12:02:22]line РНМ: 0000000000091423 [12:02:22]line Версия ККМ: 001 [12:02:22]line ФМ: 0000000000874692 [12:02:22]line ФД: 92429 [12:02:22]line ФПД: 131688919905060 [12:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120223&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92429&fm=131688919905060&tin=02508201610067®Number=0000000000091423&sum=26800 [12:02:22]line 0 [12:02:22]OFD Sender: Processing packet 92429 [packets to send 63, broken 62] [12:02:22]ProducePacketName [12:02:22]name=ofd_packets/00092429 [12:02:22]OFD Sender: To server: pG, [12:02:22]CommunicateWithHost lk.salyk.kg:30040 [12:02:22]ConnectInit lk.salyk.kg [12:02:22]written 0, free lines is 4095 [12:02:22]Connected sock=10 [12:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 8E 27 1F 01 56 3C 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 31 34 31 35 06 04 26 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 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 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 50 00 00 00 F4 03 04 00 4F 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 69 01 00 35 04 06 00 77 C5 37 4A B3 24 AC 4E 35 C7 53 AB 38 9D [12:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D4 FC 47 00 7B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0D 69 01 00 F4 03 04 00 CA 23 E5 66 B6 04 01 00 00 AD B8 13 D4 D1 1A 01 95 [12:02:22]CommunicateWithHost err = 0 [12:02:22]CheckOFDResponse [12:02:22]1017 (14) - 77093643461234 [12:02:22]1041 (16) - 0000000000874692 [12:02:22]1040 (4) - 92429 [12:02:22]1012 (4) - 14.09.2024 05:48 [12:02:22]1206 (1) - 0 [12:02:22]OFD Sender: Remove packet 92429 [12:02:22]ProducePacketName [12:02:22]name=ofd_packets/00092429 [12:02:22]NVStorageDeleteData [12:02:22]Write to MH i2c: 01 00 00 47 18 5F [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 47 18 00 00 00 00 00 0B 0D 7E [12:02:22]RasterBufferAndPrint [12:02:22]line [12:02:22]line [12:02:22]line [12:02:22]line [12:02:22]line [12:02:22]written 0, free lines is 3347 [12:02:22]MH_Cut [12:02:22]Write to MH i2c: D1 01 00 4E 18 01 38 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: D1 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: D1 01 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: D1 01 00 4E 18 00 37 [12:02:22]Write to MH i2c: 01 00 00 4F 18 67 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:23]OFD Sender: No OFD packet to send [12:02:23]*** Cut start [12:02:23]*** Purtial cut [12:02:23]*** Stage 1: CUTSNS_PIN = 1 [12:02:25]Read from MH i2c: 01 [12:02:25]MH_I2C_Read... [12:02:25]*** Stop cut motor [12:02:25]*** Cut end [12:02:25]Read from MH i2c: 01 07 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: 01 07 00 4F 18 00 00 00 00 00 FF 0F 7C [12:02:25]process_action close_receipt done [12:02:25]requested_data is exist [12:02:25]produce_requested_data [12:02:25]requested_item fm.sn is exist - process it [12:02:25]wFMCommunicate request_size=4 [12:02:25]MH_SAM_APDU [12:02:25]CAPDU: 80 11 00 00 [12:02:25]Write to MH i2c: E2 08 00 50 18 80 11 00 00 00 00 00 00 E2 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:25]Read from MH i2c: E2 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 17 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 17 00 50 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 39 [12:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:02:25]wFMCommunicate OK [12:02:25]requested_item fd.num is exist - process it [12:02:25]SAM_PROTO_GetFieldsCounters [12:02:25]wFMCommunicate request_size=4 [12:02:25]MH_SAM_APDU [12:02:25]CAPDU: 80 13 00 00 [12:02:25]Write to MH i2c: E2 08 00 51 18 80 13 00 00 00 00 00 00 E5 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:25]Read from MH i2c: E2 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 62 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 62 00 51 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0D 69 01 00 0E 04 04 00 FA 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 66 [12:02:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0D 69 01 00 0E 04 04 00 FA 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 [12:02:25]wFMCommunicate OK [12:02:25]SAM_PROTO_GetFieldsCounters done [12:02:25]requested_item shift.num is exist - process it [12:02:25]requested_item shift.opened is exist - process it [12:02:25]req_shift_opened [12:02:25]FM_GetShiftState [12:02:25]SAM_PROTO_GetShiftState [12:02:25]wFMCommunicate request_size=4 [12:02:25]MH_SAM_APDU [12:02:25]CAPDU: 80 13 01 00 [12:02:25]Write to MH i2c: E2 08 00 52 18 80 13 01 00 00 00 00 00 E7 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:25]Read from MH i2c: E2 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 0E 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 0E 00 52 18 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 81 [12:02:25]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:02:25]wFMCommunicate OK [12:02:25]SAM_PROTO_GetShiftState done [12:02:25]FM_GetShiftState done [12:02:25]req_shift_opened done [12:02:25]requested_item shift.open_date is exist - process it [12:02:25]req_shift_open_date [12:02:25]req_shift_open_date done [12:02:25]produce_requested_data done [12:02:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92429,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:02:25]process_action_free close_receipt [12:02:25]json_value_free [12:02:25]json_value_free done [12:02:25]process_json_proto returns [12:02:25]Send response to host [12:02:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92429,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:02:25]free response buf [12:02:25]execute_script done [12:02:25]execute_script returns [12:02:25]free content buf [12:02:25]Sock 9.Close socket [12:02:25]Sock 9.Thread stoped [12:02:27]accept exits with 8 [12:02:27]New connection [12:02:27]New thread 3066658148 created [12:02:27]Thread 3066801508 joined [12:02:27]Waiting for new connection... [12:02:27] Sock 8.Parse request [12:02:27]Sock 8.Check first char [12:02:27]Sock 8.First char is OK [12:02:27]request: POST /json_proto HTTP/1.0 [12:02:27]Method: POST [12:02:27]URL: /json_proto [12:02:27]Method is POST - this is cgi request [12:02:27]url: /json_proto [12:02:27]query_string will be loaded in cgi processing [12:02:27]execute_cgi json_proto POST (null) [12:02:27]execute_cgi path=json_proto method=POST [12:02:27]POST find Content-Length [12:02:27]Host: 172.17.57.71:8080 [12:02:27]Content-Length: 673 [12:02:27]Content-Type: application/json [12:02:27] [12:02:27]POST finish read [12:02:27]Found Content-Length = 673 [12:02:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127339", "tax_sys" : 0, "items" : [ { "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:27]execute_script... [12:02: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)127339", "tax_sys" : 0, "items" : [ { "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:27]POST & json_proto [12:02:27]process_json_proto [12:02:27]json parsed OK: [12:02:27]protocol is kg_v1.0 [12:02:27]action value=close_receipt [12:02:27]process_action close_receipt [12:02:27]cmd_close_receipt [12:02:27]MH_GetDate [12:02:27]Write to MH i2c: F0 00 00 53 18 5A [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: F0 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: F0 09 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: F0 09 00 53 18 00 56 7B E5 66 33 3A A4 66 F6 [12:02:27]GetLastDocTimeStamp 1726315343 [12:02:27]current date 1726315350 [12:02:27]FM_GetShiftState [12:02:27]SAM_PROTO_GetShiftState [12:02:27]wFMCommunicate request_size=4 [12:02:27]MH_SAM_APDU [12:02:27]CAPDU: 80 13 01 00 [12:02:27]Write to MH i2c: E2 08 00 54 18 80 13 01 00 00 00 00 00 E9 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:27]Read from MH i2c: E2 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 0E 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 0E 00 54 18 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 83 [12:02:27]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:02:27]wFMCommunicate OK [12:02:27]SAM_PROTO_GetShiftState done [12:02:27]FM_GetShiftState done [12:02:27]opened in 1726273389 [12:02:27]opened+sec_in_day 1726359789 [12:02:27]quantity*price = 19000 [12:02:27]sum+1 = 19001 [12:02:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 81 14.09.2024 12:02 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92430 ФПД: 68042906046236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120230&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92430&fm=68042906046236&tin=02508201610067®Number=0000000000091423&sum=19000 0 [12:02:28]StoreToDocumentArchive [12:02:28]shift 506 fd 92430 [12:02:28]save to /storage/0506/doc_00092430 [12:02:28]save last doc name /storage/0506/doc_00092430 to /storage/kkm_last_doc_name [12:02:28]save OK [12:02:28]Clear old archive folders... [12:02:28]ProcessDocumentItem done err = 0, tmpTLVsize=297 [12:02:28]tlvbuf is 0100AF80 [12:02:28]SAM_PROTO_ClearQueue [12:02:28]wFMCommunicate request_size=4 [12:02:28]MH_SAM_APDU [12:02:28]CAPDU: 80 09 00 00 [12:02:28]Write to MH i2c: E2 08 00 61 18 80 09 00 00 00 00 00 00 EB [12:02:28]Write i2c OK [12:02:28]MH_I2C_Read... [12:02:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:28]Read from MH i2c: E2 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: E2 03 00 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: E2 03 00 61 18 00 90 00 ED [12:02:28]RAPDU: 90 00 [12:02:28]wFMCommunicate OK [12:02:28]SAM_PROTO_ClearQueue done [12:02:28]KKMCreateOFDPacket [12:02:28]OFDProtocolAddRootSTLVToBuf [12:02:28]FM_MakeSignedData [12:02:28]FM_MakeSignedData [12:02:28]SAM_PROTO_SignData [12:02:28]wFMCommunicate request_size=4 [12:02:28]MH_SAM_APDU [12:02:28]CAPDU: 80 0D 01 02 [12:02:28]Write to MH i2c: E2 08 00 62 18 80 0D 01 02 00 00 00 00 F3 [12:02:28]Write i2c OK [12:02:28]MH_I2C_Read... [12:02:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:28]Read from MH i2c: E2 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: E2 03 00 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [12:02:28]RAPDU: 90 00 [12:02:28]wFMCommunicate OK [12:02:28]wFMCommunicate request_size=255 [12:02:28]MH_SAM_APDU [12:02:28]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 56 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [12:02:28]Write to MH i2c: E2 02 01 63 18 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 56 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 8C [12:02:28]Write i2c OK [12:02:28]MH_I2C_Read... [12:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:28]Read from MH i2c: E2 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: E2 03 00 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [12:02:28]RAPDU: 90 00 [12:02:28]wFMCommunicate OK [12:02:28]wFMCommunicate request_size=56 [12:02:28]MH_SAM_APDU [12:02:28]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 69 01 00 35 04 06 00 3D E2 79 3E 8F 1C [12:02:28]Write to MH i2c: E2 3B 00 64 18 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 69 01 00 35 04 06 00 3D E2 79 3E 8F 1C 00 00 78 [12:02:28]Write i2c OK [12:02:28]MH_I2C_Read... [12:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 03 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 03 00 64 18 00 90 00 F0 [12:02:29]RAPDU: 90 00 [12:02:29]wFMCommunicate OK [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 0D 03 02 [12:02:29]Write to MH i2c: E2 08 00 65 18 80 0D 03 02 00 00 00 00 F8 [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 0B 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 0B 00 65 18 00 F1 83 AA 3A 3E 5B 2D E9 90 00 00 [12:02:29]RAPDU: F1 83 AA 3A 3E 5B 2D E9 90 00 [12:02:29]wFMCommunicate OK [12:02:29]SAM_PROTO_SignData done [12:02:29]FM_MakeSignedData done [12:02:29]CreateOFDProtocolMessage [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 11 00 00 [12:02:29]Write to MH i2c: E2 08 00 66 18 80 11 00 00 00 00 00 00 F8 [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 17 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 17 00 66 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4F [12:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:02:29]wFMCommunicate OK [12:02:29]CreateOFDProtocolMessage done [12:02:29]OFDSenderStorePacket 92430 [12:02:29]StoreOFDPacket docnum=92430 [12:02:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 DD 97 35 01 28 F3 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 56 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 69 01 00 35 04 06 00 3D E2 79 3E 8F 1C F1 83 AA 3A 3E 5B 2D E9 [12:02:29]CheckFolder [12:02:29]dirname=/storage/ofd_packets [12:02:29]CheckFolder done [12:02:29]ProducePacketName [12:02:29]name=ofd_packets/00092430 [12:02:29]NVStorageSaveData ofd_packets/00092430 [12:02:29]File name is /storage/ofd_packets/00092430 [12:02:29]Write 347 bytes [12:02:29]NVStorageSaveData done [12:02:29]OFDSenderStorePacket done [12:02:29]KKMCreateOFDPacket done [12:02:29]NVStorageSaveData kkm_last_timestamp [12:02:29]File name is /storage/kkm_last_timestamp [12:02:29]Write 4 bytes [12:02:29]NVStorageSaveData done [12:02:29]ExternCall_PrintAddStr [12:02:29]wPrintStart [12:02:29]Write to MH i2c: 01 00 00 67 18 7F [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 07 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 07 00 67 18 00 00 00 00 00 FF 0F 94 [12:02:29]RasterBufferAndPrint [12:02:29]line Счет N : (3)127339 [12:02:29]line ИНН: 02508201610067 [12:02:29]line Контрольно-Кассовый Чек [12:02:29]line ПРОДАЖА [12:02:29]line Товар: 4700041420084 [12:02:29]line Салфетки влажн BEST ANTIBACTERIAL 100 шт [12:02:29]line 1.000 * 190.00 [12:02:29]line = 190.00 [12:02:29]line НДС 12% НСП 1% [12:02:29]line > о реализуемом товаре [12:02:29]line ИТОГО: 190.00 [12:02:29]line НСП 1% : 1.68 [12:02:29]line НДС 12% : 20.18 [12:02:29]line Наличными: 190.00 [12:02:29]line Безнал.: 0.00 [12:02:29]line Место: АЗС № 5 "Партнер Нефть" [12:02:29]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:02:29]line СНО: Общий режим [12:02:29]line Чек 81 14.09.2024 12:02 [12:02:29]line Смена: 506 ФФД: 1.0 [12:02:29]line ЗНМ: 03000000022 [12:02:29]line РНМ: 0000000000091423 [12:02:29]line Версия ККМ: 001 [12:02:29]line ФМ: 0000000000874692 [12:02:29]line ФД: 92430 [12:02:29]line ФПД: 68042906046236 [12:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120230&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92430&fm=68042906046236&tin=02508201610067®Number=0000000000091423&sum=19000 [12:02:29]line 0 [12:02:29]written 0, free lines is 4095 [12:02:29]OFD Sender: Processing packet 92430 [packets to send 63, broken 62] [12:02:29]ProducePacketName [12:02:29]name=ofd_packets/00092430 [12:02:29]OFD Sender: To server: pG, [12:02:29]CommunicateWithHost lk.salyk.kg:30040 [12:02:29]ConnectInit lk.salyk.kg [12:02:29]Connected sock=11 [12:02:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 DD 97 35 01 28 F3 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 56 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 69 01 00 35 04 06 00 3D E2 79 3E 8F 1C F1 83 AA 3A 3E 5B 2D E9 [12:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 40 79 47 00 73 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0E 69 01 00 F4 03 04 00 D1 23 E5 66 B6 04 01 00 00 9E 3F D0 D2 36 DA 51 10 [12:02:29]CommunicateWithHost err = 0 [12:02:29]CheckOFDResponse [12:02:29]1017 (14) - 77093643461234 [12:02:29]1041 (16) - 0000000000874692 [12:02:29]1040 (4) - 92430 [12:02:29]1012 (4) - 14.09.2024 05:49 [12:02:29]1206 (1) - 0 [12:02:29]OFD Sender: Remove packet 92430 [12:02:29]ProducePacketName [12:02:29]name=ofd_packets/00092430 [12:02:29]NVStorageDeleteData [12:02:29]Write to MH i2c: 01 00 00 90 18 A8 [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 07 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 14 0D D0 [12:02:29]RasterBufferAndPrint [12:02:29]line [12:02:29]line [12:02:29]line [12:02:29]line [12:02:29]line [12:02:29]written 0, free lines is 3357 [12:02:29]MH_Cut [12:02:29]Write to MH i2c: D1 01 00 97 18 01 81 [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: D1 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: D1 01 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: D1 01 00 97 18 00 80 [12:02:29]Write to MH i2c: 01 00 00 98 18 B0 [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]OFD Sender: No OFD packet to send [12:02:30]*** Cut start [12:02:30]*** Purtial cut [12:02:30]*** Stage 1: CUTSNS_PIN = 1 [12:02:32]Read from MH i2c: 01 [12:02:32]MH_I2C_Read... [12:02:32]*** Stop cut motor [12:02:32]*** Cut end [12:02:32]Read from MH i2c: 01 07 00 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 FF 0F C5 [12:02:32]process_action close_receipt done [12:02:32]requested_data is exist [12:02:32]produce_requested_data [12:02:32]requested_item fm.sn is exist - process it [12:02:32]wFMCommunicate request_size=4 [12:02:32]MH_SAM_APDU [12:02:32]CAPDU: 80 11 00 00 [12:02:32]Write to MH i2c: E2 08 00 99 18 80 11 00 00 00 00 00 00 2B [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:32]Read from MH i2c: E2 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 17 00 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 17 00 99 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 82 [12:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:02:32]wFMCommunicate OK [12:02:32]requested_item fd.num is exist - process it [12:02:32]SAM_PROTO_GetFieldsCounters [12:02:32]wFMCommunicate request_size=4 [12:02:32]MH_SAM_APDU [12:02:32]CAPDU: 80 13 00 00 [12:02:32]Write to MH i2c: E2 08 00 9A 18 80 13 00 00 00 00 00 00 2E [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:32]Read from MH i2c: E2 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 62 00 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 62 00 9A 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0E 69 01 00 0E 04 04 00 FA 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 B3 [12:02:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0E 69 01 00 0E 04 04 00 FA 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:02:32]wFMCommunicate OK [12:02:32]SAM_PROTO_GetFieldsCounters done [12:02:32]requested_item shift.num is exist - process it [12:02:32]requested_item shift.opened is exist - process it [12:02:32]req_shift_opened [12:02:32]FM_GetShiftState [12:02:32]SAM_PROTO_GetShiftState [12:02:32]wFMCommunicate request_size=4 [12:02:32]MH_SAM_APDU [12:02:32]CAPDU: 80 13 01 00 [12:02:32]Write to MH i2c: E2 08 00 9B 18 80 13 01 00 00 00 00 00 30 [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:32]Read from MH i2c: E2 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 0E 00 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: E2 0E 00 9B 18 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 CA [12:02:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:02:32]wFMCommunicate OK [12:02:32]SAM_PROTO_GetShiftState done [12:02:32]FM_GetShiftState done [12:02:32]req_shift_opened done [12:02:32]requested_item shift.open_date is exist - process it [12:02:32]req_shift_open_date [12:02:32]req_shift_open_date done [12:02:32]produce_requested_data done [12:02:32]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92430,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:02:32]process_action_free close_receipt [12:02:32]json_value_free [12:02:32]json_value_free done [12:02:32]process_json_proto returns [12:02:32]Send response to host [12:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92430,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:02:32]free response buf [12:02:32]execute_script done [12:02:32]execute_script returns [12:02:32]free content buf [12:02:32]Sock 8.Close socket [12:02:32]Sock 8.Thread stoped [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:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:04:58]accept exits with 9 [12:04:58]New connection [12:04:58]New thread 3066801508 created [12:04:58]Thread 3066658148 joined [12:04:58]Waiting for new connection... [12:04:58] Sock 9.Parse request [12:04:58]Sock 9.Check first char [12:04:58]Sock 9.First char is OK [12:04:58]request: POST /json_proto HTTP/1.0 [12:04:58]Method: POST [12:04:58]URL: /json_proto [12:04:58]Method is POST - this is cgi request [12:04:58]url: /json_proto [12:04:58]query_string will be loaded in cgi processing [12:04:58]execute_cgi json_proto POST (null) [12:04:58]execute_cgi path=json_proto method=POST [12:04:58]POST find Content-Length [12:04:58]Host: 172.17.57.71:8080 [12:04:58]Content-Length: 807 [12:04:58]Content-Type: application/json [12:04:58] [12:04:58]POST finish read [12:04:58]Found Content-Length = 807 [12:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127340", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:58]execute_script... [12:04: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)127340", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:58]POST & json_proto [12:04:58]process_json_proto [12:04:58]json parsed OK: [12:04:58]protocol is kg_v1.0 [12:04:58]action value=close_receipt [12:04:58]process_action close_receipt [12:04:58]cmd_close_receipt [12:04:58]MH_GetDate [12:04:58]Write to MH i2c: F0 00 00 9C 18 A3 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: F0 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: F0 09 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: F0 09 00 9C 18 00 ED 7B E5 66 33 3A A4 66 D6 [12:04:58]GetLastDocTimeStamp 1726315350 [12:04:58]current date 1726315501 [12:04:58]FM_GetShiftState [12:04:58]SAM_PROTO_GetShiftState [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 13 01 00 [12:04:58]Write to MH i2c: E2 08 00 9D 18 80 13 01 00 00 00 00 00 32 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 0E 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 0E 00 9D 18 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 CC [12:04:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:04:58]wFMCommunicate OK [12:04:58]SAM_PROTO_GetShiftState done [12:04:58]FM_GetShiftState done [12:04:58]opened in 1726273389 [12:04:58]opened+sec_in_day 1726359789 [12:04:58]quantity*price = 5000 [12:04:58]sum+1 = 5001 [12:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 82 14.09.2024 12:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92431 ФПД: 192344386533367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120501&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92431&fm=192344386533367&tin=02508201610067®Number=0000000000091423&sum=5000 0 [12:04:59]StoreToDocumentArchive [12:04:59]shift 506 fd 92431 [12:04:59]save to /storage/0506/doc_00092431 [12:04:59]save last doc name /storage/0506/doc_00092431 to /storage/kkm_last_doc_name [12:04:59]save OK [12:04:59]Clear old archive folders... [12:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:04:59]tlvbuf is 00FD8BC0 [12:04:59]SAM_PROTO_ClearQueue [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 09 00 00 [12:04:59]Write to MH i2c: E2 08 00 AA 18 80 09 00 00 00 00 00 00 34 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 AA 18 00 90 00 36 [12:04:59]RAPDU: 90 00 [12:04:59]wFMCommunicate OK [12:04:59]SAM_PROTO_ClearQueue done [12:04:59]KKMCreateOFDPacket [12:04:59]OFDProtocolAddRootSTLVToBuf [12:04:59]FM_MakeSignedData [12:04:59]FM_MakeSignedData [12:04:59]SAM_PROTO_SignData [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 0D 01 02 [12:04:59]Write to MH i2c: E2 08 00 AB 18 80 0D 01 02 00 00 00 00 3C [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 03 00 AB 18 00 90 00 37 [12:04:59]RAPDU: 90 00 [12:04:59]wFMCommunicate OK [12:04:59]wFMCommunicate request_size=255 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 ED 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [12:04:59]Write to MH i2c: E2 02 01 AC 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 ED 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 4D [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 03 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 03 00 AC 18 00 90 00 38 [12:05:00]RAPDU: 90 00 [12:05:00]wFMCommunicate OK [12:05:00]wFMCommunicate request_size=28 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 0F 69 01 00 35 04 06 00 AE EF AA D5 77 F7 [12:05:00]Write to MH i2c: E2 1F 00 AD 18 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 0F 69 01 00 35 04 06 00 AE EF AA D5 77 F7 00 00 D3 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 03 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 03 00 AD 18 00 90 00 39 [12:05:00]RAPDU: 90 00 [12:05:00]wFMCommunicate OK [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 0D 03 02 [12:05:00]Write to MH i2c: E2 08 00 AE 18 80 0D 03 02 00 00 00 00 41 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]OFD Sender: No OFD packet to send [12:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 0B 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 0B 00 AE 18 00 76 D8 E2 9D 38 9D 80 B7 90 00 1B [12:05:00]RAPDU: 76 D8 E2 9D 38 9D 80 B7 90 00 [12:05:00]wFMCommunicate OK [12:05:00]SAM_PROTO_SignData done [12:05:00]FM_MakeSignedData done [12:05:00]CreateOFDProtocolMessage [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 11 00 00 [12:05:00]Write to MH i2c: E2 08 00 AF 18 80 11 00 00 00 00 00 00 41 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 17 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 17 00 AF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 98 [12:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:05:00]wFMCommunicate OK [12:05:00]CreateOFDProtocolMessage done [12:05:00]OFDSenderStorePacket 92431 [12:05:00]StoreOFDPacket docnum=92431 [12:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 E3 67 19 01 9C 2E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 ED 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0F 69 01 00 35 04 06 00 AE EF AA D5 77 F7 76 D8 E2 9D 38 9D 80 B7 [12:05:00]CheckFolder [12:05:00]dirname=/storage/ofd_packets [12:05:00]CheckFolder done [12:05:00]ProducePacketName [12:05:00]name=ofd_packets/00092431 [12:05:00]NVStorageSaveData ofd_packets/00092431 [12:05:00]File name is /storage/ofd_packets/00092431 [12:05:00]Write 319 bytes [12:05:00]NVStorageSaveData done [12:05:00]OFDSenderStorePacket done [12:05:00]KKMCreateOFDPacket done [12:05:00]NVStorageSaveData kkm_last_timestamp [12:05:00]File name is /storage/kkm_last_timestamp [12:05:00]Write 4 bytes [12:05:00]NVStorageSaveData done [12:05:00]ExternCall_PrintAddStr [12:05:00]wPrintStart [12:05:00]Write to MH i2c: 01 00 00 B0 18 C8 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 07 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 07 00 B0 18 00 00 00 00 00 FF 0F DD [12:05:00]RasterBufferAndPrint [12:05:00]line Счет N : (3)127340 [12:05:00]line ИНН: 02508201610067 [12:05:00]line Контрольно-Кассовый Чек [12:05:00]line ПРОДАЖА [12:05:00]line Товар: 4700000160358 [12:05:00]line Вода Легенда 1л [12:05:00]line 1.000 * 50.00 [12:05:00]line = 50.00 [12:05:00]line НДС 12% НСП 1% [12:05:00]line > о реализуемом товаре [12:05:00]line ИТОГО: 50.00 [12:05:00]line НСП 1% : 0.44 [12:05:00]line НДС 12% : 5.31 [12:05:00]line Наличными: 0.00 [12:05:00]line Безнал.: 50.00 [12:05:00]line Место: АЗС № 5 "Партнер Нефть" [12:05:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:05:00]line СНО: Общий режим [12:05:00]line Чек 82 14.09.2024 12:05 [12:05:00]line Смена: 506 ФФД: 1.0 [12:05:00]line ЗНМ: 03000000022 [12:05:00]line РНМ: 0000000000091423 [12:05:00]line Версия ККМ: 001 [12:05:00]line Платежная система: Бакай Банк [12:05:00]line ФМ: 0000000000874692 [12:05:00]line ФД: 92431 [12:05:00]line ФПД: 192344386533367 [12:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120501&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92431&fm=192344386533367&tin=02508201610067®Number=0000000000091423&sum=5000 [12:05:00]OFD Sender: Processing packet 92431 [packets to send 63, broken 62] [12:05:00]ProducePacketName [12:05:00]name=ofd_packets/00092431 [12:05:00]OFD Sender: To server: pG, [12:05:00]CommunicateWithHost lk.salyk.kg:30040 [12:05:00]ConnectInit lk.salyk.kg [12:05:00]line 0 [12:05:00]written 0, free lines is 4095 [12:05:00]Connected sock=10 [12:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 E3 67 19 01 9C 2E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 ED 7B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0F 69 01 00 35 04 06 00 AE EF AA D5 77 F7 76 D8 E2 9D 38 9D 80 B7 [12:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9E BA 47 00 CE 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 0F 69 01 00 F4 03 04 00 68 24 E5 66 B6 04 01 00 00 65 4A A2 4D 1E B5 D0 0B [12:05:00]CommunicateWithHost err = 0 [12:05:00]CheckOFDResponse [12:05:00]1017 (14) - 77093643461234 [12:05:00]1041 (16) - 0000000000874692 [12:05:00]1040 (4) - 92431 [12:05:00]1012 (4) - 14.09.2024 05:51 [12:05:00]1206 (1) - 0 [12:05:00]OFD Sender: Remove packet 92431 [12:05:00]ProducePacketName [12:05:00]name=ofd_packets/00092431 [12:05:00]NVStorageDeleteData [12:05:00]Write to MH i2c: 01 00 00 DA 18 F2 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 07 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 07 00 DA 18 00 00 00 00 00 FE 0C 03 [12:05:00]RasterBufferAndPrint [12:05:00]line [12:05:00]line [12:05:00]line [12:05:00]line [12:05:00]line [12:05:00]written 0, free lines is 3332 [12:05:01]MH_Cut [12:05:01]Write to MH i2c: D1 01 00 E1 18 01 CB [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: D1 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: D1 01 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: D1 01 00 E1 18 00 CA [12:05:01]Write to MH i2c: 01 00 00 E2 18 FA [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]OFD Sender: No OFD packet to send [12:05:01]*** Cut start [12:05:01]*** Purtial cut [12:05:01]*** Stage 1: CUTSNS_PIN = 1 [12:05:03]Read from MH i2c: 01 [12:05:03]MH_I2C_Read... [12:05:03]*** Stop cut motor [12:05:03]*** Cut end [12:05:03]Read from MH i2c: 01 07 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 FF 0F 0F [12:05:03]process_action close_receipt done [12:05:03]requested_data is exist [12:05:03]produce_requested_data [12:05:03]requested_item fm.sn is exist - process it [12:05:03]wFMCommunicate request_size=4 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 11 00 00 [12:05:03]Write to MH i2c: E2 08 00 E3 18 80 11 00 00 00 00 00 00 75 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 17 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 17 00 E3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CC [12:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:05:03]wFMCommunicate OK [12:05:03]requested_item fd.num is exist - process it [12:05:03]SAM_PROTO_GetFieldsCounters [12:05:03]wFMCommunicate request_size=4 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 13 00 00 [12:05:03]Write to MH i2c: E2 08 00 E4 18 80 13 00 00 00 00 00 00 78 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 62 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 62 00 E4 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0F 69 01 00 0E 04 04 00 FA 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 01 [12:05:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 0F 69 01 00 0E 04 04 00 FA 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:05:03]wFMCommunicate OK [12:05:03]SAM_PROTO_GetFieldsCounters done [12:05:03]requested_item shift.num is exist - process it [12:05:03]requested_item shift.opened is exist - process it [12:05:03]req_shift_opened [12:05:03]FM_GetShiftState [12:05:03]SAM_PROTO_GetShiftState [12:05:03]wFMCommunicate request_size=4 [12:05:03]MH_SAM_APDU [12:05:03]CAPDU: 80 13 01 00 [12:05:03]Write to MH i2c: E2 08 00 E5 18 80 13 01 00 00 00 00 00 7A [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:03]Read from MH i2c: E2 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 0E 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: E2 0E 00 E5 18 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 14 [12:05:03]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:05:03]wFMCommunicate OK [12:05:03]SAM_PROTO_GetShiftState done [12:05:03]FM_GetShiftState done [12:05:03]req_shift_opened done [12:05:03]requested_item shift.open_date is exist - process it [12:05:03]req_shift_open_date [12:05:03]req_shift_open_date done [12:05:03]produce_requested_data done [12:05:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92431,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:05:03]process_action_free close_receipt [12:05:03]json_value_free [12:05:03]json_value_free done [12:05:03]process_json_proto returns [12:05:03]Send response to host [12:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92431,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:05:03]free response buf [12:05:03]execute_script done [12:05:03]execute_script returns [12:05:03]free content buf [12:05:03]Sock 9.Close socket [12:05:03]Sock 9.Thread stoped [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:29]accept exits with 8 [12:07:29]New connection [12:07:29]New thread 3066658148 created [12:07:29]Thread 3066801508 joined [12:07:29]Waiting for new connection... [12:07:29] Sock 8.Parse request [12:07:29]Sock 8.Check first char [12:07:29]Sock 8.First char is OK [12:07:29]request: POST /json_proto HTTP/1.0 [12:07:29]Method: POST [12:07:29]URL: /json_proto [12:07:29]Method is POST - this is cgi request [12:07:29]url: /json_proto [12:07:29]query_string will be loaded in cgi processing [12:07:29]execute_cgi json_proto POST (null) [12:07:29]execute_cgi path=json_proto method=POST [12:07:29]POST find Content-Length [12:07:29]Host: 172.17.57.71:8080 [12:07:29]Content-Length: 865 [12:07:29]Content-Type: application/json [12:07:29] [12:07:29]POST finish read [12:07:29]Found Content-Length = 865 [12:07:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127341", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:29]execute_script... [12:07: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)127341", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:29]POST & json_proto [12:07:29]process_json_proto [12:07:29]json parsed OK: [12:07:29]protocol is kg_v1.0 [12:07:29]action value=close_receipt [12:07:29]process_action close_receipt [12:07:29]cmd_close_receipt [12:07:29]MH_GetDate [12:07:29]Write to MH i2c: F0 00 00 E6 18 ED [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: F0 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: F0 09 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: F0 09 00 E6 18 00 84 7C E5 66 33 3A A4 66 B8 [12:07:29]GetLastDocTimeStamp 1726315501 [12:07:29]current date 1726315652 [12:07:29]FM_GetShiftState [12:07:29]SAM_PROTO_GetShiftState [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 13 01 00 [12:07:29]Write to MH i2c: E2 08 00 E7 18 80 13 01 00 00 00 00 00 7C [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 0E 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 0E 00 E7 18 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 16 [12:07:29]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:07:29]wFMCommunicate OK [12:07:29]SAM_PROTO_GetShiftState done [12:07:29]FM_GetShiftState done [12:07:29]opened in 1726273389 [12:07:29]opened+sec_in_day 1726359789 [12:07:29]quantity*price = 8900 [12:07:29]sum+1 = 8901 [12:07:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 0.00 Безнал.: 89.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 83 14.09.2024 12:07 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92432 ФПД: 202101873487522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120732&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92432&fm=202101873487522&tin=02508201610067®Number=0000000000091423&sum=8900 0 [12:07:30]StoreToDocumentArchive [12:07:30]shift 506 fd 92432 [12:07:30]save to /storage/0506/doc_00092432 [12:07:30]save last doc name /storage/0506/doc_00092432 to /storage/kkm_last_doc_name [12:07:30]save OK [12:07:30]Clear old archive folders... [12:07:30]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:07:30]tlvbuf is 00FF89A0 [12:07:30]SAM_PROTO_ClearQueue [12:07:30]wFMCommunicate request_size=4 [12:07:30]MH_SAM_APDU [12:07:30]CAPDU: 80 09 00 00 [12:07:30]Write to MH i2c: E2 08 00 F4 18 80 09 00 00 00 00 00 00 7E [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:30]Read from MH i2c: E2 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 03 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 03 00 F4 18 00 90 00 80 [12:07:30]RAPDU: 90 00 [12:07:30]wFMCommunicate OK [12:07:30]SAM_PROTO_ClearQueue done [12:07:30]KKMCreateOFDPacket [12:07:30]OFDProtocolAddRootSTLVToBuf [12:07:30]FM_MakeSignedData [12:07:30]FM_MakeSignedData [12:07:30]SAM_PROTO_SignData [12:07:30]wFMCommunicate request_size=4 [12:07:30]MH_SAM_APDU [12:07:30]CAPDU: 80 0D 01 02 [12:07:30]Write to MH i2c: E2 08 00 F5 18 80 0D 01 02 00 00 00 00 86 [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:30]Read from MH i2c: E2 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 03 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 03 00 F5 18 00 90 00 81 [12:07:30]RAPDU: 90 00 [12:07:30]wFMCommunicate OK [12:07:30]wFMCommunicate request_size=255 [12:07:30]MH_SAM_APDU [12:07:30]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 84 7C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:07:30]Write to MH i2c: E2 02 01 F6 18 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 84 7C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 5B [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:30]Read from MH i2c: E2 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 03 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 03 00 F6 18 00 90 00 82 [12:07:30]RAPDU: 90 00 [12:07:30]wFMCommunicate OK [12:07:30]wFMCommunicate request_size=53 [12:07:30]MH_SAM_APDU [12:07:30]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 10 69 01 00 35 04 06 00 B7 CF 82 60 AE A2 [12:07:30]Write to MH i2c: E2 38 00 F7 18 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 10 69 01 00 35 04 06 00 B7 CF 82 60 AE A2 00 00 AE [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:30]Read from MH i2c: E2 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 03 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 03 00 F7 18 00 90 00 83 [12:07:30]RAPDU: 90 00 [12:07:30]wFMCommunicate OK [12:07:30]wFMCommunicate request_size=4 [12:07:30]MH_SAM_APDU [12:07:30]CAPDU: 80 0D 03 02 [12:07:30]Write to MH i2c: E2 08 00 F8 18 80 0D 03 02 00 00 00 00 8B [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:30]Read from MH i2c: E2 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 0B 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: E2 0B 00 F8 18 00 A6 14 7C A4 16 DD 6B 94 90 00 58 [12:07:30]RAPDU: A6 14 7C A4 16 DD 6B 94 90 00 [12:07:30]wFMCommunicate OK [12:07:30]SAM_PROTO_SignData done [12:07:30]FM_MakeSignedData done [12:07:30]CreateOFDProtocolMessage [12:07:30]wFMCommunicate request_size=4 [12:07:30]MH_SAM_APDU [12:07:30]CAPDU: 80 11 00 00 [12:07:30]Write to MH i2c: E2 08 00 F9 18 80 11 00 00 00 00 00 00 8B [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:31]Read from MH i2c: E2 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 17 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 17 00 F9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E2 [12:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:07:31]wFMCommunicate OK [12:07:31]CreateOFDProtocolMessage done [12:07:31]OFDSenderStorePacket 92432 [12:07:31]StoreOFDPacket docnum=92432 [12:07:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 3C AF 32 01 CB 4C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 84 7C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 10 69 01 00 35 04 06 00 B7 CF 82 60 AE A2 A6 14 7C A4 16 DD 6B 94 [12:07:31]CheckFolder [12:07:31]dirname=/storage/ofd_packets [12:07:31]CheckFolder done [12:07:31]ProducePacketName [12:07:31]name=ofd_packets/00092432 [12:07:31]NVStorageSaveData ofd_packets/00092432 [12:07:31]File name is /storage/ofd_packets/00092432 [12:07:31]Write 344 bytes [12:07:31]NVStorageSaveData done [12:07:31]OFDSenderStorePacket done [12:07:31]KKMCreateOFDPacket done [12:07:31]NVStorageSaveData kkm_last_timestamp [12:07:31]File name is /storage/kkm_last_timestamp [12:07:31]Write 4 bytes [12:07:31]NVStorageSaveData done [12:07:31]ExternCall_PrintAddStr [12:07:31]wPrintStart [12:07:31]Write to MH i2c: 01 00 00 FA 18 12 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: 01 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: 01 07 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: 01 07 00 FA 18 00 00 00 00 00 FF 0F 27 [12:07:31]RasterBufferAndPrint [12:07:31]line Счет N : (3)127341 [12:07:31]line ИНН: 02508201610067 [12:07:31]line Контрольно-Кассовый Чек [12:07:31]line ПРОДАЖА [12:07:31]line Товар: 5000159390729 [12:07:31]line Шок Батончик Твикс Экстра 82г [12:07:31]line 1.000 * 89.00 [12:07:31]line = 89.00 [12:07:31]line НДС 12% НСП 1% [12:07:31]line > о реализуемом товаре [12:07:31]line ИТОГО: 89.00 [12:07:31]line НСП 1% : 0.79 [12:07:31]line НДС 12% : 9.45 [12:07:31]line Наличными: 0.00 [12:07:31]line Безнал.: 89.00 [12:07:31]line Место: АЗС № 5 "Партнер Нефть" [12:07:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:07:31]line СНО: Общий режим [12:07:31]line Чек 83 14.09.2024 12:07 [12:07:31]line Смена: 506 ФФД: 1.0 [12:07:31]line ЗНМ: 03000000022 [12:07:31]line РНМ: 0000000000091423 [12:07:31]line Версия ККМ: 001 [12:07:31]line Платежная система: О! деньги [12:07:31]line ФМ: 0000000000874692 [12:07:31]line ФД: 92432 [12:07:31]line ФПД: 202101873487522 [12:07:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120732&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92432&fm=202101873487522&tin=02508201610067®Number=0000000000091423&sum=8900 [12:07:31]line 0 [12:07:31]OFD Sender: Processing packet 92432 [packets to send 63, broken 62] [12:07:31]ProducePacketName [12:07:31]name=ofd_packets/00092432 [12:07:31]OFD Sender: To server: pG, [12:07:31]CommunicateWithHost lk.salyk.kg:30040 [12:07:31]ConnectInit lk.salyk.kg [12:07:31]written 0, free lines is 4095 [12:07:31]Connected sock=10 [12:07:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 3C AF 32 01 CB 4C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 84 7C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 10 69 01 00 35 04 06 00 B7 CF 82 60 AE A2 A6 14 7C A4 16 DD 6B 94 [12:07:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2A 40 47 00 3A 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 10 69 01 00 F4 03 04 00 FF 24 E5 66 B6 04 01 00 00 4F 50 1E 69 68 F2 F9 44 [12:07:31]CommunicateWithHost err = 0 [12:07:31]CheckOFDResponse [12:07:31]1017 (14) - 77093643461234 [12:07:31]1041 (16) - 0000000000874692 [12:07:31]1040 (4) - 92432 [12:07:31]1012 (4) - 14.09.2024 05:54 [12:07:31]1206 (1) - 0 [12:07:31]OFD Sender: Remove packet 92432 [12:07:31]ProducePacketName [12:07:31]name=ofd_packets/00092432 [12:07:31]NVStorageDeleteData [12:07:31]Write to MH i2c: 01 00 00 25 19 3E [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: 01 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: 01 07 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: 01 07 00 25 19 00 00 00 00 00 EE 0C 3F [12:07:31]RasterBufferAndPrint [12:07:31]line [12:07:31]line [12:07:31]line [12:07:31]line [12:07:31]line [12:07:31]written 0, free lines is 3317 [12:07:31]MH_Cut [12:07:31]Write to MH i2c: D1 01 00 2C 19 01 17 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: D1 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: D1 01 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: D1 01 00 2C 19 00 16 [12:07:31]Write to MH i2c: 01 00 00 2D 19 46 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:32]OFD Sender: No OFD packet to send [12:07:32]*** Cut start [12:07:32]*** Purtial cut [12:07:32]*** Stage 1: CUTSNS_PIN = 1 [12:07:34]Read from MH i2c: 01 [12:07:34]MH_I2C_Read... [12:07:34]*** Stop cut motor [12:07:34]*** Cut end [12:07:34]Read from MH i2c: 01 07 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: 01 07 00 2D 19 00 00 00 00 00 FF 0F 5B [12:07:34]process_action close_receipt done [12:07:34]requested_data is exist [12:07:34]produce_requested_data [12:07:34]requested_item fm.sn is exist - process it [12:07:34]wFMCommunicate request_size=4 [12:07:34]MH_SAM_APDU [12:07:34]CAPDU: 80 11 00 00 [12:07:34]Write to MH i2c: E2 08 00 2E 19 80 11 00 00 00 00 00 00 C1 [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:34]Read from MH i2c: E2 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 17 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 17 00 2E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 18 [12:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:07:34]wFMCommunicate OK [12:07:34]requested_item fd.num is exist - process it [12:07:34]SAM_PROTO_GetFieldsCounters [12:07:34]wFMCommunicate request_size=4 [12:07:34]MH_SAM_APDU [12:07:34]CAPDU: 80 13 00 00 [12:07:34]Write to MH i2c: E2 08 00 2F 19 80 13 00 00 00 00 00 00 C4 [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:34]Read from MH i2c: E2 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 62 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 62 00 2F 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 10 69 01 00 0E 04 04 00 FA 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 51 [12:07:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 10 69 01 00 0E 04 04 00 FA 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:07:34]wFMCommunicate OK [12:07:34]SAM_PROTO_GetFieldsCounters done [12:07:34]requested_item shift.num is exist - process it [12:07:34]requested_item shift.opened is exist - process it [12:07:34]req_shift_opened [12:07:34]FM_GetShiftState [12:07:34]SAM_PROTO_GetShiftState [12:07:34]wFMCommunicate request_size=4 [12:07:34]MH_SAM_APDU [12:07:34]CAPDU: 80 13 01 00 [12:07:34]Write to MH i2c: E2 08 00 30 19 80 13 01 00 00 00 00 00 C6 [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:34]Read from MH i2c: E2 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 0E 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 0E 00 30 19 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 60 [12:07:34]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:07:34]wFMCommunicate OK [12:07:34]SAM_PROTO_GetShiftState done [12:07:34]FM_GetShiftState done [12:07:34]req_shift_opened done [12:07:34]requested_item shift.open_date is exist - process it [12:07:34]req_shift_open_date [12:07:34]req_shift_open_date done [12:07:34]produce_requested_data done [12:07:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92432,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:07:34]process_action_free close_receipt [12:07:34]json_value_free [12:07:34]json_value_free done [12:07:34]process_json_proto returns [12:07:34]Send response to host [12:07:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92432,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:07:34]free response buf [12:07:34]execute_script done [12:07:34]execute_script returns [12:07:34]free content buf [12:07:34]Sock 8.Close socket [12:07:34]Sock 8.Thread stoped [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:24]accept exits with 9 [12:09:24]New connection [12:09:24]New thread 3066801508 created [12:09:24]Thread 3066658148 joined [12:09:24]Waiting for new connection... [12:09:24] Sock 9.Parse request [12:09:24]Sock 9.Check first char [12:09:24]Sock 9.First char is OK [12:09:24]request: POST /json_proto HTTP/1.0 [12:09:24]Method: POST [12:09:24]URL: /json_proto [12:09:24]Method is POST - this is cgi request [12:09:24]url: /json_proto [12:09:24]query_string will be loaded in cgi processing [12:09:24]execute_cgi json_proto POST (null) [12:09:24]execute_cgi path=json_proto method=POST [12:09:24]POST find Content-Length [12:09:24]Host: 172.17.57.71:8080 [12:09:24]Content-Length: 1679 [12:09:24]Content-Type: application/json [12:09:24] [12:09:24]POST finish read [12:09:24]Found Content-Length = 1679 [12:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127342", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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": "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 }]} ], "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" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:24]execute_script... [12:09: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)127342", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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": "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 }]} ], "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" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:25]POST & json_proto [12:09:25]process_json_proto [12:09:25]json parsed OK: [12:09:25]protocol is kg_v1.0 [12:09:25]action value=close_receipt [12:09:25]process_action close_receipt [12:09:25]cmd_close_receipt [12:09:25]MH_GetDate [12:09:25]Write to MH i2c: F0 00 00 31 19 39 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: F0 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: F0 09 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: F0 09 00 31 19 00 F8 7C E5 66 33 3A A4 66 78 [12:09:25]GetLastDocTimeStamp 1726315652 [12:09:25]current date 1726315768 [12:09:25]FM_GetShiftState [12:09:25]SAM_PROTO_GetShiftState [12:09:25]wFMCommunicate request_size=4 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 13 01 00 [12:09:25]Write to MH i2c: E2 08 00 32 19 80 13 01 00 00 00 00 00 C8 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 0E 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 0E 00 32 19 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 62 [12:09:25]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:09:25]wFMCommunicate OK [12:09:25]SAM_PROTO_GetShiftState done [12:09:25]FM_GetShiftState done [12:09:25]opened in 1726273389 [12:09:25]opened+sec_in_day 1726359789 [12:09:25]quantity*price = 17000 [12:09:25]sum+1 = 17001 [12:09:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 5.000 * 7.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 435.00 НСП 1% : 3.84 НДС 12% : 46.19 Наличными: 0.00 Безнал.: 435.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 84 14.09.2024 12:09 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92433 ФПД: 235484201629211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120928&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92433&fm=235484201629211&tin=02508201610067®Number=0000000000091423&sum=43500 0 [12:09:26]StoreToDocumentArchive [12:09:26]shift 506 fd 92433 [12:09:26]save to /storage/0506/doc_00092433 [12:09:26]save last doc name /storage/0506/doc_00092433 to /storage/kkm_last_doc_name [12:09:26]save OK [12:09:26]Clear old archive folders... [12:09:26]ProcessDocumentItem done err = 0, tmpTLVsize=621 [12:09:26]tlvbuf is 0102F4A0 [12:09:26]SAM_PROTO_ClearQueue [12:09:26]wFMCommunicate request_size=4 [12:09:26]MH_SAM_APDU [12:09:26]CAPDU: 80 09 00 00 [12:09:26]Write to MH i2c: E2 08 00 3F 19 80 09 00 00 00 00 00 00 CA [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:26]Read from MH i2c: E2 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 03 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 03 00 3F 19 00 90 00 CC [12:09:26]RAPDU: 90 00 [12:09:26]wFMCommunicate OK [12:09:26]SAM_PROTO_ClearQueue done [12:09:26]KKMCreateOFDPacket [12:09:26]OFDProtocolAddRootSTLVToBuf [12:09:26]FM_MakeSignedData [12:09:26]FM_MakeSignedData [12:09:26]SAM_PROTO_SignData [12:09:26]wFMCommunicate request_size=4 [12:09:26]MH_SAM_APDU [12:09:26]CAPDU: 80 0D 01 02 [12:09:26]Write to MH i2c: E2 08 00 40 19 80 0D 01 02 00 00 00 00 D2 [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:26]Read from MH i2c: E2 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 03 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 03 00 40 19 00 90 00 CD [12:09:26]RAPDU: 90 00 [12:09:26]wFMCommunicate OK [12:09:26]wFMCommunicate request_size=255 [12:09:26]MH_SAM_APDU [12:09:26]CAPDU: 80 0D 02 02 FA 03 00 6D 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D [12:09:26]Write to MH i2c: E2 02 01 41 19 80 0D 02 02 FA 00 03 00 6D 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 9D [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:26]Read from MH i2c: E2 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 03 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 03 00 41 19 00 90 00 CE [12:09:26]RAPDU: 90 00 [12:09:26]wFMCommunicate OK [12:09:26]wFMCommunicate request_size=255 [12:09:26]MH_SAM_APDU [12:09:26]CAPDU: 80 0D 02 02 FA 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 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 [12:09:26]Write to MH i2c: E2 02 01 42 19 80 0D 02 02 FA 00 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 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 B3 [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 42 19 00 90 00 CF [12:09:27]RAPDU: 90 00 [12:09:27]wFMCommunicate OK [12:09:27]wFMCommunicate request_size=130 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F8 7C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 69 01 00 35 04 06 00 D6 2B F0 30 36 1B [12:09:27]Write to MH i2c: E2 85 00 43 19 80 0D 02 02 7D 00 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F8 7C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 69 01 00 35 04 06 00 D6 2B F0 30 36 1B 00 00 B2 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]OFD Sender: No OFD packet to send [12:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [12:09:27]RAPDU: 90 00 [12:09:27]wFMCommunicate OK [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 0D 03 02 [12:09:27]Write to MH i2c: E2 08 00 44 19 80 0D 03 02 00 00 00 00 D8 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0B 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0B 00 44 19 00 58 A0 A9 80 AB 48 3A B0 90 00 D7 [12:09:27]RAPDU: 58 A0 A9 80 AB 48 3A B0 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_SignData done [12:09:27]FM_MakeSignedData done [12:09:27]CreateOFDProtocolMessage [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 11 00 00 [12:09:27]Write to MH i2c: E2 08 00 45 19 80 11 00 00 00 00 00 00 D8 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 17 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 17 00 45 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2F [12:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:09:27]wFMCommunicate OK [12:09:27]CreateOFDProtocolMessage done [12:09:27]OFDSenderStorePacket 92433 [12:09:27]StoreOFDPacket docnum=92433 [12:09:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 81 02 00 00 75 EA 79 02 02 CF 5A 03 01 00 03 00 6D 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F8 7C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 69 01 00 35 04 06 00 D6 2B F0 30 36 1B 58 A0 A9 80 AB 48 3A B0 [12:09:27]CheckFolder [12:09:27]dirname=/storage/ofd_packets [12:09:27]CheckFolder done [12:09:27]ProducePacketName [12:09:27]name=ofd_packets/00092433 [12:09:27]NVStorageSaveData ofd_packets/00092433 [12:09:27]File name is /storage/ofd_packets/00092433 [12:09:27]Write 671 bytes [12:09:27]NVStorageSaveData done [12:09:27]OFDSenderStorePacket done [12:09:27]KKMCreateOFDPacket done [12:09:27]NVStorageSaveData kkm_last_timestamp [12:09:27]File name is /storage/kkm_last_timestamp [12:09:27]Write 4 bytes [12:09:27]NVStorageSaveData done [12:09:27]ExternCall_PrintAddStr [12:09:27]wPrintStart [12:09:27]Write to MH i2c: 01 00 00 46 19 5F [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: 01 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: 01 07 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: 01 07 00 46 19 00 00 00 00 00 FF 0F 74 [12:09:27]RasterBufferAndPrint [12:09:27]line Счет N : (3)127342 [12:09:27]line ИНН: 02508201610067 [12:09:27]line Контрольно-Кассовый Чек [12:09:27]line ПРОДАЖА [12:09:27]line Товар: 8901086040008 [12:09:27]line Жид/ст ПН летняя 4,5л [12:09:27]line 1.000 * 170.00 [12:09:27]line = 170.00 [12:09:27]line НДС 12% НСП 1% [12:09:27]line > о реализуемом товаре [12:09:27]line Товар: 5449000000439 [12:09:27]line Напиток Кока-Кола 1,5л [12:09:27]line 1.000 * 155.00 [12:09:27]line = 155.00 [12:09:27]line НДС 12% НСП 1% [12:09:27]line > о реализуемом товаре [12:09:27]line Товар: 5449000189394 [12:09:27]line Холодный чай Fuse ягода 0,5л [12:09:27]line 1.000 * 75.00 [12:09:27]line = 75.00 [12:09:27]line НДС 12% НСП 1% [12:09:27]line > о реализуемом товаре [12:09:27]line Товар: 2000053020015 [12:09:27]line Бумажные стаканы 250мл 1шт [12:09:27]line 5.000 * 7.00 [12:09:27]line = 35.00 [12:09:27]line НДС 12% НСП 1% [12:09:27]line > о реализуемом товаре [12:09:27]line ИТОГО: 435.00 [12:09:27]line НСП 1% : 3.84 [12:09:27]line НДС 12% : 46.19 [12:09:27]line Наличными: 0.00 [12:09:27]line Безнал.: 435.00 [12:09:27]line Место: АЗС № 5 "Партнер Нефть" [12:09:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:09:27]line СНО: Общий режим [12:09:27]line Чек 84 14.09.2024 12:09 [12:09:27]line Смена: 506 ФФД: 1.0 [12:09:27]line ЗНМ: 03000000022 [12:09:27]line РНМ: 0000000000091423 [12:09:27]line Версия ККМ: 001 [12:09:27]line Платежная система: Бакай Банк [12:09:27]line ФМ: 0000000000874692 [12:09:27]line ФД: 92433 [12:09:27]line ФПД: 235484201629211 [12:09:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T120928&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92433&fm=235484201629211&tin=02508201610067®Number=0000000000091423&sum=43500 [12:09:27]OFD Sender: Processing packet 92433 [packets to send 63, broken 62] [12:09:27]line 0 [12:09:27]ProducePacketName [12:09:27]name=ofd_packets/00092433 [12:09:27]OFD Sender: To server: pG, [12:09:27]CommunicateWithHost lk.salyk.kg:30040 [12:09:27]ConnectInit lk.salyk.kg [12:09:27]written 0, free lines is 4095 [12:09:27]Connected sock=10 [12:09:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 81 02 00 00 75 EA 79 02 02 CF 5A 03 01 00 03 00 6D 02 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F8 7C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 69 01 00 35 04 06 00 D6 2B F0 30 36 1B 58 A0 A9 80 AB 48 3A B0 [12:09:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 16 E9 47 00 B9 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 11 69 01 00 F4 03 04 00 74 25 E5 66 B6 04 01 00 00 BF F3 D3 EB 60 99 0C 22 [12:09:28]CommunicateWithHost err = 0 [12:09:28]CheckOFDResponse [12:09:28]1017 (14) - 77093643461234 [12:09:28]1041 (16) - 0000000000874692 [12:09:28]1040 (4) - 92433 [12:09:28]1012 (4) - 14.09.2024 05:56 [12:09:28]1206 (1) - 0 [12:09:28]OFD Sender: Remove packet 92433 [12:09:28]ProducePacketName [12:09:28]name=ofd_packets/00092433 [12:09:28]NVStorageDeleteData [12:09:28]Write to MH i2c: 01 00 00 83 19 9C [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 07 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 0E 0C BD [12:09:28]RasterBufferAndPrint [12:09:28]line [12:09:28]line [12:09:28]line [12:09:28]line [12:09:28]line [12:09:28]written 0, free lines is 3095 [12:09:28]MH_Cut [12:09:28]Write to MH i2c: D1 01 00 8A 19 01 75 [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: D1 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: D1 01 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: D1 01 00 8A 19 00 74 [12:09:28]Write to MH i2c: 01 00 00 8B 19 A4 [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]OFD Sender: No OFD packet to send [12:09:29]*** Cut start [12:09:29]*** Purtial cut [12:09:29]*** Stage 1: CUTSNS_PIN = 1 [12:09:31]Read from MH i2c: 01 [12:09:31]MH_I2C_Read... [12:09:31]*** Stop cut motor [12:09:31]*** Cut end [12:09:31]Read from MH i2c: 01 07 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: 01 07 00 8B 19 00 00 00 00 00 FF 0F B9 [12:09:31]process_action close_receipt done [12:09:31]requested_data is exist [12:09:31]produce_requested_data [12:09:31]requested_item fm.sn is exist - process it [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 11 00 00 [12:09:31]Write to MH i2c: E2 08 00 8C 19 80 11 00 00 00 00 00 00 1F [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 17 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 17 00 8C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 76 [12:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:09:31]wFMCommunicate OK [12:09:31]requested_item fd.num is exist - process it [12:09:31]SAM_PROTO_GetFieldsCounters [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 13 00 00 [12:09:31]Write to MH i2c: E2 08 00 8D 19 80 13 00 00 00 00 00 00 22 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 62 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 62 00 8D 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 11 69 01 00 0E 04 04 00 FA 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 B3 [12:09:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 11 69 01 00 0E 04 04 00 FA 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:09:31]wFMCommunicate OK [12:09:31]SAM_PROTO_GetFieldsCounters done [12:09:31]requested_item shift.num is exist - process it [12:09:31]requested_item shift.opened is exist - process it [12:09:31]req_shift_opened [12:09:31]FM_GetShiftState [12:09:31]SAM_PROTO_GetShiftState [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 13 01 00 [12:09:31]Write to MH i2c: E2 08 00 8E 19 80 13 01 00 00 00 00 00 24 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 0E 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 0E 00 8E 19 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BE [12:09:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:09:31]wFMCommunicate OK [12:09:31]SAM_PROTO_GetShiftState done [12:09:31]FM_GetShiftState done [12:09:31]req_shift_opened done [12:09:31]requested_item shift.open_date is exist - process it [12:09:31]req_shift_open_date [12:09:31]req_shift_open_date done [12:09:31]produce_requested_data done [12:09:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92433,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:09:31]process_action_free close_receipt [12:09:31]json_value_free [12:09:31]json_value_free done [12:09:31]process_json_proto returns [12:09:31]Send response to host [12:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92433,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:09:31]free response buf [12:09:31]execute_script done [12:09:31]execute_script returns [12:09:31]free content buf [12:09:31]Sock 9.Close socket [12:09:31]Sock 9.Thread stoped [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:07]accept exits with 8 [12:10:07]New connection [12:10:07]New thread 3066658148 created [12:10:07]Thread 3066801508 joined [12:10:07]Waiting for new connection... [12:10:07] Sock 8.Parse request [12:10:07]Sock 8.Check first char [12:10:07]Sock 8.First char is OK [12:10:07]request: POST /json_proto HTTP/1.0 [12:10:07]Method: POST [12:10:07]URL: /json_proto [12:10:07]Method is POST - this is cgi request [12:10:07]url: /json_proto [12:10:07]query_string will be loaded in cgi processing [12:10:07]execute_cgi json_proto POST (null) [12:10:07]execute_cgi path=json_proto method=POST [12:10:07]POST find Content-Length [12:10:07]Host: 172.17.57.71:8080 [12:10:07]Content-Length: 642 [12:10:07]Content-Type: application/json [12:10:07] [12:10:07]POST finish read [12:10:07]Found Content-Length = 642 [12:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127343", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:07]execute_script... [12: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)127343", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:07]POST & json_proto [12:10:07]process_json_proto [12:10:07]json parsed OK: [12:10:07]protocol is kg_v1.0 [12:10:07]action value=close_receipt [12:10:07]process_action close_receipt [12:10:07]cmd_close_receipt [12:10:07]MH_GetDate [12:10:07]Write to MH i2c: F0 00 00 8F 19 97 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 09 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 09 00 8F 19 00 22 7D E5 66 33 3A A4 66 01 [12:10:07]GetLastDocTimeStamp 1726315768 [12:10:07]current date 1726315810 [12:10:07]FM_GetShiftState [12:10:07]SAM_PROTO_GetShiftState [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 13 01 00 [12:10:07]Write to MH i2c: E2 08 00 90 19 80 13 01 00 00 00 00 00 26 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 0E 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 0E 00 90 19 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C0 [12:10:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:10:07]wFMCommunicate OK [12:10:07]SAM_PROTO_GetShiftState done [12:10:07]FM_GetShiftState done [12:10:07]opened in 1726273389 [12:10:07]opened+sec_in_day 1726359789 [12:10:07]quantity*price = 5900 [12:10:07]sum+1 = 5901 [12:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 85 14.09.2024 12:10 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92434 ФПД: 123084844501620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T121010&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92434&fm=123084844501620&tin=02508201610067®Number=0000000000091423&sum=5900 0 [12:10:08]StoreToDocumentArchive [12:10:08]shift 506 fd 92434 [12:10:08]save to /storage/0506/doc_00092434 [12:10:08]save last doc name /storage/0506/doc_00092434 to /storage/kkm_last_doc_name [12:10:08]save OK [12:10:08]Clear old archive folders... [12:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=281 [12:10:08]tlvbuf is 00FDB6D0 [12:10:08]SAM_PROTO_ClearQueue [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 09 00 00 [12:10:08]Write to MH i2c: E2 08 00 9D 19 80 09 00 00 00 00 00 00 28 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 9D 19 00 90 00 2A [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_ClearQueue done [12:10:08]KKMCreateOFDPacket [12:10:08]OFDProtocolAddRootSTLVToBuf [12:10:08]FM_MakeSignedData [12:10:08]FM_MakeSignedData [12:10:08]SAM_PROTO_SignData [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 01 02 [12:10:08]Write to MH i2c: E2 08 00 9E 19 80 0D 01 02 00 00 00 00 30 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 9E 19 00 90 00 2B [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=255 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 22 7D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 [12:10:08]Write to MH i2c: E2 02 01 9F 19 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 22 7D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 F1 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 9F 19 00 90 00 2C [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=40 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 69 01 00 35 04 06 00 6F F1 EC 6F 0A 74 [12:10:08]Write to MH i2c: E2 2B 00 A0 19 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 69 01 00 35 04 06 00 6F F1 EC 6F 0A 74 00 00 A9 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 A0 19 00 90 00 2D [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 03 02 [12:10:08]Write to MH i2c: E2 08 00 A1 19 80 0D 03 02 00 00 00 00 35 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]OFD Sender: No OFD packet to send [12:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 A1 19 00 A0 73 FE B5 A2 00 A1 F5 90 00 34 [12:10:08]RAPDU: A0 73 FE B5 A2 00 A1 F5 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_SignData done [12:10:08]FM_MakeSignedData done [12:10:08]CreateOFDProtocolMessage [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 11 00 00 [12:10:08]Write to MH i2c: E2 08 00 A2 19 80 11 00 00 00 00 00 00 35 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 A2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8C [12:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:10:08]wFMCommunicate OK [12:10:08]CreateOFDProtocolMessage done [12:10:08]OFDSenderStorePacket 92434 [12:10:08]StoreOFDPacket docnum=92434 [12:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 5F C0 25 01 29 9E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 22 7D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 69 01 00 35 04 06 00 6F F1 EC 6F 0A 74 A0 73 FE B5 A2 00 A1 F5 [12:10:08]CheckFolder [12:10:08]dirname=/storage/ofd_packets [12:10:08]CheckFolder done [12:10:08]ProducePacketName [12:10:08]name=ofd_packets/00092434 [12:10:08]NVStorageSaveData ofd_packets/00092434 [12:10:08]File name is /storage/ofd_packets/00092434 [12:10:08]Write 331 bytes [12:10:08]NVStorageSaveData done [12:10:08]OFDSenderStorePacket done [12:10:08]KKMCreateOFDPacket done [12:10:08]NVStorageSaveData kkm_last_timestamp [12:10:08]File name is /storage/kkm_last_timestamp [12:10:08]Write 4 bytes [12:10:08]NVStorageSaveData done [12:10:08]ExternCall_PrintAddStr [12:10:08]wPrintStart [12:10:08]Write to MH i2c: 01 00 00 A3 19 BC [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 A3 19 00 00 00 00 00 FF 0F D1 [12:10:08]RasterBufferAndPrint [12:10:08]line Счет N : (3)127343 [12:10:08]line ИНН: 02508201610067 [12:10:08]line Контрольно-Кассовый Чек [12:10:08]line ПРОДАЖА [12:10:08]line Товар: 4607065001445 [12:10:08]line Шок батончик Snickers 50,5г [12:10:08]line 1.000 * 59.00 [12:10:08]line = 59.00 [12:10:08]line НДС 12% НСП 1% [12:10:08]line > о реализуемом товаре [12:10:08]line ИТОГО: 59.00 [12:10:08]line НСП 1% : 0.52 [12:10:08]line НДС 12% : 6.26 [12:10:08]line Наличными: 59.00 [12:10:08]line Безнал.: 0.00 [12:10:08]line Место: АЗС № 5 "Партнер Нефть" [12:10:08]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:10:08]line СНО: Общий режим [12:10:08]line Чек 85 14.09.2024 12:10 [12:10:08]line Смена: 506 ФФД: 1.0 [12:10:08]line ЗНМ: 03000000022 [12:10:08]line РНМ: 0000000000091423 [12:10:08]line Версия ККМ: 001 [12:10:08]line ФМ: 0000000000874692 [12:10:08]line ФД: 92434 [12:10:08]line ФПД: 123084844501620 [12:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T121010&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92434&fm=123084844501620&tin=02508201610067®Number=0000000000091423&sum=5900 [12:10:09]OFD Sender: Processing packet 92434 [packets to send 63, broken 62] [12:10:09]ProducePacketName [12:10:09]name=ofd_packets/00092434 [12:10:09]OFD Sender: To server: pG, [12:10:09]CommunicateWithHost lk.salyk.kg:30040 [12:10:09]ConnectInit lk.salyk.kg [12:10:09]line 0 [12:10:09]written 0, free lines is 4095 [12:10:09]Connected sock=10 [12: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 34 36 39 32 2D 01 00 00 5F C0 25 01 29 9E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 22 7D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 12 69 01 00 35 04 06 00 6F F1 EC 6F 0A 74 A0 73 FE B5 A2 00 A1 F5 [12:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3D 51 47 00 B2 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 34 36 39 32 10 04 04 00 12 69 01 00 F4 03 04 00 9D 25 E5 66 B6 04 01 00 00 9D B4 8E 27 93 4A 1C E1 [12:10:09]CommunicateWithHost err = 0 [12:10:09]CheckOFDResponse [12:10:09]1017 (14) - 77093643461234 [12:10:09]1041 (16) - 0000000000874692 [12:10:09]1040 (4) - 92434 [12:10:09]1012 (4) - 14.09.2024 05:56 [12:10:09]1206 (1) - 0 [12:10:09]OFD Sender: Remove packet 92434 [12:10:09]ProducePacketName [12:10:09]name=ofd_packets/00092434 [12:10:09]NVStorageDeleteData [12:10:09]Write to MH i2c: 01 00 00 CB 19 E4 [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 07 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 07 00 CB 19 00 00 00 00 00 2A 0D 22 [12:10:09]RasterBufferAndPrint [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]written 0, free lines is 3376 [12:10:09]MH_Cut [12:10:09]Write to MH i2c: D1 01 00 D2 19 01 BD [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 01 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 01 00 D2 19 00 BC [12:10:09]Write to MH i2c: 01 00 00 D3 19 EC [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]OFD Sender: No OFD packet to send [12:10:10]*** Cut start [12:10:10]*** Purtial cut [12:10:10]*** Stage 1: CUTSNS_PIN = 1 [12:10:12]Read from MH i2c: 01 [12:10:12]MH_I2C_Read... [12:10:12]*** Stop cut motor [12:10:12]*** Cut end [12:10:12]Read from MH i2c: 01 07 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: 01 07 00 D3 19 00 00 00 00 00 FF 0F 01 [12:10:12]process_action close_receipt done [12:10:12]requested_data is exist [12:10:12]produce_requested_data [12:10:12]requested_item fm.sn is exist - process it [12:10:12]wFMCommunicate request_size=4 [12:10:12]MH_SAM_APDU [12:10:12]CAPDU: 80 11 00 00 [12:10:12]Write to MH i2c: E2 08 00 D4 19 80 11 00 00 00 00 00 00 67 [12:10:12]Write i2c OK [12:10:12]MH_I2C_Read... [12:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:12]Read from MH i2c: E2 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 17 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 17 00 D4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BE [12:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:10:12]wFMCommunicate OK [12:10:12]requested_item fd.num is exist - process it [12:10:12]SAM_PROTO_GetFieldsCounters [12:10:12]wFMCommunicate request_size=4 [12:10:12]MH_SAM_APDU [12:10:12]CAPDU: 80 13 00 00 [12:10:12]Write to MH i2c: E2 08 00 D5 19 80 13 00 00 00 00 00 00 6A [12:10:12]Write i2c OK [12:10:12]MH_I2C_Read... [12:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:12]Read from MH i2c: E2 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 62 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 62 00 D5 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 12 69 01 00 0E 04 04 00 FA 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 FF [12: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 12 69 01 00 0E 04 04 00 FA 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:10:12]wFMCommunicate OK [12:10:12]SAM_PROTO_GetFieldsCounters done [12:10:12]requested_item shift.num is exist - process it [12:10:12]requested_item shift.opened is exist - process it [12:10:12]req_shift_opened [12:10:12]FM_GetShiftState [12:10:12]SAM_PROTO_GetShiftState [12:10:12]wFMCommunicate request_size=4 [12:10:12]MH_SAM_APDU [12:10:12]CAPDU: 80 13 01 00 [12:10:12]Write to MH i2c: E2 08 00 D6 19 80 13 01 00 00 00 00 00 6C [12:10:12]Write i2c OK [12:10:12]MH_I2C_Read... [12:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:12]Read from MH i2c: E2 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 0E 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 0E 00 D6 19 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 06 [12:10:12]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:10:12]wFMCommunicate OK [12:10:12]SAM_PROTO_GetShiftState done [12:10:12]FM_GetShiftState done [12:10:12]req_shift_opened done [12:10:12]requested_item shift.open_date is exist - process it [12:10:12]req_shift_open_date [12:10:12]req_shift_open_date done [12:10:12]produce_requested_data done [12:10:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92434,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:10:12]process_action_free close_receipt [12:10:12]json_value_free [12:10:12]json_value_free done [12:10:12]process_json_proto returns [12:10:12]Send response to host [12:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92434,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:10:12]free response buf [12:10:12]execute_script done [12:10:12]execute_script returns [12:10:12]free content buf [12:10:12]Sock 8.Close socket [12:10:12]Sock 8.Thread stoped [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10: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:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:17:55]accept exits with 9 [12:17:55]New connection [12:17:55]New thread 3066801508 created [12:17:55]Thread 3066658148 joined [12:17:55]Waiting for new connection... [12:17:55] Sock 9.Parse request [12:17:55]Sock 9.Check first char [12:17:55]Sock 9.First char is OK [12:17:55]request: POST /json_proto HTTP/1.0 [12:17:55]Method: POST [12:17:55]URL: /json_proto [12:17:55]Method is POST - this is cgi request [12:17:55]url: /json_proto [12:17:55]query_string will be loaded in cgi processing [12:17:55]execute_cgi json_proto POST (null) [12:17:55]execute_cgi path=json_proto method=POST [12:17:55]POST find Content-Length [12:17:55]Host: 172.17.57.71:8080 [12:17:55]Content-Length: 971 [12:17:55]Content-Type: application/json [12:17:55] [12:17:55]POST finish read [12:17:55]Found Content-Length = 971 [12:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127344", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 126.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:55]execute_script... [12:17: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)127344", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 126.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:55]POST & json_proto [12:17:55]process_json_proto [12:17:55]json parsed OK: [12:17:55]protocol is kg_v1.0 [12:17:55]action value=close_receipt [12:17:55]process_action close_receipt [12:17:55]cmd_close_receipt [12:17:55]MH_GetDate [12:17:55]Write to MH i2c: F0 00 00 D7 19 DF [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 09 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 09 00 D7 19 00 F6 7E E5 66 33 3A A4 66 1E [12:17:55]GetLastDocTimeStamp 1726315810 [12:17:55]current date 1726316278 [12:17:55]FM_GetShiftState [12:17:55]SAM_PROTO_GetShiftState [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 13 01 00 [12:17:55]Write to MH i2c: E2 08 00 D8 19 80 13 01 00 00 00 00 00 6E [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0E 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0E 00 D8 19 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 08 [12:17:55]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_GetShiftState done [12:17:55]FM_GetShiftState done [12:17:55]opened in 1726273389 [12:17:55]opened+sec_in_day 1726359789 [12:17:55]quantity*price = 6500 [12:17:55]sum+1 = 6501 [12:17:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154035 Напиток Lipton IceTea 0,5л перс 1.000 * 61.00 = 61.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 126.00 НСП 1% : 1.11 НДС 12% : 13.38 Наличными: 126.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 86 14.09.2024 12:17 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92435 ФПД: 100850063623643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T121758&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92435&fm=100850063623643&tin=02508201610067®Number=0000000000091423&sum=12600 0 [12:17:56]StoreToDocumentArchive [12:17:56]shift 506 fd 92435 [12:17:56]save to /storage/0506/doc_00092435 [12:17:56]save last doc name /storage/0506/doc_00092435 to /storage/kkm_last_doc_name [12:17:56]save OK [12:17:56]Clear old archive folders... [12:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=413 [12:17:56]tlvbuf is 00F929D0 [12:17:56]SAM_PROTO_ClearQueue [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 09 00 00 [12:17:56]Write to MH i2c: E2 08 00 E5 19 80 09 00 00 00 00 00 00 70 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 03 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [12:17:56]RAPDU: 90 00 [12:17:56]wFMCommunicate OK [12:17:56]SAM_PROTO_ClearQueue done [12:17:56]KKMCreateOFDPacket [12:17:56]OFDProtocolAddRootSTLVToBuf [12:17:56]FM_MakeSignedData [12:17:56]FM_MakeSignedData [12:17:56]SAM_PROTO_SignData [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 0D 01 02 [12:17:56]Write to MH i2c: E2 08 00 E6 19 80 0D 01 02 00 00 00 00 78 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 03 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [12:17:56]RAPDU: 90 00 [12:17:56]wFMCommunicate OK [12:17:56]wFMCommunicate request_size=255 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 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 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [12:17:56]Write to MH i2c: E2 02 01 E7 19 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 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 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 EA [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [12:17:57]RAPDU: 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=172 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 38 31 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 3A 05 00 00 00 00 07 04 06 00 38 31 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 F6 7E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 69 01 00 35 04 06 00 5B B8 FC 37 C5 DB [12:17:57]Write to MH i2c: E2 AF 00 E8 19 80 0D 02 02 A7 00 00 01 FC 03 06 00 38 31 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 3A 05 00 00 00 00 07 04 06 00 38 31 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 F6 7E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 69 01 00 35 04 06 00 5B B8 FC 37 C5 DB 00 00 FD [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 E8 19 00 90 00 75 [12:17:57]RAPDU: 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 0D 03 02 [12:17:57]Write to MH i2c: E2 08 00 E9 19 80 0D 03 02 00 00 00 00 7D [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 0B 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 0B 00 E9 19 00 96 F2 DD D5 CE C2 B4 D9 90 00 D5 [12:17:57]RAPDU: 96 F2 DD D5 CE C2 B4 D9 90 00 [12:17:57]wFMCommunicate OK [12:17:57]SAM_PROTO_SignData done [12:17:57]FM_MakeSignedData done [12:17:57]CreateOFDProtocolMessage [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 11 00 00 [12:17:57]Write to MH i2c: E2 08 00 EA 19 80 11 00 00 00 00 00 00 7D [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 EA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D4 [12:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:17:57]wFMCommunicate OK [12:17:57]CreateOFDProtocolMessage done [12:17:57]OFDSenderStorePacket 92435 [12:17:57]StoreOFDPacket docnum=92435 [12:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B1 01 00 00 25 B3 A9 01 C5 DE 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 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 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 31 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 3A 05 00 00 00 00 07 04 06 00 38 31 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 F6 7E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 69 01 00 35 04 06 00 5B B8 FC 37 C5 DB 96 F2 DD D5 CE C2 B4 D9 [12:17:57]CheckFolder [12:17:57]dirname=/storage/ofd_packets [12:17:57]CheckFolder done [12:17:57]ProducePacketName [12:17:57]name=ofd_packets/00092435 [12:17:57]NVStorageSaveData ofd_packets/00092435 [12:17:57]File name is /storage/ofd_packets/00092435 [12:17:57]Write 463 bytes [12:17:57]NVStorageSaveData done [12:17:57]OFDSenderStorePacket done [12:17:57]KKMCreateOFDPacket done [12:17:57]NVStorageSaveData kkm_last_timestamp [12:17:57]File name is /storage/kkm_last_timestamp [12:17:57]Write 4 bytes [12:17:57]NVStorageSaveData done [12:17:57]ExternCall_PrintAddStr [12:17:57]wPrintStart [12:17:57]Write to MH i2c: 01 00 00 EB 19 04 [12:17:57]OFD Sender: Processing packet 92435 [packets to send 63, broken 62] [12:17:57]ProducePacketName [12:17:57]name=ofd_packets/00092435 [12:17:57]OFD Sender: To server: pG, [12:17:57]CommunicateWithHost lk.salyk.kg:30040 [12:17:57]ConnectInit lk.salyk.kg [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 07 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 07 00 EB 19 00 00 00 00 00 FF 0F 19 [12:17:57]RasterBufferAndPrint [12:17:57]line Счет N : (3)127344 [12:17:57]line ИНН: 02508201610067 [12:17:57]line Контрольно-Кассовый Чек [12:17:57]line ПРОДАЖА [12:17:57]line Товар: 4600338000183 [12:17:57]line Сок Фруто НЯНЯ яблоко освет 0,2л [12:17:57]line 1.000 * 65.00 [12:17:57]line = 65.00 [12:17:57]line НДС 12% НСП 1% [12:17:57]line > о реализуемом товаре [12:17:57]line Товар: 4870001154035 [12:17:57]line Напиток Lipton IceTea 0,5л перс [12:17:57]line 1.000 * 61.00 [12:17:57]line = 61.00 [12:17:57]line НДС 12% НСП 1% [12:17:57]line > о реализуемом товаре [12:17:57]line ИТОГО: 126.00 [12:17:57]line НСП 1% : 1.11 [12:17:57]line НДС 12% : 13.38 [12:17:57]line Наличными: 126.00 [12:17:57]line Безнал.: 0.00 [12:17:57]line Место: АЗС № 5 "Партнер Нефть" [12:17:57]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:17:57]line СНО: Общий режим [12:17:57]line Чек 86 14.09.2024 12:17 [12:17:57]line Смена: 506 ФФД: 1.0 [12:17:57]line ЗНМ: 03000000022 [12:17:57]line РНМ: 0000000000091423 [12:17:57]line Версия ККМ: 001 [12:17:57]line ФМ: 0000000000874692 [12:17:57]line ФД: 92435 [12:17:57]line ФПД: 100850063623643 [12:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T121758&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92435&fm=100850063623643&tin=02508201610067®Number=0000000000091423&sum=12600 [12:17:57]line 0 [12:17:57]written 0, free lines is 4095 [12:17:57]Connected sock=10 [12:17:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B1 01 00 00 25 B3 A9 01 C5 DE 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 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 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 31 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 3A 05 00 00 00 00 07 04 06 00 38 31 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 F6 7E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 69 01 00 35 04 06 00 5B B8 FC 37 C5 DB 96 F2 DD D5 CE C2 B4 D9 [12:17:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3F 44 47 00 0B 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 13 69 01 00 F4 03 04 00 72 27 E5 66 B6 04 01 00 00 11 A1 AA E5 D4 70 5E D5 [12:17:58]CommunicateWithHost err = 0 [12:17:58]CheckOFDResponse [12:17:58]1017 (14) - 77093643461234 [12:17:58]1041 (16) - 0000000000874692 [12:17:58]1040 (4) - 92435 [12:17:58]1012 (4) - 14.09.2024 06:04 [12:17:58]1206 (1) - 0 [12:17:58]OFD Sender: Remove packet 92435 [12:17:58]ProducePacketName [12:17:58]name=ofd_packets/00092435 [12:17:58]NVStorageDeleteData [12:17:58]Write to MH i2c: 01 00 00 1B 1A 35 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 07 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 07 00 1B 1A 00 00 00 00 00 A2 0C EA [12:17:58]RasterBufferAndPrint [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]written 0, free lines is 3242 [12:17:58]MH_Cut [12:17:58]Write to MH i2c: D1 01 00 22 1A 01 0E [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 01 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 01 00 22 1A 00 0D [12:17:58]Write to MH i2c: 01 00 00 23 1A 3D [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]OFD Sender: No OFD packet to send [12:17:59]*** Cut start [12:17:59]*** Purtial cut [12:17:59]*** Stage 1: CUTSNS_PIN = 1 [12:18:01]Read from MH i2c: 01 [12:18:01]MH_I2C_Read... [12:18:01]*** Stop cut motor [12:18:01]*** Cut end [12:18:01]Read from MH i2c: 01 07 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 07 00 23 1A 00 00 00 00 00 FF 0F 52 [12:18:01]process_action close_receipt done [12:18:01]requested_data is exist [12:18:01]produce_requested_data [12:18:01]requested_item fm.sn is exist - process it [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 11 00 00 [12:18:01]Write to MH i2c: E2 08 00 24 1A 80 11 00 00 00 00 00 00 B8 [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 17 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 17 00 24 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0F [12:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:18:01]wFMCommunicate OK [12:18:01]requested_item fd.num is exist - process it [12:18:01]SAM_PROTO_GetFieldsCounters [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 13 00 00 [12:18:01]Write to MH i2c: E2 08 00 25 1A 80 13 00 00 00 00 00 00 BB [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 62 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 62 00 25 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 13 69 01 00 0E 04 04 00 FA 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 54 [12:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 13 69 01 00 0E 04 04 00 FA 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:18:01]wFMCommunicate OK [12:18:01]SAM_PROTO_GetFieldsCounters done [12:18:01]requested_item shift.num is exist - process it [12:18:01]requested_item shift.opened is exist - process it [12:18:01]req_shift_opened [12:18:01]FM_GetShiftState [12:18:01]SAM_PROTO_GetShiftState [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 13 01 00 [12:18:01]Write to MH i2c: E2 08 00 26 1A 80 13 01 00 00 00 00 00 BD [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 0E 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 0E 00 26 1A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 57 [12:18:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:18:01]wFMCommunicate OK [12:18:01]SAM_PROTO_GetShiftState done [12:18:01]FM_GetShiftState done [12:18:01]req_shift_opened done [12:18:01]requested_item shift.open_date is exist - process it [12:18:01]req_shift_open_date [12:18:01]req_shift_open_date done [12:18:01]produce_requested_data done [12:18:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92435,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:18:01]process_action_free close_receipt [12:18:01]json_value_free [12:18:01]json_value_free done [12:18:01]process_json_proto returns [12:18:01]Send response to host [12:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92435,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:18:01]free response buf [12:18:01]execute_script done [12:18:01]execute_script returns [12:18:01]free content buf [12:18:01]Sock 9.Close socket [12:18:01]Sock 9.Thread stoped [12:18:03]accept exits with 8 [12:18:03]New connection [12:18:03]New thread 3066658148 created [12:18:03]Thread 3066801508 joined [12:18:03]Waiting for new connection... [12:18:03] Sock 8.Parse request [12:18:03]Sock 8.Check first char [12:18:03]Sock 8.First char is OK [12:18:03]request: POST /json_proto HTTP/1.0 [12:18:03]Method: POST [12:18:03]URL: /json_proto [12:18:03]Method is POST - this is cgi request [12:18:03]url: /json_proto [12:18:03]query_string will be loaded in cgi processing [12:18:03]execute_cgi json_proto POST (null) [12:18:03]execute_cgi path=json_proto method=POST [12:18:03]POST find Content-Length [12:18:03]Host: 172.17.57.71:8080 [12:18:03]Content-Length: 639 [12:18:03]Content-Type: application/json [12:18:03] [12:18:03]POST finish read [12:18:03]Found Content-Length = 639 [12:18:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127345", "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" ] } } [12:18:03]execute_script... [12:18: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)127345", "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" ] } } [12:18:03]POST & json_proto [12:18:03]process_json_proto [12:18:03]json parsed OK: [12:18:03]protocol is kg_v1.0 [12:18:03]action value=close_receipt [12:18:03]process_action close_receipt [12:18:03]cmd_close_receipt [12:18:03]MH_GetDate [12:18:03]Write to MH i2c: F0 00 00 27 1A 30 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: F0 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: F0 09 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: F0 09 00 27 1A 00 FE 7E E5 66 33 3A A4 66 77 [12:18:03]GetLastDocTimeStamp 1726316278 [12:18:03]current date 1726316286 [12:18:03]FM_GetShiftState [12:18:03]SAM_PROTO_GetShiftState [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 13 01 00 [12:18:03]Write to MH i2c: E2 08 00 28 1A 80 13 01 00 00 00 00 00 BF [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0E 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0E 00 28 1A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 59 [12:18:03]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:18:03]wFMCommunicate OK [12:18:03]SAM_PROTO_GetShiftState done [12:18:03]FM_GetShiftState done [12:18:03]opened in 1726273389 [12:18:03]opened+sec_in_day 1726359789 [12:18:03]quantity*price = 10500 [12:18:03]sum+1 = 10501 [12:18:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 87 14.09.2024 12:18 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92436 ФПД: 73398296575260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T121806&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92436&fm=73398296575260&tin=02508201610067®Number=0000000000091423&sum=10500 0 [12:18:04]StoreToDocumentArchive [12:18:04]shift 506 fd 92436 [12:18:04]save to /storage/0506/doc_00092436 [12:18:04]save last doc name /storage/0506/doc_00092436 to /storage/kkm_last_doc_name [12:18:04]save OK [12:18:04]Clear old archive folders... [12:18:04]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:18:04]tlvbuf is 00FB3BE0 [12:18:04]SAM_PROTO_ClearQueue [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 09 00 00 [12:18:04]Write to MH i2c: E2 08 00 35 1A 80 09 00 00 00 00 00 00 C1 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 35 1A 00 90 00 C3 [12:18:04]RAPDU: 90 00 [12:18:04]wFMCommunicate OK [12:18:04]SAM_PROTO_ClearQueue done [12:18:04]KKMCreateOFDPacket [12:18:04]OFDProtocolAddRootSTLVToBuf [12:18:04]FM_MakeSignedData [12:18:04]FM_MakeSignedData [12:18:04]SAM_PROTO_SignData [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 0D 01 02 [12:18:04]Write to MH i2c: E2 08 00 36 1A 80 0D 01 02 00 00 00 00 C9 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 36 1A 00 90 00 C4 [12:18:04]RAPDU: 90 00 [12:18:04]wFMCommunicate OK [12:18:04]wFMCommunicate request_size=255 [12:18:04]MH_SAM_APDU [12:18: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 57 00 00 00 F4 03 04 00 FE 7E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:18:04]Write to MH i2c: E2 02 01 37 1A 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 57 00 00 00 F4 03 04 00 FE 7E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 9E [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [12:18:04]RAPDU: 90 00 [12:18:04]wFMCommunicate OK [12:18:04]wFMCommunicate request_size=30 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 14 69 01 00 35 04 06 00 42 C1 5F 64 FD 1C [12:18:04]Write to MH i2c: E2 21 00 38 1A 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 14 69 01 00 35 04 06 00 42 C1 5F 64 FD 1C 00 00 26 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [12:18:04]RAPDU: 90 00 [12:18:04]wFMCommunicate OK [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 0D 03 02 [12:18:04]Write to MH i2c: E2 08 00 39 1A 80 0D 03 02 00 00 00 00 CE [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 0B 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 0B 00 39 1A 00 CB 6D 4C 8A 9E 45 41 18 90 00 19 [12:18:04]RAPDU: CB 6D 4C 8A 9E 45 41 18 90 00 [12:18:04]wFMCommunicate OK [12:18:04]SAM_PROTO_SignData done [12:18:04]FM_MakeSignedData done [12:18:04]CreateOFDProtocolMessage [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 11 00 00 [12:18:04]Write to MH i2c: E2 08 00 3A 1A 80 11 00 00 00 00 00 00 CE [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:05]Read from MH i2c: E2 17 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 17 00 3A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 25 [12:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:18:05]wFMCommunicate OK [12:18:05]CreateOFDProtocolMessage done [12:18:05]OFDSenderStorePacket 92436 [12:18:05]StoreOFDPacket docnum=92436 [12:18:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 19 2E 1B 01 93 80 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 57 00 00 00 F4 03 04 00 FE 7E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 14 69 01 00 35 04 06 00 42 C1 5F 64 FD 1C CB 6D 4C 8A 9E 45 41 18 [12:18:05]CheckFolder [12:18:05]dirname=/storage/ofd_packets [12:18:05]CheckFolder done [12:18:05]ProducePacketName [12:18:05]name=ofd_packets/00092436 [12:18:05]NVStorageSaveData ofd_packets/00092436 [12:18:05]File name is /storage/ofd_packets/00092436 [12:18:05]Write 321 bytes [12:18:05]NVStorageSaveData done [12:18:05]OFDSenderStorePacket done [12:18:05]KKMCreateOFDPacket done [12:18:05]NVStorageSaveData kkm_last_timestamp [12:18:05]File name is /storage/kkm_last_timestamp [12:18:05]Write 4 bytes [12:18:05]NVStorageSaveData done [12:18:05]ExternCall_PrintAddStr [12:18:05]wPrintStart [12:18:05]Write to MH i2c: 01 00 00 3B 1A 55 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 3B 1A 00 00 00 00 00 FF 0F 6A [12:18:05]RasterBufferAndPrint [12:18:05]line Счет N : (3)127345 [12:18:05]line ИНН: 02508201610067 [12:18:05]line Контрольно-Кассовый Чек [12:18:05]line ПРОДАЖА [12:18:05]line Товар: 5449000006271 [12:18:05]line Напиток Фанта 1л [12:18:05]line 1.000 * 105.00 [12:18:05]line = 105.00 [12:18:05]line НДС 12% НСП 1% [12:18:05]line > о реализуемом товаре [12:18:05]line ИТОГО: 105.00 [12:18:05]line НСП 1% : 0.93 [12:18:05]line НДС 12% : 11.15 [12:18:05]line Наличными: 105.00 [12:18:05]line Безнал.: 0.00 [12:18:05]line Место: АЗС № 5 "Партнер Нефть" [12:18:05]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:18:05]line СНО: Общий режим [12:18:05]line Чек 87 14.09.2024 12:18 [12:18:05]line Смена: 506 ФФД: 1.0 [12:18:05]line ЗНМ: 03000000022 [12:18:05]line РНМ: 0000000000091423 [12:18:05]line Версия ККМ: 001 [12:18:05]line ФМ: 0000000000874692 [12:18:05]line ФД: 92436 [12:18:05]line ФПД: 73398296575260 [12:18:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T121806&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92436&fm=73398296575260&tin=02508201610067®Number=0000000000091423&sum=10500 [12:18:05]line 0 [12:18:05]written 0, free lines is 4095 [12:18:05]OFD Sender: Processing packet 92436 [packets to send 63, broken 62] [12:18:05]ProducePacketName [12:18:05]name=ofd_packets/00092436 [12:18:05]OFD Sender: To server: pG, [12:18:05]CommunicateWithHost lk.salyk.kg:30040 [12:18:05]ConnectInit lk.salyk.kg [12:18:05]Connected sock=10 [12:18:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 19 2E 1B 01 93 80 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 57 00 00 00 F4 03 04 00 FE 7E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 14 69 01 00 35 04 06 00 42 C1 5F 64 FD 1C CB 6D 4C 8A 9E 45 41 18 [12:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 70 7F 47 00 C5 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 34 36 39 32 10 04 04 00 14 69 01 00 F4 03 04 00 79 27 E5 66 B6 04 01 00 00 1B C1 1B 96 62 51 3C 63 [12:18:05]CommunicateWithHost err = 0 [12:18:05]CheckOFDResponse [12:18:05]1017 (14) - 77093643461234 [12:18:05]1041 (16) - 0000000000874692 [12:18:05]1040 (4) - 92436 [12:18:05]1012 (4) - 14.09.2024 06:04 [12:18:05]1206 (1) - 0 [12:18:05]OFD Sender: Remove packet 92436 [12:18:05]ProducePacketName [12:18:05]name=ofd_packets/00092436 [12:18:05]NVStorageDeleteData [12:18:05]Write to MH i2c: 01 00 00 63 1A 7D [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 63 1A 00 00 00 00 00 22 0D B3 [12:18:05]RasterBufferAndPrint [12:18:05]line [12:18:05]line [12:18:05]line [12:18:05]line [12:18:05]line [12:18:05]written 0, free lines is 3375 [12:18:05]MH_Cut [12:18:05]Write to MH i2c: D1 01 00 6A 1A 01 56 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: D1 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: D1 01 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: D1 01 00 6A 1A 00 55 [12:18:05]Write to MH i2c: 01 00 00 6B 1A 85 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]OFD Sender: No OFD packet to send [12:18:06]*** Cut start [12:18:06]*** Purtial cut [12:18:06]*** Stage 1: CUTSNS_PIN = 1 [12:18:08]Read from MH i2c: 01 [12:18:08]MH_I2C_Read... [12:18:08]*** Stop cut motor [12:18:08]*** Cut end [12:18:08]Read from MH i2c: 01 07 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: 01 07 00 6B 1A 00 00 00 00 00 FF 0F 9A [12:18:08]process_action close_receipt done [12:18:08]requested_data is exist [12:18:08]produce_requested_data [12:18:08]requested_item fm.sn is exist - process it [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 11 00 00 [12:18:08]Write to MH i2c: E2 08 00 6C 1A 80 11 00 00 00 00 00 00 00 [12:18:08]Write i2c OK [12:18:08]MH_I2C_Read... [12:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:08]Read from MH i2c: E2 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 17 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 17 00 6C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 57 [12:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:18:08]wFMCommunicate OK [12:18:08]requested_item fd.num is exist - process it [12:18:08]SAM_PROTO_GetFieldsCounters [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 13 00 00 [12:18:08]Write to MH i2c: E2 08 00 6D 1A 80 13 00 00 00 00 00 00 03 [12:18:08]Write i2c OK [12:18:08]MH_I2C_Read... [12:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:08]Read from MH i2c: E2 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 62 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 62 00 6D 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 14 69 01 00 0E 04 04 00 FA 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 A0 [12:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 14 69 01 00 0E 04 04 00 FA 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:18:08]wFMCommunicate OK [12:18:08]SAM_PROTO_GetFieldsCounters done [12:18:08]requested_item shift.num is exist - process it [12:18:08]requested_item shift.opened is exist - process it [12:18:08]req_shift_opened [12:18:08]FM_GetShiftState [12:18:08]SAM_PROTO_GetShiftState [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 13 01 00 [12:18:08]Write to MH i2c: E2 08 00 6E 1A 80 13 01 00 00 00 00 00 05 [12:18:08]Write i2c OK [12:18:08]MH_I2C_Read... [12:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:08]Read from MH i2c: E2 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 0E 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 0E 00 6E 1A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9F [12:18:08]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:18:08]wFMCommunicate OK [12:18:08]SAM_PROTO_GetShiftState done [12:18:08]FM_GetShiftState done [12:18:08]req_shift_opened done [12:18:08]requested_item shift.open_date is exist - process it [12:18:08]req_shift_open_date [12:18:08]req_shift_open_date done [12:18:08]produce_requested_data done [12:18:08]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92436,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:18:08]process_action_free close_receipt [12:18:08]json_value_free [12:18:08]json_value_free done [12:18:08]process_json_proto returns [12:18:08]Send response to host [12:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92436,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:18:08]free response buf [12:18:08]execute_script done [12:18:08]execute_script returns [12:18:08]free content buf [12:18:08]Sock 8.Close socket [12:18:08]Sock 8.Thread stoped [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:50]accept exits with 9 [12:22:50]New connection [12:22:50]New thread 3066801508 created [12:22:50]Thread 3066658148 joined [12:22:50]Waiting for new connection... [12:22:50] Sock 9.Parse request [12:22:50]Sock 9.Check first char [12:22:50]Sock 9.First char is OK [12:22:50]request: POST /json_proto HTTP/1.0 [12:22:50]Method: POST [12:22:50]URL: /json_proto [12:22:50]Method is POST - this is cgi request [12:22:50]url: /json_proto [12:22:50]query_string will be loaded in cgi processing [12:22:50]execute_cgi json_proto POST (null) [12:22:50]execute_cgi path=json_proto method=POST [12:22:50]POST find Content-Length [12:22:50]Host: 172.17.57.71:8080 [12:22:50]Content-Length: 1086 [12:22:50]Content-Type: application/json [12:22:50] [12:22:50]POST finish read [12:22:50]Found Content-Length = 1086 [12:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127346", "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": "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 }]} ], "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:50]execute_script... [12:22: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)127346", "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": "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 }]} ], "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:50]POST & json_proto [12:22:50]process_json_proto [12:22:50]json parsed OK: [12:22:50]protocol is kg_v1.0 [12:22:50]action value=close_receipt [12:22:50]process_action close_receipt [12:22:50]cmd_close_receipt [12:22:50]MH_GetDate [12:22:50]Write to MH i2c: F0 00 00 6F 1A 78 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 09 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 09 00 6F 1A 00 1D 80 E5 66 33 3A A4 66 E0 [12:22:50]GetLastDocTimeStamp 1726316286 [12:22:50]current date 1726316573 [12:22:50]FM_GetShiftState [12:22:50]SAM_PROTO_GetShiftState [12:22:50]wFMCommunicate request_size=4 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 13 01 00 [12:22:50]Write to MH i2c: E2 08 00 70 1A 80 13 01 00 00 00 00 00 07 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 0E 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 0E 00 70 1A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A1 [12:22:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:22:50]wFMCommunicate OK [12:22:50]SAM_PROTO_GetShiftState done [12:22:50]FM_GetShiftState done [12:22:50]opened in 1726273389 [12:22:50]opened+sec_in_day 1726359789 [12:22:50]quantity*price = 4000 [12:22:50]sum+1 = 4001 [12:22:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154059 Напиток Lipton IceTea 0,5л зел чай 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.01 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 88 14.09.2024 12:22 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92437 ФПД: 187009602630543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T122253&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92437&fm=187009602630543&tin=02508201610067®Number=0000000000091423&sum=11500 0 [12:22:51]StoreToDocumentArchive [12:22:51]shift 506 fd 92437 [12:22:51]save to /storage/0506/doc_00092437 [12:22:51]save last doc name /storage/0506/doc_00092437 to /storage/kkm_last_doc_name [12:22:51]save OK [12:22:51]Clear old archive folders... [12:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=391 [12:22:51]tlvbuf is 00FCB410 [12:22:51]SAM_PROTO_ClearQueue [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 09 00 00 [12:22:51]Write to MH i2c: E2 08 00 7D 1A 80 09 00 00 00 00 00 00 09 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 7D 1A 00 90 00 0B [12:22:51]RAPDU: 90 00 [12:22:51]wFMCommunicate OK [12:22:51]SAM_PROTO_ClearQueue done [12:22:51]KKMCreateOFDPacket [12:22:51]OFDProtocolAddRootSTLVToBuf [12:22:51]FM_MakeSignedData [12:22:51]FM_MakeSignedData [12:22:51]SAM_PROTO_SignData [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 0D 01 02 [12:22:51]Write to MH i2c: E2 08 00 7E 1A 80 0D 01 02 00 00 00 00 11 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 7E 1A 00 90 00 0C [12:22:51]RAPDU: 90 00 [12:22:51]wFMCommunicate OK [12:22:51]wFMCommunicate request_size=255 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 0D 02 02 FA 03 00 87 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 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 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [12:22:51]Write to MH i2c: E2 02 01 7F 1A 80 0D 02 02 FA 00 03 00 87 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 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 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 9F [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 7F 1A 00 90 00 0D [12:22:52]RAPDU: 90 00 [12:22:52]wFMCommunicate OK [12:22:52]wFMCommunicate request_size=150 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 65 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1D 80 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 69 01 00 35 04 06 00 AA 15 90 EF 33 8F [12:22:52]Write to MH i2c: E2 99 00 80 1A 80 0D 02 02 91 00 01 00 01 F7 03 06 00 65 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1D 80 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 69 01 00 35 04 06 00 AA 15 90 EF 33 8F 00 00 63 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 80 1A 00 90 00 0E [12:22:52]RAPDU: 90 00 [12:22:52]wFMCommunicate OK [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 0D 03 02 [12:22:52]Write to MH i2c: E2 08 00 81 1A 80 0D 03 02 00 00 00 00 16 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0B 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0B 00 81 1A 00 18 72 E2 A6 59 4F 5A 64 90 00 8F [12:22:52]RAPDU: 18 72 E2 A6 59 4F 5A 64 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_SignData done [12:22:52]FM_MakeSignedData done [12:22:52]CreateOFDProtocolMessage [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 11 00 00 [12:22:52]Write to MH i2c: E2 08 00 82 1A 80 11 00 00 00 00 00 00 16 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 17 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 17 00 82 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6D [12:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:22:52]wFMCommunicate OK [12:22:52]CreateOFDProtocolMessage done [12:22:52]OFDSenderStorePacket 92437 [12:22:52]StoreOFDPacket docnum=92437 [12:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9B 01 00 00 5A 5D 93 01 08 49 5A 03 01 00 03 00 87 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 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 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 65 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1D 80 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 69 01 00 35 04 06 00 AA 15 90 EF 33 8F 18 72 E2 A6 59 4F 5A 64 [12:22:52]CheckFolder [12:22:52]dirname=/storage/ofd_packets [12:22:52]CheckFolder done [12:22:52]ProducePacketName [12:22:52]name=ofd_packets/00092437 [12:22:52]NVStorageSaveData ofd_packets/00092437 [12:22:52]File name is /storage/ofd_packets/00092437 [12:22:52]Write 441 bytes [12:22:52]NVStorageSaveData done [12:22:52]OFDSenderStorePacket done [12:22:52]KKMCreateOFDPacket done [12:22:52]NVStorageSaveData kkm_last_timestamp [12:22:52]File name is /storage/kkm_last_timestamp [12:22:52]Write 4 bytes [12:22:52]NVStorageSaveData done [12:22:52]ExternCall_PrintAddStr [12:22:52]wPrintStart [12:22:52]Write to MH i2c: 01 00 00 83 1A 9D [12:22:52]OFD Sender: Processing packet 92437 [packets to send 63, broken 62] [12:22:52]ProducePacketName [12:22:52]name=ofd_packets/00092437 [12:22:52]OFD Sender: To server: pG, [12:22:52]CommunicateWithHost lk.salyk.kg:30040 [12:22:52]ConnectInit lk.salyk.kg [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 07 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 07 00 83 1A 00 00 00 00 00 FF 0F B2 [12:22:52]RasterBufferAndPrint [12:22:52]line Счет N : (3)127346 [12:22:52]line ИНН: 02508201610067 [12:22:52]line Контрольно-Кассовый Чек [12:22:52]line ПРОДАЖА [12:22:52]line Товар: 4700000160211 [12:22:52]line Вода Легенда 0,5л [12:22:52]line 1.000 * 40.00 [12:22:52]line = 40.00 [12:22:52]line НДС 12% НСП 1% [12:22:52]line > о реализуемом товаре [12:22:52]line Товар: 4870001154059 [12:22:52]line Напиток Lipton IceTea 0,5л зел чай [12:22:52]line 1.000 * 75.00 [12:22:52]line = 75.00 [12:22:52]line НДС 12% НСП 1% [12:22:52]line > о реализуемом товаре [12:22:52]line ИТОГО: 115.00 [12:22:52]line НСП 1% : 1.01 [12:22:52]line НДС 12% : 12.21 [12:22:52]line Наличными: 0.00 [12:22:52]line Безнал.: 115.00 [12:22:52]line Место: АЗС № 5 "Партнер Нефть" [12:22:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:22:52]line СНО: Общий режим [12:22:52]line Чек 88 14.09.2024 12:22 [12:22:52]line Смена: 506 ФФД: 1.0 [12:22:52]line ЗНМ: 03000000022 [12:22:52]line РНМ: 0000000000091423 [12:22:52]line Версия ККМ: 001 [12:22:52]line Платежная система: Бакай Банк [12:22:52]line ФМ: 0000000000874692 [12:22:52]line ФД: 92437 [12:22:52]line ФПД: 187009602630543 [12:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T122253&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92437&fm=187009602630543&tin=02508201610067®Number=0000000000091423&sum=11500 [12:22:52]line 0 [12:22:52]written 0, free lines is 4095 [12:22:52]Connected sock=10 [12:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9B 01 00 00 5A 5D 93 01 08 49 5A 03 01 00 03 00 87 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 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 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 65 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1D 80 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 69 01 00 35 04 06 00 AA 15 90 EF 33 8F 18 72 E2 A6 59 4F 5A 64 [12:22:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9B 1A 47 00 2F 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 15 69 01 00 F4 03 04 00 99 28 E5 66 B6 04 01 00 00 CB 41 C2 F0 C5 EA A7 D5 [12:22:53]CommunicateWithHost err = 0 [12:22:53]CheckOFDResponse [12:22:53]1017 (14) - 77093643461234 [12:22:53]1041 (16) - 0000000000874692 [12:22:53]1040 (4) - 92437 [12:22:53]1012 (4) - 14.09.2024 06:09 [12:22:53]1206 (1) - 0 [12:22:53]OFD Sender: Remove packet 92437 [12:22:53]ProducePacketName [12:22:53]name=ofd_packets/00092437 [12:22:53]NVStorageDeleteData [12:22:53]Write to MH i2c: 01 00 00 B4 1A CE [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: 01 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: 01 07 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: 01 07 00 B4 1A 00 00 00 00 00 9C 0C 7D [12:22:53]RasterBufferAndPrint [12:22:53]line [12:22:53]line [12:22:53]line [12:22:53]line [12:22:53]line [12:22:53]written 0, free lines is 3235 [12:22:53]MH_Cut [12:22:53]Write to MH i2c: D1 01 00 BB 1A 01 A7 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: D1 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: D1 01 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: D1 01 00 BB 1A 00 A6 [12:22:53]Write to MH i2c: 01 00 00 BC 1A D6 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]OFD Sender: No OFD packet to send [12:22:53]*** Cut start [12:22:53]*** Purtial cut [12:22:53]*** Stage 1: CUTSNS_PIN = 1 [12:22:56]Read from MH i2c: 01 [12:22:56]MH_I2C_Read... [12:22:56]*** Stop cut motor [12:22:56]*** Cut end [12:22:56]Read from MH i2c: 01 07 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: 01 07 00 BC 1A 00 00 00 00 00 FF 0F EB [12:22:56]process_action close_receipt done [12:22:56]requested_data is exist [12:22:56]produce_requested_data [12:22:56]requested_item fm.sn is exist - process it [12:22:56]wFMCommunicate request_size=4 [12:22:56]MH_SAM_APDU [12:22:56]CAPDU: 80 11 00 00 [12:22:56]Write to MH i2c: E2 08 00 BD 1A 80 11 00 00 00 00 00 00 51 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:56]Read from MH i2c: E2 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 17 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 17 00 BD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [12:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:22:56]wFMCommunicate OK [12:22:56]requested_item fd.num is exist - process it [12:22:56]SAM_PROTO_GetFieldsCounters [12:22:56]wFMCommunicate request_size=4 [12:22:56]MH_SAM_APDU [12:22:56]CAPDU: 80 13 00 00 [12:22:56]Write to MH i2c: E2 08 00 BE 1A 80 13 00 00 00 00 00 00 54 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:56]Read from MH i2c: E2 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 62 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 62 00 BE 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 15 69 01 00 0E 04 04 00 FA 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 F5 [12:22:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 15 69 01 00 0E 04 04 00 FA 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:22:56]wFMCommunicate OK [12:22:56]SAM_PROTO_GetFieldsCounters done [12:22:56]requested_item shift.num is exist - process it [12:22:56]requested_item shift.opened is exist - process it [12:22:56]req_shift_opened [12:22:56]FM_GetShiftState [12:22:56]SAM_PROTO_GetShiftState [12:22:56]wFMCommunicate request_size=4 [12:22:56]MH_SAM_APDU [12:22:56]CAPDU: 80 13 01 00 [12:22:56]Write to MH i2c: E2 08 00 BF 1A 80 13 01 00 00 00 00 00 56 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 [12:22:56]MH_I2C_Read... [12:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:56]Read from MH i2c: E2 0E 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 0E 00 BF 1A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F0 [12:22:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:22:56]wFMCommunicate OK [12:22:56]SAM_PROTO_GetShiftState done [12:22:56]FM_GetShiftState done [12:22:56]req_shift_opened done [12:22:56]requested_item shift.open_date is exist - process it [12:22:56]req_shift_open_date [12:22:56]req_shift_open_date done [12:22:56]produce_requested_data done [12:22:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92437,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:22:56]process_action_free close_receipt [12:22:56]json_value_free [12:22:56]json_value_free done [12:22:56]process_json_proto returns [12:22:56]Send response to host [12:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92437,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:22:56]free response buf [12:22:56]execute_script done [12:22:56]execute_script returns [12:22:56]free content buf [12:22:56]Sock 9.Close socket [12:22:56]Sock 9.Thread stoped [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:19]accept exits with 8 [12:27:19]New connection [12:27:19]New thread 3066658148 created [12:27:19]Thread 3066801508 joined [12:27:19]Waiting for new connection... [12:27:19] Sock 8.Parse request [12:27:19]Sock 8.Check first char [12:27:19]Sock 8.First char is OK [12:27:19]request: POST /json_proto HTTP/1.0 [12:27:19]Method: POST [12:27:19]URL: /json_proto [12:27:19]Method is POST - this is cgi request [12:27:19]url: /json_proto [12:27:19]query_string will be loaded in cgi processing [12:27:19]execute_cgi json_proto POST (null) [12:27:19]execute_cgi path=json_proto method=POST [12:27:19]POST find Content-Length [12:27:19]Host: 172.17.57.71:8080 [12:27:19]Content-Length: 985 [12:27:19]Content-Type: application/json [12:27:19] [12:27:19]POST finish read [12:27:19]Found Content-Length = 985 [12:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127347", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:19]execute_script... [12:27:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127347", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:19]POST & json_proto [12:27:19]process_json_proto [12:27:19]json parsed OK: [12:27:19]protocol is kg_v1.0 [12:27:19]action value=close_receipt [12:27:19]process_action close_receipt [12:27:19]cmd_close_receipt [12:27:19]MH_GetDate [12:27:19]Write to MH i2c: F0 00 00 C0 1A C9 [12:27:19]Write i2c OK [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: F0 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: F0 09 00 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: F0 09 00 C0 1A 00 2A 81 E5 66 33 3A A4 66 3F [12:27:19]GetLastDocTimeStamp 1726316573 [12:27:19]current date 1726316842 [12:27:19]FM_GetShiftState [12:27:19]SAM_PROTO_GetShiftState [12:27:19]wFMCommunicate request_size=4 [12:27:19]MH_SAM_APDU [12:27:19]CAPDU: 80 13 01 00 [12:27:19]Write to MH i2c: E2 08 00 C1 1A 80 13 01 00 00 00 00 00 58 [12:27:19]Write i2c OK [12:27:19]MH_I2C_Read... [12:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:19]Read from MH i2c: E2 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: E2 0E 00 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: E2 0E 00 C1 1A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F2 [12:27:19]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:27:19]wFMCommunicate OK [12:27:19]SAM_PROTO_GetShiftState done [12:27:19]FM_GetShiftState done [12:27:19]opened in 1726273389 [12:27:19]opened+sec_in_day 1726359789 [12:27:19]quantity*price = 7500 [12:27:19]sum+1 = 7501 [12:27:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521148 Напиток MAXI чай зел лимон 0.45л 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 89 14.09.2024 12:27 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92438 ФПД: 248096234251403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T122722&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92438&fm=248096234251403&tin=02508201610067®Number=0000000000091423&sum=21500 0 [12:27:20]StoreToDocumentArchive [12:27:20]shift 506 fd 92438 [12:27:20]save to /storage/0506/doc_00092438 [12:27:20]save last doc name /storage/0506/doc_00092438 to /storage/kkm_last_doc_name [12:27:20]save OK [12:27:20]Clear old archive folders... [12:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=418 [12:27:20]tlvbuf is 0102FE60 [12:27:20]SAM_PROTO_ClearQueue [12:27:20]wFMCommunicate request_size=4 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 09 00 00 [12:27:20]Write to MH i2c: E2 08 00 CE 1A 80 09 00 00 00 00 00 00 5A [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:20]Read from MH i2c: E2 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 03 00 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 03 00 CE 1A 00 90 00 5C [12:27:20]RAPDU: 90 00 [12:27:20]wFMCommunicate OK [12:27:20]SAM_PROTO_ClearQueue done [12:27:20]KKMCreateOFDPacket [12:27:20]OFDProtocolAddRootSTLVToBuf [12:27:20]FM_MakeSignedData [12:27:20]FM_MakeSignedData [12:27:20]SAM_PROTO_SignData [12:27:20]wFMCommunicate request_size=4 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 0D 01 02 [12:27:20]Write to MH i2c: E2 08 00 CF 1A 80 0D 01 02 00 00 00 00 62 [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:20]Read from MH i2c: E2 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 03 00 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 03 00 CF 1A 00 90 00 5D [12:27:20]RAPDU: 90 00 [12:27:20]wFMCommunicate OK [12:27:20]wFMCommunicate request_size=255 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 0D 02 02 FA 03 00 A2 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 [12:27:20]Write to MH i2c: E2 02 01 D0 1A 80 0D 02 02 FA 00 03 00 A2 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 00 52 [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:20]Read from MH i2c: E2 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 03 00 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 03 00 D0 1A 00 90 00 5E [12:27:20]RAPDU: 90 00 [12:27:20]wFMCommunicate OK [12:27:20]wFMCommunicate request_size=177 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 0D 02 02 AC 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2A 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 16 69 01 00 35 04 06 00 E1 A4 67 E9 A4 8B [12:27:20]Write to MH i2c: E2 B4 00 D1 1A 80 0D 02 02 AC 00 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2A 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 16 69 01 00 35 04 06 00 E1 A4 67 E9 A4 8B 00 00 DD [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:21]Read from MH i2c: E2 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 03 00 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 03 00 D1 1A 00 90 00 5F [12:27:21]RAPDU: 90 00 [12:27:21]wFMCommunicate OK [12:27:21]wFMCommunicate request_size=4 [12:27:21]MH_SAM_APDU [12:27:21]CAPDU: 80 0D 03 02 [12:27:21]Write to MH i2c: E2 08 00 D2 1A 80 0D 03 02 00 00 00 00 67 [12:27:21]Write i2c OK [12:27:21]MH_I2C_Read... [12:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:21]Read from MH i2c: E2 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 0B 00 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 0B 00 D2 1A 00 41 6F 2D 8A 85 07 05 96 90 00 F6 [12:27:21]RAPDU: 41 6F 2D 8A 85 07 05 96 90 00 [12:27:21]wFMCommunicate OK [12:27:21]SAM_PROTO_SignData done [12:27:21]FM_MakeSignedData done [12:27:21]CreateOFDProtocolMessage [12:27:21]wFMCommunicate request_size=4 [12:27:21]MH_SAM_APDU [12:27:21]CAPDU: 80 11 00 00 [12:27:21]Write to MH i2c: E2 08 00 D3 1A 80 11 00 00 00 00 00 00 67 [12:27:21]Write i2c OK [12:27:21]MH_I2C_Read... [12:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:21]Read from MH i2c: E2 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 17 00 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 17 00 D3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BE [12:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:27:21]wFMCommunicate OK [12:27:21]CreateOFDProtocolMessage done [12:27:21]OFDSenderStorePacket 92438 [12:27:21]StoreOFDPacket docnum=92438 [12:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B6 01 00 00 F8 47 AE 01 52 BC 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2A 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 16 69 01 00 35 04 06 00 E1 A4 67 E9 A4 8B 41 6F 2D 8A 85 07 05 96 [12:27:21]CheckFolder [12:27:21]dirname=/storage/ofd_packets [12:27:21]CheckFolder done [12:27:21]ProducePacketName [12:27:21]name=ofd_packets/00092438 [12:27:21]NVStorageSaveData ofd_packets/00092438 [12:27:21]File name is /storage/ofd_packets/00092438 [12:27:21]Write 468 bytes [12:27:21]NVStorageSaveData done [12:27:21]OFDSenderStorePacket done [12:27:21]KKMCreateOFDPacket done [12:27:21]NVStorageSaveData kkm_last_timestamp [12:27:21]File name is /storage/kkm_last_timestamp [12:27:21]Write 4 bytes [12:27:21]NVStorageSaveData done [12:27:21]ExternCall_PrintAddStr [12:27:21]wPrintStart [12:27:21]Write to MH i2c: 01 00 00 D4 1A EE [12:27:21]Write i2c OK [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: 01 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: 01 07 00 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: 01 07 00 D4 1A 00 00 00 00 00 FF 0F 03 [12:27:21]RasterBufferAndPrint [12:27:21]line Счет N : (3)127347 [12:27:21]line ИНН: 02508201610067 [12:27:21]line Контрольно-Кассовый Чек [12:27:21]line ПРОДАЖА [12:27:21]line Товар: 5449000027450 [12:27:21]line Напиток FuzeTea чай манго,ром 0,5л [12:27:21]line 1.000 * 75.00 [12:27:21]line = 75.00 [12:27:21]line НДС 12% НСП 1% [12:27:21]line > о реализуемом товаре [12:27:21]line Товар: 4870202521148 [12:27:21]line Напиток MAXI чай зел лимон 0.45л [12:27:21]line 2.000 * 70.00 [12:27:21]line = 140.00 [12:27:21]line НДС 12% НСП 1% [12:27:21]line > о реализуемом товаре [12:27:21]line ИТОГО: 215.00 [12:27:21]line НСП 1% : 1.90 [12:27:21]line НДС 12% : 22.83 [12:27:21]line Наличными: 215.00 [12:27:21]line Безнал.: 0.00 [12:27:21]line Место: АЗС № 5 "Партнер Нефть" [12:27:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:27:21]line СНО: Общий режим [12:27:21]line Чек 89 14.09.2024 12:27 [12:27:21]line Смена: 506 ФФД: 1.0 [12:27:21]line ЗНМ: 03000000022 [12:27:21]line РНМ: 0000000000091423 [12:27:21]line Версия ККМ: 001 [12:27:21]line ФМ: 0000000000874692 [12:27:21]line ФД: 92438 [12:27:21]line ФПД: 248096234251403 [12:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T122722&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92438&fm=248096234251403&tin=02508201610067®Number=0000000000091423&sum=21500 [12:27:21]line 0 [12:27:21]OFD Sender: Processing packet 92438 [packets to send 63, broken 62] [12:27:21]ProducePacketName [12:27:21]name=ofd_packets/00092438 [12:27:21]OFD Sender: To server: pG, [12:27:21]CommunicateWithHost lk.salyk.kg:30040 [12:27:21]ConnectInit lk.salyk.kg [12:27:21]written 0, free lines is 4095 [12:27:21]Connected sock=10 [12:27:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B6 01 00 00 F8 47 AE 01 52 BC 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2A 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 16 69 01 00 35 04 06 00 E1 A4 67 E9 A4 8B 41 6F 2D 8A 85 07 05 96 [12:27:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9C 9C 47 00 A9 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 16 69 01 00 F4 03 04 00 A6 29 E5 66 B6 04 01 00 00 C4 4A 84 E1 37 90 3C DC [12:27:21]CommunicateWithHost err = 0 [12:27:21]CheckOFDResponse [12:27:21]1017 (14) - 77093643461234 [12:27:21]1041 (16) - 0000000000874692 [12:27:21]1040 (4) - 92438 [12:27:21]1012 (4) - 14.09.2024 06:13 [12:27:21]1206 (1) - 0 [12:27:21]OFD Sender: Remove packet 92438 [12:27:21]ProducePacketName [12:27:21]name=ofd_packets/00092438 [12:27:21]NVStorageDeleteData [12:27:22]Write to MH i2c: 01 00 00 04 1B 1F [12:27:22]Write i2c OK [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: 01 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: 01 07 00 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: 01 07 00 04 1B 00 00 00 00 00 B6 0C E8 [12:27:22]RasterBufferAndPrint [12:27:22]line [12:27:22]line [12:27:22]line [12:27:22]line [12:27:22]line [12:27:22]written 0, free lines is 3262 [12:27:22]MH_Cut [12:27:22]Write to MH i2c: D1 01 00 0B 1B 01 F8 [12:27:22]Write i2c OK [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: D1 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: D1 01 00 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: D1 01 00 0B 1B 00 F7 [12:27:22]Write to MH i2c: 01 00 00 0C 1B 27 [12:27:22]Write i2c OK [12:27:22]MH_I2C_Read... [12:27:22]OFD Sender: No OFD packet to send [12:27:22]*** Cut start [12:27:22]*** Purtial cut [12:27:22]*** Stage 1: CUTSNS_PIN = 1 [12:27:24]Read from MH i2c: 01 [12:27:24]MH_I2C_Read... [12:27:24]*** Stop cut motor [12:27:24]*** Cut end [12:27:24]Read from MH i2c: 01 07 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: 01 07 00 0C 1B 00 00 00 00 00 FF 0F 3C [12:27:24]process_action close_receipt done [12:27:24]requested_data is exist [12:27:24]produce_requested_data [12:27:24]requested_item fm.sn is exist - process it [12:27:24]wFMCommunicate request_size=4 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 11 00 00 [12:27:24]Write to MH i2c: E2 08 00 0D 1B 80 11 00 00 00 00 00 00 A2 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 17 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 17 00 0D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F9 [12:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:27:24]wFMCommunicate OK [12:27:24]requested_item fd.num is exist - process it [12:27:24]SAM_PROTO_GetFieldsCounters [12:27:24]wFMCommunicate request_size=4 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 13 00 00 [12:27:24]Write to MH i2c: E2 08 00 0E 1B 80 13 00 00 00 00 00 00 A5 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:25]Read from MH i2c: E2 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: E2 62 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: E2 62 00 0E 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 16 69 01 00 0E 04 04 00 FA 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 4A [12:27:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 16 69 01 00 0E 04 04 00 FA 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:27:25]wFMCommunicate OK [12:27:25]SAM_PROTO_GetFieldsCounters done [12:27:25]requested_item shift.num is exist - process it [12:27:25]requested_item shift.opened is exist - process it [12:27:25]req_shift_opened [12:27:25]FM_GetShiftState [12:27:25]SAM_PROTO_GetShiftState [12:27:25]wFMCommunicate request_size=4 [12:27:25]MH_SAM_APDU [12:27:25]CAPDU: 80 13 01 00 [12:27:25]Write to MH i2c: E2 08 00 0F 1B 80 13 01 00 00 00 00 00 A7 [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:25]Read from MH i2c: E2 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: E2 0E 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: E2 0E 00 0F 1B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 41 [12:27:25]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:27:25]wFMCommunicate OK [12:27:25]SAM_PROTO_GetShiftState done [12:27:25]FM_GetShiftState done [12:27:25]req_shift_opened done [12:27:25]requested_item shift.open_date is exist - process it [12:27:25]req_shift_open_date [12:27:25]req_shift_open_date done [12:27:25]produce_requested_data done [12:27:25]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92438,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:27:25]process_action_free close_receipt [12:27:25]json_value_free [12:27:25]json_value_free done [12:27:25]process_json_proto returns [12:27:25]Send response to host [12:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92438,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:27:25]free response buf [12:27:25]execute_script done [12:27:25]execute_script returns [12:27:25]free content buf [12:27:25]Sock 8.Close socket [12:27:25]Sock 8.Thread stoped [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]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]accept exits with 9 [12:29:32]New connection [12:29:32]New thread 3066801508 created [12:29:32]Thread 3066658148 joined [12:29:32]Waiting for new connection... [12:29:32] Sock 9.Parse request [12:29:32]Sock 9.Check first char [12:29:32]Sock 9.First char is OK [12:29:32]request: POST /json_proto HTTP/1.0 [12:29:32]Method: POST [12:29:32]URL: /json_proto [12:29:32]Method is POST - this is cgi request [12:29:32]url: /json_proto [12:29:32]query_string will be loaded in cgi processing [12:29:32]execute_cgi json_proto POST (null) [12:29:32]execute_cgi path=json_proto method=POST [12:29:32]POST find Content-Length [12:29:32]Host: 172.17.57.71:8080 [12:29:32]Content-Length: 632 [12:29:32]Content-Type: application/json [12:29:32] [12:29:32]POST finish read [12:29:32]Found Content-Length = 632 [12:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127348", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 5.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" ] } } [12:29:32]execute_script... [12:29:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127348", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 5.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" ] } } [12:29:32]POST & json_proto [12:29:32]process_json_proto [12:29:32]json parsed OK: [12:29:32]protocol is kg_v1.0 [12:29:32]action value=close_receipt [12:29:32]process_action close_receipt [12:29:32]cmd_close_receipt [12:29:32]MH_GetDate [12:29:32]Write to MH i2c: F0 00 00 10 1B 1A [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 09 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 09 00 10 1B 00 AF 81 E5 66 33 3A A4 66 15 [12:29:32]GetLastDocTimeStamp 1726316842 [12:29:32]current date 1726316975 [12:29:32]FM_GetShiftState [12:29:32]SAM_PROTO_GetShiftState [12:29:32]wFMCommunicate request_size=4 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 13 01 00 [12:29:32]Write to MH i2c: E2 08 00 11 1B 80 13 01 00 00 00 00 00 A9 [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0E 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0E 00 11 1B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 43 [12:29:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:29:32]wFMCommunicate OK [12:29:32]SAM_PROTO_GetShiftState done [12:29:32]FM_GetShiftState done [12:29:32]opened in 1726273389 [12:29:32]opened+sec_in_day 1726359789 [12:29:32]quantity*price = 25000 [12:29:32]sum+1 = 25001 [12:29:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 90 14.09.2024 12:29 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92439 ФПД: 68732637632637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T122935&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92439&fm=68732637632637&tin=02508201610067®Number=0000000000091423&sum=25000 0 [12:29:33]StoreToDocumentArchive [12:29:33]shift 506 fd 92439 [12:29:33]save to /storage/0506/doc_00092439 [12:29:33]save last doc name /storage/0506/doc_00092439 to /storage/kkm_last_doc_name [12:29:33]save OK [12:29:33]Clear old archive folders... [12:29:33]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:29:33]tlvbuf is B6F33970 [12:29:33]SAM_PROTO_ClearQueue [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 09 00 00 [12:29:33]Write to MH i2c: E2 08 00 1E 1B 80 09 00 00 00 00 00 00 AB [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 1E 1B 00 90 00 AD [12:29:33]RAPDU: 90 00 [12:29:33]wFMCommunicate OK [12:29:33]SAM_PROTO_ClearQueue done [12:29:33]KKMCreateOFDPacket [12:29:33]OFDProtocolAddRootSTLVToBuf [12:29:33]FM_MakeSignedData [12:29:33]FM_MakeSignedData [12:29:33]SAM_PROTO_SignData [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 0D 01 02 [12:29:33]Write to MH i2c: E2 08 00 1F 1B 80 0D 01 02 00 00 00 00 B3 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 1F 1B 00 90 00 AE [12:29:33]RAPDU: 90 00 [12:29:33]wFMCommunicate OK [12:29:33]wFMCommunicate request_size=255 [12:29:33]MH_SAM_APDU [12:29:33]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 88 13 00 00 00 00 00 37 04 06 00 88 13 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 5A 00 00 00 F4 03 04 00 AF 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [12:29:33]Write to MH i2c: E2 02 01 20 1B 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 88 13 00 00 00 00 00 37 04 06 00 88 13 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 5A 00 00 00 F4 03 04 00 AF 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 93 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:33]Read from MH i2c: E2 03 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 20 1B 00 90 00 AF [12:29:33]RAPDU: 90 00 [12:29:33]wFMCommunicate OK [12:29:33]wFMCommunicate request_size=28 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 17 69 01 00 35 04 06 00 3E 83 10 73 58 7D [12:29:33]Write to MH i2c: E2 1F 00 21 1B 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 17 69 01 00 35 04 06 00 3E 83 10 73 58 7D 00 00 E1 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 21 1B 00 90 00 B0 [12:29:33]RAPDU: 90 00 [12:29:33]wFMCommunicate OK [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 0D 03 02 [12:29:33]Write to MH i2c: E2 08 00 22 1B 80 0D 03 02 00 00 00 00 B8 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 0B 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 0B 00 22 1B 00 B5 98 BC 89 18 C4 CD 7B 90 00 6F [12:29:33]RAPDU: B5 98 BC 89 18 C4 CD 7B 90 00 [12:29:33]wFMCommunicate OK [12:29:33]SAM_PROTO_SignData done [12:29:33]FM_MakeSignedData done [12:29:33]CreateOFDProtocolMessage [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 11 00 00 [12:29:33]Write to MH i2c: E2 08 00 23 1B 80 11 00 00 00 00 00 00 B8 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 17 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 17 00 23 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0F [12:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:29:34]wFMCommunicate OK [12:29:34]CreateOFDProtocolMessage done [12:29:34]OFDSenderStorePacket 92439 [12:29:34]StoreOFDPacket docnum=92439 [12:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 DB 3F 19 01 63 65 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 88 13 00 00 00 00 00 37 04 06 00 88 13 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 5A 00 00 00 F4 03 04 00 AF 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 17 69 01 00 35 04 06 00 3E 83 10 73 58 7D B5 98 BC 89 18 C4 CD 7B [12:29:34]CheckFolder [12:29:34]dirname=/storage/ofd_packets [12:29:34]CheckFolder done [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00092439 [12:29:34]NVStorageSaveData ofd_packets/00092439 [12:29:34]File name is /storage/ofd_packets/00092439 [12:29:34]Write 319 bytes [12:29:34]NVStorageSaveData done [12:29:34]OFDSenderStorePacket done [12:29:34]KKMCreateOFDPacket done [12:29:34]NVStorageSaveData kkm_last_timestamp [12:29:34]File name is /storage/kkm_last_timestamp [12:29:34]Write 4 bytes [12:29:34]NVStorageSaveData done [12:29:34]ExternCall_PrintAddStr [12:29:34]wPrintStart [12:29:34]Write to MH i2c: 01 00 00 24 1B 3F [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 24 1B 00 00 00 00 00 FF 0F 54 [12:29:34]RasterBufferAndPrint [12:29:34]line Счет N : (3)127348 [12:29:34]line ИНН: 02508201610067 [12:29:34]line Контрольно-Кассовый Чек [12:29:34]line ПРОДАЖА [12:29:34]line Товар: 4700000160358 [12:29:34]line Вода Легенда 1л [12:29:34]line 5.000 * 50.00 [12:29:34]line = 250.00 [12:29:34]line НДС 12% НСП 1% [12:29:34]line > о реализуемом товаре [12:29:34]line ИТОГО: 250.00 [12:29:34]line НСП 1% : 2.21 [12:29:34]line НДС 12% : 26.55 [12:29:34]line Наличными: 250.00 [12:29:34]line Безнал.: 0.00 [12:29:34]line Место: АЗС № 5 "Партнер Нефть" [12:29:34]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:29:34]line СНО: Общий режим [12:29:34]line Чек 90 14.09.2024 12:29 [12:29:34]line Смена: 506 ФФД: 1.0 [12:29:34]line ЗНМ: 03000000022 [12:29:34]line РНМ: 0000000000091423 [12:29:34]line Версия ККМ: 001 [12:29:34]line ФМ: 0000000000874692 [12:29:34]line ФД: 92439 [12:29:34]line ФПД: 68732637632637 [12:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T122935&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92439&fm=68732637632637&tin=02508201610067®Number=0000000000091423&sum=25000 [12:29:34]line 0 [12:29:34]OFD Sender: Processing packet 92439 [packets to send 63, broken 62] [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00092439 [12:29:34]OFD Sender: To server: pG, [12:29:34]CommunicateWithHost lk.salyk.kg:30040 [12:29:34]ConnectInit lk.salyk.kg [12:29:34]written 0, free lines is 4095 [12:29:34]Connected sock=10 [12:29:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 DB 3F 19 01 63 65 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 88 13 00 00 00 00 00 37 04 06 00 88 13 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 5A 00 00 00 F4 03 04 00 AF 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 17 69 01 00 35 04 06 00 3E 83 10 73 58 7D B5 98 BC 89 18 C4 CD 7B [12:29:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 50 DD 47 00 A3 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 17 69 01 00 F4 03 04 00 2A 2A E5 66 B6 04 01 00 00 A5 CD E2 D4 CB 05 ED 26 [12:29:34]CommunicateWithHost err = 0 [12:29:34]CheckOFDResponse [12:29:34]1017 (14) - 77093643461234 [12:29:34]1041 (16) - 0000000000874692 [12:29:34]1040 (4) - 92439 [12:29:34]1012 (4) - 14.09.2024 06:16 [12:29:34]1206 (1) - 0 [12:29:34]OFD Sender: Remove packet 92439 [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00092439 [12:29:34]NVStorageDeleteData [12:29:34]Write to MH i2c: 01 00 00 4C 1B 67 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 4C 1B 00 00 00 00 00 1C 0D 97 [12:29:34]RasterBufferAndPrint [12:29:34]line [12:29:34]line [12:29:34]line [12:29:34]line [12:29:34]line [12:29:34]written 0, free lines is 3363 [12:29:34]MH_Cut [12:29:34]Write to MH i2c: D1 01 00 53 1B 01 40 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: D1 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: D1 01 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: D1 01 00 53 1B 00 3F [12:29:34]Write to MH i2c: 01 00 00 54 1B 6F [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:35]OFD Sender: No OFD packet to send [12:29:35]*** Cut start [12:29:35]*** Purtial cut [12:29:35]*** Stage 1: CUTSNS_PIN = 1 [12:29:37]Read from MH i2c: 01 [12:29:37]MH_I2C_Read... [12:29:37]*** Stop cut motor [12:29:37]*** Cut end [12:29:37]Read from MH i2c: 01 07 00 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: 01 07 00 54 1B 00 00 00 00 00 FF 0F 84 [12:29:37]process_action close_receipt done [12:29:37]requested_data is exist [12:29:37]produce_requested_data [12:29:37]requested_item fm.sn is exist - process it [12:29:37]wFMCommunicate request_size=4 [12:29:37]MH_SAM_APDU [12:29:37]CAPDU: 80 11 00 00 [12:29:37]Write to MH i2c: E2 08 00 55 1B 80 11 00 00 00 00 00 00 EA [12:29:37]Write i2c OK [12:29:37]MH_I2C_Read... [12:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:37]Read from MH i2c: E2 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 17 00 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 17 00 55 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 41 [12:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:29:37]wFMCommunicate OK [12:29:37]requested_item fd.num is exist - process it [12:29:37]SAM_PROTO_GetFieldsCounters [12:29:37]wFMCommunicate request_size=4 [12:29:37]MH_SAM_APDU [12:29:37]CAPDU: 80 13 00 00 [12:29:37]Write to MH i2c: E2 08 00 56 1B 80 13 00 00 00 00 00 00 ED [12:29:37]Write i2c OK [12:29:37]MH_I2C_Read... [12:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:37]Read from MH i2c: E2 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 62 00 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 62 00 56 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 69 01 00 0E 04 04 00 FA 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 96 [12:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 17 69 01 00 0E 04 04 00 FA 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:29:37]wFMCommunicate OK [12:29:37]SAM_PROTO_GetFieldsCounters done [12:29:37]requested_item shift.num is exist - process it [12:29:37]requested_item shift.opened is exist - process it [12:29:37]req_shift_opened [12:29:37]FM_GetShiftState [12:29:37]SAM_PROTO_GetShiftState [12:29:37]wFMCommunicate request_size=4 [12:29:37]MH_SAM_APDU [12:29:37]CAPDU: 80 13 01 00 [12:29:37]Write to MH i2c: E2 08 00 57 1B 80 13 01 00 00 00 00 00 EF [12:29:37]Write i2c OK [12:29:37]MH_I2C_Read... [12:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:37]Read from MH i2c: E2 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 0E 00 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 0E 00 57 1B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 89 [12:29:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:29:37]wFMCommunicate OK [12:29:37]SAM_PROTO_GetShiftState done [12:29:37]FM_GetShiftState done [12:29:37]req_shift_opened done [12:29:37]requested_item shift.open_date is exist - process it [12:29:37]req_shift_open_date [12:29:37]req_shift_open_date done [12:29:37]produce_requested_data done [12:29:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92439,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:29:37]process_action_free close_receipt [12:29:37]json_value_free [12:29:37]json_value_free done [12:29:37]process_json_proto returns [12:29:37]Send response to host [12:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92439,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:29:37]free response buf [12:29:37]execute_script done [12:29:37]execute_script returns [12:29:37]free content buf [12:29:37]Sock 9.Close socket [12:29:37]Sock 9.Thread stoped [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:35]accept exits with 8 [12:30:35]New connection [12:30:35]New thread 3066658148 created [12:30:35]Thread 3066801508 joined [12:30:35]Waiting for new connection... [12:30:35] Sock 8.Parse request [12:30:35]Sock 8.Check first char [12:30:35]Sock 8.First char is OK [12:30:35]request: POST /json_proto HTTP/1.0 [12:30:35]Method: POST [12:30:35]URL: /json_proto [12:30:35]Method is POST - this is cgi request [12:30:35]url: /json_proto [12:30:35]query_string will be loaded in cgi processing [12:30:35]execute_cgi json_proto POST (null) [12:30:35]execute_cgi path=json_proto method=POST [12:30:35]POST find Content-Length [12:30:35]Host: 172.17.57.71:8080 [12:30:35]Content-Length: 864 [12:30:35]Content-Type: application/json [12:30:35] [12:30:35]POST finish read [12:30:35]Found Content-Length = 864 [12:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127349", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.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" ] } } [12:30:35]execute_script... [12:30: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)127349", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.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" ] } } [12:30:35]POST & json_proto [12:30:35]process_json_proto [12:30:35]json parsed OK: [12:30:35]protocol is kg_v1.0 [12:30:35]action value=close_receipt [12:30:35]process_action close_receipt [12:30:35]cmd_close_receipt [12:30:35]MH_GetDate [12:30:35]Write to MH i2c: F0 00 00 58 1B 62 [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: F0 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: F0 09 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: F0 09 00 58 1B 00 EE 81 E5 66 33 3A A4 66 9C [12:30:35]GetLastDocTimeStamp 1726316975 [12:30:35]current date 1726317038 [12:30:35]FM_GetShiftState [12:30:35]SAM_PROTO_GetShiftState [12:30:35]wFMCommunicate request_size=4 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 13 01 00 [12:30:35]Write to MH i2c: E2 08 00 59 1B 80 13 01 00 00 00 00 00 F1 [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 0E 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 0E 00 59 1B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8B [12:30:35]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:30:35]wFMCommunicate OK [12:30:35]SAM_PROTO_GetShiftState done [12:30:35]FM_GetShiftState done [12:30:35]opened in 1726273389 [12:30:35]opened+sec_in_day 1726359789 [12:30:35]quantity*price = 16000 [12:30:35]sum+1 = 16001 [12:30:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.13 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 91 14.09.2024 12:30 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92440 ФПД: 42585433391645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T123038&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92440&fm=42585433391645&tin=02508201610067®Number=0000000000091423&sum=24000 0 [12:30:36]StoreToDocumentArchive [12:30:36]shift 506 fd 92440 [12:30:36]save to /storage/0506/doc_00092440 [12:30:36]save last doc name /storage/0506/doc_00092440 to /storage/kkm_last_doc_name [12:30:36]save OK [12:30:36]Clear old archive folders... [12:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=369 [12:30:36]tlvbuf is 010387E0 [12:30:36]SAM_PROTO_ClearQueue [12:30:36]wFMCommunicate request_size=4 [12:30:36]MH_SAM_APDU [12:30:36]CAPDU: 80 09 00 00 [12:30:36]Write to MH i2c: E2 08 00 66 1B 80 09 00 00 00 00 00 00 F3 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:36]Read from MH i2c: E2 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 66 1B 00 90 00 F5 [12:30:36]RAPDU: 90 00 [12:30:36]wFMCommunicate OK [12:30:36]SAM_PROTO_ClearQueue done [12:30:36]KKMCreateOFDPacket [12:30:36]OFDProtocolAddRootSTLVToBuf [12:30:36]FM_MakeSignedData [12:30:36]FM_MakeSignedData [12:30:36]SAM_PROTO_SignData [12:30:36]wFMCommunicate request_size=4 [12:30:36]MH_SAM_APDU [12:30:36]CAPDU: 80 0D 01 02 [12:30:36]Write to MH i2c: E2 08 00 67 1B 80 0D 01 02 00 00 00 00 FB [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:36]Read from MH i2c: E2 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 67 1B 00 90 00 F6 [12:30:36]RAPDU: 90 00 [12:30:36]wFMCommunicate OK [12:30:36]wFMCommunicate request_size=255 [12:30:36]MH_SAM_APDU [12:30:36]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [12:30:36]Write to MH i2c: E2 02 01 68 1B 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 F5 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 68 1B 00 90 00 F7 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]wFMCommunicate request_size=128 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 02 02 7B 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 5B 00 00 00 F4 03 04 00 EE 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 18 69 01 00 35 04 06 00 26 BB 31 A1 42 1D [12:30:37]Write to MH i2c: E2 83 00 69 1B 80 0D 02 02 7B 00 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 5B 00 00 00 F4 03 04 00 EE 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 18 69 01 00 35 04 06 00 26 BB 31 A1 42 1D 00 00 E7 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 69 1B 00 90 00 F8 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 03 02 [12:30:37]Write to MH i2c: E2 08 00 6A 1B 80 0D 03 02 00 00 00 00 00 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 0B 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 0B 00 6A 1B 00 FB 29 D0 1D D2 F7 36 F2 90 00 03 [12:30:37]RAPDU: FB 29 D0 1D D2 F7 36 F2 90 00 [12:30:37]wFMCommunicate OK [12:30:37]SAM_PROTO_SignData done [12:30:37]FM_MakeSignedData done [12:30:37]CreateOFDProtocolMessage [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 11 00 00 [12:30:37]Write to MH i2c: E2 08 00 6B 1B 80 11 00 00 00 00 00 00 00 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 17 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 17 00 6B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 57 [12:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:30:37]wFMCommunicate OK [12:30:37]CreateOFDProtocolMessage done [12:30:37]OFDSenderStorePacket 92440 [12:30:37]StoreOFDPacket docnum=92440 [12:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 85 01 00 00 D0 C0 7D 01 C5 A0 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 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 5B 00 00 00 F4 03 04 00 EE 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 18 69 01 00 35 04 06 00 26 BB 31 A1 42 1D FB 29 D0 1D D2 F7 36 F2 [12:30:37]CheckFolder [12:30:37]dirname=/storage/ofd_packets [12:30:37]CheckFolder done [12:30:37]ProducePacketName [12:30:37]name=ofd_packets/00092440 [12:30:37]NVStorageSaveData ofd_packets/00092440 [12:30:37]File name is /storage/ofd_packets/00092440 [12:30:37]Write 419 bytes [12:30:37]NVStorageSaveData done [12:30:37]OFDSenderStorePacket done [12:30:37]KKMCreateOFDPacket done [12:30:37]NVStorageSaveData kkm_last_timestamp [12:30:37]File name is /storage/kkm_last_timestamp [12:30:37]Write 4 bytes [12:30:37]NVStorageSaveData done [12:30:37]ExternCall_PrintAddStr [12:30:37]wPrintStart [12:30:37]Write to MH i2c: 01 00 00 6C 1B 87 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 07 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 07 00 6C 1B 00 00 00 00 00 FF 0F 9C [12:30:37]RasterBufferAndPrint [12:30:37]line Счет N : (3)127349 [12:30:37]line ИНН: 02508201610067 [12:30:37]line Контрольно-Кассовый Чек [12:30:37]line ПРОДАЖА [12:30:37]line Товар: 4870001570057 [12:30:37]line Напиток Pepsi 0,5л [12:30:37]line 2.000 * 80.00 [12:30:37]line = 160.00 [12:30:37]line НДС 12% НСП 1% [12:30:37]line > о реализуемом товаре [12:30:37]line Товар: 4700000160211 [12:30:37]line Вода Легенда 0,5л [12:30:37]line 2.000 * 40.00 [12:30:37]line = 80.00 [12:30:37]line НДС 12% НСП 1% [12:30:37]line > о реализуемом товаре [12:30:37]line ИТОГО: 240.00 [12:30:37]line НСП 1% : 2.13 [12:30:37]line НДС 12% : 25.49 [12:30:37]line Наличными: 240.00 [12:30:37]line Безнал.: 0.00 [12:30:37]line Место: АЗС № 5 "Партнер Нефть" [12:30:37]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:30:37]line СНО: Общий режим [12:30:37]line Чек 91 14.09.2024 12:30 [12:30:37]line Смена: 506 ФФД: 1.0 [12:30:37]line ЗНМ: 03000000022 [12:30:37]line РНМ: 0000000000091423 [12:30:37]line Версия ККМ: 001 [12:30:37]line ФМ: 0000000000874692 [12:30:37]line ФД: 92440 [12:30:37]line ФПД: 42585433391645 [12:30:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T123038&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92440&fm=42585433391645&tin=02508201610067®Number=0000000000091423&sum=24000 [12:30:37]line 0 [12:30:37]OFD Sender: Processing packet 92440 [packets to send 63, broken 62] [12:30:37]ProducePacketName [12:30:37]name=ofd_packets/00092440 [12:30:37]OFD Sender: To server: pG, [12:30:37]CommunicateWithHost lk.salyk.kg:30040 [12:30:37]ConnectInit lk.salyk.kg [12:30:37]written 0, free lines is 4095 [12:30:37]Connected sock=10 [12:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 85 01 00 00 D0 C0 7D 01 C5 A0 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 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 5B 00 00 00 F4 03 04 00 EE 81 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 18 69 01 00 35 04 06 00 26 BB 31 A1 42 1D FB 29 D0 1D D2 F7 36 F2 [12:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E7 CA 47 00 43 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 18 69 01 00 F4 03 04 00 6A 2A E5 66 B6 04 01 00 00 C2 C0 95 77 EC 34 37 D9 [12:30:37]CommunicateWithHost err = 0 [12:30:37]CheckOFDResponse [12:30:37]1017 (14) - 77093643461234 [12:30:37]1041 (16) - 0000000000874692 [12:30:37]1040 (4) - 92440 [12:30:37]1012 (4) - 14.09.2024 06:17 [12:30:37]1206 (1) - 0 [12:30:37]OFD Sender: Remove packet 92440 [12:30:37]ProducePacketName [12:30:37]name=ofd_packets/00092440 [12:30:37]NVStorageDeleteData [12:30:38]Write to MH i2c: 01 00 00 9A 1B B5 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 9A 1B 00 00 00 00 00 CF 0C 97 [12:30:38]RasterBufferAndPrint [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]written 0, free lines is 3286 [12:30:38]MH_Cut [12:30:38]Write to MH i2c: D1 01 00 A1 1B 01 8E [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 01 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 01 00 A1 1B 00 8D [12:30:38]Write to MH i2c: 01 00 00 A2 1B BD [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]OFD Sender: No OFD packet to send [12:30:38]*** Cut start [12:30:38]*** Purtial cut [12:30:38]*** Stage 1: CUTSNS_PIN = 1 [12:30:40]Read from MH i2c: 01 [12:30:40]MH_I2C_Read... [12:30:40]*** Stop cut motor [12:30:40]*** Cut end [12:30:40]Read from MH i2c: 01 07 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 A2 1B 00 00 00 00 00 FF 0F D2 [12:30:40]process_action close_receipt done [12:30:40]requested_data is exist [12:30:40]produce_requested_data [12:30:40]requested_item fm.sn is exist - process it [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 11 00 00 [12:30:40]Write to MH i2c: E2 08 00 A3 1B 80 11 00 00 00 00 00 00 38 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 A3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8F [12:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:30:40]wFMCommunicate OK [12:30:40]requested_item fd.num is exist - process it [12:30:40]SAM_PROTO_GetFieldsCounters [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 13 00 00 [12:30:40]Write to MH i2c: E2 08 00 A4 1B 80 13 00 00 00 00 00 00 3B [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:41]Read from MH i2c: E2 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: E2 62 00 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: E2 62 00 A4 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 18 69 01 00 0E 04 04 00 FA 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 E8 [12:30:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 18 69 01 00 0E 04 04 00 FA 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:30:41]wFMCommunicate OK [12:30:41]SAM_PROTO_GetFieldsCounters done [12:30:41]requested_item shift.num is exist - process it [12:30:41]requested_item shift.opened is exist - process it [12:30:41]req_shift_opened [12:30:41]FM_GetShiftState [12:30:41]SAM_PROTO_GetShiftState [12:30:41]wFMCommunicate request_size=4 [12:30:41]MH_SAM_APDU [12:30:41]CAPDU: 80 13 01 00 [12:30:41]Write to MH i2c: E2 08 00 A5 1B 80 13 01 00 00 00 00 00 3D [12:30:41]Write i2c OK [12:30:41]MH_I2C_Read... [12:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:41]Read from MH i2c: E2 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: E2 0E 00 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: E2 0E 00 A5 1B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D7 [12:30:41]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:30:41]wFMCommunicate OK [12:30:41]SAM_PROTO_GetShiftState done [12:30:41]FM_GetShiftState done [12:30:41]req_shift_opened done [12:30:41]requested_item shift.open_date is exist - process it [12:30:41]req_shift_open_date [12:30:41]req_shift_open_date done [12:30:41]produce_requested_data done [12:30:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92440,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:30:41]process_action_free close_receipt [12:30:41]json_value_free [12:30:41]json_value_free done [12:30:41]process_json_proto returns [12:30:41]Send response to host [12:30:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92440,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:30:41]free response buf [12:30:41]execute_script done [12:30:41]execute_script returns [12:30:41]free content buf [12:30:41]Sock 8.Close socket [12:30:41]Sock 8.Thread stoped [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:30:59]accept exits with 9 [12:30:59]New connection [12:30:59]New thread 3066801508 created [12:30:59]Thread 3066658148 joined [12:30:59]Waiting for new connection... [12:30:59] Sock 9.Parse request [12:30:59]Sock 9.Check first char [12:30:59]Sock 9.First char is OK [12:30:59]request: POST /json_proto HTTP/1.0 [12:30:59]Method: POST [12:30:59]URL: /json_proto [12:30:59]Method is POST - this is cgi request [12:30:59]url: /json_proto [12:30:59]query_string will be loaded in cgi processing [12:30:59]execute_cgi json_proto POST (null) [12:30:59]execute_cgi path=json_proto method=POST [12:30:59]POST find Content-Length [12:30:59]Host: 172.17.57.71:8080 [12:30:59]Content-Length: 946 [12:30:59]Content-Type: application/json [12:30:59] [12:30:59]POST finish read [12:30:59]Found Content-Length = 946 [12:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127350", "tax_sys" : 0, "items" : [ { "code": "4620021192902", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u0428\u043E\u043A\u043E\u043B\u0430\u0434", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" ] } } [12:30:59]execute_script... [12:30: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)127350", "tax_sys" : 0, "items" : [ { "code": "4620021192902", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u0428\u043E\u043A\u043E\u043B\u0430\u0434", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" ] } } [12:30:59]POST & json_proto [12:30:59]process_json_proto [12:30:59]json parsed OK: [12:30:59]protocol is kg_v1.0 [12:30:59]action value=close_receipt [12:30:59]process_action close_receipt [12:30:59]cmd_close_receipt [12:30:59]MH_GetDate [12:30:59]Write to MH i2c: F0 00 00 A6 1B B0 [12:30:59]Write i2c OK [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: F0 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: F0 09 00 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: F0 09 00 A6 1B 00 06 82 E5 66 33 3A A4 66 03 [12:30:59]GetLastDocTimeStamp 1726317038 [12:30:59]current date 1726317062 [12:30:59]FM_GetShiftState [12:30:59]SAM_PROTO_GetShiftState [12:30:59]wFMCommunicate request_size=4 [12:30:59]MH_SAM_APDU [12:30:59]CAPDU: 80 13 01 00 [12:30:59]Write to MH i2c: E2 08 00 A7 1B 80 13 01 00 00 00 00 00 3F [12:30:59]Write i2c OK [12:30:59]MH_I2C_Read... [12:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:59]Read from MH i2c: E2 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: E2 0E 00 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: E2 0E 00 A7 1B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D9 [12:30:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:30:59]wFMCommunicate OK [12:30:59]SAM_PROTO_GetShiftState done [12:30:59]FM_GetShiftState done [12:30:59]opened in 1726273389 [12:30:59]opened+sec_in_day 1726359789 [12:30:59]quantity*price = 10500 [12:30:59]sum+1 = 10501 [12:30:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660013331438 Эскимо Московское 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 92 14.09.2024 12:31 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92441 ФПД: 126535962374205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T123102&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92441&fm=126535962374205&tin=02508201610067®Number=0000000000091423&sum=20000 0 [12:31:00]StoreToDocumentArchive [12:31:00]shift 506 fd 92441 [12:31:00]save to /storage/0506/doc_00092441 [12:31:00]save last doc name /storage/0506/doc_00092441 to /storage/kkm_last_doc_name [12:31:00]save OK [12:31:00]Clear old archive folders... [12:31:00]ProcessDocumentItem done err = 0, tmpTLVsize=390 [12:31:00]tlvbuf is 00FA1820 [12:31:00]SAM_PROTO_ClearQueue [12:31:00]wFMCommunicate request_size=4 [12:31:00]MH_SAM_APDU [12:31:00]CAPDU: 80 09 00 00 [12:31:00]Write to MH i2c: E2 08 00 B4 1B 80 09 00 00 00 00 00 00 41 [12:31:00]Write i2c OK [12:31:00]MH_I2C_Read... [12:31:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:00]Read from MH i2c: E2 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 03 00 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 03 00 B4 1B 00 90 00 43 [12:31:00]RAPDU: 90 00 [12:31:00]wFMCommunicate OK [12:31:00]SAM_PROTO_ClearQueue done [12:31:00]KKMCreateOFDPacket [12:31:00]OFDProtocolAddRootSTLVToBuf [12:31:00]FM_MakeSignedData [12:31:00]FM_MakeSignedData [12:31:00]SAM_PROTO_SignData [12:31:00]wFMCommunicate request_size=4 [12:31:00]MH_SAM_APDU [12:31:00]CAPDU: 80 0D 01 02 [12:31:00]Write to MH i2c: E2 08 00 B5 1B 80 0D 01 02 00 00 00 00 49 [12:31:00]Write i2c OK [12:31:00]MH_I2C_Read... [12:31:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:00]Read from MH i2c: E2 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 03 00 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 03 00 B5 1B 00 90 00 44 [12:31:00]RAPDU: 90 00 [12:31:00]wFMCommunicate OK [12:31:00]wFMCommunicate request_size=255 [12:31:00]MH_SAM_APDU [12:31:00]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [12:31:00]Write to MH i2c: E2 02 01 B6 1B 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 88 [12:31:00]Write i2c OK [12:31:00]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 03 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 03 00 B6 1B 00 90 00 45 [12:31:01]RAPDU: 90 00 [12:31:01]wFMCommunicate OK [12:31:01]wFMCommunicate request_size=149 [12:31:01]MH_SAM_APDU [12:31:01]CAPDU: 80 0D 02 02 90 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 06 82 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 19 69 01 00 35 04 06 00 73 15 73 16 B0 3D [12:31:01]Write to MH i2c: E2 98 00 B7 1B 80 0D 02 02 90 00 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 06 82 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 19 69 01 00 35 04 06 00 73 15 73 16 B0 3D 00 00 B6 [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 03 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 03 00 B7 1B 00 90 00 46 [12:31:01]RAPDU: 90 00 [12:31:01]wFMCommunicate OK [12:31:01]wFMCommunicate request_size=4 [12:31:01]MH_SAM_APDU [12:31:01]CAPDU: 80 0D 03 02 [12:31:01]Write to MH i2c: E2 08 00 B8 1B 80 0D 03 02 00 00 00 00 4E [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 0B 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 0B 00 B8 1B 00 01 E8 54 88 D8 12 D2 95 90 00 65 [12:31:01]RAPDU: 01 E8 54 88 D8 12 D2 95 90 00 [12:31:01]wFMCommunicate OK [12:31:01]SAM_PROTO_SignData done [12:31:01]FM_MakeSignedData done [12:31:01]CreateOFDProtocolMessage [12:31:01]wFMCommunicate request_size=4 [12:31:01]MH_SAM_APDU [12:31:01]CAPDU: 80 11 00 00 [12:31:01]Write to MH i2c: E2 08 00 B9 1B 80 11 00 00 00 00 00 00 4E [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 17 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 17 00 B9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A5 [12:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:31:01]wFMCommunicate OK [12:31:01]CreateOFDProtocolMessage done [12:31:01]OFDSenderStorePacket 92441 [12:31:01]StoreOFDPacket docnum=92441 [12:31:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9A 01 00 00 C2 F4 92 01 F0 44 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 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 06 82 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 19 69 01 00 35 04 06 00 73 15 73 16 B0 3D 01 E8 54 88 D8 12 D2 95 [12:31:01]CheckFolder [12:31:01]dirname=/storage/ofd_packets [12:31:01]CheckFolder done [12:31:01]ProducePacketName [12:31:01]name=ofd_packets/00092441 [12:31:01]NVStorageSaveData ofd_packets/00092441 [12:31:01]File name is /storage/ofd_packets/00092441 [12:31:01]Write 440 bytes [12:31:01]NVStorageSaveData done [12:31:01]OFDSenderStorePacket done [12:31:01]KKMCreateOFDPacket done [12:31:01]NVStorageSaveData kkm_last_timestamp [12:31:01]File name is /storage/kkm_last_timestamp [12:31:01]Write 4 bytes [12:31:01]NVStorageSaveData done [12:31:01]ExternCall_PrintAddStr [12:31:01]wPrintStart [12:31:01]Write to MH i2c: 01 00 00 BA 1B D5 [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: 01 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: 01 07 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: 01 07 00 BA 1B 00 00 00 00 00 FF 0F EA [12:31:01]RasterBufferAndPrint [12:31:01]line Счет N : (3)127350 [12:31:01]line ИНН: 02508201610067 [12:31:01]line Контрольно-Кассовый Чек [12:31:01]line ПРОДАЖА [12:31:01]line Товар: 4620021192902 [12:31:01]line 48 Копеек стакан Шоколад [12:31:01]line 1.000 * 105.00 [12:31:01]line = 105.00 [12:31:01]line НДС 12% НСП 1% [12:31:01]line > о реализуемом товаре [12:31:01]line Товар: 4660013331438 [12:31:01]line Эскимо Московское [12:31:01]line 1.000 * 95.00 [12:31:01]line = 95.00 [12:31:01]line НДС 12% НСП 1% [12:31:01]line > о реализуемом товаре [12:31:01]line ИТОГО: 200.00 [12:31:01]line НСП 1% : 1.77 [12:31:01]line НДС 12% : 21.24 [12:31:01]line Наличными: 200.00 [12:31:01]line Безнал.: 0.00 [12:31:01]line Место: АЗС № 5 "Партнер Нефть" [12:31:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:31:01]line СНО: Общий режим [12:31:01]line Чек 92 14.09.2024 12:31 [12:31:01]line Смена: 506 ФФД: 1.0 [12:31:01]line ЗНМ: 03000000022 [12:31:01]line РНМ: 0000000000091423 [12:31:01]line Версия ККМ: 001 [12:31:01]line ФМ: 0000000000874692 [12:31:01]line ФД: 92441 [12:31:01]line ФПД: 126535962374205 [12:31:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T123102&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92441&fm=126535962374205&tin=02508201610067®Number=0000000000091423&sum=20000 [12:31:01]line 0 [12:31:01]OFD Sender: Processing packet 92441 [packets to send 63, broken 62] [12:31:01]ProducePacketName [12:31:01]name=ofd_packets/00092441 [12:31:01]OFD Sender: To server: pG, [12:31:01]CommunicateWithHost lk.salyk.kg:30040 [12:31:01]ConnectInit lk.salyk.kg [12:31:01]written 0, free lines is 4095 [12:31:01]Connected sock=10 [12:31:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9A 01 00 00 C2 F4 92 01 F0 44 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 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 06 82 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 19 69 01 00 35 04 06 00 73 15 73 16 B0 3D 01 E8 54 88 D8 12 D2 95 [12:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 28 39 47 00 63 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 34 36 39 32 10 04 04 00 19 69 01 00 F4 03 04 00 82 2A E5 66 B6 04 01 00 00 0C AD 48 5D B6 71 16 5C [12:31:01]CommunicateWithHost err = 0 [12:31:01]CheckOFDResponse [12:31:01]1017 (14) - 77093643461234 [12:31:01]1041 (16) - 0000000000874692 [12:31:01]1040 (4) - 92441 [12:31:01]1012 (4) - 14.09.2024 06:17 [12:31:01]1206 (1) - 0 [12:31:01]OFD Sender: Remove packet 92441 [12:31:01]ProducePacketName [12:31:01]name=ofd_packets/00092441 [12:31:01]NVStorageDeleteData [12:31:02]Write to MH i2c: 01 00 00 E8 1B 03 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: 01 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: 01 07 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: 01 07 00 E8 1B 00 00 00 00 00 CD 0C E3 [12:31:02]RasterBufferAndPrint [12:31:02]line [12:31:02]line [12:31:02]line [12:31:02]line [12:31:02]line [12:31:02]written 0, free lines is 3286 [12:31:02]MH_Cut [12:31:02]Write to MH i2c: D1 01 00 EF 1B 01 DC [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: D1 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: D1 01 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: D1 01 00 EF 1B 00 DB [12:31:02]Write to MH i2c: 01 00 00 F0 1B 0B [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]OFD Sender: No OFD packet to send [12:31:02]*** Cut start [12:31:02]*** Purtial cut [12:31:02]*** Stage 1: CUTSNS_PIN = 1 [12:31:04]Read from MH i2c: 01 [12:31:04]MH_I2C_Read... [12:31:04]*** Stop cut motor [12:31:04]*** Cut end [12:31:04]Read from MH i2c: 01 07 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 07 00 F0 1B 00 00 00 00 00 FF 0F 20 [12:31:04]process_action close_receipt done [12:31:04]requested_data is exist [12:31:04]produce_requested_data [12:31:04]requested_item fm.sn is exist - process it [12:31:04]wFMCommunicate request_size=4 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 11 00 00 [12:31:04]Write to MH i2c: E2 08 00 F1 1B 80 11 00 00 00 00 00 00 86 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 17 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 17 00 F1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [12:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:31:04]wFMCommunicate OK [12:31:04]requested_item fd.num is exist - process it [12:31:04]SAM_PROTO_GetFieldsCounters [12:31:04]wFMCommunicate request_size=4 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 13 00 00 [12:31:04]Write to MH i2c: E2 08 00 F2 1B 80 13 00 00 00 00 00 00 89 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:05]Read from MH i2c: E2 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 62 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 62 00 F2 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 19 69 01 00 0E 04 04 00 FA 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 3A [12:31:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 19 69 01 00 0E 04 04 00 FA 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:31:05]wFMCommunicate OK [12:31:05]SAM_PROTO_GetFieldsCounters done [12:31:05]requested_item shift.num is exist - process it [12:31:05]requested_item shift.opened is exist - process it [12:31:05]req_shift_opened [12:31:05]FM_GetShiftState [12:31:05]SAM_PROTO_GetShiftState [12:31:05]wFMCommunicate request_size=4 [12:31:05]MH_SAM_APDU [12:31:05]CAPDU: 80 13 01 00 [12:31:05]Write to MH i2c: E2 08 00 F3 1B 80 13 01 00 00 00 00 00 8B [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:05]Read from MH i2c: E2 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 0E 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 0E 00 F3 1B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 25 [12:31:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:31:05]wFMCommunicate OK [12:31:05]SAM_PROTO_GetShiftState done [12:31:05]FM_GetShiftState done [12:31:05]req_shift_opened done [12:31:05]requested_item shift.open_date is exist - process it [12:31:05]req_shift_open_date [12:31:05]req_shift_open_date done [12:31:05]produce_requested_data done [12:31:05]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92441,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:31:05]process_action_free close_receipt [12:31:05]json_value_free [12:31:05]json_value_free done [12:31:05]process_json_proto returns [12:31:05]Send response to host [12:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92441,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:31:05]free response buf [12:31:05]execute_script done [12:31:05]execute_script returns [12:31:05]free content buf [12:31:05]Sock 9.Close socket [12:31:05]Sock 9.Thread stoped [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:10]accept exits with 8 [12:32:10]New connection [12:32:10]New thread 3066658148 created [12:32:10]Thread 3066801508 joined [12:32:10]Waiting for new connection... [12:32:10] Sock 8.Parse request [12:32:10]Sock 8.Check first char [12:32:10]Sock 8.First char is OK [12:32:10]request: POST /json_proto HTTP/1.0 [12:32:10]Method: POST [12:32:10]URL: /json_proto [12:32:10]Method is POST - this is cgi request [12:32:10]url: /json_proto [12:32:10]query_string will be loaded in cgi processing [12:32:10]execute_cgi json_proto POST (null) [12:32:10]execute_cgi path=json_proto method=POST [12:32:10]POST find Content-Length [12:32:10]Host: 172.17.57.71:8080 [12:32:10]Content-Length: 623 [12:32:10]Content-Type: application/json [12:32:10] [12:32:10]POST finish read [12:32:10]Found Content-Length = 623 [12:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127351", "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" ] } } [12:32:10]execute_script... [12:32: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)127351", "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" ] } } [12:32:10]POST & json_proto [12:32:10]process_json_proto [12:32:10]json parsed OK: [12:32:10]protocol is kg_v1.0 [12:32:10]action value=close_receipt [12:32:10]process_action close_receipt [12:32:10]cmd_close_receipt [12:32:10]MH_GetDate [12:32:10]Write to MH i2c: F0 00 00 F4 1B FE [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: F0 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: F0 09 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: F0 09 00 F4 1B 00 4D 82 E5 66 33 3A A4 66 98 [12:32:10]GetLastDocTimeStamp 1726317062 [12:32:10]current date 1726317133 [12:32:10]FM_GetShiftState [12:32:10]SAM_PROTO_GetShiftState [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 13 01 00 [12:32:10]Write to MH i2c: E2 08 00 F5 1B 80 13 01 00 00 00 00 00 8D [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0E 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0E 00 F5 1B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 27 [12:32:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_GetShiftState done [12:32:10]FM_GetShiftState done [12:32:10]opened in 1726273389 [12:32:10]opened+sec_in_day 1726359789 [12:32:10]quantity*price = 14400 [12:32:10]sum+1 = 14401 [12:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 93 14.09.2024 12:32 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92442 ФПД: 43282157499898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T123213&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92442&fm=43282157499898&tin=02508201610067®Number=0000000000091423&sum=14400 0 [12:32:11]StoreToDocumentArchive [12:32:11]shift 506 fd 92442 [12:32:11]save to /storage/0506/doc_00092442 [12:32:11]save last doc name /storage/0506/doc_00092442 to /storage/kkm_last_doc_name [12:32:11]save OK [12:32:11]Clear old archive folders... [12:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:32:11]tlvbuf is 00F9A040 [12:32:11]SAM_PROTO_ClearQueue [12:32:11]wFMCommunicate request_size=4 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 09 00 00 [12:32:11]Write to MH i2c: E2 08 00 02 1C 80 09 00 00 00 00 00 00 90 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 02 1C 00 90 00 92 [12:32:11]RAPDU: 90 00 [12:32:11]wFMCommunicate OK [12:32:11]SAM_PROTO_ClearQueue done [12:32:11]KKMCreateOFDPacket [12:32:11]OFDProtocolAddRootSTLVToBuf [12:32:11]FM_MakeSignedData [12:32:11]FM_MakeSignedData [12:32:11]SAM_PROTO_SignData [12:32:11]wFMCommunicate request_size=4 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 0D 01 02 [12:32:11]Write to MH i2c: E2 08 00 03 1C 80 0D 01 02 00 00 00 00 98 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 03 1C 00 90 00 93 [12:32:11]RAPDU: 90 00 [12:32:11]wFMCommunicate OK [12:32:11]wFMCommunicate request_size=255 [12:32:11]MH_SAM_APDU [12:32: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 5D 00 00 00 F4 03 04 00 4D 82 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [12:32:11]Write to MH i2c: E2 02 01 04 1C 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 5D 00 00 00 F4 03 04 00 4D 82 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 09 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:12]Read from MH i2c: E2 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 03 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 03 00 04 1C 00 90 00 94 [12:32:12]RAPDU: 90 00 [12:32:12]wFMCommunicate OK [12:32:12]wFMCommunicate request_size=34 [12:32:12]MH_SAM_APDU [12:32:12]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1A 69 01 00 35 04 06 00 27 5D 69 9F 75 FA [12:32:12]Write to MH i2c: E2 25 00 05 1C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1A 69 01 00 35 04 06 00 27 5D 69 9F 75 FA 00 00 DF [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:12]Read from MH i2c: E2 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 03 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 03 00 05 1C 00 90 00 95 [12:32:12]RAPDU: 90 00 [12:32:12]wFMCommunicate OK [12:32:12]wFMCommunicate request_size=4 [12:32:12]MH_SAM_APDU [12:32:12]CAPDU: 80 0D 03 02 [12:32:12]Write to MH i2c: E2 08 00 06 1C 80 0D 03 02 00 00 00 00 9D [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:12]Read from MH i2c: E2 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 0B 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 0B 00 06 1C 00 8C 52 34 71 DB 0B 73 92 90 00 0C [12:32:12]RAPDU: 8C 52 34 71 DB 0B 73 92 90 00 [12:32:12]wFMCommunicate OK [12:32:12]SAM_PROTO_SignData done [12:32:12]FM_MakeSignedData done [12:32:12]CreateOFDProtocolMessage [12:32:12]wFMCommunicate request_size=4 [12:32:12]MH_SAM_APDU [12:32:12]CAPDU: 80 11 00 00 [12:32:12]Write to MH i2c: E2 08 00 07 1C 80 11 00 00 00 00 00 00 9D [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:12]Read from MH i2c: E2 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 17 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 17 00 07 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F4 [12:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:32:12]wFMCommunicate OK [12:32:12]CreateOFDProtocolMessage done [12:32:12]OFDSenderStorePacket 92442 [12:32:12]StoreOFDPacket docnum=92442 [12:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 47 1D 1F 01 D8 64 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 5D 00 00 00 F4 03 04 00 4D 82 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1A 69 01 00 35 04 06 00 27 5D 69 9F 75 FA 8C 52 34 71 DB 0B 73 92 [12:32:12]CheckFolder [12:32:12]dirname=/storage/ofd_packets [12:32:12]CheckFolder done [12:32:12]ProducePacketName [12:32:12]name=ofd_packets/00092442 [12:32:12]NVStorageSaveData ofd_packets/00092442 [12:32:12]File name is /storage/ofd_packets/00092442 [12:32:12]Write 325 bytes [12:32:12]NVStorageSaveData done [12:32:12]OFDSenderStorePacket done [12:32:12]KKMCreateOFDPacket done [12:32:12]NVStorageSaveData kkm_last_timestamp [12:32:12]File name is /storage/kkm_last_timestamp [12:32:12]Write 4 bytes [12:32:12]NVStorageSaveData done [12:32:12]ExternCall_PrintAddStr [12:32:12]wPrintStart [12:32:12]Write to MH i2c: 01 00 00 08 1C 24 [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 07 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 07 00 08 1C 00 00 00 00 00 FF 0F 39 [12:32:12]RasterBufferAndPrint [12:32:12]line Счет N : (3)127351 [12:32:12]line ИНН: 02508201610067 [12:32:12]line Контрольно-Кассовый Чек [12:32:12]line ПРОДАЖА [12:32:12]line Товар: 48743587 [12:32:12]line Сигареты Winston XStyle Silver [12:32:12]line 1.000 * 144.00 [12:32:12]line = 144.00 [12:32:12]line НДС 12% НСП 1% [12:32:12]line > о реализуемом товаре [12:32:12]line ИТОГО: 144.00 [12:32:12]line НСП 1% : 1.27 [12:32:12]line НДС 12% : 15.29 [12:32:12]line Наличными: 144.00 [12:32:12]line Безнал.: 0.00 [12:32:12]line Место: АЗС № 5 "Партнер Нефть" [12:32:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:32:12]line СНО: Общий режим [12:32:12]line Чек 93 14.09.2024 12:32 [12:32:12]line Смена: 506 ФФД: 1.0 [12:32:12]line ЗНМ: 03000000022 [12:32:12]line РНМ: 0000000000091423 [12:32:12]line Версия ККМ: 001 [12:32:12]line ФМ: 0000000000874692 [12:32:12]line ФД: 92442 [12:32:12]line ФПД: 43282157499898 [12:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T123213&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92442&fm=43282157499898&tin=02508201610067®Number=0000000000091423&sum=14400 [12:32:12]line 0 [12:32:12]OFD Sender: Processing packet 92442 [packets to send 63, broken 62] [12:32:12]ProducePacketName [12:32:12]name=ofd_packets/00092442 [12:32:12]OFD Sender: To server: pG, [12:32:12]CommunicateWithHost lk.salyk.kg:30040 [12:32:12]ConnectInit lk.salyk.kg [12:32:12]written 0, free lines is 4095 [12:32:12]Connected sock=10 [12:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 47 1D 1F 01 D8 64 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 5D 00 00 00 F4 03 04 00 4D 82 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1A 69 01 00 35 04 06 00 27 5D 69 9F 75 FA 8C 52 34 71 DB 0B 73 92 [12:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 09 96 47 00 68 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1A 69 01 00 F4 03 04 00 C8 2A E5 66 B6 04 01 00 00 CD F8 98 30 B6 4F 38 FC [12:32:12]CommunicateWithHost err = 0 [12:32:12]CheckOFDResponse [12:32:12]1017 (14) - 77093643461234 [12:32:12]1041 (16) - 0000000000874692 [12:32:12]1040 (4) - 92442 [12:32:12]1012 (4) - 14.09.2024 06:18 [12:32:12]1206 (1) - 0 [12:32:12]OFD Sender: Remove packet 92442 [12:32:12]ProducePacketName [12:32:12]name=ofd_packets/00092442 [12:32:12]NVStorageDeleteData [12:32:12]Write to MH i2c: 01 00 00 31 1C 4D [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 07 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 07 00 31 1C 00 00 00 00 00 00 0D 61 [12:32:12]RasterBufferAndPrint [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]written 0, free lines is 3335 [12:32:12]MH_Cut [12:32:12]Write to MH i2c: D1 01 00 38 1C 01 26 [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 01 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 01 00 38 1C 00 25 [12:32:12]Write to MH i2c: 01 00 00 39 1C 55 [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:13]OFD Sender: No OFD packet to send [12:32:13]*** Cut start [12:32:13]*** Purtial cut [12:32:13]*** Stage 1: CUTSNS_PIN = 1 [12:32:15]Read from MH i2c: 01 [12:32:15]MH_I2C_Read... [12:32:15]*** Stop cut motor [12:32:15]*** Cut end [12:32:15]Read from MH i2c: 01 07 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 07 00 39 1C 00 00 00 00 00 FF 0F 6A [12:32:15]process_action close_receipt done [12:32:15]requested_data is exist [12:32:15]produce_requested_data [12:32:15]requested_item fm.sn is exist - process it [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 11 00 00 [12:32:15]Write to MH i2c: E2 08 00 3A 1C 80 11 00 00 00 00 00 00 D0 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 17 00 [12:32:15]MH_I2C_Read... [12:32:15]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 34 36 39 32 90 00 27 [12:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:32:15]wFMCommunicate OK [12:32:15]requested_item fd.num is exist - process it [12:32:15]SAM_PROTO_GetFieldsCounters [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 13 00 00 [12:32:15]Write to MH i2c: E2 08 00 3B 1C 80 13 00 00 00 00 00 00 D3 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 62 00 [12:32:15]MH_I2C_Read... [12:32:15]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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1A 69 01 00 0E 04 04 00 FA 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 88 [12:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1A 69 01 00 0E 04 04 00 FA 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:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_GetFieldsCounters done [12:32:15]requested_item shift.num is exist - process it [12:32:15]requested_item shift.opened is exist - process it [12:32:15]req_shift_opened [12:32:15]FM_GetShiftState [12:32:15]SAM_PROTO_GetShiftState [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 13 01 00 [12:32:15]Write to MH i2c: E2 08 00 3C 1C 80 13 01 00 00 00 00 00 D5 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:15]Read from MH i2c: E2 0E 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 3C 1C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 6F [12:32:15]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_GetShiftState done [12:32:15]FM_GetShiftState done [12:32:15]req_shift_opened done [12:32:15]requested_item shift.open_date is exist - process it [12:32:15]req_shift_open_date [12:32:15]req_shift_open_date done [12:32:15]produce_requested_data done [12:32:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92442,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:32:15]process_action_free close_receipt [12:32:15]json_value_free [12:32:15]json_value_free done [12:32:15]process_json_proto returns [12:32:15]Send response to host [12:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92442,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:32:15]free response buf [12:32:15]execute_script done [12:32:15]execute_script returns [12:32:15]free content buf [12:32:15]Sock 8.Close socket [12:32:15]Sock 8.Thread stoped [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:50]accept exits with 9 [12:36:50]New connection [12:36:50]New thread 3066801508 created [12:36:50]Thread 3066658148 joined [12:36:50]Waiting for new connection... [12:36:50] Sock 9.Parse request [12:36:50]Sock 9.Check first char [12:36:50]Sock 9.First char is OK [12:36:50]request: POST /json_proto HTTP/1.0 [12:36:50]Method: POST [12:36:50]URL: /json_proto [12:36:50]Method is POST - this is cgi request [12:36:50]url: /json_proto [12:36:50]query_string will be loaded in cgi processing [12:36:50]execute_cgi json_proto POST (null) [12:36:50]execute_cgi path=json_proto method=POST [12:36:50]POST find Content-Length [12:36:50]Host: 172.17.57.71:8080 [12:36:50]Content-Length: 623 [12:36:50]Content-Type: application/json [12:36:50] [12:36:50]POST finish read [12:36:50]Found Content-Length = 623 [12:36:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127352", "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" ] } } [12:36:50]execute_script... [12:36:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127352", "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" ] } } [12:36:50]POST & json_proto [12:36:50]process_json_proto [12:36:50]json parsed OK: [12:36:50]protocol is kg_v1.0 [12:36:50]action value=close_receipt [12:36:50]process_action close_receipt [12:36:50]cmd_close_receipt [12:36:50]MH_GetDate [12:36:50]Write to MH i2c: F0 00 00 3D 1C 48 [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: F0 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: F0 09 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: F0 09 00 3D 1C 00 65 83 E5 66 33 3A A4 66 FB [12:36:50]GetLastDocTimeStamp 1726317133 [12:36:50]current date 1726317413 [12:36:50]FM_GetShiftState [12:36:50]SAM_PROTO_GetShiftState [12:36:50]wFMCommunicate request_size=4 [12:36:50]MH_SAM_APDU [12:36:50]CAPDU: 80 13 01 00 [12:36:50]Write to MH i2c: E2 08 00 3E 1C 80 13 01 00 00 00 00 00 D7 [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:50]Read from MH i2c: E2 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 0E 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 0E 00 3E 1C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 71 [12:36:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:36:50]wFMCommunicate OK [12:36:50]SAM_PROTO_GetShiftState done [12:36:50]FM_GetShiftState done [12:36:50]opened in 1726273389 [12:36:50]opened+sec_in_day 1726359789 [12:36:50]quantity*price = 14400 [12:36:50]sum+1 = 14401 [12:36:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 94 14.09.2024 12:36 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92443 ФПД: 128943491736496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T123653&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92443&fm=128943491736496&tin=02508201610067®Number=0000000000091423&sum=14400 0 [12:36:51]StoreToDocumentArchive [12:36:51]shift 506 fd 92443 [12:36:51]save to /storage/0506/doc_00092443 [12:36:51]save last doc name /storage/0506/doc_00092443 to /storage/kkm_last_doc_name [12:36:51]save OK [12:36:51]Clear old archive folders... [12:36:51]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:36:51]tlvbuf is 00FA19A0 [12:36:51]SAM_PROTO_ClearQueue [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 09 00 00 [12:36:51]Write to MH i2c: E2 08 00 4B 1C 80 09 00 00 00 00 00 00 D9 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 4B 1C 00 90 00 DB [12:36:51]RAPDU: 90 00 [12:36:51]wFMCommunicate OK [12:36:51]SAM_PROTO_ClearQueue done [12:36:51]KKMCreateOFDPacket [12:36:51]OFDProtocolAddRootSTLVToBuf [12:36:51]FM_MakeSignedData [12:36:51]FM_MakeSignedData [12:36:51]SAM_PROTO_SignData [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 0D 01 02 [12:36:51]Write to MH i2c: E2 08 00 4C 1C 80 0D 01 02 00 00 00 00 E1 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 4C 1C 00 90 00 DC [12:36:51]RAPDU: 90 00 [12:36:51]wFMCommunicate OK [12:36:51]wFMCommunicate request_size=255 [12:36:51]MH_SAM_APDU [12:36:51]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 5E 00 00 00 F4 03 04 00 65 83 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [12:36:51]Write to MH i2c: E2 02 01 4D 1C 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 5E 00 00 00 F4 03 04 00 65 83 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 6C [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 4D 1C 00 90 00 DD [12:36:51]RAPDU: 90 00 [12:36:51]wFMCommunicate OK [12:36:51]wFMCommunicate request_size=34 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 69 01 00 35 04 06 00 75 45 FF 05 63 B0 [12:36:51]Write to MH i2c: E2 25 00 4E 1C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 69 01 00 35 04 06 00 75 45 FF 05 63 B0 00 00 FF [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 4E 1C 00 90 00 DE [12:36:51]RAPDU: 90 00 [12:36:51]wFMCommunicate OK [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 0D 03 02 [12:36:51]Write to MH i2c: E2 08 00 4F 1C 80 0D 03 02 00 00 00 00 E6 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 0B 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 0B 00 4F 1C 00 55 5D 90 78 22 EA 27 4B 90 00 1F [12:36:51]RAPDU: 55 5D 90 78 22 EA 27 4B 90 00 [12:36:51]wFMCommunicate OK [12:36:51]SAM_PROTO_SignData done [12:36:51]FM_MakeSignedData done [12:36:51]CreateOFDProtocolMessage [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 11 00 00 [12:36:51]Write to MH i2c: E2 08 00 50 1C 80 11 00 00 00 00 00 00 E6 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 17 00 [12:36:51]MH_I2C_Read... [12:36:51]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 34 36 39 32 90 00 3D [12:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:36:51]wFMCommunicate OK [12:36:51]CreateOFDProtocolMessage done [12:36:51]OFDSenderStorePacket 92443 [12:36:51]StoreOFDPacket docnum=92443 [12:36:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 01 68 1F 01 45 E6 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 5E 00 00 00 F4 03 04 00 65 83 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 69 01 00 35 04 06 00 75 45 FF 05 63 B0 55 5D 90 78 22 EA 27 4B [12:36:51]CheckFolder [12:36:51]dirname=/storage/ofd_packets [12:36:51]CheckFolder done [12:36:51]ProducePacketName [12:36:51]name=ofd_packets/00092443 [12:36:51]NVStorageSaveData ofd_packets/00092443 [12:36:51]File name is /storage/ofd_packets/00092443 [12:36:51]Write 325 bytes [12:36:51]NVStorageSaveData done [12:36:51]OFDSenderStorePacket done [12:36:51]KKMCreateOFDPacket done [12:36:51]NVStorageSaveData kkm_last_timestamp [12:36:51]File name is /storage/kkm_last_timestamp [12:36:51]Write 4 bytes [12:36:51]NVStorageSaveData done [12:36:51]ExternCall_PrintAddStr [12:36:51]wPrintStart [12:36:51]Write to MH i2c: 01 00 00 51 1C 6D [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 07 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 FF 0F 82 [12:36:51]RasterBufferAndPrint [12:36:51]line Счет N : (3)127352 [12:36:51]line ИНН: 02508201610067 [12:36:51]line Контрольно-Кассовый Чек [12:36:51]line ПРОДАЖА [12:36:51]line Товар: 48743587 [12:36:51]line Сигареты Winston XStyle Silver [12:36:51]line 1.000 * 144.00 [12:36:51]line = 144.00 [12:36:51]line НДС 12% НСП 1% [12:36:51]line > о реализуемом товаре [12:36:51]line ИТОГО: 144.00 [12:36:51]line НСП 1% : 1.27 [12:36:51]line НДС 12% : 15.29 [12:36:51]line Наличными: 144.00 [12:36:51]line Безнал.: 0.00 [12:36:51]line Место: АЗС № 5 "Партнер Нефть" [12:36:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:36:51]line СНО: Общий режим [12:36:51]line Чек 94 14.09.2024 12:36 [12:36:51]line Смена: 506 ФФД: 1.0 [12:36:51]line ЗНМ: 03000000022 [12:36:51]line РНМ: 0000000000091423 [12:36:51]line Версия ККМ: 001 [12:36:51]line ФМ: 0000000000874692 [12:36:51]line ФД: 92443 [12:36:51]line ФПД: 128943491736496 [12:36:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T123653&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92443&fm=128943491736496&tin=02508201610067®Number=0000000000091423&sum=14400 [12:36:52]line 0 [12:36:52]OFD Sender: Processing packet 92443 [packets to send 63, broken 62] [12:36:52]ProducePacketName [12:36:52]name=ofd_packets/00092443 [12:36:52]OFD Sender: To server: pG, [12:36:52]CommunicateWithHost lk.salyk.kg:30040 [12:36:52]ConnectInit lk.salyk.kg [12:36:52]written 0, free lines is 4095 [12:36:52]Connected sock=10 [12:36:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 01 68 1F 01 45 E6 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 5E 00 00 00 F4 03 04 00 65 83 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1B 69 01 00 35 04 06 00 75 45 FF 05 63 B0 55 5D 90 78 22 EA 27 4B [12:36:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 80 A7 47 00 20 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 34 36 39 32 10 04 04 00 1B 69 01 00 F4 03 04 00 E0 2B E5 66 B6 04 01 00 00 A8 47 1D FD 41 D8 8F 31 [12:36:52]CommunicateWithHost err = 0 [12:36:52]CheckOFDResponse [12:36:52]1017 (14) - 77093643461234 [12:36:52]1041 (16) - 0000000000874692 [12:36:52]1040 (4) - 92443 [12:36:52]1012 (4) - 14.09.2024 06:23 [12:36:52]1206 (1) - 0 [12:36:52]OFD Sender: Remove packet 92443 [12:36:52]ProducePacketName [12:36:52]name=ofd_packets/00092443 [12:36:52]NVStorageDeleteData [12:36:52]Write to MH i2c: 01 00 00 7A 1C 96 [12:36:52]Write i2c OK [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: 01 [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: 01 07 00 [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: 01 07 00 7A 1C 00 00 00 00 00 FC 0C A5 [12:36:52]RasterBufferAndPrint [12:36:52]line [12:36:52]line [12:36:52]line [12:36:52]line [12:36:52]line [12:36:52]written 0, free lines is 3332 [12:36:52]MH_Cut [12:36:52]Write to MH i2c: D1 01 00 81 1C 01 6F [12:36:52]Write i2c OK [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: D1 [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: D1 01 00 [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: D1 01 00 81 1C 00 6E [12:36:52]Write to MH i2c: 01 00 00 82 1C 9E [12:36:52]Write i2c OK [12:36:52]MH_I2C_Read... [12:36:53]OFD Sender: No OFD packet to send [12:36:53]*** Cut start [12:36:53]*** Purtial cut [12:36:53]*** Stage 1: CUTSNS_PIN = 1 [12:36:55]Read from MH i2c: 01 [12:36:55]MH_I2C_Read... [12:36:55]*** Stop cut motor [12:36:55]*** Cut end [12:36:55]Read from MH i2c: 01 07 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: 01 07 00 82 1C 00 00 00 00 00 FF 0F B3 [12:36:55]process_action close_receipt done [12:36:55]requested_data is exist [12:36:55]produce_requested_data [12:36:55]requested_item fm.sn is exist - process it [12:36:55]wFMCommunicate request_size=4 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 11 00 00 [12:36:55]Write to MH i2c: E2 08 00 83 1C 80 11 00 00 00 00 00 00 19 [12:36:55]Write i2c OK [12:36:55]MH_I2C_Read... [12:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:55]Read from MH i2c: E2 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 17 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 17 00 83 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 70 [12:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:36:55]wFMCommunicate OK [12:36:55]requested_item fd.num is exist - process it [12:36:55]SAM_PROTO_GetFieldsCounters [12:36:55]wFMCommunicate request_size=4 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 13 00 00 [12:36:55]Write to MH i2c: E2 08 00 84 1C 80 13 00 00 00 00 00 00 1C [12:36:55]Write i2c OK [12:36:55]MH_I2C_Read... [12:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:55]Read from MH i2c: E2 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 62 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 62 00 84 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1B 69 01 00 0E 04 04 00 FA 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 D5 [12:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1B 69 01 00 0E 04 04 00 FA 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:36:55]wFMCommunicate OK [12:36:55]SAM_PROTO_GetFieldsCounters done [12:36:55]requested_item shift.num is exist - process it [12:36:55]requested_item shift.opened is exist - process it [12:36:55]req_shift_opened [12:36:55]FM_GetShiftState [12:36:55]SAM_PROTO_GetShiftState [12:36:55]wFMCommunicate request_size=4 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 13 01 00 [12:36:55]Write to MH i2c: E2 08 00 85 1C 80 13 01 00 00 00 00 00 1E [12:36:55]Write i2c OK [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 [12:36:55]MH_I2C_Read... [12:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:55]Read from MH i2c: E2 0E 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 0E 00 85 1C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B8 [12:36:55]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:36:55]wFMCommunicate OK [12:36:55]SAM_PROTO_GetShiftState done [12:36:55]FM_GetShiftState done [12:36:55]req_shift_opened done [12:36:55]requested_item shift.open_date is exist - process it [12:36:55]req_shift_open_date [12:36:55]req_shift_open_date done [12:36:55]produce_requested_data done [12:36:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92443,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:36:55]process_action_free close_receipt [12:36:55]json_value_free [12:36:55]json_value_free done [12:36:55]process_json_proto returns [12:36:55]Send response to host [12:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92443,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:36:55]free response buf [12:36:55]execute_script done [12:36:55]execute_script returns [12:36:55]free content buf [12:36:55]Sock 9.Close socket [12:36:55]Sock 9.Thread stoped [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:00]accept exits with 8 [12:48:00]New connection [12:48:00]New thread 3066658148 created [12:48:00]Thread 3066801508 joined [12:48:00]Waiting for new connection... [12:48:00] Sock 8.Parse request [12:48:00]Sock 8.Check first char [12:48:00]Sock 8.First char is OK [12:48:00]request: POST /json_proto HTTP/1.0 [12:48:00]Method: POST [12:48:00]URL: /json_proto [12:48:00]Method is POST - this is cgi request [12:48:00]url: /json_proto [12:48:00]query_string will be loaded in cgi processing [12:48:00]execute_cgi json_proto POST (null) [12:48:00]execute_cgi path=json_proto method=POST [12:48:00]POST find Content-Length [12:48:00]Host: 172.17.57.71:8080 [12:48:00]Content-Length: 623 [12:48:00]Content-Type: application/json [12:48:00] [12:48:00]POST finish read [12:48:00]Found Content-Length = 623 [12:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127353", "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" ] } } [12:48:00]execute_script... [12:48:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127353", "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" ] } } [12:48:00]POST & json_proto [12:48:00]process_json_proto [12:48:00]json parsed OK: [12:48:00]protocol is kg_v1.0 [12:48:00]action value=close_receipt [12:48:00]process_action close_receipt [12:48:00]cmd_close_receipt [12:48:00]MH_GetDate [12:48:00]Write to MH i2c: F0 00 00 86 1C 91 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: F0 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: F0 09 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: F0 09 00 86 1C 00 03 86 E5 66 33 3A A4 66 E5 [12:48:00]GetLastDocTimeStamp 1726317413 [12:48:00]current date 1726318083 [12:48:00]FM_GetShiftState [12:48:00]SAM_PROTO_GetShiftState [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 13 01 00 [12:48:00]Write to MH i2c: E2 08 00 87 1C 80 13 01 00 00 00 00 00 20 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 0E 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 0E 00 87 1C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BA [12:48:00]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:48:00]wFMCommunicate OK [12:48:00]SAM_PROTO_GetShiftState done [12:48:00]FM_GetShiftState done [12:48:00]opened in 1726273389 [12:48:00]opened+sec_in_day 1726359789 [12:48:00]quantity*price = 14400 [12:48:00]sum+1 = 14401 [12:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 95 14.09.2024 12:48 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92444 ФПД: 183571653919528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T124803&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92444&fm=183571653919528&tin=02508201610067®Number=0000000000091423&sum=14400 0 [12:48:01]StoreToDocumentArchive [12:48:01]shift 506 fd 92444 [12:48:01]save to /storage/0506/doc_00092444 [12:48:01]save last doc name /storage/0506/doc_00092444 to /storage/kkm_last_doc_name [12:48:01]save OK [12:48:01]Clear old archive folders... [12:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:48:01]tlvbuf is 00FC8D80 [12:48:01]SAM_PROTO_ClearQueue [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 09 00 00 [12:48:01]Write to MH i2c: E2 08 00 94 1C 80 09 00 00 00 00 00 00 22 [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 94 1C 00 90 00 24 [12:48:01]RAPDU: 90 00 [12:48:01]wFMCommunicate OK [12:48:01]SAM_PROTO_ClearQueue done [12:48:01]KKMCreateOFDPacket [12:48:01]OFDProtocolAddRootSTLVToBuf [12:48:01]FM_MakeSignedData [12:48:01]FM_MakeSignedData [12:48:01]SAM_PROTO_SignData [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 0D 01 02 [12:48:01]Write to MH i2c: E2 08 00 95 1C 80 0D 01 02 00 00 00 00 2A [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 95 1C 00 90 00 25 [12:48:01]RAPDU: 90 00 [12:48:01]wFMCommunicate OK [12:48:01]wFMCommunicate request_size=255 [12:48:01]MH_SAM_APDU [12:48:01]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 5F 00 00 00 F4 03 04 00 03 86 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [12:48:01]Write to MH i2c: E2 02 01 96 1C 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 5F 00 00 00 F4 03 04 00 03 86 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 57 [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 96 1C 00 90 00 26 [12:48:01]RAPDU: 90 00 [12:48:01]wFMCommunicate OK [12:48:01]wFMCommunicate request_size=34 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 69 01 00 35 04 06 00 A6 F5 1B 39 03 28 [12:48:01]Write to MH i2c: E2 25 00 97 1C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 69 01 00 35 04 06 00 A6 F5 1B 39 03 28 00 00 92 [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 97 1C 00 90 00 27 [12:48:01]RAPDU: 90 00 [12:48:01]wFMCommunicate OK [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 0D 03 02 [12:48:01]Write to MH i2c: E2 08 00 98 1C 80 0D 03 02 00 00 00 00 2F [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 0B 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 0B 00 98 1C 00 57 F3 D1 7C DD 03 DA 05 90 00 86 [12:48:01]RAPDU: 57 F3 D1 7C DD 03 DA 05 90 00 [12:48:01]wFMCommunicate OK [12:48:01]SAM_PROTO_SignData done [12:48:01]FM_MakeSignedData done [12:48:01]CreateOFDProtocolMessage [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 11 00 00 [12:48:01]Write to MH i2c: E2 08 00 99 1C 80 11 00 00 00 00 00 00 2F [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:02]Read from MH i2c: E2 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 17 00 [12:48:02]MH_I2C_Read... [12:48:02]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 34 36 39 32 90 00 86 [12:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:48:02]wFMCommunicate OK [12:48:02]CreateOFDProtocolMessage done [12:48:02]OFDSenderStorePacket 92444 [12:48:02]StoreOFDPacket docnum=92444 [12:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 C4 68 1F 01 4B DE 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 5F 00 00 00 F4 03 04 00 03 86 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 69 01 00 35 04 06 00 A6 F5 1B 39 03 28 57 F3 D1 7C DD 03 DA 05 [12:48:02]CheckFolder [12:48:02]dirname=/storage/ofd_packets [12:48:02]CheckFolder done [12:48:02]ProducePacketName [12:48:02]name=ofd_packets/00092444 [12:48:02]NVStorageSaveData ofd_packets/00092444 [12:48:02]File name is /storage/ofd_packets/00092444 [12:48:02]Write 325 bytes [12:48:02]NVStorageSaveData done [12:48:02]OFDSenderStorePacket done [12:48:02]KKMCreateOFDPacket done [12:48:02]NVStorageSaveData kkm_last_timestamp [12:48:02]File name is /storage/kkm_last_timestamp [12:48:02]Write 4 bytes [12:48:02]NVStorageSaveData done [12:48:02]ExternCall_PrintAddStr [12:48:02]wPrintStart [12:48:02]Write to MH i2c: 01 00 00 9A 1C B6 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 07 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 07 00 9A 1C 00 00 00 00 00 FF 0F CB [12:48:02]RasterBufferAndPrint [12:48:02]line Счет N : (3)127353 [12:48:02]line ИНН: 02508201610067 [12:48:02]line Контрольно-Кассовый Чек [12:48:02]line ПРОДАЖА [12:48:02]line Товар: 48743587 [12:48:02]line Сигареты Winston XStyle Silver [12:48:02]line 1.000 * 144.00 [12:48:02]line = 144.00 [12:48:02]line НДС 12% НСП 1% [12:48:02]line > о реализуемом товаре [12:48:02]line ИТОГО: 144.00 [12:48:02]line НСП 1% : 1.27 [12:48:02]line НДС 12% : 15.29 [12:48:02]line Наличными: 144.00 [12:48:02]line Безнал.: 0.00 [12:48:02]line Место: АЗС № 5 "Партнер Нефть" [12:48:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:48:02]line СНО: Общий режим [12:48:02]line Чек 95 14.09.2024 12:48 [12:48:02]line Смена: 506 ФФД: 1.0 [12:48:02]line ЗНМ: 03000000022 [12:48:02]line РНМ: 0000000000091423 [12:48:02]line Версия ККМ: 001 [12:48:02]line ФМ: 0000000000874692 [12:48:02]line ФД: 92444 [12:48:02]line ФПД: 183571653919528 [12:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T124803&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92444&fm=183571653919528&tin=02508201610067®Number=0000000000091423&sum=14400 [12:48:02]OFD Sender: Processing packet 92444 [packets to send 63, broken 62] [12:48:02]ProducePacketName [12:48:02]name=ofd_packets/00092444 [12:48:02]OFD Sender: To server: pG, [12:48:02]CommunicateWithHost lk.salyk.kg:30040 [12:48:02]ConnectInit lk.salyk.kg [12:48:02]line 0 [12:48:02]written 0, free lines is 4095 [12:48:02]Connected sock=10 [12:48:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 C4 68 1F 01 4B DE 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 5F 00 00 00 F4 03 04 00 03 86 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 69 01 00 35 04 06 00 A6 F5 1B 39 03 28 57 F3 D1 7C DD 03 DA 05 [12:48:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1B F9 47 00 6F 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1C 69 01 00 F4 03 04 00 7E 2E E5 66 B6 04 01 00 00 A6 C0 99 4F B1 6F D1 98 [12:48:02]CommunicateWithHost err = 0 [12:48:02]CheckOFDResponse [12:48:02]1017 (14) - 77093643461234 [12:48:02]1041 (16) - 0000000000874692 [12:48:02]1040 (4) - 92444 [12:48:02]1012 (4) - 14.09.2024 06:34 [12:48:02]1206 (1) - 0 [12:48:02]OFD Sender: Remove packet 92444 [12:48:02]ProducePacketName [12:48:02]name=ofd_packets/00092444 [12:48:02]NVStorageDeleteData [12:48:02]Write to MH i2c: 01 00 00 C3 1C DF [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 07 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 07 00 C3 1C 00 00 00 00 00 06 0D F9 [12:48:02]RasterBufferAndPrint [12:48:02]line [12:48:02]line [12:48:02]line [12:48:02]line [12:48:02]line [12:48:02]written 0, free lines is 3339 [12:48:02]MH_Cut [12:48:02]Write to MH i2c: D1 01 00 CA 1C 01 B8 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: D1 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: D1 01 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: D1 01 00 CA 1C 00 B7 [12:48:02]Write to MH i2c: 01 00 00 CB 1C E7 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:03]OFD Sender: No OFD packet to send [12:48:03]*** Cut start [12:48:03]*** Purtial cut [12:48:03]*** Stage 1: CUTSNS_PIN = 1 [12:48:05]Read from MH i2c: 01 [12:48:05]MH_I2C_Read... [12:48:05]*** Stop cut motor [12:48:05]*** Cut end [12:48:05]Read from MH i2c: 01 07 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 07 00 CB 1C 00 00 00 00 00 FF 0F FC [12:48:05]process_action close_receipt done [12:48:05]requested_data is exist [12:48:05]produce_requested_data [12:48:05]requested_item fm.sn is exist - process it [12:48:05]wFMCommunicate request_size=4 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 11 00 00 [12:48:05]Write to MH i2c: E2 08 00 CC 1C 80 11 00 00 00 00 00 00 62 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 17 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 17 00 CC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B9 [12:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:48:05]wFMCommunicate OK [12:48:05]requested_item fd.num is exist - process it [12:48:05]SAM_PROTO_GetFieldsCounters [12:48:05]wFMCommunicate request_size=4 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 13 00 00 [12:48:05]Write to MH i2c: E2 08 00 CD 1C 80 13 00 00 00 00 00 00 65 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 62 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 62 00 CD 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1C 69 01 00 0E 04 04 00 FA 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 22 [12:48:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1C 69 01 00 0E 04 04 00 FA 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:48:05]wFMCommunicate OK [12:48:05]SAM_PROTO_GetFieldsCounters done [12:48:05]requested_item shift.num is exist - process it [12:48:05]requested_item shift.opened is exist - process it [12:48:05]req_shift_opened [12:48:05]FM_GetShiftState [12:48:05]SAM_PROTO_GetShiftState [12:48:05]wFMCommunicate request_size=4 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 13 01 00 [12:48:05]Write to MH i2c: E2 08 00 CE 1C 80 13 01 00 00 00 00 00 67 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 0E 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 0E 00 CE 1C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 01 [12:48:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:48:05]wFMCommunicate OK [12:48:05]SAM_PROTO_GetShiftState done [12:48:05]FM_GetShiftState done [12:48:05]req_shift_opened done [12:48:05]requested_item shift.open_date is exist - process it [12:48:05]req_shift_open_date [12:48:05]req_shift_open_date done [12:48:05]produce_requested_data done [12:48:05]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92444,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:48:05]process_action_free close_receipt [12:48:05]json_value_free [12:48:05]json_value_free done [12:48:05]process_json_proto returns [12:48:05]Send response to host [12:48:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92444,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:48:05]free response buf [12:48:05]execute_script done [12:48:05]execute_script returns [12:48:05]free content buf [12:48:05]Sock 8.Close socket [12:48:05]Sock 8.Thread stoped [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:01]accept exits with 9 [12:53:01]New connection [12:53:01]New thread 3066801508 created [12:53:01]Thread 3066658148 joined [12:53:01]Waiting for new connection... [12:53:01] Sock 9.Parse request [12:53:01]Sock 9.Check first char [12:53:01]Sock 9.First char is OK [12:53:01]request: POST /json_proto HTTP/1.0 [12:53:01]Method: POST [12:53:01]URL: /json_proto [12:53:01]Method is POST - this is cgi request [12:53:01]url: /json_proto [12:53:01]query_string will be loaded in cgi processing [12:53:01]execute_cgi json_proto POST (null) [12:53:01]execute_cgi path=json_proto method=POST [12:53:01]POST find Content-Length [12:53:01]Host: 172.17.57.71:8080 [12:53:01]Content-Length: 622 [12:53:01]Content-Type: application/json [12:53:01] [12:53:01]POST finish read [12:53:01]Found Content-Length = 622 [12:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127354", "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" ] } } [12:53:01]execute_script... [12:53:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127354", "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" ] } } [12:53:01]POST & json_proto [12:53:01]process_json_proto [12:53:01]json parsed OK: [12:53:01]protocol is kg_v1.0 [12:53:01]action value=close_receipt [12:53:01]process_action close_receipt [12:53:01]cmd_close_receipt [12:53:01]MH_GetDate [12:53:01]Write to MH i2c: F0 00 00 CF 1C DA [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: F0 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: F0 09 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: F0 09 00 CF 1C 00 30 87 E5 66 33 3A A4 66 5C [12:53:01]GetLastDocTimeStamp 1726318083 [12:53:01]current date 1726318384 [12:53:01]FM_GetShiftState [12:53:01]SAM_PROTO_GetShiftState [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 13 01 00 [12:53:01]Write to MH i2c: E2 08 00 D0 1C 80 13 01 00 00 00 00 00 69 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 0E 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 0E 00 D0 1C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 03 [12:53:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:53:01]wFMCommunicate OK [12:53:01]SAM_PROTO_GetShiftState done [12:53:01]FM_GetShiftState done [12:53:01]opened in 1726273389 [12:53:01]opened+sec_in_day 1726359789 [12:53:01]quantity*price = 15000 [12:53:01]sum+1 = 15001 [12:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 96 14.09.2024 12:53 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92445 ФПД: 1821138388488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T125304&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92445&fm=1821138388488&tin=02508201610067®Number=0000000000091423&sum=15000 0 [12:53:02]StoreToDocumentArchive [12:53:02]shift 506 fd 92445 [12:53:02]save to /storage/0506/doc_00092445 [12:53:02]save last doc name /storage/0506/doc_00092445 to /storage/kkm_last_doc_name [12:53:02]save OK [12:53:02]Clear old archive folders... [12:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:53:02]tlvbuf is 00FC8BC0 [12:53:02]SAM_PROTO_ClearQueue [12:53:02]wFMCommunicate request_size=4 [12:53:02]MH_SAM_APDU [12:53:02]CAPDU: 80 09 00 00 [12:53:02]Write to MH i2c: E2 08 00 DD 1C 80 09 00 00 00 00 00 00 6B [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:02]Read from MH i2c: E2 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 03 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 03 00 DD 1C 00 90 00 6D [12:53:02]RAPDU: 90 00 [12:53:02]wFMCommunicate OK [12:53:02]SAM_PROTO_ClearQueue done [12:53:02]KKMCreateOFDPacket [12:53:02]OFDProtocolAddRootSTLVToBuf [12:53:02]FM_MakeSignedData [12:53:02]FM_MakeSignedData [12:53:02]SAM_PROTO_SignData [12:53:02]wFMCommunicate request_size=4 [12:53:02]MH_SAM_APDU [12:53:02]CAPDU: 80 0D 01 02 [12:53:02]Write to MH i2c: E2 08 00 DE 1C 80 0D 01 02 00 00 00 00 73 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:02]Read from MH i2c: E2 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 03 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 03 00 DE 1C 00 90 00 6E [12:53:02]RAPDU: 90 00 [12:53:02]wFMCommunicate OK [12:53:02]wFMCommunicate request_size=255 [12:53:02]MH_SAM_APDU [12:53:02]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 60 00 00 00 F4 03 04 00 30 87 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [12:53:02]Write to MH i2c: E2 02 01 DF 1C 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 60 00 00 00 F4 03 04 00 30 87 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 67 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:02]Read from MH i2c: E2 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 03 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 03 00 DF 1C 00 90 00 6F [12:53:02]RAPDU: 90 00 [12:53:02]wFMCommunicate OK [12:53:02]wFMCommunicate request_size=33 [12:53:02]MH_SAM_APDU [12:53:02]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 69 01 00 35 04 06 00 01 A8 04 4E 86 08 [12:53:02]Write to MH i2c: E2 24 00 E0 1C 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 69 01 00 35 04 06 00 01 A8 04 4E 86 08 00 00 19 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:02]Read from MH i2c: E2 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 03 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 03 00 E0 1C 00 90 00 70 [12:53:02]RAPDU: 90 00 [12:53:02]wFMCommunicate OK [12:53:02]wFMCommunicate request_size=4 [12:53:02]MH_SAM_APDU [12:53:02]CAPDU: 80 0D 03 02 [12:53:02]Write to MH i2c: E2 08 00 E1 1C 80 0D 03 02 00 00 00 00 78 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:02]Read from MH i2c: E2 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 0B 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 0B 00 E1 1C 00 DF FC DC DB 48 2F 20 44 90 00 E6 [12:53:02]RAPDU: DF FC DC DB 48 2F 20 44 90 00 [12:53:02]wFMCommunicate OK [12:53:02]SAM_PROTO_SignData done [12:53:02]FM_MakeSignedData done [12:53:02]CreateOFDProtocolMessage [12:53:02]wFMCommunicate request_size=4 [12:53:02]MH_SAM_APDU [12:53:02]CAPDU: 80 11 00 00 [12:53:02]Write to MH i2c: E2 08 00 E2 1C 80 11 00 00 00 00 00 00 78 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:02]Read from MH i2c: E2 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 17 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: E2 17 00 E2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CF [12:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:53:02]wFMCommunicate OK [12:53:02]CreateOFDProtocolMessage done [12:53:02]OFDSenderStorePacket 92445 [12:53:02]StoreOFDPacket docnum=92445 [12:53:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 04 2B 1E 01 EC D2 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 60 00 00 00 F4 03 04 00 30 87 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 69 01 00 35 04 06 00 01 A8 04 4E 86 08 DF FC DC DB 48 2F 20 44 [12:53:02]CheckFolder [12:53:02]dirname=/storage/ofd_packets [12:53:02]CheckFolder done [12:53:02]ProducePacketName [12:53:02]name=ofd_packets/00092445 [12:53:02]NVStorageSaveData ofd_packets/00092445 [12:53:02]File name is /storage/ofd_packets/00092445 [12:53:02]Write 324 bytes [12:53:02]NVStorageSaveData done [12:53:02]OFDSenderStorePacket done [12:53:02]KKMCreateOFDPacket done [12:53:02]NVStorageSaveData kkm_last_timestamp [12:53:02]File name is /storage/kkm_last_timestamp [12:53:02]Write 4 bytes [12:53:02]NVStorageSaveData done [12:53:02]ExternCall_PrintAddStr [12:53:02]wPrintStart [12:53:02]Write to MH i2c: 01 00 00 E3 1C FF [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 07 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 07 00 E3 1C 00 00 00 00 00 FF 0F 14 [12:53:02]RasterBufferAndPrint [12:53:02]line Счет N : (3)127354 [12:53:02]line ИНН: 02508201610067 [12:53:02]line Контрольно-Кассовый Чек [12:53:02]line ПРОДАЖА [12:53:02]line Товар: 4640030091645 [12:53:02]line Сигареты ESSE Exchange M [12:53:02]line 1.000 * 150.00 [12:53:02]line = 150.00 [12:53:02]line НДС 12% НСП 1% [12:53:02]line > о реализуемом товаре [12:53:02]line ИТОГО: 150.00 [12:53:02]line НСП 1% : 1.33 [12:53:02]line НДС 12% : 15.93 [12:53:02]line Наличными: 150.00 [12:53:02]line Безнал.: 0.00 [12:53:02]line Место: АЗС № 5 "Партнер Нефть" [12:53:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:53:02]line СНО: Общий режим [12:53:02]line Чек 96 14.09.2024 12:53 [12:53:02]line Смена: 506 ФФД: 1.0 [12:53:02]line ЗНМ: 03000000022 [12:53:02]line РНМ: 0000000000091423 [12:53:02]line Версия ККМ: 001 [12:53:02]line ФМ: 0000000000874692 [12:53:02]line ФД: 92445 [12:53:02]line ФПД: 1821138388488 [12:53:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T125304&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92445&fm=1821138388488&tin=02508201610067®Number=0000000000091423&sum=15000 [12:53:03]line 0 [12:53:03]OFD Sender: Processing packet 92445 [packets to send 63, broken 62] [12:53:03]ProducePacketName [12:53:03]name=ofd_packets/00092445 [12:53:03]OFD Sender: To server: pG, [12:53:03]CommunicateWithHost lk.salyk.kg:30040 [12:53:03]ConnectInit lk.salyk.kg [12:53:03]written 0, free lines is 4095 [12:53:03]Connected sock=10 [12:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 04 2B 1E 01 EC D2 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 60 00 00 00 F4 03 04 00 30 87 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 69 01 00 35 04 06 00 01 A8 04 4E 86 08 DF FC DC DB 48 2F 20 44 [12:53:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 77 5F 47 00 85 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1D 69 01 00 F4 03 04 00 AB 2F E5 66 B6 04 01 00 00 BF B3 27 91 51 A2 66 45 [12:53:03]CommunicateWithHost err = 0 [12:53:03]CheckOFDResponse [12:53:03]1017 (14) - 77093643461234 [12:53:03]1041 (16) - 0000000000874692 [12:53:03]1040 (4) - 92445 [12:53:03]1012 (4) - 14.09.2024 06:39 [12:53:03]1206 (1) - 0 [12:53:03]OFD Sender: Remove packet 92445 [12:53:03]ProducePacketName [12:53:03]name=ofd_packets/00092445 [12:53:03]NVStorageDeleteData [12:53:03]Write to MH i2c: 01 00 00 0B 1D 28 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: 01 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: 01 07 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: 01 07 00 0B 1D 00 00 00 00 00 21 0D 5D [12:53:03]RasterBufferAndPrint [12:53:03]line [12:53:03]line [12:53:03]line [12:53:03]line [12:53:03]line [12:53:03]written 0, free lines is 3368 [12:53:03]MH_Cut [12:53:03]Write to MH i2c: D1 01 00 12 1D 01 01 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: D1 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: D1 01 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: D1 01 00 12 1D 00 00 [12:53:03]Write to MH i2c: 01 00 00 13 1D 30 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:04]OFD Sender: No OFD packet to send [12:53:04]*** Cut start [12:53:04]*** Purtial cut [12:53:04]*** Stage 1: CUTSNS_PIN = 1 [12:53:06]Read from MH i2c: 01 [12:53:06]MH_I2C_Read... [12:53:06]*** Stop cut motor [12:53:06]*** Cut end [12:53:06]Read from MH i2c: 01 07 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: 01 07 00 13 1D 00 00 00 00 00 FF 0F 45 [12:53:06]process_action close_receipt done [12:53:06]requested_data is exist [12:53:06]produce_requested_data [12:53:06]requested_item fm.sn is exist - process it [12:53:06]wFMCommunicate request_size=4 [12:53:06]MH_SAM_APDU [12:53:06]CAPDU: 80 11 00 00 [12:53:06]Write to MH i2c: E2 08 00 14 1D 80 11 00 00 00 00 00 00 AB [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:06]Read from MH i2c: E2 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 17 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 17 00 14 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 02 [12:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:53:06]wFMCommunicate OK [12:53:06]requested_item fd.num is exist - process it [12:53:06]SAM_PROTO_GetFieldsCounters [12:53:06]wFMCommunicate request_size=4 [12:53:06]MH_SAM_APDU [12:53:06]CAPDU: 80 13 00 00 [12:53:06]Write to MH i2c: E2 08 00 15 1D 80 13 00 00 00 00 00 00 AE [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:06]Read from MH i2c: E2 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 62 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 62 00 15 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1D 69 01 00 0E 04 04 00 FA 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 6F [12:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1D 69 01 00 0E 04 04 00 FA 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:53:06]wFMCommunicate OK [12:53:06]SAM_PROTO_GetFieldsCounters done [12:53:06]requested_item shift.num is exist - process it [12:53:06]requested_item shift.opened is exist - process it [12:53:06]req_shift_opened [12:53:06]FM_GetShiftState [12:53:06]SAM_PROTO_GetShiftState [12:53:06]wFMCommunicate request_size=4 [12:53:06]MH_SAM_APDU [12:53:06]CAPDU: 80 13 01 00 [12:53:06]Write to MH i2c: E2 08 00 16 1D 80 13 01 00 00 00 00 00 B0 [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:06]Read from MH i2c: E2 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 0E 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 0E 00 16 1D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 4A [12:53:06]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:53:06]wFMCommunicate OK [12:53:06]SAM_PROTO_GetShiftState done [12:53:06]FM_GetShiftState done [12:53:06]req_shift_opened done [12:53:06]requested_item shift.open_date is exist - process it [12:53:06]req_shift_open_date [12:53:06]req_shift_open_date done [12:53:06]produce_requested_data done [12:53:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92445,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:53:06]process_action_free close_receipt [12:53:06]json_value_free [12:53:06]json_value_free done [12:53:06]process_json_proto returns [12:53:06]Send response to host [12:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92445,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:53:06]free response buf [12:53:06]execute_script done [12:53:06]execute_script returns [12:53:06]free content buf [12:53:06]Sock 9.Close socket [12:53:06]Sock 9.Thread stoped [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:37]accept exits with 8 [12:54:37]New connection [12:54:37]New thread 3066658148 created [12:54:37]Thread 3066801508 joined [12:54:37]Waiting for new connection... [12:54:37] Sock 8.Parse request [12:54:37]Sock 8.Check first char [12:54:37]Sock 8.First char is OK [12:54:37]request: POST /json_proto HTTP/1.0 [12:54:37]Method: POST [12:54:37]URL: /json_proto [12:54:37]Method is POST - this is cgi request [12:54:37]url: /json_proto [12:54:37]query_string will be loaded in cgi processing [12:54:37]execute_cgi json_proto POST (null) [12:54:37]execute_cgi path=json_proto method=POST [12:54:37]POST find Content-Length [12:54:37]Host: 172.17.57.71:8080 [12:54:37]Content-Length: 750 [12:54:37]Content-Type: application/json [12:54:37] [12:54:37]POST finish read [12:54:37]Found Content-Length = 750 [12:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127355", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 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:54:37]execute_script... [12:54: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)127355", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 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:54:37]POST & json_proto [12:54:37]process_json_proto [12:54:37]json parsed OK: [12:54:37]protocol is kg_v1.0 [12:54:37]action value=close_receipt [12:54:37]process_action close_receipt [12:54:37]cmd_close_receipt [12:54:37]MH_GetDate [12:54:37]Write to MH i2c: F0 00 00 17 1D 23 [12:54:37]Write i2c OK [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: F0 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: F0 09 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: F0 09 00 17 1D 00 90 87 E5 66 33 3A A4 66 05 [12:54:37]GetLastDocTimeStamp 1726318384 [12:54:37]current date 1726318480 [12:54:37]FM_GetShiftState [12:54:37]SAM_PROTO_GetShiftState [12:54:37]wFMCommunicate request_size=4 [12:54:37]MH_SAM_APDU [12:54:37]CAPDU: 80 13 01 00 [12:54:37]Write to MH i2c: E2 08 00 18 1D 80 13 01 00 00 00 00 00 B2 [12:54:37]Write i2c OK [12:54:37]MH_I2C_Read... [12:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:37]Read from MH i2c: E2 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 0E 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 0E 00 18 1D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 4C [12:54:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:54:37]wFMCommunicate OK [12:54:37]SAM_PROTO_GetShiftState done [12:54:37]FM_GetShiftState done [12:54:37]opened in 1726273389 [12:54:37]opened+sec_in_day 1726359789 [12:54:37]quantity*price = 9500 [12:54:37]sum+1 = 9501 [12:54:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 97 14.09.2024 12:54 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92446 ФПД: 102403251029309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T125440&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92446&fm=102403251029309&tin=02508201610067®Number=0000000000091423&sum=9500 0 [12:54:38]StoreToDocumentArchive [12:54:38]shift 506 fd 92446 [12:54:38]save to /storage/0506/doc_00092446 [12:54:38]save last doc name /storage/0506/doc_00092446 to /storage/kkm_last_doc_name [12:54:38]save OK [12:54:38]Clear old archive folders... [12:54:38]ProcessDocumentItem done err = 0, tmpTLVsize=313 [12:54:38]tlvbuf is 0101E490 [12:54:38]SAM_PROTO_ClearQueue [12:54:38]wFMCommunicate request_size=4 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 09 00 00 [12:54:38]Write to MH i2c: E2 08 00 25 1D 80 09 00 00 00 00 00 00 B4 [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 25 1D 00 90 00 B6 [12:54:38]RAPDU: 90 00 [12:54:38]wFMCommunicate OK [12:54:38]SAM_PROTO_ClearQueue done [12:54:38]KKMCreateOFDPacket [12:54:38]OFDProtocolAddRootSTLVToBuf [12:54:38]FM_MakeSignedData [12:54:38]FM_MakeSignedData [12:54:38]SAM_PROTO_SignData [12:54:38]wFMCommunicate request_size=4 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 0D 01 02 [12:54:38]Write to MH i2c: E2 08 00 26 1D 80 0D 01 02 00 00 00 00 BC [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 26 1D 00 90 00 B7 [12:54:38]RAPDU: 90 00 [12:54:38]wFMCommunicate OK [12:54:38]wFMCommunicate request_size=255 [12:54:38]MH_SAM_APDU [12:54: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 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 90 87 E5 66 0E 04 04 00 [12:54:38]Write to MH i2c: E2 02 01 27 1D 80 0D 02 02 FA 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 90 87 E5 66 0E 04 04 00 00 00 6E [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 27 1D 00 90 00 B8 [12:54:38]RAPDU: 90 00 [12:54:38]wFMCommunicate OK [12:54:38]wFMCommunicate request_size=72 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 0D 02 02 43 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 69 01 00 35 04 06 00 5D 22 9D 66 C5 3D [12:54:38]Write to MH i2c: E2 4B 00 28 1D 80 0D 02 02 43 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 69 01 00 35 04 06 00 5D 22 9D 66 C5 3D 00 00 DF [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 28 1D 00 90 00 B9 [12:54:38]RAPDU: 90 00 [12:54:38]wFMCommunicate OK [12:54:38]wFMCommunicate request_size=4 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 0D 03 02 [12:54:38]Write to MH i2c: E2 08 00 29 1D 80 0D 03 02 00 00 00 00 C1 [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 0B 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 0B 00 29 1D 00 F5 ED A9 61 D6 2D 31 92 90 00 74 [12:54:38]RAPDU: F5 ED A9 61 D6 2D 31 92 90 00 [12:54:38]wFMCommunicate OK [12:54:38]SAM_PROTO_SignData done [12:54:38]FM_MakeSignedData done [12:54:38]CreateOFDProtocolMessage [12:54:38]wFMCommunicate request_size=4 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 11 00 00 [12:54:38]Write to MH i2c: E2 08 00 2A 1D 80 11 00 00 00 00 00 00 C1 [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 17 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 17 00 2A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 18 [12:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:54:38]wFMCommunicate OK [12:54:38]CreateOFDProtocolMessage done [12:54:38]OFDSenderStorePacket 92446 [12:54:38]StoreOFDPacket docnum=92446 [12:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4D 01 00 00 BF 58 45 01 C3 CB 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 90 87 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 69 01 00 35 04 06 00 5D 22 9D 66 C5 3D F5 ED A9 61 D6 2D 31 92 [12:54:38]CheckFolder [12:54:38]dirname=/storage/ofd_packets [12:54:38]CheckFolder done [12:54:38]ProducePacketName [12:54:38]name=ofd_packets/00092446 [12:54:38]NVStorageSaveData ofd_packets/00092446 [12:54:38]File name is /storage/ofd_packets/00092446 [12:54:38]Write 363 bytes [12:54:38]NVStorageSaveData done [12:54:38]OFDSenderStorePacket done [12:54:38]KKMCreateOFDPacket done [12:54:38]NVStorageSaveData kkm_last_timestamp [12:54:38]File name is /storage/kkm_last_timestamp [12:54:38]Write 4 bytes [12:54:38]NVStorageSaveData done [12:54:38]ExternCall_PrintAddStr [12:54:38]wPrintStart [12:54:38]Write to MH i2c: 01 00 00 2B 1D 48 [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: 01 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: 01 07 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: 01 07 00 2B 1D 00 00 00 00 00 FF 0F 5D [12:54:38]RasterBufferAndPrint [12:54:38]line Счет N : (3)127355 [12:54:38]line ИНН: 02508201610067 [12:54:38]line Контрольно-Кассовый Чек [12:54:38]line ПРОДАЖА [12:54:38]line Товар: 4700000483297 [12:54:38]line Энергетический напиток Nitro Ананас-гуав [12:54:38]line 1.000 * 95.00 [12:54:38]line = 95.00 [12:54:38]line НДС 12% НСП 1% [12:54:38]line > о реализуемом товаре [12:54:38]line ИТОГО: 95.00 [12:54:38]line НСП 1% : 0.84 [12:54:38]line НДС 12% : 10.09 [12:54:38]line Наличными: 95.00 [12:54:38]line Безнал.: 0.00 [12:54:38]line Место: АЗС № 5 "Партнер Нефть" [12:54:38]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:54:38]line СНО: Общий режим [12:54:38]line Чек 97 14.09.2024 12:54 [12:54:38]line Смена: 506 ФФД: 1.0 [12:54:38]line ЗНМ: 03000000022 [12:54:38]line РНМ: 0000000000091423 [12:54:38]line Версия ККМ: 001 [12:54:38]line ФМ: 0000000000874692 [12:54:38]line ФД: 92446 [12:54:38]line ФПД: 102403251029309 [12:54:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T125440&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92446&fm=102403251029309&tin=02508201610067®Number=0000000000091423&sum=9500 [12:54:39]line 0 [12:54:39]OFD Sender: Processing packet 92446 [packets to send 63, broken 62] [12:54:39]ProducePacketName [12:54:39]name=ofd_packets/00092446 [12:54:39]OFD Sender: To server: pG, [12:54:39]CommunicateWithHost lk.salyk.kg:30040 [12:54:39]ConnectInit lk.salyk.kg [12:54:39]written 0, free lines is 4095 [12:54:39]Connected sock=10 [12:54:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4D 01 00 00 BF 58 45 01 C3 CB 5A 03 01 00 03 00 39 01 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 90 87 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 69 01 00 35 04 06 00 5D 22 9D 66 C5 3D F5 ED A9 61 D6 2D 31 92 [12:54:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 B0 6B 47 00 D5 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1E 69 01 00 F4 03 04 00 0B 30 E5 66 B6 04 01 00 00 9F 9C 89 54 80 D3 F1 F8 [12:54:39]CommunicateWithHost err = 0 [12:54:39]CheckOFDResponse [12:54:39]1017 (14) - 77093643461234 [12:54:39]1041 (16) - 0000000000874692 [12:54:39]1040 (4) - 92446 [12:54:39]1012 (4) - 14.09.2024 06:41 [12:54:39]1206 (1) - 0 [12:54:39]OFD Sender: Remove packet 92446 [12:54:39]ProducePacketName [12:54:39]name=ofd_packets/00092446 [12:54:39]NVStorageDeleteData [12:54:39]Write to MH i2c: 01 00 00 54 1D 71 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: 01 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: 01 07 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: 01 07 00 54 1D 00 00 00 00 00 10 0D 95 [12:54:39]RasterBufferAndPrint [12:54:39]line [12:54:39]line [12:54:39]line [12:54:39]line [12:54:39]line [12:54:39]written 0, free lines is 3352 [12:54:39]MH_Cut [12:54:39]Write to MH i2c: D1 01 00 5B 1D 01 4A [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: D1 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: D1 01 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: D1 01 00 5B 1D 00 49 [12:54:39]Write to MH i2c: 01 00 00 5C 1D 79 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:40]OFD Sender: No OFD packet to send [12:54:40]*** Cut start [12:54:40]*** Purtial cut [12:54:40]*** Stage 1: CUTSNS_PIN = 1 [12:54:42]Read from MH i2c: 01 [12:54:42]MH_I2C_Read... [12:54:42]*** Stop cut motor [12:54:42]*** Cut end [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 5C 1D 00 00 00 00 00 FF 0F 8E [12:54:42]process_action close_receipt done [12:54:42]requested_data is exist [12:54:42]produce_requested_data [12:54:42]requested_item fm.sn is exist - process it [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 1D 80 11 00 00 00 00 00 00 F4 [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 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4B [12:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:54:42]wFMCommunicate OK [12:54:42]requested_item fd.num is exist - process it [12:54:42]SAM_PROTO_GetFieldsCounters [12:54:42]wFMCommunicate request_size=4 [12:54:42]MH_SAM_APDU [12:54:42]CAPDU: 80 13 00 00 [12:54:42]Write to MH i2c: E2 08 00 5E 1D 80 13 00 00 00 00 00 00 F7 [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:42]Read from MH i2c: E2 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 62 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 62 00 5E 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1E 69 01 00 0E 04 04 00 FA 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 BC [12:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1E 69 01 00 0E 04 04 00 FA 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 [12:54:42]wFMCommunicate OK [12:54:42]SAM_PROTO_GetFieldsCounters done [12:54:42]requested_item shift.num is exist - process it [12:54:42]requested_item shift.opened is exist - process it [12:54:42]req_shift_opened [12:54:42]FM_GetShiftState [12:54:42]SAM_PROTO_GetShiftState [12:54:42]wFMCommunicate request_size=4 [12:54:42]MH_SAM_APDU [12:54:42]CAPDU: 80 13 01 00 [12:54:42]Write to MH i2c: E2 08 00 5F 1D 80 13 01 00 00 00 00 00 F9 [12:54:42]Write i2c OK [12:54:42]MH_I2C_Read... [12:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:42]Read from MH i2c: E2 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 0E 00 [12:54:42]MH_I2C_Read... [12:54:42]Read from MH i2c: E2 0E 00 5F 1D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 93 [12:54:42]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:54:42]wFMCommunicate OK [12:54:42]SAM_PROTO_GetShiftState done [12:54:42]FM_GetShiftState done [12:54:42]req_shift_opened done [12:54:42]requested_item shift.open_date is exist - process it [12:54:42]req_shift_open_date [12:54:42]req_shift_open_date done [12:54:42]produce_requested_data done [12:54:42]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92446,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:54:42]process_action_free close_receipt [12:54:42]json_value_free [12:54:42]json_value_free done [12:54:42]process_json_proto returns [12:54:42]Send response to host [12:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92446,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:54:42]free response buf [12:54:42]execute_script done [12:54:42]execute_script returns [12:54:42]free content buf [12:54:42]Sock 8.Close socket [12:54:42]Sock 8.Thread stoped [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:24]accept exits with 9 [12:59:24]New connection [12:59:24]New thread 3066801508 created [12:59:24]Thread 3066658148 joined [12:59:24]Waiting for new connection... [12:59:24] Sock 9.Parse request [12:59:24]Sock 9.Check first char [12:59:24]Sock 9.First char is OK [12:59:24]request: POST /json_proto HTTP/1.0 [12:59:24]Method: POST [12:59:24]URL: /json_proto [12:59:24]Method is POST - this is cgi request [12:59:24]url: /json_proto [12:59:24]query_string will be loaded in cgi processing [12:59:24]execute_cgi json_proto POST (null) [12:59:24]execute_cgi path=json_proto method=POST [12:59:24]POST find Content-Length [12:59:24]Host: 172.17.57.71:8080 [12:59:24]Content-Length: 902 [12:59:24]Content-Type: application/json [12:59:24] [12:59:24]POST finish read [12:59:24]Found Content-Length = 902 [12:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127356", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 221.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:24]execute_script... [12:59: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)127356", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 221.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:24]POST & json_proto [12:59:24]process_json_proto [12:59:24]json parsed OK: [12:59:24]protocol is kg_v1.0 [12:59:24]action value=close_receipt [12:59:24]process_action close_receipt [12:59:24]cmd_close_receipt [12:59:24]MH_GetDate [12:59:24]Write to MH i2c: F0 00 00 60 1D 6C [12:59:24]Write i2c OK [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: F0 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: F0 09 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: F0 09 00 60 1D 00 AF 88 E5 66 33 3A A4 66 6E [12:59:24]GetLastDocTimeStamp 1726318480 [12:59:24]current date 1726318767 [12:59:24]FM_GetShiftState [12:59:24]SAM_PROTO_GetShiftState [12:59:24]wFMCommunicate request_size=4 [12:59:24]MH_SAM_APDU [12:59:24]CAPDU: 80 13 01 00 [12:59:24]Write to MH i2c: E2 08 00 61 1D 80 13 01 00 00 00 00 00 FB [12:59:24]Write i2c OK [12:59:24]MH_I2C_Read... [12:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:24]Read from MH i2c: E2 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 0E 00 [12:59:24]MH_I2C_Read... [12:59:24]Read from MH i2c: E2 0E 00 61 1D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 95 [12:59:24]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:59:24]wFMCommunicate OK [12:59:24]SAM_PROTO_GetShiftState done [12:59:24]FM_GetShiftState done [12:59:24]opened in 1726273389 [12:59:24]opened+sec_in_day 1726359789 [12:59:24]quantity*price = 15400 [12:59:24]sum+1 = 15401 [12:59:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 221.00 НСП 1% : 1.95 НДС 12% : 23.46 Наличными: 221.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 98 14.09.2024 12:59 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92447 ФПД: 33208620211549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T125927&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92447&fm=33208620211549&tin=02508201610067®Number=0000000000091423&sum=22100 0 [12:59:25]StoreToDocumentArchive [12:59:25]shift 506 fd 92447 [12:59:25]save to /storage/0506/doc_00092447 [12:59:25]save last doc name /storage/0506/doc_00092447 to /storage/kkm_last_doc_name [12:59:25]save OK [12:59:25]Clear old archive folders... [12:59:25]ProcessDocumentItem done err = 0, tmpTLVsize=390 [12:59:25]tlvbuf is B6F33480 [12:59:25]SAM_PROTO_ClearQueue [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 09 00 00 [12:59:25]Write to MH i2c: E2 08 00 6E 1D 80 09 00 00 00 00 00 00 FD [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 6E 1D 00 90 00 FF [12:59:25]RAPDU: 90 00 [12:59:25]wFMCommunicate OK [12:59:25]SAM_PROTO_ClearQueue done [12:59:25]KKMCreateOFDPacket [12:59:25]OFDProtocolAddRootSTLVToBuf [12:59:25]FM_MakeSignedData [12:59:25]FM_MakeSignedData [12:59:25]SAM_PROTO_SignData [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 0D 01 02 [12:59:25]Write to MH i2c: E2 08 00 6F 1D 80 0D 01 02 00 00 00 00 05 [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 6F 1D 00 90 00 00 [12:59:25]RAPDU: 90 00 [12:59:25]wFMCommunicate OK [12:59:25]wFMCommunicate request_size=255 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [12:59:25]Write to MH i2c: E2 02 01 70 1D 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 D2 [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 70 1D 00 90 00 01 [12:59:25]RAPDU: 90 00 [12:59:25]wFMCommunicate OK [12:59:25]wFMCommunicate request_size=149 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 0D 02 02 90 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 2A 09 00 00 00 00 07 04 06 00 54 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 AF 88 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 69 01 00 35 04 06 00 1E 33 FC 02 DD 5D [12:59:26]Write to MH i2c: E2 98 00 71 1D 80 0D 02 02 90 00 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 2A 09 00 00 00 00 07 04 06 00 54 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 AF 88 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 69 01 00 35 04 06 00 1E 33 FC 02 DD 5D 00 00 E5 [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:26]Read from MH i2c: E2 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 03 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 03 00 71 1D 00 90 00 02 [12:59:26]RAPDU: 90 00 [12:59:26]wFMCommunicate OK [12:59:26]wFMCommunicate request_size=4 [12:59:26]MH_SAM_APDU [12:59:26]CAPDU: 80 0D 03 02 [12:59:26]Write to MH i2c: E2 08 00 72 1D 80 0D 03 02 00 00 00 00 0A [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:26]Read from MH i2c: E2 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 0B 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 0B 00 72 1D 00 CA 6E B7 67 B4 9D DB 6A 90 00 F7 [12:59:26]RAPDU: CA 6E B7 67 B4 9D DB 6A 90 00 [12:59:26]wFMCommunicate OK [12:59:26]SAM_PROTO_SignData done [12:59:26]FM_MakeSignedData done [12:59:26]CreateOFDProtocolMessage [12:59:26]wFMCommunicate request_size=4 [12:59:26]MH_SAM_APDU [12:59:26]CAPDU: 80 11 00 00 [12:59:26]Write to MH i2c: E2 08 00 73 1D 80 11 00 00 00 00 00 00 0A [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:26]Read from MH i2c: E2 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 17 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 17 00 73 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 61 [12:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:59:26]wFMCommunicate OK [12:59:26]CreateOFDProtocolMessage done [12:59:26]OFDSenderStorePacket 92447 [12:59:26]StoreOFDPacket docnum=92447 [12:59:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9A 01 00 00 F4 67 92 01 F7 A6 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 56 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 2A 09 00 00 00 00 07 04 06 00 54 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 AF 88 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 69 01 00 35 04 06 00 1E 33 FC 02 DD 5D CA 6E B7 67 B4 9D DB 6A [12:59:26]CheckFolder [12:59:26]dirname=/storage/ofd_packets [12:59:26]CheckFolder done [12:59:26]ProducePacketName [12:59:26]name=ofd_packets/00092447 [12:59:26]NVStorageSaveData ofd_packets/00092447 [12:59:26]File name is /storage/ofd_packets/00092447 [12:59:26]Write 440 bytes [12:59:26]NVStorageSaveData done [12:59:26]OFDSenderStorePacket done [12:59:26]KKMCreateOFDPacket done [12:59:26]NVStorageSaveData kkm_last_timestamp [12:59:26]File name is /storage/kkm_last_timestamp [12:59:26]Write 4 bytes [12:59:26]NVStorageSaveData done [12:59:26]ExternCall_PrintAddStr [12:59:26]wPrintStart [12:59:26]Write to MH i2c: 01 00 00 74 1D 91 [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: 01 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: 01 07 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: 01 07 00 74 1D 00 00 00 00 00 FF 0F A6 [12:59:26]RasterBufferAndPrint [12:59:26]line Счет N : (3)127356 [12:59:26]line ИНН: 02508201610067 [12:59:26]line Контрольно-Кассовый Чек [12:59:26]line ПРОДАЖА [12:59:26]line Товар: 48747073 [12:59:26]line Сигареты Richmond Royal Edition [12:59:26]line 1.000 * 154.00 [12:59:26]line = 154.00 [12:59:26]line НДС 12% НСП 1% [12:59:26]line > о реализуемом товаре [12:59:26]line Товар: 8710732217097 [12:59:26]line Зажигалка Cricket ПН пьезо [12:59:26]line 1.000 * 67.00 [12:59:26]line = 67.00 [12:59:26]line НДС 12% НСП 1% [12:59:26]line > о реализуемом товаре [12:59:26]line ИТОГО: 221.00 [12:59:26]line НСП 1% : 1.95 [12:59:26]line НДС 12% : 23.46 [12:59:26]line Наличными: 221.00 [12:59:26]line Безнал.: 0.00 [12:59:26]line Место: АЗС № 5 "Партнер Нефть" [12:59:26]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [12:59:26]line СНО: Общий режим [12:59:26]line Чек 98 14.09.2024 12:59 [12:59:26]line Смена: 506 ФФД: 1.0 [12:59:26]line ЗНМ: 03000000022 [12:59:26]line РНМ: 0000000000091423 [12:59:26]line Версия ККМ: 001 [12:59:26]line ФМ: 0000000000874692 [12:59:26]line ФД: 92447 [12:59:26]line ФПД: 33208620211549 [12:59:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T125927&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92447&fm=33208620211549&tin=02508201610067®Number=0000000000091423&sum=22100 [12:59:26]line 0 [12:59:26]OFD Sender: Processing packet 92447 [packets to send 63, broken 62] [12:59:26]ProducePacketName [12:59:26]name=ofd_packets/00092447 [12:59:26]OFD Sender: To server: pG, [12:59:26]CommunicateWithHost lk.salyk.kg:30040 [12:59:26]ConnectInit lk.salyk.kg [12:59:26]written 0, free lines is 4095 [12:59:26]Connected sock=10 [12:59:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9A 01 00 00 F4 67 92 01 F7 A6 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 56 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 2A 09 00 00 00 00 07 04 06 00 54 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 AF 88 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 69 01 00 35 04 06 00 1E 33 FC 02 DD 5D CA 6E B7 67 B4 9D DB 6A [12:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 16 54 47 00 9E C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 1F 69 01 00 F4 03 04 00 2B 31 E5 66 B6 04 01 00 00 84 7A 6E 70 97 B4 48 B7 [12:59:26]CommunicateWithHost err = 0 [12:59:26]CheckOFDResponse [12:59:26]1017 (14) - 77093643461234 [12:59:26]1041 (16) - 0000000000874692 [12:59:26]1040 (4) - 92447 [12:59:26]1012 (4) - 14.09.2024 06:46 [12:59:26]1206 (1) - 0 [12:59:26]OFD Sender: Remove packet 92447 [12:59:26]ProducePacketName [12:59:26]name=ofd_packets/00092447 [12:59:26]NVStorageDeleteData [12:59:27]Write to MH i2c: 01 00 00 A3 1D C0 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 07 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 BF 0C 92 [12:59:27]RasterBufferAndPrint [12:59:27]line [12:59:27]line [12:59:27]line [12:59:27]line [12:59:27]line [12:59:27]written 0, free lines is 3272 [12:59:27]MH_Cut [12:59:27]Write to MH i2c: D1 01 00 AA 1D 01 99 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: D1 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: D1 01 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: D1 01 00 AA 1D 00 98 [12:59:27]Write to MH i2c: 01 00 00 AB 1D C8 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]OFD Sender: No OFD packet to send [12:59:27]*** Cut start [12:59:27]*** Purtial cut [12:59:27]*** Stage 1: CUTSNS_PIN = 1 [12:59:29]Read from MH i2c: 01 [12:59:29]MH_I2C_Read... [12:59:29]*** Stop cut motor [12:59:29]*** Cut end [12:59:29]Read from MH i2c: 01 07 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: 01 07 00 AB 1D 00 00 00 00 00 FF 0F DD [12:59:29]process_action close_receipt done [12:59:29]requested_data is exist [12:59:29]produce_requested_data [12:59:29]requested_item fm.sn is exist - process it [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 11 00 00 [12:59:29]Write to MH i2c: E2 08 00 AC 1D 80 11 00 00 00 00 00 00 43 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 17 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 17 00 AC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9A [12:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [12:59:29]wFMCommunicate OK [12:59:29]requested_item fd.num is exist - process it [12:59:29]SAM_PROTO_GetFieldsCounters [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 13 00 00 [12:59:29]Write to MH i2c: E2 08 00 AD 1D 80 13 00 00 00 00 00 00 46 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:30]Read from MH i2c: E2 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 62 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 62 00 AD 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1F 69 01 00 0E 04 04 00 FA 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 0F [12:59:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 1F 69 01 00 0E 04 04 00 FA 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 [12:59:30]wFMCommunicate OK [12:59:30]SAM_PROTO_GetFieldsCounters done [12:59:30]requested_item shift.num is exist - process it [12:59:30]requested_item shift.opened is exist - process it [12:59:30]req_shift_opened [12:59:30]FM_GetShiftState [12:59:30]SAM_PROTO_GetShiftState [12:59:30]wFMCommunicate request_size=4 [12:59:30]MH_SAM_APDU [12:59:30]CAPDU: 80 13 01 00 [12:59:30]Write to MH i2c: E2 08 00 AE 1D 80 13 01 00 00 00 00 00 48 [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:30]Read from MH i2c: E2 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 0E 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 0E 00 AE 1D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E2 [12:59:30]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [12:59:30]wFMCommunicate OK [12:59:30]SAM_PROTO_GetShiftState done [12:59:30]FM_GetShiftState done [12:59:30]req_shift_opened done [12:59:30]requested_item shift.open_date is exist - process it [12:59:30]req_shift_open_date [12:59:30]req_shift_open_date done [12:59:30]produce_requested_data done [12:59:30]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92447,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [12:59:30]process_action_free close_receipt [12:59:30]json_value_free [12:59:30]json_value_free done [12:59:30]process_json_proto returns [12:59:30]Send response to host [12:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92447,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [12:59:30]free response buf [12:59:30]execute_script done [12:59:30]execute_script returns [12:59:30]free content buf [12:59:30]Sock 9.Close socket [12:59:30]Sock 9.Thread stoped [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]accept exits with 8 [13:02:27]New connection [13:02:27]New thread 3066658148 created [13:02:27]Thread 3066801508 joined [13:02:27]Waiting for new connection... [13:02:27] Sock 8.Parse request [13:02:27]Sock 8.Check first char [13:02:27]Sock 8.First char is OK [13:02:27]request: POST /json_proto HTTP/1.0 [13:02:27]Method: POST [13:02:27]URL: /json_proto [13:02:27]Method is POST - this is cgi request [13:02:27]url: /json_proto [13:02:27]query_string will be loaded in cgi processing [13:02:27]execute_cgi json_proto POST (null) [13:02:27]execute_cgi path=json_proto method=POST [13:02:27]POST find Content-Length [13:02:27]Host: 172.17.57.71:8080 [13:02:27]Content-Length: 622 [13:02:27]Content-Type: application/json [13:02:27] [13:02:27]POST finish read [13:02:27]Found Content-Length = 622 [13:02:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127357", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "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 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:27]execute_script... [13:02: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)127357", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "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 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:27]POST & json_proto [13:02:27]process_json_proto [13:02:27]json parsed OK: [13:02:27]protocol is kg_v1.0 [13:02:27]action value=close_receipt [13:02:27]process_action close_receipt [13:02:27]cmd_close_receipt [13:02:27]MH_GetDate [13:02:27]Write to MH i2c: F0 00 00 AF 1D BB [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: F0 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: F0 09 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: F0 09 00 AF 1D 00 66 89 E5 66 33 3A A4 66 75 [13:02:27]GetLastDocTimeStamp 1726318767 [13:02:27]current date 1726318950 [13:02:27]FM_GetShiftState [13:02:27]SAM_PROTO_GetShiftState [13:02:27]wFMCommunicate request_size=4 [13:02:27]MH_SAM_APDU [13:02:27]CAPDU: 80 13 01 00 [13:02:27]Write to MH i2c: E2 08 00 B0 1D 80 13 01 00 00 00 00 00 4A [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:27]Read from MH i2c: E2 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 0E 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 0E 00 B0 1D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E4 [13:02:27]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:02:27]wFMCommunicate OK [13:02:27]SAM_PROTO_GetShiftState done [13:02:27]FM_GetShiftState done [13:02:27]opened in 1726273389 [13:02:27]opened+sec_in_day 1726359789 [13:02:27]quantity*price = 15000 [13:02:27]sum+1 = 15001 [13:02:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 99 14.09.2024 13:02 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92448 ФПД: 121005275492241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T130230&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92448&fm=121005275492241&tin=02508201610067®Number=0000000000091423&sum=15000 0 [13:02:28]StoreToDocumentArchive [13:02:28]shift 506 fd 92448 [13:02:28]save to /storage/0506/doc_00092448 [13:02:28]save last doc name /storage/0506/doc_00092448 to /storage/kkm_last_doc_name [13:02:28]save OK [13:02:28]Clear old archive folders... [13:02:28]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:02:28]tlvbuf is B6F33C50 [13:02:28]SAM_PROTO_ClearQueue [13:02:28]wFMCommunicate request_size=4 [13:02:28]MH_SAM_APDU [13:02:28]CAPDU: 80 09 00 00 [13:02:28]Write to MH i2c: E2 08 00 BD 1D 80 09 00 00 00 00 00 00 4C [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:28]Read from MH i2c: E2 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 BD 1D 00 90 00 4E [13:02:28]RAPDU: 90 00 [13:02:28]wFMCommunicate OK [13:02:28]SAM_PROTO_ClearQueue done [13:02:28]KKMCreateOFDPacket [13:02:28]OFDProtocolAddRootSTLVToBuf [13:02:28]FM_MakeSignedData [13:02:28]FM_MakeSignedData [13:02:28]SAM_PROTO_SignData [13:02:28]wFMCommunicate request_size=4 [13:02:28]MH_SAM_APDU [13:02:28]CAPDU: 80 0D 01 02 [13:02:28]Write to MH i2c: E2 08 00 BE 1D 80 0D 01 02 00 00 00 00 54 [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:28]Read from MH i2c: E2 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 BE 1D 00 90 00 4F [13:02:28]RAPDU: 90 00 [13:02:28]wFMCommunicate OK [13:02:28]wFMCommunicate request_size=255 [13:02:28]MH_SAM_APDU [13:02:28]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 32 31 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 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 63 00 00 00 F4 03 04 00 66 89 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [13:02:28]Write to MH i2c: E2 02 01 BF 1D 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 32 31 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 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 63 00 00 00 F4 03 04 00 66 89 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 87 [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:28]Read from MH i2c: E2 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [13:02:28]RAPDU: 90 00 [13:02:28]wFMCommunicate OK [13:02:28]wFMCommunicate request_size=33 [13:02:28]MH_SAM_APDU [13:02:28]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 20 69 01 00 35 04 06 00 6E 0D BC 76 2F 91 [13:02:28]Write to MH i2c: E2 24 00 C0 1D 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 20 69 01 00 35 04 06 00 6E 0D BC 76 2F 91 00 00 E1 [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:28]Read from MH i2c: E2 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [13:02:28]RAPDU: 90 00 [13:02:28]wFMCommunicate OK [13:02:28]wFMCommunicate request_size=4 [13:02:28]MH_SAM_APDU [13:02:28]CAPDU: 80 0D 03 02 [13:02:28]Write to MH i2c: E2 08 00 C1 1D 80 0D 03 02 00 00 00 00 59 [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:28]Read from MH i2c: E2 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 0B 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 0B 00 C1 1D 00 E2 EC F5 DF 29 95 B4 55 90 00 C3 [13:02:28]RAPDU: E2 EC F5 DF 29 95 B4 55 90 00 [13:02:28]wFMCommunicate OK [13:02:28]SAM_PROTO_SignData done [13:02:28]FM_MakeSignedData done [13:02:28]CreateOFDProtocolMessage [13:02:28]wFMCommunicate request_size=4 [13:02:28]MH_SAM_APDU [13:02:28]CAPDU: 80 11 00 00 [13:02:28]Write to MH i2c: E2 08 00 C2 1D 80 11 00 00 00 00 00 00 59 [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:28]Read from MH i2c: E2 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 17 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 17 00 C2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B0 [13:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:02:28]wFMCommunicate OK [13:02:28]CreateOFDProtocolMessage done [13:02:28]OFDSenderStorePacket 92448 [13:02:28]StoreOFDPacket docnum=92448 [13:02:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 43 0A 1E 01 2F 18 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 32 31 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 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 63 00 00 00 F4 03 04 00 66 89 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 20 69 01 00 35 04 06 00 6E 0D BC 76 2F 91 E2 EC F5 DF 29 95 B4 55 [13:02:28]CheckFolder [13:02:28]dirname=/storage/ofd_packets [13:02:28]CheckFolder done [13:02:28]ProducePacketName [13:02:28]name=ofd_packets/00092448 [13:02:28]NVStorageSaveData ofd_packets/00092448 [13:02:28]File name is /storage/ofd_packets/00092448 [13:02:28]Write 324 bytes [13:02:28]NVStorageSaveData done [13:02:28]OFDSenderStorePacket done [13:02:28]KKMCreateOFDPacket done [13:02:28]NVStorageSaveData kkm_last_timestamp [13:02:28]File name is /storage/kkm_last_timestamp [13:02:28]Write 4 bytes [13:02:28]NVStorageSaveData done [13:02:28]ExternCall_PrintAddStr [13:02:28]wPrintStart [13:02:28]Write to MH i2c: 01 00 00 C3 1D E0 [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: 01 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: 01 07 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: 01 07 00 C3 1D 00 00 00 00 00 FF 0F F5 [13:02:28]RasterBufferAndPrint [13:02:28]line Счет N : (3)127357 [13:02:28]line ИНН: 02508201610067 [13:02:28]line Контрольно-Кассовый Чек [13:02:28]line ПРОДАЖА [13:02:28]line Товар: 4640030091621 [13:02:28]line Сигареты ESSE Exchange W [13:02:28]line 1.000 * 150.00 [13:02:28]line = 150.00 [13:02:28]line НДС 12% НСП 1% [13:02:28]line > о реализуемом товаре [13:02:28]line ИТОГО: 150.00 [13:02:28]line НСП 1% : 1.33 [13:02:28]line НДС 12% : 15.93 [13:02:28]line Наличными: 150.00 [13:02:28]line Безнал.: 0.00 [13:02:28]line Место: АЗС № 5 "Партнер Нефть" [13:02:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:02:28]line СНО: Общий режим [13:02:28]line Чек 99 14.09.2024 13:02 [13:02:28]line Смена: 506 ФФД: 1.0 [13:02:28]line ЗНМ: 03000000022 [13:02:28]line РНМ: 0000000000091423 [13:02:28]line Версия ККМ: 001 [13:02:28]line ФМ: 0000000000874692 [13:02:28]line ФД: 92448 [13:02:28]line ФПД: 121005275492241 [13:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T130230&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92448&fm=121005275492241&tin=02508201610067®Number=0000000000091423&sum=15000 [13:02:29]line 0 [13:02:29]OFD Sender: Processing packet 92448 [packets to send 63, broken 62] [13:02:29]ProducePacketName [13:02:29]name=ofd_packets/00092448 [13:02:29]OFD Sender: To server: pG, [13:02:29]CommunicateWithHost lk.salyk.kg:30040 [13:02:29]ConnectInit lk.salyk.kg [13:02:29]written 0, free lines is 4095 [13:02:29]Connected sock=10 [13:02:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 43 0A 1E 01 2F 18 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 32 31 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 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 63 00 00 00 F4 03 04 00 66 89 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 20 69 01 00 35 04 06 00 6E 0D BC 76 2F 91 E2 EC F5 DF 29 95 B4 55 [13:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AA EB 47 00 F8 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 20 69 01 00 F4 03 04 00 E1 31 E5 66 B6 04 01 00 00 2A FF 2D E5 8C 52 FE 08 [13:02:29]CommunicateWithHost err = 0 [13:02:29]CheckOFDResponse [13:02:29]1017 (14) - 77093643461234 [13:02:29]1041 (16) - 0000000000874692 [13:02:29]1040 (4) - 92448 [13:02:29]1012 (4) - 14.09.2024 06:49 [13:02:29]1206 (1) - 0 [13:02:29]OFD Sender: Remove packet 92448 [13:02:29]ProducePacketName [13:02:29]name=ofd_packets/00092448 [13:02:29]NVStorageDeleteData [13:02:29]Write to MH i2c: 01 00 00 EB 1D 08 [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 EB 1D 00 00 00 00 00 27 0D 43 [13:02:29]RasterBufferAndPrint [13:02:29]line [13:02:29]line [13:02:29]line [13:02:29]line [13:02:29]line [13:02:29]written 0, free lines is 3372 [13:02:29]MH_Cut [13:02:29]Write to MH i2c: D1 01 00 F2 1D 01 E1 [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: D1 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: D1 01 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: D1 01 00 F2 1D 00 E0 [13:02:29]Write to MH i2c: 01 00 00 F3 1D 10 [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:30]OFD Sender: No OFD packet to send [13:02:30]*** Cut start [13:02:30]*** Purtial cut [13:02:30]*** Stage 1: CUTSNS_PIN = 1 [13:02:32]Read from MH i2c: 01 [13:02:32]MH_I2C_Read... [13:02:32]*** Stop cut motor [13:02:32]*** Cut end [13:02:32]Read from MH i2c: 01 07 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: 01 07 00 F3 1D 00 00 00 00 00 FF 0F 25 [13:02:32]process_action close_receipt done [13:02:32]requested_data is exist [13:02:32]produce_requested_data [13:02:32]requested_item fm.sn is exist - process it [13:02:32]wFMCommunicate request_size=4 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 11 00 00 [13:02:32]Write to MH i2c: E2 08 00 F4 1D 80 11 00 00 00 00 00 00 8B [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 17 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 17 00 F4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E2 [13:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:02:32]wFMCommunicate OK [13:02:32]requested_item fd.num is exist - process it [13:02:32]SAM_PROTO_GetFieldsCounters [13:02:32]wFMCommunicate request_size=4 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 13 00 00 [13:02:32]Write to MH i2c: E2 08 00 F5 1D 80 13 00 00 00 00 00 00 8E [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 62 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 62 00 F5 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 20 69 01 00 0E 04 04 00 FA 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 5B [13:02:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 20 69 01 00 0E 04 04 00 FA 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:02:32]wFMCommunicate OK [13:02:32]SAM_PROTO_GetFieldsCounters done [13:02:32]requested_item shift.num is exist - process it [13:02:32]requested_item shift.opened is exist - process it [13:02:32]req_shift_opened [13:02:32]FM_GetShiftState [13:02:32]SAM_PROTO_GetShiftState [13:02:32]wFMCommunicate request_size=4 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 13 01 00 [13:02:32]Write to MH i2c: E2 08 00 F6 1D 80 13 01 00 00 00 00 00 90 [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 0E 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 0E 00 F6 1D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2A [13:02:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:02:32]wFMCommunicate OK [13:02:32]SAM_PROTO_GetShiftState done [13:02:32]FM_GetShiftState done [13:02:32]req_shift_opened done [13:02:32]requested_item shift.open_date is exist - process it [13:02:32]req_shift_open_date [13:02:32]req_shift_open_date done [13:02:32]produce_requested_data done [13:02:32]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92448,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:02:32]process_action_free close_receipt [13:02:32]json_value_free [13:02:32]json_value_free done [13:02:32]process_json_proto returns [13:02:32]Send response to host [13:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92448,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:02:32]free response buf [13:02:32]execute_script done [13:02:32]execute_script returns [13:02:32]free content buf [13:02:32]Sock 8.Close socket [13:02:32]Sock 8.Thread stoped [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:54]accept exits with 9 [13:10:54]New connection [13:10:54]New thread 3066801508 created [13:10:54]Thread 3066658148 joined [13:10:54]Waiting for new connection... [13:10:54] Sock 9.Parse request [13:10:54]Sock 9.Check first char [13:10:54]Sock 9.First char is OK [13:10:54]request: POST /json_proto HTTP/1.0 [13:10:54]Method: POST [13:10:54]URL: /json_proto [13:10:54]Method is POST - this is cgi request [13:10:54]url: /json_proto [13:10:54]query_string will be loaded in cgi processing [13:10:54]execute_cgi json_proto POST (null) [13:10:54]execute_cgi path=json_proto method=POST [13:10:54]POST find Content-Length [13:10:54]Host: 172.17.57.71:8080 [13:10:54]Content-Length: 897 [13:10:54]Content-Type: application/json [13:10:54] [13:10:54]POST finish read [13:10:54]Found Content-Length = 897 [13:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127358", "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" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 2.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:54]execute_script... [13:10: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)127358", "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" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 2.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:54]POST & json_proto [13:10:54]process_json_proto [13:10:54]json parsed OK: [13:10:54]protocol is kg_v1.0 [13:10:54]action value=close_receipt [13:10:54]process_action close_receipt [13:10:54]cmd_close_receipt [13:10:54]MH_GetDate [13:10:54]Write to MH i2c: F0 00 00 F7 1D 03 [13:10:54]Write i2c OK [13:10:54]MH_I2C_Read... [13:10:54]Read from MH i2c: F0 [13:10:54]MH_I2C_Read... [13:10:54]Read from MH i2c: F0 09 00 [13:10:54]MH_I2C_Read... [13:10:54]Read from MH i2c: F0 09 00 F7 1D 00 61 8B E5 66 33 3A A4 66 BA [13:10:54]GetLastDocTimeStamp 1726318950 [13:10:54]current date 1726319457 [13:10:54]FM_GetShiftState [13:10:54]SAM_PROTO_GetShiftState [13:10:54]wFMCommunicate request_size=4 [13:10:54]MH_SAM_APDU [13:10:54]CAPDU: 80 13 01 00 [13:10:54]Write to MH i2c: E2 08 00 F8 1D 80 13 01 00 00 00 00 00 92 [13:10:54]Write i2c OK [13:10:54]MH_I2C_Read... [13:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:54]Read from MH i2c: E2 [13:10:54]MH_I2C_Read... [13:10:54]Read from MH i2c: E2 0E 00 [13:10:54]MH_I2C_Read... [13:10:54]Read from MH i2c: E2 0E 00 F8 1D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2C [13:10:54]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:10:54]wFMCommunicate OK [13:10:54]SAM_PROTO_GetShiftState done [13:10:54]FM_GetShiftState done [13:10:54]opened in 1726273389 [13:10:54]opened+sec_in_day 1726359789 [13:10:54]quantity*price = 8000 [13:10:54]sum+1 = 8001 [13:10:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 2.000 * 160.00 = 320.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 100 14.09.2024 13:10 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92449 ФПД: 172778251475459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T131057&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92449&fm=172778251475459&tin=02508201610067®Number=0000000000091423&sum=40000 0 [13:10:55]StoreToDocumentArchive [13:10:55]shift 506 fd 92449 [13:10:55]save to /storage/0506/doc_00092449 [13:10:55]save last doc name /storage/0506/doc_00092449 to /storage/kkm_last_doc_name [13:10:55]save OK [13:10:55]Clear old archive folders... [13:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=377 [13:10:55]tlvbuf is 0102BC00 [13:10:55]SAM_PROTO_ClearQueue [13:10:55]wFMCommunicate request_size=4 [13:10:55]MH_SAM_APDU [13:10:55]CAPDU: 80 09 00 00 [13:10:55]Write to MH i2c: E2 08 00 05 1E 80 09 00 00 00 00 00 00 95 [13:10:55]Write i2c OK [13:10:55]MH_I2C_Read... [13:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:55]Read from MH i2c: E2 [13:10:55]MH_I2C_Read... [13:10:55]Read from MH i2c: E2 03 00 [13:10:55]MH_I2C_Read... [13:10:55]Read from MH i2c: E2 03 00 05 1E 00 90 00 97 [13:10:55]RAPDU: 90 00 [13:10:55]wFMCommunicate OK [13:10:55]SAM_PROTO_ClearQueue done [13:10:55]KKMCreateOFDPacket [13:10:55]OFDProtocolAddRootSTLVToBuf [13:10:55]FM_MakeSignedData [13:10:55]FM_MakeSignedData [13:10:55]SAM_PROTO_SignData [13:10:55]wFMCommunicate request_size=4 [13:10:55]MH_SAM_APDU [13:10:55]CAPDU: 80 0D 01 02 [13:10:55]Write to MH i2c: E2 08 00 06 1E 80 0D 01 02 00 00 00 00 9D [13:10:55]Write i2c OK [13:10:55]MH_I2C_Read... [13:10:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:55]Read from MH i2c: E2 [13:10:55]MH_I2C_Read... [13:10:55]Read from MH i2c: E2 03 00 [13:10:55]MH_I2C_Read... [13:10:55]Read from MH i2c: E2 03 00 06 1E 00 90 00 98 [13:10:55]RAPDU: 90 00 [13:10:55]wFMCommunicate OK [13:10:55]wFMCommunicate request_size=255 [13:10:55]MH_SAM_APDU [13:10:55]CAPDU: 80 0D 02 02 FA 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE [13:10:55]Write to MH i2c: E2 02 01 07 1E 80 0D 02 02 FA 00 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 00 00 C0 [13:10:55]Write i2c OK [13:10:55]MH_I2C_Read... [13:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:56]Read from MH i2c: E2 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: E2 03 00 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: E2 03 00 07 1E 00 90 00 99 [13:10:56]RAPDU: 90 00 [13:10:56]wFMCommunicate OK [13:10:56]wFMCommunicate request_size=136 [13:10:56]MH_SAM_APDU [13:10:56]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 61 8B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 21 69 01 00 35 04 06 00 9D 24 12 4D DA 03 [13:10:56]Write to MH i2c: E2 8B 00 08 1E 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 61 8B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 21 69 01 00 35 04 06 00 9D 24 12 4D DA 03 00 00 85 [13:10:56]Write i2c OK [13:10:56]MH_I2C_Read... [13:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:56]Read from MH i2c: E2 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: E2 03 00 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: E2 03 00 08 1E 00 90 00 9A [13:10:56]RAPDU: 90 00 [13:10:56]wFMCommunicate OK [13:10:56]wFMCommunicate request_size=4 [13:10:56]MH_SAM_APDU [13:10:56]CAPDU: 80 0D 03 02 [13:10:56]Write to MH i2c: E2 08 00 09 1E 80 0D 03 02 00 00 00 00 A2 [13:10:56]Write i2c OK [13:10:56]MH_I2C_Read... [13:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:56]Read from MH i2c: E2 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: E2 0B 00 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: E2 0B 00 09 1E 00 09 C9 8C 1A B9 27 16 38 90 00 49 [13:10:56]RAPDU: 09 C9 8C 1A B9 27 16 38 90 00 [13:10:56]wFMCommunicate OK [13:10:56]SAM_PROTO_SignData done [13:10:56]FM_MakeSignedData done [13:10:56]CreateOFDProtocolMessage [13:10:56]wFMCommunicate request_size=4 [13:10:56]MH_SAM_APDU [13:10:56]CAPDU: 80 11 00 00 [13:10:56]Write to MH i2c: E2 08 00 0A 1E 80 11 00 00 00 00 00 00 A2 [13:10:56]Write i2c OK [13:10:56]MH_I2C_Read... [13:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:56]Read from MH i2c: E2 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: E2 17 00 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: E2 17 00 0A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F9 [13:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:10:56]wFMCommunicate OK [13:10:56]CreateOFDProtocolMessage done [13:10:56]OFDSenderStorePacket 92449 [13:10:56]StoreOFDPacket docnum=92449 [13:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 39 C0 85 01 11 F7 5A 03 01 00 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 61 8B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 21 69 01 00 35 04 06 00 9D 24 12 4D DA 03 09 C9 8C 1A B9 27 16 38 [13:10:56]CheckFolder [13:10:56]dirname=/storage/ofd_packets [13:10:56]CheckFolder done [13:10:56]ProducePacketName [13:10:56]name=ofd_packets/00092449 [13:10:56]NVStorageSaveData ofd_packets/00092449 [13:10:56]File name is /storage/ofd_packets/00092449 [13:10:56]Write 427 bytes [13:10:56]NVStorageSaveData done [13:10:56]OFDSenderStorePacket done [13:10:56]KKMCreateOFDPacket done [13:10:56]NVStorageSaveData kkm_last_timestamp [13:10:56]File name is /storage/kkm_last_timestamp [13:10:56]Write 4 bytes [13:10:56]NVStorageSaveData done [13:10:56]ExternCall_PrintAddStr [13:10:56]wPrintStart [13:10:56]Write to MH i2c: 01 00 00 0B 1E 29 [13:10:56]Write i2c OK [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: 01 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: 01 07 00 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: 01 07 00 0B 1E 00 00 00 00 00 FF 0F 3E [13:10:56]RasterBufferAndPrint [13:10:56]line Счет N : (3)127358 [13:10:56]line ИНН: 02508201610067 [13:10:56]line Контрольно-Кассовый Чек [13:10:56]line ПРОДАЖА [13:10:56]line Товар: 4700000160211 [13:10:56]line Вода Легенда 0,5л [13:10:56]line 2.000 * 40.00 [13:10:56]line = 80.00 [13:10:56]line НДС 12% НСП 1% [13:10:56]line > о реализуемом товаре [13:10:56]line Товар: 4860019001346 [13:10:56]line Вода Боржоми 0,5л ст [13:10:56]line 2.000 * 160.00 [13:10:56]line = 320.00 [13:10:56]line НДС 12% НСП 1% [13:10:56]line > о реализуемом товаре [13:10:56]line ИТОГО: 400.00 [13:10:56]line НСП 1% : 3.54 [13:10:56]line НДС 12% : 42.48 [13:10:56]line Наличными: 400.00 [13:10:56]line Безнал.: 0.00 [13:10:56]line Место: АЗС № 5 "Партнер Нефть" [13:10:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:10:56]line СНО: Общий режим [13:10:56]line Чек 100 14.09.2024 13:10 [13:10:56]line Смена: 506 ФФД: 1.0 [13:10:56]line ЗНМ: 03000000022 [13:10:56]line РНМ: 0000000000091423 [13:10:56]line Версия ККМ: 001 [13:10:56]line ФМ: 0000000000874692 [13:10:56]line ФД: 92449 [13:10:56]line ФПД: 172778251475459 [13:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T131057&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92449&fm=172778251475459&tin=02508201610067®Number=0000000000091423&sum=40000 [13:10:56]line 0 [13:10:56]OFD Sender: Processing packet 92449 [packets to send 63, broken 62] [13:10:56]ProducePacketName [13:10:56]name=ofd_packets/00092449 [13:10:56]OFD Sender: To server: pG, [13:10:56]CommunicateWithHost lk.salyk.kg:30040 [13:10:56]ConnectInit lk.salyk.kg [13:10:56]written 0, free lines is 4095 [13:10:56]Connected sock=10 [13:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8D 01 00 00 39 C0 85 01 11 F7 5A 03 01 00 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 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 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 61 8B E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 21 69 01 00 35 04 06 00 9D 24 12 4D DA 03 09 C9 8C 1A B9 27 16 38 [13:10:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 11 8E 47 00 F1 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 21 69 01 00 F4 03 04 00 DD 33 E5 66 B6 04 01 00 00 E6 01 86 B2 CC 97 DB FA [13:10:56]CommunicateWithHost err = 0 [13:10:56]CheckOFDResponse [13:10:56]1017 (14) - 77093643461234 [13:10:56]1041 (16) - 0000000000874692 [13:10:56]1040 (4) - 92449 [13:10:56]1012 (4) - 14.09.2024 06:57 [13:10:56]1206 (1) - 0 [13:10:56]OFD Sender: Remove packet 92449 [13:10:56]ProducePacketName [13:10:56]name=ofd_packets/00092449 [13:10:56]NVStorageDeleteData [13:10:57]Write to MH i2c: 01 00 00 39 1E 57 [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: 01 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: 01 07 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: 01 07 00 39 1E 00 00 00 00 00 D8 0C 42 [13:10:57]RasterBufferAndPrint [13:10:57]line [13:10:57]line [13:10:57]line [13:10:57]line [13:10:57]line [13:10:57]written 0, free lines is 3294 [13:10:57]MH_Cut [13:10:57]Write to MH i2c: D1 01 00 40 1E 01 30 [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: D1 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: D1 01 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: D1 01 00 40 1E 00 2F [13:10:57]Write to MH i2c: 01 00 00 41 1E 5F [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]OFD Sender: No OFD packet to send [13:10:57]*** Cut start [13:10:57]*** Purtial cut [13:10:57]*** Stage 1: CUTSNS_PIN = 1 [13:10:59]Read from MH i2c: 01 [13:10:59]MH_I2C_Read... [13:10:59]*** Stop cut motor [13:10:59]*** Cut end [13:10:59]Read from MH i2c: 01 07 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 41 1E 00 00 00 00 00 FF 0F 74 [13:10:59]process_action close_receipt done [13:10:59]requested_data is exist [13:10:59]produce_requested_data [13:10:59]requested_item fm.sn is exist - process it [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 11 00 00 [13:10:59]Write to MH i2c: E2 08 00 42 1E 80 11 00 00 00 00 00 00 DA [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 17 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 17 00 42 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 31 [13:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:10:59]wFMCommunicate OK [13:10:59]requested_item fd.num is exist - process it [13:10:59]SAM_PROTO_GetFieldsCounters [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 13 00 00 [13:10:59]Write to MH i2c: E2 08 00 43 1E 80 13 00 00 00 00 00 00 DD [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:00]Read from MH i2c: E2 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 62 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 62 00 43 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 21 69 01 00 0E 04 04 00 FA 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 AE [13:11:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 21 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:00]wFMCommunicate OK [13:11:00]SAM_PROTO_GetFieldsCounters done [13:11:00]requested_item shift.num is exist - process it [13:11:00]requested_item shift.opened is exist - process it [13:11:00]req_shift_opened [13:11:00]FM_GetShiftState [13:11:00]SAM_PROTO_GetShiftState [13:11:00]wFMCommunicate request_size=4 [13:11:00]MH_SAM_APDU [13:11:00]CAPDU: 80 13 01 00 [13:11:00]Write to MH i2c: E2 08 00 44 1E 80 13 01 00 00 00 00 00 DF [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:00]Read from MH i2c: E2 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 0E 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 0E 00 44 1E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 79 [13:11:00]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:11:00]wFMCommunicate OK [13:11:00]SAM_PROTO_GetShiftState done [13:11:00]FM_GetShiftState done [13:11:00]req_shift_opened done [13:11:00]requested_item shift.open_date is exist - process it [13:11:00]req_shift_open_date [13:11:00]req_shift_open_date done [13:11:00]produce_requested_data done [13:11:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92449,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:11:00]process_action_free close_receipt [13:11:00]json_value_free [13:11:00]json_value_free done [13:11:00]process_json_proto returns [13:11:00]Send response to host [13:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92449,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:11:00]free response buf [13:11:00]execute_script done [13:11:00]execute_script returns [13:11:00]free content buf [13:11:00]Sock 9.Close socket [13:11:00]Sock 9.Thread stoped [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:13]accept exits with 8 [13:14:13]New connection [13:14:13]New thread 3066658148 created [13:14:13]Thread 3066801508 joined [13:14:13]Waiting for new connection... [13:14:13] Sock 8.Parse request [13:14:13]Sock 8.Check first char [13:14:13]Sock 8.First char is OK [13:14:13]request: POST /json_proto HTTP/1.0 [13:14:13]Method: POST [13:14:13]URL: /json_proto [13:14:13]Method is POST - this is cgi request [13:14:13]url: /json_proto [13:14:13]query_string will be loaded in cgi processing [13:14:13]execute_cgi json_proto POST (null) [13:14:13]execute_cgi path=json_proto method=POST [13:14:13]POST find Content-Length [13:14:13]Host: 172.17.57.71:8080 [13:14:13]Content-Length: 1147 [13:14:13]Content-Type: application/json [13:14:13] [13:14:13]POST finish read [13:14:13]Found Content-Length = 1147 [13:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127359", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "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 }]} ], "payments": [ { "type": 0, "sum" : 361.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:13]execute_script... [13:14: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)127359", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "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 }]} ], "payments": [ { "type": 0, "sum" : 361.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:13]POST & json_proto [13:14:13]process_json_proto [13:14:13]json parsed OK: [13:14:13]protocol is kg_v1.0 [13:14:13]action value=close_receipt [13:14:13]process_action close_receipt [13:14:13]cmd_close_receipt [13:14:13]MH_GetDate [13:14:13]Write to MH i2c: F0 00 00 45 1E 52 [13:14:13]Write i2c OK [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: F0 [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: F0 09 00 [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: F0 09 00 45 1E 00 28 8C E5 66 33 3A A4 66 D1 [13:14:13]GetLastDocTimeStamp 1726319457 [13:14:13]current date 1726319656 [13:14:13]FM_GetShiftState [13:14:13]SAM_PROTO_GetShiftState [13:14:13]wFMCommunicate request_size=4 [13:14:13]MH_SAM_APDU [13:14:13]CAPDU: 80 13 01 00 [13:14:13]Write to MH i2c: E2 08 00 46 1E 80 13 01 00 00 00 00 00 E1 [13:14:13]Write i2c OK [13:14:13]MH_I2C_Read... [13:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:13]Read from MH i2c: E2 [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: E2 0E 00 [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: E2 0E 00 46 1E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7B [13:14:13]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:14:13]wFMCommunicate OK [13:14:13]SAM_PROTO_GetShiftState done [13:14:13]FM_GetShiftState done [13:14:13]opened in 1726273389 [13:14:13]opened+sec_in_day 1726359789 [13:14:13]quantity*price = 17500 [13:14:13]sum+1 = 17501 [13:14:13]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 6.000 * 7.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 361.00 НСП 1% : 3.19 НДС 12% : 38.33 Наличными: 361.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 101 14.09.2024 13:14 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92450 ФПД: 276116021117857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T131416&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92450&fm=276116021117857&tin=02508201610067®Number=0000000000091423&sum=36100 0 [13:14:14]StoreToDocumentArchive [13:14:14]shift 506 fd 92450 [13:14:14]save to /storage/0506/doc_00092450 [13:14:14]save last doc name /storage/0506/doc_00092450 to /storage/kkm_last_doc_name [13:14:14]save OK [13:14:14]Clear old archive folders... [13:14:14]ProcessDocumentItem done err = 0, tmpTLVsize=490 [13:14:14]tlvbuf is 0102B780 [13:14:14]SAM_PROTO_ClearQueue [13:14:14]wFMCommunicate request_size=4 [13:14:14]MH_SAM_APDU [13:14:14]CAPDU: 80 09 00 00 [13:14:14]Write to MH i2c: E2 08 00 53 1E 80 09 00 00 00 00 00 00 E3 [13:14:14]Write i2c OK [13:14:14]MH_I2C_Read... [13:14:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:14]Read from MH i2c: E2 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 03 00 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 03 00 53 1E 00 90 00 E5 [13:14:14]RAPDU: 90 00 [13:14:14]wFMCommunicate OK [13:14:14]SAM_PROTO_ClearQueue done [13:14:14]KKMCreateOFDPacket [13:14:14]OFDProtocolAddRootSTLVToBuf [13:14:14]FM_MakeSignedData [13:14:14]FM_MakeSignedData [13:14:14]SAM_PROTO_SignData [13:14:14]wFMCommunicate request_size=4 [13:14:14]MH_SAM_APDU [13:14:14]CAPDU: 80 0D 01 02 [13:14:14]Write to MH i2c: E2 08 00 54 1E 80 0D 01 02 00 00 00 00 EB [13:14:14]Write i2c OK [13:14:14]MH_I2C_Read... [13:14:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:14]Read from MH i2c: E2 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 03 00 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 03 00 54 1E 00 90 00 E6 [13:14:14]RAPDU: 90 00 [13:14:14]wFMCommunicate OK [13:14:14]wFMCommunicate request_size=255 [13:14:14]MH_SAM_APDU [13:14:14]CAPDU: 80 0D 02 02 FA 03 00 EA 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 [13:14:14]Write to MH i2c: E2 02 01 55 1E 80 0D 02 02 FA 00 03 00 EA 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 31 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [13:14:15]RAPDU: 90 00 [13:14:15]wFMCommunicate OK [13:14:15]wFMCommunicate request_size=249 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 0D 02 02 F4 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 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 28 8C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 69 01 00 35 04 06 00 FB 20 45 5B 03 A1 [13:14:15]Write to MH i2c: E2 FC 00 56 1E 80 0D 02 02 F4 00 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 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 28 8C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 69 01 00 35 04 06 00 FB 20 45 5B 03 A1 00 00 B8 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 56 1E 00 90 00 E8 [13:14:15]RAPDU: 90 00 [13:14:15]wFMCommunicate OK [13:14:15]wFMCommunicate request_size=4 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 0D 03 02 [13:14:15]Write to MH i2c: E2 08 00 57 1E 80 0D 03 02 00 00 00 00 F0 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 0B 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 0B 00 57 1E 00 04 B6 F0 9E 6E 77 79 48 90 00 DF [13:14:15]RAPDU: 04 B6 F0 9E 6E 77 79 48 90 00 [13:14:15]wFMCommunicate OK [13:14:15]SAM_PROTO_SignData done [13:14:15]FM_MakeSignedData done [13:14:15]CreateOFDProtocolMessage [13:14:15]wFMCommunicate request_size=4 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 11 00 00 [13:14:15]Write to MH i2c: E2 08 00 58 1E 80 11 00 00 00 00 00 00 F0 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 17 00 [13:14:15]MH_I2C_Read... [13:14:15]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 34 36 39 32 90 00 47 [13:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:14:15]wFMCommunicate OK [13:14:15]CreateOFDProtocolMessage done [13:14:15]OFDSenderStorePacket 92450 [13:14:15]StoreOFDPacket docnum=92450 [13:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 FE 01 00 00 A7 42 F6 01 5C 33 5A 03 01 00 03 00 EA 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 28 8C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 69 01 00 35 04 06 00 FB 20 45 5B 03 A1 04 B6 F0 9E 6E 77 79 48 [13:14:15]CheckFolder [13:14:15]dirname=/storage/ofd_packets [13:14:15]CheckFolder done [13:14:15]ProducePacketName [13:14:15]name=ofd_packets/00092450 [13:14:15]NVStorageSaveData ofd_packets/00092450 [13:14:15]File name is /storage/ofd_packets/00092450 [13:14:15]Write 540 bytes [13:14:15]NVStorageSaveData done [13:14:15]OFDSenderStorePacket done [13:14:15]KKMCreateOFDPacket done [13:14:15]NVStorageSaveData kkm_last_timestamp [13:14:15]File name is /storage/kkm_last_timestamp [13:14:15]Write 4 bytes [13:14:15]NVStorageSaveData done [13:14:15]ExternCall_PrintAddStr [13:14:15]wPrintStart [13:14:15]Write to MH i2c: 01 00 00 59 1E 77 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: 01 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: 01 07 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: 01 07 00 59 1E 00 00 00 00 00 FF 0F 8C [13:14:15]RasterBufferAndPrint [13:14:15]line Счет N : (3)127359 [13:14:15]line ИНН: 02508201610067 [13:14:15]line Контрольно-Кассовый Чек [13:14:15]line ПРОДАЖА [13:14:15]line Товар: 4870002329487 [13:14:15]line Напиток Pepsi 1,5л [13:14:15]line 1.000 * 175.00 [13:14:15]line = 175.00 [13:14:15]line НДС 12% НСП 1% [13:14:15]line > о реализуемом товаре [13:14:15]line Товар: 48743587 [13:14:15]line Сигареты Winston XStyle Silver [13:14:15]line 1.000 * 144.00 [13:14:15]line = 144.00 [13:14:15]line НДС 12% НСП 1% [13:14:15]line > о реализуемом товаре [13:14:15]line Товар: 2000053020015 [13:14:15]line Бумажные стаканы 250мл 1шт [13:14:15]line 6.000 * 7.00 [13:14:15]line = 42.00 [13:14:15]line НДС 12% НСП 1% [13:14:15]line > о реализуемом товаре [13:14:15]line ИТОГО: 361.00 [13:14:15]line НСП 1% : 3.19 [13:14:15]line НДС 12% : 38.33 [13:14:15]line Наличными: 361.00 [13:14:15]line Безнал.: 0.00 [13:14:15]line Место: АЗС № 5 "Партнер Нефть" [13:14:15]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:14:15]line СНО: Общий режим [13:14:15]line Чек 101 14.09.2024 13:14 [13:14:15]line Смена: 506 ФФД: 1.0 [13:14:15]line ЗНМ: 03000000022 [13:14:15]line РНМ: 0000000000091423 [13:14:15]line Версия ККМ: 001 [13:14:15]line ФМ: 0000000000874692 [13:14:15]line ФД: 92450 [13:14:15]line ФПД: 276116021117857 [13:14:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T131416&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92450&fm=276116021117857&tin=02508201610067®Number=0000000000091423&sum=36100 [13:14:15]line 0 [13:14:15]OFD Sender: Processing packet 92450 [packets to send 63, broken 62] [13:14:15]ProducePacketName [13:14:15]name=ofd_packets/00092450 [13:14:15]OFD Sender: To server: pG, [13:14:15]CommunicateWithHost lk.salyk.kg:30040 [13:14:15]ConnectInit lk.salyk.kg [13:14:15]written 0, free lines is 4095 [13:14:15]Connected sock=10 [13:14:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 FE 01 00 00 A7 42 F6 01 5C 33 5A 03 01 00 03 00 EA 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 28 8C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 22 69 01 00 35 04 06 00 FB 20 45 5B 03 A1 04 B6 F0 9E 6E 77 79 48 [13:14:16]Write to MH i2c: 01 00 00 8F 1E AD [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 07 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 07 00 8F 1E 00 00 00 00 00 66 0C 26 [13:14:16]RasterBufferAndPrint [13:14:16]line [13:14:16]line [13:14:16]line [13:14:16]line [13:14:16]line [13:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 93 BD 47 00 A4 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 34 36 39 32 10 04 04 00 22 69 01 00 F4 03 04 00 A4 34 E5 66 B6 04 01 00 00 ED AB 50 43 DE 56 3C CB [13:14:16]CommunicateWithHost err = 0 [13:14:16]CheckOFDResponse [13:14:16]1017 (14) - 77093643461234 [13:14:16]1041 (16) - 0000000000874692 [13:14:16]1040 (4) - 92450 [13:14:16]1012 (4) - 14.09.2024 07:00 [13:14:16]1206 (1) - 0 [13:14:16]OFD Sender: Remove packet 92450 [13:14:16]ProducePacketName [13:14:16]name=ofd_packets/00092450 [13:14:16]NVStorageDeleteData [13:14:16]written 0, free lines is 3207 [13:14:16]MH_Cut [13:14:16]Write to MH i2c: D1 01 00 96 1E 01 86 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: D1 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: D1 01 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: D1 01 00 96 1E 00 85 [13:14:16]Write to MH i2c: 01 00 00 97 1E B5 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:17]OFD Sender: No OFD packet to send [13:14:17]*** Cut start [13:14:17]*** Purtial cut [13:14:17]*** Stage 1: CUTSNS_PIN = 1 [13:14:19]Read from MH i2c: 01 [13:14:19]MH_I2C_Read... [13:14:19]*** Stop cut motor [13:14:19]*** Cut end [13:14:19]Read from MH i2c: 01 07 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: 01 07 00 97 1E 00 00 00 00 00 FF 0F CA [13:14:19]process_action close_receipt done [13:14:19]requested_data is exist [13:14:19]produce_requested_data [13:14:19]requested_item fm.sn is exist - process it [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 11 00 00 [13:14:19]Write to MH i2c: E2 08 00 98 1E 80 11 00 00 00 00 00 00 30 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 17 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 17 00 98 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 87 [13:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:14:19]wFMCommunicate OK [13:14:19]requested_item fd.num is exist - process it [13:14:19]SAM_PROTO_GetFieldsCounters [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 13 00 00 [13:14:19]Write to MH i2c: E2 08 00 99 1E 80 13 00 00 00 00 00 00 33 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 62 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 62 00 99 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 22 69 01 00 0E 04 04 00 FA 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 08 [13:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 22 69 01 00 0E 04 04 00 FA 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:14:19]wFMCommunicate OK [13:14:19]SAM_PROTO_GetFieldsCounters done [13:14:19]requested_item shift.num is exist - process it [13:14:19]requested_item shift.opened is exist - process it [13:14:19]req_shift_opened [13:14:19]FM_GetShiftState [13:14:19]SAM_PROTO_GetShiftState [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 13 01 00 [13:14:19]Write to MH i2c: E2 08 00 9A 1E 80 13 01 00 00 00 00 00 35 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 0E 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 0E 00 9A 1E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 CF [13:14:19]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:14:19]wFMCommunicate OK [13:14:19]SAM_PROTO_GetShiftState done [13:14:19]FM_GetShiftState done [13:14:19]req_shift_opened done [13:14:19]requested_item shift.open_date is exist - process it [13:14:19]req_shift_open_date [13:14:19]req_shift_open_date done [13:14:19]produce_requested_data done [13:14:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92450,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:14:19]process_action_free close_receipt [13:14:19]json_value_free [13:14:19]json_value_free done [13:14:19]process_json_proto returns [13:14:19]Send response to host [13:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92450,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:14:19]free response buf [13:14:19]execute_script done [13:14:19]execute_script returns [13:14:19]free content buf [13:14:19]Sock 8.Close socket [13:14:19]Sock 8.Thread stoped [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:51]accept exits with 9 [13:25:51]New connection [13:25:51]New thread 3066801508 created [13:25:51]Thread 3066658148 joined [13:25:51]Waiting for new connection... [13:25:51] Sock 9.Parse request [13:25:51]Sock 9.Check first char [13:25:51]Sock 9.First char is OK [13:25:51]request: POST /json_proto HTTP/1.0 [13:25:51]Method: POST [13:25:51]URL: /json_proto [13:25:51]Method is POST - this is cgi request [13:25:51]url: /json_proto [13:25:51]query_string will be loaded in cgi processing [13:25:51]execute_cgi json_proto POST (null) [13:25:51]execute_cgi path=json_proto method=POST [13:25:51]POST find Content-Length [13:25:51]Host: 172.17.57.71:8080 [13:25:51]Content-Length: 632 [13:25:51]Content-Type: application/json [13:25:51] [13:25:51]POST finish read [13:25:51]Found Content-Length = 632 [13:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127360", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:51]execute_script... [13:25:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127360", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:51]POST & json_proto [13:25:51]process_json_proto [13:25:51]json parsed OK: [13:25:51]protocol is kg_v1.0 [13:25:51]action value=close_receipt [13:25:51]process_action close_receipt [13:25:51]cmd_close_receipt [13:25:51]MH_GetDate [13:25:51]Write to MH i2c: F0 00 00 9B 1E A8 [13:25:51]Write i2c OK [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: F0 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: F0 09 00 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: F0 09 00 9B 1E 00 E2 8E E5 66 33 3A A4 66 E3 [13:25:51]GetLastDocTimeStamp 1726319656 [13:25:51]current date 1726320354 [13:25:51]FM_GetShiftState [13:25:51]SAM_PROTO_GetShiftState [13:25:51]wFMCommunicate request_size=4 [13:25:51]MH_SAM_APDU [13:25:51]CAPDU: 80 13 01 00 [13:25:51]Write to MH i2c: E2 08 00 9C 1E 80 13 01 00 00 00 00 00 37 [13:25:51]Write i2c OK [13:25:51]MH_I2C_Read... [13:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:51]Read from MH i2c: E2 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 0E 00 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 0E 00 9C 1E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D1 [13:25:51]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:25:51]wFMCommunicate OK [13:25:51]SAM_PROTO_GetShiftState done [13:25:51]FM_GetShiftState done [13:25:51]opened in 1726273389 [13:25:51]opened+sec_in_day 1726359789 [13:25:51]quantity*price = 4000 [13:25:51]sum+1 = 4001 [13:25:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 102 14.09.2024 13:25 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92451 ФПД: 268558413360711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T132554&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92451&fm=268558413360711&tin=02508201610067®Number=0000000000091423&sum=4000 0 [13:25:52]StoreToDocumentArchive [13:25:52]shift 506 fd 92451 [13:25:52]save to /storage/0506/doc_00092451 [13:25:52]save last doc name /storage/0506/doc_00092451 to /storage/kkm_last_doc_name [13:25:52]save OK [13:25:52]Clear old archive folders... [13:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:25:52]tlvbuf is 00FCB890 [13:25:52]SAM_PROTO_ClearQueue [13:25:52]wFMCommunicate request_size=4 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 09 00 00 [13:25:52]Write to MH i2c: E2 08 00 A9 1E 80 09 00 00 00 00 00 00 39 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 03 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [13:25:52]RAPDU: 90 00 [13:25:52]wFMCommunicate OK [13:25:52]SAM_PROTO_ClearQueue done [13:25:52]KKMCreateOFDPacket [13:25:52]OFDProtocolAddRootSTLVToBuf [13:25:52]FM_MakeSignedData [13:25:52]FM_MakeSignedData [13:25:52]SAM_PROTO_SignData [13:25:52]wFMCommunicate request_size=4 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 0D 01 02 [13:25:52]Write to MH i2c: E2 08 00 AA 1E 80 0D 01 02 00 00 00 00 41 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 03 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 03 00 AA 1E 00 90 00 3C [13:25:52]RAPDU: 90 00 [13:25:52]wFMCommunicate OK [13:25:52]wFMCommunicate request_size=255 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E2 8E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:25:52]Write to MH i2c: E2 02 01 AB 1E 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E2 8E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 3C [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]OFD Sender: No OFD packet to send [13:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 03 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 03 00 AB 1E 00 90 00 3D [13:25:52]RAPDU: 90 00 [13:25:52]wFMCommunicate OK [13:25:52]wFMCommunicate request_size=30 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 23 69 01 00 35 04 06 00 F4 40 A0 D4 6E 47 [13:25:52]Write to MH i2c: E2 21 00 AC 1E 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 23 69 01 00 35 04 06 00 F4 40 A0 D4 6E 47 00 00 2B [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 03 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [13:25:52]RAPDU: 90 00 [13:25:52]wFMCommunicate OK [13:25:52]wFMCommunicate request_size=4 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 0D 03 02 [13:25:52]Write to MH i2c: E2 08 00 AD 1E 80 0D 03 02 00 00 00 00 46 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 0B 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 0B 00 AD 1E 00 35 46 D9 4A 35 BC 57 7F 90 00 AC [13:25:52]RAPDU: 35 46 D9 4A 35 BC 57 7F 90 00 [13:25:52]wFMCommunicate OK [13:25:52]SAM_PROTO_SignData done [13:25:52]FM_MakeSignedData done [13:25:52]CreateOFDProtocolMessage [13:25:52]wFMCommunicate request_size=4 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 11 00 00 [13:25:52]Write to MH i2c: E2 08 00 AE 1E 80 11 00 00 00 00 00 00 46 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 17 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 17 00 AE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9D [13:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:25:52]wFMCommunicate OK [13:25:52]CreateOFDProtocolMessage done [13:25:52]OFDSenderStorePacket 92451 [13:25:52]StoreOFDPacket docnum=92451 [13:25:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 01 1E 1B 01 40 86 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E2 8E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 23 69 01 00 35 04 06 00 F4 40 A0 D4 6E 47 35 46 D9 4A 35 BC 57 7F [13:25:52]CheckFolder [13:25:52]dirname=/storage/ofd_packets [13:25:52]CheckFolder done [13:25:52]ProducePacketName [13:25:52]name=ofd_packets/00092451 [13:25:52]NVStorageSaveData ofd_packets/00092451 [13:25:52]File name is /storage/ofd_packets/00092451 [13:25:52]Write 321 bytes [13:25:52]NVStorageSaveData done [13:25:52]OFDSenderStorePacket done [13:25:52]KKMCreateOFDPacket done [13:25:52]NVStorageSaveData kkm_last_timestamp [13:25:52]File name is /storage/kkm_last_timestamp [13:25:52]Write 4 bytes [13:25:52]NVStorageSaveData done [13:25:52]ExternCall_PrintAddStr [13:25:52]wPrintStart [13:25:52]Write to MH i2c: 01 00 00 AF 1E CD [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 07 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 FF 0F E2 [13:25:52]RasterBufferAndPrint [13:25:52]line Счет N : (3)127360 [13:25:52]line ИНН: 02508201610067 [13:25:52]line Контрольно-Кассовый Чек [13:25:52]line ПРОДАЖА [13:25:52]line Товар: 4700000160211 [13:25:52]line Вода Легенда 0,5л [13:25:52]line 1.000 * 40.00 [13:25:52]line = 40.00 [13:25:52]line НДС 12% НСП 1% [13:25:52]line > о реализуемом товаре [13:25:52]line ИТОГО: 40.00 [13:25:52]line НСП 1% : 0.35 [13:25:52]line НДС 12% : 4.25 [13:25:52]line Наличными: 40.00 [13:25:52]line Безнал.: 0.00 [13:25:52]line Место: АЗС № 5 "Партнер Нефть" [13:25:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:25:52]line СНО: Общий режим [13:25:52]line Чек 102 14.09.2024 13:25 [13:25:52]line Смена: 506 ФФД: 1.0 [13:25:52]line ЗНМ: 03000000022 [13:25:52]line РНМ: 0000000000091423 [13:25:52]line Версия ККМ: 001 [13:25:52]line ФМ: 0000000000874692 [13:25:52]line ФД: 92451 [13:25:52]line ФПД: 268558413360711 [13:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T132554&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92451&fm=268558413360711&tin=02508201610067®Number=0000000000091423&sum=4000 [13:25:53]line 0 [13:25:53]OFD Sender: Processing packet 92451 [packets to send 63, broken 62] [13:25:53]ProducePacketName [13:25:53]name=ofd_packets/00092451 [13:25:53]OFD Sender: To server: pG, [13:25:53]CommunicateWithHost lk.salyk.kg:30040 [13:25:53]ConnectInit lk.salyk.kg [13:25:53]written 0, free lines is 4095 [13:25:53]Connected sock=10 [13:25:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 01 1E 1B 01 40 86 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E2 8E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 23 69 01 00 35 04 06 00 F4 40 A0 D4 6E 47 35 46 D9 4A 35 BC 57 7F [13:25:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 8C 9E 47 00 F9 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 23 69 01 00 F4 03 04 00 5D 37 E5 66 B6 04 01 00 00 A8 71 A7 EB D5 85 47 7B [13:25:53]CommunicateWithHost err = 0 [13:25:53]CheckOFDResponse [13:25:53]1017 (14) - 77093643461234 [13:25:53]1041 (16) - 0000000000874692 [13:25:53]1040 (4) - 92451 [13:25:53]1012 (4) - 14.09.2024 07:12 [13:25:53]1206 (1) - 0 [13:25:53]OFD Sender: Remove packet 92451 [13:25:53]ProducePacketName [13:25:53]name=ofd_packets/00092451 [13:25:53]NVStorageDeleteData [13:25:53]Write to MH i2c: 01 00 00 D7 1E F5 [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 07 00 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: 01 07 00 D7 1E 00 00 00 00 00 12 0D 1B [13:25:53]RasterBufferAndPrint [13:25:53]line [13:25:53]line [13:25:53]line [13:25:53]line [13:25:53]line [13:25:53]written 0, free lines is 3351 [13:25:53]MH_Cut [13:25:53]Write to MH i2c: D1 01 00 DE 1E 01 CE [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: D1 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: D1 01 00 [13:25:53]MH_I2C_Read... [13:25:53]Read from MH i2c: D1 01 00 DE 1E 00 CD [13:25:53]Write to MH i2c: 01 00 00 DF 1E FD [13:25:53]Write i2c OK [13:25:53]MH_I2C_Read... [13:25:54]OFD Sender: No OFD packet to send [13:25:54]*** Cut start [13:25:54]*** Purtial cut [13:25:54]*** Stage 1: CUTSNS_PIN = 1 [13:25:56]Read from MH i2c: 01 [13:25:56]MH_I2C_Read... [13:25:56]*** Stop cut motor [13:25:56]*** Cut end [13:25:56]Read from MH i2c: 01 07 00 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: 01 07 00 DF 1E 00 00 00 00 00 FF 0F 12 [13:25:56]process_action close_receipt done [13:25:56]requested_data is exist [13:25:56]produce_requested_data [13:25:56]requested_item fm.sn is exist - process it [13:25:56]wFMCommunicate request_size=4 [13:25:56]MH_SAM_APDU [13:25:56]CAPDU: 80 11 00 00 [13:25:56]Write to MH i2c: E2 08 00 E0 1E 80 11 00 00 00 00 00 00 78 [13:25:56]Write i2c OK [13:25:56]MH_I2C_Read... [13:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:56]Read from MH i2c: E2 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: E2 17 00 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: E2 17 00 E0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CF [13:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:25:56]wFMCommunicate OK [13:25:56]requested_item fd.num is exist - process it [13:25:56]SAM_PROTO_GetFieldsCounters [13:25:56]wFMCommunicate request_size=4 [13:25:56]MH_SAM_APDU [13:25:56]CAPDU: 80 13 00 00 [13:25:56]Write to MH i2c: E2 08 00 E1 1E 80 13 00 00 00 00 00 00 7B [13:25:56]Write i2c OK [13:25:56]MH_I2C_Read... [13:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:56]Read from MH i2c: E2 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: E2 62 00 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: E2 62 00 E1 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 23 69 01 00 0E 04 04 00 FA 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 54 [13:25:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 23 69 01 00 0E 04 04 00 FA 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:25:56]wFMCommunicate OK [13:25:56]SAM_PROTO_GetFieldsCounters done [13:25:56]requested_item shift.num is exist - process it [13:25:56]requested_item shift.opened is exist - process it [13:25:56]req_shift_opened [13:25:56]FM_GetShiftState [13:25:56]SAM_PROTO_GetShiftState [13:25:56]wFMCommunicate request_size=4 [13:25:56]MH_SAM_APDU [13:25:56]CAPDU: 80 13 01 00 [13:25:56]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [13:25:56]Write i2c OK [13:25:56]MH_I2C_Read... [13:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:56]Read from MH i2c: E2 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: E2 0E 00 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: E2 0E 00 E2 1E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 17 [13:25:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:25:56]wFMCommunicate OK [13:25:56]SAM_PROTO_GetShiftState done [13:25:56]FM_GetShiftState done [13:25:56]req_shift_opened done [13:25:56]requested_item shift.open_date is exist - process it [13:25:56]req_shift_open_date [13:25:56]req_shift_open_date done [13:25:56]produce_requested_data done [13:25:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92451,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:25:56]process_action_free close_receipt [13:25:56]json_value_free [13:25:56]json_value_free done [13:25:56]process_json_proto returns [13:25:56]Send response to host [13:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92451,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:25:56]free response buf [13:25:56]execute_script done [13:25:56]execute_script returns [13:25:56]free content buf [13:25:56]Sock 9.Close socket [13:25:56]Sock 9.Thread stoped [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:32]accept exits with 8 [13:31:32]New connection [13:31:32]New thread 3066658148 created [13:31:32]Thread 3066801508 joined [13:31:32]Waiting for new connection... [13:31:32] Sock 8.Parse request [13:31:32]Sock 8.Check first char [13:31:32]Sock 8.First char is OK [13:31:32]request: POST /json_proto HTTP/1.0 [13:31:32]Method: POST [13:31:32]URL: /json_proto [13:31:32]Method is POST - this is cgi request [13:31:32]url: /json_proto [13:31:32]query_string will be loaded in cgi processing [13:31:32]execute_cgi json_proto POST (null) [13:31:32]execute_cgi path=json_proto method=POST [13:31:32]POST find Content-Length [13:31:32]Host: 172.17.57.71:8080 [13:31:32]Content-Length: 606 [13:31:32]Content-Type: application/json [13:31:32] [13:31:32]POST finish read [13:31:32]Found Content-Length = 606 [13:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127361", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 5.000, "sum" : 275.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:32]execute_script... [13: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)127361", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 5.000, "sum" : 275.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:32]POST & json_proto [13:31:32]process_json_proto [13:31:32]json parsed OK: [13:31:32]protocol is kg_v1.0 [13:31:32]action value=close_receipt [13:31:32]process_action close_receipt [13:31:32]cmd_close_receipt [13:31:32]MH_GetDate [13:31:32]Write to MH i2c: F0 00 00 E3 1E F0 [13:31:32]Write i2c OK [13:31:32]MH_I2C_Read... [13:31:32]Read from MH i2c: F0 [13:31:32]MH_I2C_Read... [13:31:32]Read from MH i2c: F0 09 00 [13:31:32]MH_I2C_Read... [13:31:32]Read from MH i2c: F0 09 00 E3 1E 00 37 90 E5 66 33 3A A4 66 82 [13:31:32]GetLastDocTimeStamp 1726320354 [13:31:32]current date 1726320695 [13:31:32]FM_GetShiftState [13:31:32]SAM_PROTO_GetShiftState [13:31:32]wFMCommunicate request_size=4 [13:31:32]MH_SAM_APDU [13:31:32]CAPDU: 80 13 01 00 [13:31:32]Write to MH i2c: E2 08 00 E4 1E 80 13 01 00 00 00 00 00 7F [13:31:32]Write i2c OK [13:31:32]MH_I2C_Read... [13:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:32]Read from MH i2c: E2 [13:31:32]MH_I2C_Read... [13:31:32]Read from MH i2c: E2 0E 00 [13:31:32]MH_I2C_Read... [13:31:32]Read from MH i2c: E2 0E 00 E4 1E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 19 [13:31:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:31:32]wFMCommunicate OK [13:31:32]SAM_PROTO_GetShiftState done [13:31:32]FM_GetShiftState done [13:31:32]opened in 1726273389 [13:31:32]opened+sec_in_day 1726359789 [13:31:32]quantity*price = 27500 [13:31:32]sum+1 = 27501 [13:31:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.20 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 103 14.09.2024 13:31 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92452 ФПД: 118089248752116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T133135&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92452&fm=118089248752116&tin=02508201610067®Number=0000000000091423&sum=27500 0 [13:31:33]StoreToDocumentArchive [13:31:33]shift 506 fd 92452 [13:31:33]save to /storage/0506/doc_00092452 [13:31:33]save last doc name /storage/0506/doc_00092452 to /storage/kkm_last_doc_name [13:31:33]save OK [13:31:33]Clear old archive folders... [13:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:31:33]tlvbuf is 00FA2390 [13:31:33]SAM_PROTO_ClearQueue [13:31:33]wFMCommunicate request_size=4 [13:31:33]MH_SAM_APDU [13:31:33]CAPDU: 80 09 00 00 [13:31:33]Write to MH i2c: E2 08 00 F1 1E 80 09 00 00 00 00 00 00 81 [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:33]Read from MH i2c: E2 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 03 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [13:31:33]RAPDU: 90 00 [13:31:33]wFMCommunicate OK [13:31:33]SAM_PROTO_ClearQueue done [13:31:33]KKMCreateOFDPacket [13:31:33]OFDProtocolAddRootSTLVToBuf [13:31:33]FM_MakeSignedData [13:31:33]FM_MakeSignedData [13:31:33]SAM_PROTO_SignData [13:31:33]wFMCommunicate request_size=4 [13:31:33]MH_SAM_APDU [13:31:33]CAPDU: 80 0D 01 02 [13:31:33]Write to MH i2c: E2 08 00 F2 1E 80 0D 01 02 00 00 00 00 89 [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:33]Read from MH i2c: E2 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 03 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [13:31:33]RAPDU: 90 00 [13:31:33]wFMCommunicate OK [13:31:33]wFMCommunicate request_size=255 [13:31:33]MH_SAM_APDU [13:31:33]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 88 13 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 6C 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 37 90 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [13:31:33]Write to MH i2c: E2 02 01 F3 1E 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 88 13 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 6C 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 37 90 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 BE [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:33]Read from MH i2c: E2 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 03 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [13:31:33]RAPDU: 90 00 [13:31:33]wFMCommunicate OK [13:31:33]wFMCommunicate request_size=34 [13:31:33]MH_SAM_APDU [13:31:33]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 69 01 00 35 04 06 00 6B 66 CB B9 41 F4 [13:31:33]Write to MH i2c: E2 25 00 F4 1E 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 69 01 00 35 04 06 00 6B 66 CB B9 41 F4 00 00 69 [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:33]Read from MH i2c: E2 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 03 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 03 00 F4 1E 00 90 00 86 [13:31:33]RAPDU: 90 00 [13:31:33]wFMCommunicate OK [13:31:33]wFMCommunicate request_size=4 [13:31:33]MH_SAM_APDU [13:31:33]CAPDU: 80 0D 03 02 [13:31:33]Write to MH i2c: E2 08 00 F5 1E 80 0D 03 02 00 00 00 00 8E [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:33]Read from MH i2c: E2 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 0B 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 0B 00 F5 1E 00 3F 31 C6 8E AC D7 31 B9 90 00 C0 [13:31:33]RAPDU: 3F 31 C6 8E AC D7 31 B9 90 00 [13:31:33]wFMCommunicate OK [13:31:33]SAM_PROTO_SignData done [13:31:33]FM_MakeSignedData done [13:31:33]CreateOFDProtocolMessage [13:31:33]wFMCommunicate request_size=4 [13:31:33]MH_SAM_APDU [13:31:33]CAPDU: 80 11 00 00 [13:31:33]Write to MH i2c: E2 08 00 F6 1E 80 11 00 00 00 00 00 00 8E [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:33]Read from MH i2c: E2 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 17 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 17 00 F6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E5 [13:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:31:33]wFMCommunicate OK [13:31:33]CreateOFDProtocolMessage done [13:31:33]OFDSenderStorePacket 92452 [13:31:33]StoreOFDPacket docnum=92452 [13:31:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 5A 44 1F 01 A1 96 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 88 13 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 6C 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 37 90 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 69 01 00 35 04 06 00 6B 66 CB B9 41 F4 3F 31 C6 8E AC D7 31 B9 [13:31:33]CheckFolder [13:31:33]dirname=/storage/ofd_packets [13:31:33]CheckFolder done [13:31:33]ProducePacketName [13:31:33]name=ofd_packets/00092452 [13:31:33]NVStorageSaveData ofd_packets/00092452 [13:31:33]File name is /storage/ofd_packets/00092452 [13:31:33]Write 325 bytes [13:31:33]NVStorageSaveData done [13:31:33]OFDSenderStorePacket done [13:31:33]KKMCreateOFDPacket done [13:31:33]NVStorageSaveData kkm_last_timestamp [13:31:33]File name is /storage/kkm_last_timestamp [13:31:33]Write 4 bytes [13:31:33]NVStorageSaveData done [13:31:33]OFD Sender: Processing packet 92452 [packets to send 63, broken 62] [13:31:33]ProducePacketName [13:31:33]name=ofd_packets/00092452 [13:31:33]OFD Sender: To server: pG, [13:31:33]CommunicateWithHost lk.salyk.kg:30040 [13:31:33]ConnectInit lk.salyk.kg [13:31:33]ExternCall_PrintAddStr [13:31:33]wPrintStart [13:31:33]Write to MH i2c: 01 00 00 F7 1E 15 [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: 01 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: 01 07 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: 01 07 00 F7 1E 00 00 00 00 00 FF 0F 2A [13:31:33]RasterBufferAndPrint [13:31:33]line Счет N : (3)127361 [13:31:33]line ИНН: 02508201610067 [13:31:33]line Контрольно-Кассовый Чек [13:31:33]line ПРОДАЖА [13:31:33]line Товар: 4870112003925 [13:31:33]line Конд ULKER-Albeni 40gr (6*24) [13:31:33]line 5.000 * 55.00 [13:31:33]line = 275.00 [13:31:33]line НДС 12% НСП 1% [13:31:33]line > о реализуемом товаре [13:31:33]line ИТОГО: 275.00 [13:31:33]line НСП 1% : 2.43 [13:31:33]line НДС 12% : 29.20 [13:31:33]line Наличными: 275.00 [13:31:33]line Безнал.: 0.00 [13:31:33]line Место: АЗС № 5 "Партнер Нефть" [13:31:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:31:33]line СНО: Общий режим [13:31:33]line Чек 103 14.09.2024 13:31 [13:31:33]line Смена: 506 ФФД: 1.0 [13:31:33]line ЗНМ: 03000000022 [13:31:33]line РНМ: 0000000000091423 [13:31:33]line Версия ККМ: 001 [13:31:33]line ФМ: 0000000000874692 [13:31:33]line ФД: 92452 [13:31:33]line ФПД: 118089248752116 [13:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T133135&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92452&fm=118089248752116&tin=02508201610067®Number=0000000000091423&sum=27500 [13:31:34]line 0 [13:31:34]Connected sock=11 [13: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 34 36 39 32 27 01 00 00 5A 44 1F 01 A1 96 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 88 13 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 6C 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 37 90 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 69 01 00 35 04 06 00 6B 66 CB B9 41 F4 3F 31 C6 8E AC D7 31 B9 [13:31:34]written 0, free lines is 4095 [13:31:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3F 7B 47 00 ED 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 24 69 01 00 F4 03 04 00 B2 38 E5 66 B6 04 01 00 00 1F EA FD F4 7E 87 32 F8 [13:31:34]CommunicateWithHost err = 0 [13:31:34]CheckOFDResponse [13:31:34]1017 (14) - 77093643461234 [13:31:34]1041 (16) - 0000000000874692 [13:31:34]1040 (4) - 92452 [13:31:34]1012 (4) - 14.09.2024 07:18 [13:31:34]1206 (1) - 0 [13:31:34]OFD Sender: Remove packet 92452 [13:31:34]ProducePacketName [13:31:34]name=ofd_packets/00092452 [13:31:34]NVStorageDeleteData [13:31:34]Write to MH i2c: 01 00 00 1F 1F 3E [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: 01 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: 01 07 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: 01 07 00 1F 1F 00 00 00 00 00 24 0D 76 [13:31:34]RasterBufferAndPrint [13:31:34]line [13:31:34]line [13:31:34]line [13:31:34]line [13:31:34]line [13:31:34]written 0, free lines is 3369 [13:31:34]MH_Cut [13:31:34]Write to MH i2c: D1 01 00 26 1F 01 17 [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: D1 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: D1 01 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: D1 01 00 26 1F 00 16 [13:31:34]Write to MH i2c: 01 00 00 27 1F 46 [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]OFD Sender: No OFD packet to send [13:31:35]*** Cut start [13:31:35]*** Purtial cut [13:31:35]*** Stage 1: CUTSNS_PIN = 1 [13:31:37]Read from MH i2c: 01 [13:31:37]MH_I2C_Read... [13:31:37]*** Stop cut motor [13:31:37]*** Cut end [13:31:37]Read from MH i2c: 01 07 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: 01 07 00 27 1F 00 00 00 00 00 FF 0F 5B [13:31:37]process_action close_receipt done [13:31:37]requested_data is exist [13:31:37]produce_requested_data [13:31:37]requested_item fm.sn is exist - process it [13:31:37]wFMCommunicate request_size=4 [13:31:37]MH_SAM_APDU [13:31:37]CAPDU: 80 11 00 00 [13:31:37]Write to MH i2c: E2 08 00 28 1F 80 11 00 00 00 00 00 00 C1 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:37]Read from MH i2c: E2 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 17 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 17 00 28 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 18 [13:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:31:37]wFMCommunicate OK [13:31:37]requested_item fd.num is exist - process it [13:31:37]SAM_PROTO_GetFieldsCounters [13:31:37]wFMCommunicate request_size=4 [13:31:37]MH_SAM_APDU [13:31:37]CAPDU: 80 13 00 00 [13:31:37]Write to MH i2c: E2 08 00 29 1F 80 13 00 00 00 00 00 00 C4 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:37]Read from MH i2c: E2 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 62 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 62 00 29 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 24 69 01 00 0E 04 04 00 FA 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 A1 [13: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 24 69 01 00 0E 04 04 00 FA 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:31:37]wFMCommunicate OK [13:31:37]SAM_PROTO_GetFieldsCounters done [13:31:37]requested_item shift.num is exist - process it [13:31:37]requested_item shift.opened is exist - process it [13:31:37]req_shift_opened [13:31:37]FM_GetShiftState [13:31:37]SAM_PROTO_GetShiftState [13:31:37]wFMCommunicate request_size=4 [13:31:37]MH_SAM_APDU [13:31:37]CAPDU: 80 13 01 00 [13:31:37]Write to MH i2c: E2 08 00 2A 1F 80 13 01 00 00 00 00 00 C6 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:37]Read from MH i2c: E2 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 0E 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 0E 00 2A 1F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 60 [13:31:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:31:37]wFMCommunicate OK [13:31:37]SAM_PROTO_GetShiftState done [13:31:37]FM_GetShiftState done [13:31:37]req_shift_opened done [13:31:37]requested_item shift.open_date is exist - process it [13:31:37]req_shift_open_date [13:31:37]req_shift_open_date done [13:31:37]produce_requested_data done [13:31:37]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92452,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:31:37]process_action_free close_receipt [13:31:37]json_value_free [13:31:37]json_value_free done [13:31:37]process_json_proto returns [13:31:37]Send response to host [13:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92452,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:31:37]free response buf [13:31:37]execute_script done [13:31:37]execute_script returns [13:31:37]free content buf [13:31:37]Sock 8.Close socket [13:31:37]Sock 8.Thread stoped [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:37]accept exits with 9 [13:33:37]New connection [13:33:37]New thread 3066801508 created [13:33:37]Thread 3066658148 joined [13:33:37]Waiting for new connection... [13:33:37] Sock 9.Parse request [13:33:37]Sock 9.Check first char [13:33:37]Sock 9.First char is OK [13:33:37]request: POST /json_proto HTTP/1.0 [13:33:37]Method: POST [13:33:37]URL: /json_proto [13:33:37]Method is POST - this is cgi request [13:33:37]url: /json_proto [13:33:37]query_string will be loaded in cgi processing [13:33:37]execute_cgi json_proto POST (null) [13:33:37]execute_cgi path=json_proto method=POST [13:33:37]POST find Content-Length [13:33:37]Host: 172.17.57.71:8080 [13:33:37]Content-Length: 681 [13:33:37]Content-Type: application/json [13:33:37] [13:33:37]POST finish read [13:33:37]Found Content-Length = 681 [13:33:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647576", "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" : 36.90, "quantity" : 13.560, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:37]execute_script... [13:33: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)647576", "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" : 36.90, "quantity" : 13.560, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:37]POST & json_proto [13:33:37]process_json_proto [13:33:37]json parsed OK: [13:33:37]protocol is kg_v1.0 [13:33:37]action value=close_receipt [13:33:37]process_action close_receipt [13:33:37]cmd_close_receipt [13:33:37]MH_GetDate [13:33:37]Write to MH i2c: F0 00 00 2B 1F 39 [13:33:37]Write i2c OK [13:33:37]MH_I2C_Read... [13:33:37]Read from MH i2c: F0 [13:33:37]MH_I2C_Read... [13:33:37]Read from MH i2c: F0 09 00 [13:33:37]MH_I2C_Read... [13:33:37]Read from MH i2c: F0 09 00 2B 1F 00 B4 90 E5 66 33 3A A4 66 48 [13:33:37]GetLastDocTimeStamp 1726320695 [13:33:37]current date 1726320820 [13:33:37]FM_GetShiftState [13:33:37]SAM_PROTO_GetShiftState [13:33:37]wFMCommunicate request_size=4 [13:33:37]MH_SAM_APDU [13:33:37]CAPDU: 80 13 01 00 [13:33:37]Write to MH i2c: E2 08 00 2C 1F 80 13 01 00 00 00 00 00 C8 [13:33:37]Write i2c OK [13:33:37]MH_I2C_Read... [13:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:37]Read from MH i2c: E2 [13:33:37]MH_I2C_Read... [13:33:37]Read from MH i2c: E2 0E 00 [13:33:37]MH_I2C_Read... [13:33:37]Read from MH i2c: E2 0E 00 2C 1F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 62 [13:33:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:33:37]wFMCommunicate OK [13:33:37]SAM_PROTO_GetShiftState done [13:33:37]FM_GetShiftState done [13:33:37]opened in 1726273389 [13:33:37]opened+sec_in_day 1726359789 [13:33:37]quantity*price = 50036 [13:33:37]sum+1 = 50037 [13:33:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 104 14.09.2024 13:33 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92453 ФПД: 245283636449935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T133341&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92453&fm=245283636449935&tin=02508201610067®Number=0000000000091423&sum=50000 [13:33:38]StoreToDocumentArchive [13:33:38]shift 506 fd 92453 [13:33:38]save to /storage/0506/doc_00092453 [13:33:38]save last doc name /storage/0506/doc_00092453 to /storage/kkm_last_doc_name [13:33:38]save OK [13:33:38]Clear old archive folders... [13:33:38]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:33:38]tlvbuf is 00FCB760 [13:33:38]SAM_PROTO_ClearQueue [13:33:38]wFMCommunicate request_size=4 [13:33:38]MH_SAM_APDU [13:33:38]CAPDU: 80 09 00 00 [13:33:38]Write to MH i2c: E2 08 00 39 1F 80 09 00 00 00 00 00 00 CA [13:33:38]Write i2c OK [13:33:38]MH_I2C_Read... [13:33:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:38]Read from MH i2c: E2 [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: E2 03 00 [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: E2 03 00 39 1F 00 90 00 CC [13:33:38]RAPDU: 90 00 [13:33:38]wFMCommunicate OK [13:33:38]SAM_PROTO_ClearQueue done [13:33:38]KKMCreateOFDPacket [13:33:38]OFDProtocolAddRootSTLVToBuf [13:33:38]FM_MakeSignedData [13:33:38]FM_MakeSignedData [13:33:38]SAM_PROTO_SignData [13:33:38]wFMCommunicate request_size=4 [13:33:38]MH_SAM_APDU [13:33:38]CAPDU: 80 0D 01 02 [13:33:38]Write to MH i2c: E2 08 00 3A 1F 80 0D 01 02 00 00 00 00 D2 [13:33:38]Write i2c OK [13:33:38]MH_I2C_Read... [13:33:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:38]Read from MH i2c: E2 [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: E2 03 00 [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: E2 03 00 3A 1F 00 90 00 CD [13:33:38]RAPDU: 90 00 [13:33:38]wFMCommunicate OK [13:33:38]wFMCommunicate request_size=255 [13:33:38]MH_SAM_APDU [13:33:38]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 F8 34 00 00 00 00 00 37 04 06 00 6A 0E 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 68 00 00 00 F4 03 04 00 B5 90 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 69 01 00 35 04 06 00 DF 15 [13:33:38]Write to MH i2c: E2 02 01 3B 1F 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 F8 34 00 00 00 00 00 37 04 06 00 6A 0E 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 68 00 00 00 F4 03 04 00 B5 90 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 69 01 00 35 04 06 00 DF 15 00 00 8A [13:33:38]Write i2c OK [13:33:38]MH_I2C_Read... [13:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:39]Read from MH i2c: E2 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 03 00 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 03 00 3B 1F 00 90 00 CE [13:33:39]RAPDU: 90 00 [13:33:39]wFMCommunicate OK [13:33:39]wFMCommunicate request_size=9 [13:33:39]MH_SAM_APDU [13:33:39]CAPDU: 80 0D 02 02 04 8C 05 12 8F [13:33:39]Write to MH i2c: E2 0C 00 3C 1F 80 0D 02 02 04 00 8C 05 12 8F 00 00 0F [13:33:39]Write i2c OK [13:33:39]MH_I2C_Read... [13:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:39]Read from MH i2c: E2 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 03 00 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 03 00 3C 1F 00 90 00 CF [13:33:39]RAPDU: 90 00 [13:33:39]wFMCommunicate OK [13:33:39]wFMCommunicate request_size=4 [13:33:39]MH_SAM_APDU [13:33:39]CAPDU: 80 0D 03 02 [13:33:39]Write to MH i2c: E2 08 00 3D 1F 80 0D 03 02 00 00 00 00 D7 [13:33:39]Write i2c OK [13:33:39]MH_I2C_Read... [13:33:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:39]Read from MH i2c: E2 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 0B 00 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 0B 00 3D 1F 00 F2 11 1C EA 80 35 A0 A4 90 00 DA [13:33:39]RAPDU: F2 11 1C EA 80 35 A0 A4 90 00 [13:33:39]wFMCommunicate OK [13:33:39]SAM_PROTO_SignData done [13:33:39]FM_MakeSignedData done [13:33:39]CreateOFDProtocolMessage [13:33:39]wFMCommunicate request_size=4 [13:33:39]MH_SAM_APDU [13:33:39]CAPDU: 80 11 00 00 [13:33:39]Write to MH i2c: E2 08 00 3E 1F 80 11 00 00 00 00 00 00 D7 [13:33:39]Write i2c OK [13:33:39]MH_I2C_Read... [13:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:39]Read from MH i2c: E2 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 17 00 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 17 00 3E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [13:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:33:39]wFMCommunicate OK [13:33:39]CreateOFDProtocolMessage done [13:33:39]OFDSenderStorePacket 92453 [13:33:39]StoreOFDPacket docnum=92453 [13:33:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 75 69 06 01 BF DF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 F8 34 00 00 00 00 00 37 04 06 00 6A 0E 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 68 00 00 00 F4 03 04 00 B5 90 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 69 01 00 35 04 06 00 DF 15 8C 05 12 8F F2 11 1C EA 80 35 A0 A4 [13:33:39]CheckFolder [13:33:39]dirname=/storage/ofd_packets [13:33:39]CheckFolder done [13:33:39]ProducePacketName [13:33:39]name=ofd_packets/00092453 [13:33:39]NVStorageSaveData ofd_packets/00092453 [13:33:39]File name is /storage/ofd_packets/00092453 [13:33:39]Write 300 bytes [13:33:39]NVStorageSaveData done [13:33:39]OFDSenderStorePacket done [13:33:39]KKMCreateOFDPacket done [13:33:39]NVStorageSaveData kkm_last_timestamp [13:33:39]File name is /storage/kkm_last_timestamp [13:33:39]Write 4 bytes [13:33:39]NVStorageSaveData done [13:33:39]ExternCall_PrintAddStr [13:33:39]wPrintStart [13:33:39]Write to MH i2c: 01 00 00 3F 1F 5E [13:33:39]Write i2c OK [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: 01 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: 01 07 00 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: 01 07 00 3F 1F 00 00 00 00 00 FF 0F 73 [13:33:39]RasterBufferAndPrint [13:33:39]line Счет N : (1)647576 [13:33:39]line ИНН: 02508201610067 [13:33:39]line Контрольно-Кассовый Чек [13:33:39]line ПРОДАЖА [13:33:39]line ТРК (МРК, ГНК) : 71 [13:33:39]line Товар: 2711190000 [13:33:39]line ГАЗ-К-5 [13:33:39]line 13.560 * 36.90 [13:33:39]line = 500.36 [13:33:39]line НДС 12% НСП 1% [13:33:39]line > о реализуемом товаре [13:33:39]line ОКРУГЛЕНИЕ: -0.36 [13:33:39]line ИТОГО: 500.00 [13:33:39]line Внесено: 500.00 [13:33:39]line СДАЧА: 0.00 [13:33:39]line НСП 1% : 4.43 [13:33:39]line НДС 12% : 53.14 [13:33:39]line Наличными: 500.00 [13:33:39]line Безнал.: 0.00 [13:33:39]line Место: АЗС № 5 "Партнер Нефть" [13:33:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:33:39]line СНО: Общий режим [13:33:39]line Чек 104 14.09.2024 13:33 [13:33:39]line Смена: 506 ФФД: 1.0 [13:33:39]line ЗНМ: 03000000022 [13:33:39]line РНМ: 0000000000091423 [13:33:39]line Версия ККМ: 001 [13:33:39]line ФМ: 0000000000874692 [13:33:39]line ФД: 92453 [13:33:39]line ФПД: 245283636449935 [13:33:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T133341&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92453&fm=245283636449935&tin=02508201610067®Number=0000000000091423&sum=50000 [13:33:39]written 0, free lines is 4095 [13:33:39]OFD Sender: Processing packet 92453 [packets to send 63, broken 62] [13:33:39]ProducePacketName [13:33:39]name=ofd_packets/00092453 [13:33:39]OFD Sender: To server: pG, [13:33:39]CommunicateWithHost lk.salyk.kg:30040 [13:33:39]ConnectInit lk.salyk.kg [13:33:39]Connected sock=10 [13:33:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 75 69 06 01 BF DF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 F8 34 00 00 00 00 00 37 04 06 00 6A 0E 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 68 00 00 00 F4 03 04 00 B5 90 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 25 69 01 00 35 04 06 00 DF 15 8C 05 12 8F F2 11 1C EA 80 35 A0 A4 [13:33:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4E 4D 47 00 06 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 34 36 39 32 10 04 04 00 25 69 01 00 F4 03 04 00 30 39 E5 66 B6 04 01 00 00 57 A7 80 A1 DE 26 ED 9C [13:33:39]CommunicateWithHost err = 0 [13:33:39]CheckOFDResponse [13:33:39]1017 (14) - 77093643461234 [13:33:39]1041 (16) - 0000000000874692 [13:33:39]1040 (4) - 92453 [13:33:39]1012 (4) - 14.09.2024 07:20 [13:33:39]1206 (1) - 0 [13:33:39]OFD Sender: Remove packet 92453 [13:33:39]ProducePacketName [13:33:39]name=ofd_packets/00092453 [13:33:39]NVStorageDeleteData [13:33:40]Write to MH i2c: 01 00 00 6A 1F 89 [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: 01 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: 01 07 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: 01 07 00 6A 1F 00 00 00 00 00 F6 0C 92 [13:33:40]RasterBufferAndPrint [13:33:40]line [13:33:40]line [13:33:40]line [13:33:40]line [13:33:40]line [13:33:40]written 0, free lines is 3327 [13:33:40]MH_Cut [13:33:40]Write to MH i2c: D1 01 00 71 1F 01 62 [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: D1 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: D1 01 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: D1 01 00 71 1F 00 61 [13:33:40]Write to MH i2c: 01 00 00 72 1F 91 [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]OFD Sender: No OFD packet to send [13:33:40]*** Cut start [13:33:40]*** Purtial cut [13:33:40]*** Stage 1: CUTSNS_PIN = 1 [13:33:42]Read from MH i2c: 01 [13:33:42]MH_I2C_Read... [13:33:42]*** Stop cut motor [13:33:42]*** Cut end [13:33:42]Read from MH i2c: 01 07 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: 01 07 00 72 1F 00 00 00 00 00 FF 0F A6 [13:33:42]process_action close_receipt done [13:33:42]requested_data is exist [13:33:42]produce_requested_data [13:33:42]requested_item fm.sn is exist - process it [13:33:42]wFMCommunicate request_size=4 [13:33:42]MH_SAM_APDU [13:33:42]CAPDU: 80 11 00 00 [13:33:42]Write to MH i2c: E2 08 00 73 1F 80 11 00 00 00 00 00 00 0C [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:42]Read from MH i2c: E2 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 17 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 17 00 73 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 63 [13:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:33:42]wFMCommunicate OK [13:33:42]requested_item fd.num is exist - process it [13:33:42]SAM_PROTO_GetFieldsCounters [13:33:42]wFMCommunicate request_size=4 [13:33:42]MH_SAM_APDU [13:33:42]CAPDU: 80 13 00 00 [13:33:42]Write to MH i2c: E2 08 00 74 1F 80 13 00 00 00 00 00 00 0F [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:42]Read from MH i2c: E2 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 62 00 [13:33:42]MH_I2C_Read... [13:33:42]Read from MH i2c: E2 62 00 74 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 25 69 01 00 0E 04 04 00 FA 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 F0 [13:33:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 25 69 01 00 0E 04 04 00 FA 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:33:42]wFMCommunicate OK [13:33:42]SAM_PROTO_GetFieldsCounters done [13:33:42]requested_item shift.num is exist - process it [13:33:42]requested_item shift.opened is exist - process it [13:33:42]req_shift_opened [13:33:42]FM_GetShiftState [13:33:42]SAM_PROTO_GetShiftState [13:33:42]wFMCommunicate request_size=4 [13:33:42]MH_SAM_APDU [13:33:42]CAPDU: 80 13 01 00 [13:33:42]Write to MH i2c: E2 08 00 75 1F 80 13 01 00 00 00 00 00 11 [13:33:42]Write i2c OK [13:33:42]MH_I2C_Read... [13:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:43]Read from MH i2c: E2 [13:33:43]MH_I2C_Read... [13:33:43]Read from MH i2c: E2 0E 00 [13:33:43]MH_I2C_Read... [13:33:43]Read from MH i2c: E2 0E 00 75 1F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AB [13:33:43]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:33:43]wFMCommunicate OK [13:33:43]SAM_PROTO_GetShiftState done [13:33:43]FM_GetShiftState done [13:33:43]req_shift_opened done [13:33:43]requested_item shift.open_date is exist - process it [13:33:43]req_shift_open_date [13:33:43]req_shift_open_date done [13:33:43]produce_requested_data done [13:33:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92453,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:33:43]process_action_free close_receipt [13:33:43]json_value_free [13:33:43]json_value_free done [13:33:43]process_json_proto returns [13:33:43]Send response to host [13:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92453,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:33:43]free response buf [13:33:43]execute_script done [13:33:43]execute_script returns [13:33:43]free content buf [13:33:43]Sock 9.Close socket [13:33:43]Sock 9.Thread stoped [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]accept exits with 8 [13:41:05]New connection [13:41:05]New thread 3066658148 created [13:41:05]Thread 3066801508 joined [13:41:05]Waiting for new connection... [13:41:05] Sock 8.Parse request [13:41:05]Sock 8.Check first char [13:41:05]Sock 8.First char is OK [13:41:05]request: POST /json_proto HTTP/1.0 [13:41:05]Method: POST [13:41:05]URL: /json_proto [13:41:05]Method is POST - this is cgi request [13:41:05]url: /json_proto [13:41:05]query_string will be loaded in cgi processing [13:41:05]execute_cgi json_proto POST (null) [13:41:05]execute_cgi path=json_proto method=POST [13:41:05]POST find Content-Length [13:41:05]Host: 172.17.57.71:8080 [13:41:05]Content-Length: 685 [13:41:05]Content-Type: application/json [13:41:05] [13:41:05]POST finish read [13:41:05]Found Content-Length = 685 [13:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647582", "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" : 36.90, "quantity" : 27.110, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:05]execute_script... [13:41:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647582", "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" : 36.90, "quantity" : 27.110, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:05]POST & json_proto [13:41:05]process_json_proto [13:41:05]json parsed OK: [13:41:05]protocol is kg_v1.0 [13:41:05]action value=close_receipt [13:41:05]process_action close_receipt [13:41:05]cmd_close_receipt [13:41:05]MH_GetDate [13:41:05]Write to MH i2c: F0 00 00 76 1F 84 [13:41:05]Write i2c OK [13:41:05]MH_I2C_Read... [13:41:05]Read from MH i2c: F0 [13:41:05]MH_I2C_Read... [13:41:05]Read from MH i2c: F0 09 00 [13:41:05]MH_I2C_Read... [13:41:05]Read from MH i2c: F0 09 00 76 1F 00 74 92 E5 66 33 3A A4 66 55 [13:41:05]GetLastDocTimeStamp 1726320821 [13:41:05]current date 1726321268 [13:41:05]FM_GetShiftState [13:41:05]SAM_PROTO_GetShiftState [13:41:05]wFMCommunicate request_size=4 [13:41:05]MH_SAM_APDU [13:41:05]CAPDU: 80 13 01 00 [13:41:05]Write to MH i2c: E2 08 00 77 1F 80 13 01 00 00 00 00 00 13 [13:41:05]Write i2c OK [13:41:05]MH_I2C_Read... [13:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:05]Read from MH i2c: E2 [13:41:05]MH_I2C_Read... [13:41:05]Read from MH i2c: E2 0E 00 [13:41:05]MH_I2C_Read... [13:41:05]Read from MH i2c: E2 0E 00 77 1F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AD [13:41:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:41:05]wFMCommunicate OK [13:41:05]SAM_PROTO_GetShiftState done [13:41:05]FM_GetShiftState done [13:41:05]opened in 1726273389 [13:41:05]opened+sec_in_day 1726359789 [13:41:05]quantity*price = 100035 [13:41:05]sum+1 = 100037 [13:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 105 14.09.2024 13:41 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92454 ФПД: 146705970598138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T134108&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92454&fm=146705970598138&tin=02508201610067®Number=0000000000091423&sum=100000 [13:41:06]StoreToDocumentArchive [13:41:06]shift 506 fd 92454 [13:41:06]save to /storage/0506/doc_00092454 [13:41:06]save last doc name /storage/0506/doc_00092454 to /storage/kkm_last_doc_name [13:41:06]save OK [13:41:06]Clear old archive folders... [13:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:41:06]tlvbuf is 00F92570 [13:41:06]SAM_PROTO_ClearQueue [13:41:06]wFMCommunicate request_size=4 [13:41:06]MH_SAM_APDU [13:41:06]CAPDU: 80 09 00 00 [13:41:06]Write to MH i2c: E2 08 00 84 1F 80 09 00 00 00 00 00 00 15 [13:41:06]Write i2c OK [13:41:06]MH_I2C_Read... [13:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:06]Read from MH i2c: E2 [13:41:06]MH_I2C_Read... [13:41:06]Read from MH i2c: E2 03 00 [13:41:06]MH_I2C_Read... [13:41:06]Read from MH i2c: E2 03 00 84 1F 00 90 00 17 [13:41:06]RAPDU: 90 00 [13:41:06]wFMCommunicate OK [13:41:06]SAM_PROTO_ClearQueue done [13:41:06]KKMCreateOFDPacket [13:41:06]OFDProtocolAddRootSTLVToBuf [13:41:06]FM_MakeSignedData [13:41:06]FM_MakeSignedData [13:41:06]SAM_PROTO_SignData [13:41:06]wFMCommunicate request_size=4 [13:41:06]MH_SAM_APDU [13:41:06]CAPDU: 80 0D 01 02 [13:41:06]Write to MH i2c: E2 08 00 85 1F 80 0D 01 02 00 00 00 00 1D [13:41:06]Write i2c OK [13:41:06]MH_I2C_Read... [13:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:06]Read from MH i2c: E2 [13:41:06]MH_I2C_Read... [13:41:06]Read from MH i2c: E2 03 00 [13:41:06]MH_I2C_Read... [13:41:06]Read from MH i2c: E2 03 00 85 1F 00 90 00 18 [13:41:06]RAPDU: 90 00 [13:41:06]wFMCommunicate OK [13:41:06]wFMCommunicate request_size=255 [13:41:06]MH_SAM_APDU [13:41:06]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 E6 69 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 74 92 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 69 01 00 35 04 06 00 85 6D [13:41:06]Write to MH i2c: E2 02 01 86 1F 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 E6 69 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 74 92 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 69 01 00 35 04 06 00 85 6D 00 00 83 [13:41:06]Write i2c OK [13:41:06]MH_I2C_Read... [13:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:07]Read from MH i2c: E2 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 03 00 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 03 00 86 1F 00 90 00 19 [13:41:07]RAPDU: 90 00 [13:41:07]wFMCommunicate OK [13:41:07]wFMCommunicate request_size=9 [13:41:07]MH_SAM_APDU [13:41:07]CAPDU: 80 0D 02 02 04 A5 43 90 FA [13:41:07]Write to MH i2c: E2 0C 00 87 1F 80 0D 02 02 04 00 A5 43 90 FA 00 00 9A [13:41:07]Write i2c OK [13:41:07]MH_I2C_Read... [13:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:07]Read from MH i2c: E2 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 03 00 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [13:41:07]RAPDU: 90 00 [13:41:07]wFMCommunicate OK [13:41:07]wFMCommunicate request_size=4 [13:41:07]MH_SAM_APDU [13:41:07]CAPDU: 80 0D 03 02 [13:41:07]Write to MH i2c: E2 08 00 88 1F 80 0D 03 02 00 00 00 00 22 [13:41:07]Write i2c OK [13:41:07]MH_I2C_Read... [13:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:07]Read from MH i2c: E2 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 0B 00 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 0B 00 88 1F 00 22 BB A7 DC C4 41 1D 60 90 00 05 [13:41:07]RAPDU: 22 BB A7 DC C4 41 1D 60 90 00 [13:41:07]wFMCommunicate OK [13:41:07]SAM_PROTO_SignData done [13:41:07]FM_MakeSignedData done [13:41:07]CreateOFDProtocolMessage [13:41:07]wFMCommunicate request_size=4 [13:41:07]MH_SAM_APDU [13:41:07]CAPDU: 80 11 00 00 [13:41:07]Write to MH i2c: E2 08 00 89 1F 80 11 00 00 00 00 00 00 22 [13:41:07]Write i2c OK [13:41:07]MH_I2C_Read... [13:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:07]Read from MH i2c: E2 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 17 00 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 17 00 89 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 79 [13:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:41:07]wFMCommunicate OK [13:41:07]CreateOFDProtocolMessage done [13:41:07]OFDSenderStorePacket 92454 [13:41:07]StoreOFDPacket docnum=92454 [13:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 D1 79 06 01 37 4B 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 E6 69 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 74 92 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 69 01 00 35 04 06 00 85 6D A5 43 90 FA 22 BB A7 DC C4 41 1D 60 [13:41:07]CheckFolder [13:41:07]dirname=/storage/ofd_packets [13:41:07]CheckFolder done [13:41:07]ProducePacketName [13:41:07]name=ofd_packets/00092454 [13:41:07]NVStorageSaveData ofd_packets/00092454 [13:41:07]File name is /storage/ofd_packets/00092454 [13:41:07]Write 300 bytes [13:41:07]NVStorageSaveData done [13:41:07]OFDSenderStorePacket done [13:41:07]KKMCreateOFDPacket done [13:41:07]NVStorageSaveData kkm_last_timestamp [13:41:07]File name is /storage/kkm_last_timestamp [13:41:07]Write 4 bytes [13:41:07]NVStorageSaveData done [13:41:07]ExternCall_PrintAddStr [13:41:07]wPrintStart [13:41:07]Write to MH i2c: 01 00 00 8A 1F A9 [13:41:07]Write i2c OK [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: 01 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: 01 07 00 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: 01 07 00 8A 1F 00 00 00 00 00 FF 0F BE [13:41:07]RasterBufferAndPrint [13:41:07]line Счет N : (1)647582 [13:41:07]line ИНН: 02508201610067 [13:41:07]line Контрольно-Кассовый Чек [13:41:07]line ПРОДАЖА [13:41:07]line ТРК (МРК, ГНК) : 71 [13:41:07]line Товар: 2711190000 [13:41:07]line ГАЗ-К-5 [13:41:07]line 27.110 * 36.90 [13:41:07]line = 1000.36 [13:41:07]line НДС 12% НСП 1% [13:41:07]line > о реализуемом товаре [13:41:07]line ОКРУГЛЕНИЕ: -0.36 [13:41:07]line ИТОГО: 1000.00 [13:41:07]line Внесено: 1000.00 [13:41:07]line СДАЧА: 0.00 [13:41:07]line НСП 1% : 8.85 [13:41:07]line НДС 12% : 106.23 [13:41:07]line Наличными: 1000.00 [13:41:07]line Безнал.: 0.00 [13:41:07]line Место: АЗС № 5 "Партнер Нефть" [13:41:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:41:07]line СНО: Общий режим [13:41:07]line Чек 105 14.09.2024 13:41 [13:41:07]line Смена: 506 ФФД: 1.0 [13:41:07]line ЗНМ: 03000000022 [13:41:07]line РНМ: 0000000000091423 [13:41:07]line Версия ККМ: 001 [13:41:07]line ФМ: 0000000000874692 [13:41:07]line ФД: 92454 [13:41:07]line ФПД: 146705970598138 [13:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T134108&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92454&fm=146705970598138&tin=02508201610067®Number=0000000000091423&sum=100000 [13:41:07]written 0, free lines is 4095 [13:41:07]OFD Sender: Processing packet 92454 [packets to send 63, broken 62] [13:41:07]ProducePacketName [13:41:07]name=ofd_packets/00092454 [13:41:07]OFD Sender: To server: pG, [13:41:07]CommunicateWithHost lk.salyk.kg:30040 [13:41:07]ConnectInit lk.salyk.kg [13:41:07]Connected sock=10 [13:41:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 D1 79 06 01 37 4B 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 E6 69 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 74 92 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 69 01 00 35 04 06 00 85 6D A5 43 90 FA 22 BB A7 DC C4 41 1D 60 [13:41:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C8 EF 47 00 EE 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 26 69 01 00 F4 03 04 00 F0 3A E5 66 B6 04 01 00 00 92 B7 9D 93 14 24 5D 95 [13:41:07]CommunicateWithHost err = 0 [13:41:07]CheckOFDResponse [13:41:07]1017 (14) - 77093643461234 [13:41:07]1041 (16) - 0000000000874692 [13:41:07]1040 (4) - 92454 [13:41:07]1012 (4) - 14.09.2024 07:27 [13:41:07]1206 (1) - 0 [13:41:07]OFD Sender: Remove packet 92454 [13:41:07]ProducePacketName [13:41:07]name=ofd_packets/00092454 [13:41:07]NVStorageDeleteData [13:41:08]Write to MH i2c: 01 00 00 B5 1F D4 [13:41:08]Write i2c OK [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: 01 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: 01 07 00 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: 01 07 00 B5 1F 00 00 00 00 00 E9 0C D0 [13:41:08]RasterBufferAndPrint [13:41:08]line [13:41:08]line [13:41:08]line [13:41:08]line [13:41:08]line [13:41:08]written 0, free lines is 3313 [13:41:08]MH_Cut [13:41:08]Write to MH i2c: D1 01 00 BC 1F 01 AD [13:41:08]Write i2c OK [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: D1 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: D1 01 00 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: D1 01 00 BC 1F 00 AC [13:41:08]Write to MH i2c: 01 00 00 BD 1F DC [13:41:08]Write i2c OK [13:41:08]MH_I2C_Read... [13:41:08]OFD Sender: No OFD packet to send [13:41:08]*** Cut start [13:41:08]*** Purtial cut [13:41:08]*** Stage 1: CUTSNS_PIN = 1 [13:41:10]Read from MH i2c: 01 [13:41:10]MH_I2C_Read... [13:41:10]*** Stop cut motor [13:41:10]*** Cut end [13:41:10]Read from MH i2c: 01 07 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 BD 1F 00 00 00 00 00 FF 0F F1 [13:41:10]process_action close_receipt done [13:41:10]requested_data is exist [13:41:10]produce_requested_data [13:41:10]requested_item fm.sn is exist - process it [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 11 00 00 [13:41:10]Write to MH i2c: E2 08 00 BE 1F 80 11 00 00 00 00 00 00 57 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 17 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 17 00 BE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AE [13:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:41:10]wFMCommunicate OK [13:41:10]requested_item fd.num is exist - process it [13:41:10]SAM_PROTO_GetFieldsCounters [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 13 00 00 [13:41:10]Write to MH i2c: E2 08 00 BF 1F 80 13 00 00 00 00 00 00 5A [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 62 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 62 00 BF 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 26 69 01 00 0E 04 04 00 FA 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 3F [13:41:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 26 69 01 00 0E 04 04 00 FA 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:41:10]wFMCommunicate OK [13:41:10]SAM_PROTO_GetFieldsCounters done [13:41:10]requested_item shift.num is exist - process it [13:41:10]requested_item shift.opened is exist - process it [13:41:10]req_shift_opened [13:41:10]FM_GetShiftState [13:41:10]SAM_PROTO_GetShiftState [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 13 01 00 [13:41:10]Write to MH i2c: E2 08 00 C0 1F 80 13 01 00 00 00 00 00 5C [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 0E 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 0E 00 C0 1F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F6 [13:41:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:41:10]wFMCommunicate OK [13:41:10]SAM_PROTO_GetShiftState done [13:41:10]FM_GetShiftState done [13:41:10]req_shift_opened done [13:41:10]requested_item shift.open_date is exist - process it [13:41:10]req_shift_open_date [13:41:10]req_shift_open_date done [13:41:10]produce_requested_data done [13:41:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92454,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:41:10]process_action_free close_receipt [13:41:10]json_value_free [13:41:10]json_value_free done [13:41:10]process_json_proto returns [13:41:10]Send response to host [13:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92454,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:41:10]free response buf [13:41:10]execute_script done [13:41:10]execute_script returns [13:41:10]free content buf [13:41:10]Sock 8.Close socket [13:41:10]Sock 8.Thread stoped [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:09]accept exits with 9 [13:44:09]New connection [13:44:09]New thread 3066801508 created [13:44:09]Thread 3066658148 joined [13:44:09]Waiting for new connection... [13:44:09] Sock 9.Parse request [13:44:09]Sock 9.Check first char [13:44:09]Sock 9.First char is OK [13:44:09]request: POST /json_proto HTTP/1.0 [13:44:09]Method: POST [13:44:09]URL: /json_proto [13:44:09]Method is POST - this is cgi request [13:44:09]url: /json_proto [13:44:09]query_string will be loaded in cgi processing [13:44:09]execute_cgi json_proto POST (null) [13:44:09]execute_cgi path=json_proto method=POST [13:44:09]POST find Content-Length [13:44:09]Host: 172.17.57.71:8080 [13:44:09]Content-Length: 1775 [13:44:09]Content-Type: application/json [13:44:09] [13:44:09]POST finish read [13:44:09]Found Content-Length = 1775 [13:44:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127362", "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" : 3.000, "sum" : 210.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": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:09]execute_script... [13:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127362", "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" : 3.000, "sum" : 210.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": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:10]POST & json_proto [13:44:10]process_json_proto [13:44:10]json parsed OK: [13:44:10]protocol is kg_v1.0 [13:44:10]action value=close_receipt [13:44:10]process_action close_receipt [13:44:10]cmd_close_receipt [13:44:10]MH_GetDate [13:44:10]Write to MH i2c: F0 00 00 C1 1F CF [13:44:10]Write i2c OK [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: F0 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: F0 09 00 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: F0 09 00 C1 1F 00 2D 93 E5 66 33 3A A4 66 5A [13:44:10]GetLastDocTimeStamp 1726321268 [13:44:10]current date 1726321453 [13:44:10]FM_GetShiftState [13:44:10]SAM_PROTO_GetShiftState [13:44:10]wFMCommunicate request_size=4 [13:44:10]MH_SAM_APDU [13:44:10]CAPDU: 80 13 01 00 [13:44:10]Write to MH i2c: E2 08 00 C2 1F 80 13 01 00 00 00 00 00 5E [13:44:10]Write i2c OK [13:44:10]MH_I2C_Read... [13:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:10]Read from MH i2c: E2 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: E2 0E 00 [13:44:10]MH_I2C_Read... [13:44:10]Read from MH i2c: E2 0E 00 C2 1F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F8 [13:44:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:44:10]wFMCommunicate OK [13:44:10]SAM_PROTO_GetShiftState done [13:44:10]FM_GetShiftState done [13:44:10]opened in 1726273389 [13:44:10]opened+sec_in_day 1726359789 [13:44:10]quantity*price = 21000 [13:44:10]sum+1 = 21001 [13:44:10]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% > о реализуемом товаре Товар: 5449000325907 Напиток Фанта 0,45л ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 455.00 НСП 1% : 4.03 НДС 12% : 48.32 Наличными: 0.00 Безнал.: 455.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 106 14.09.2024 13:44 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92455 ФПД: 128054934745333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T134413&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92455&fm=128054934745333&tin=02508201610067®Number=0000000000091423&sum=45500 0 [13:44:11]StoreToDocumentArchive [13:44:11]shift 506 fd 92455 [13:44:11]save to /storage/0506/doc_00092455 [13:44:11]save last doc name /storage/0506/doc_00092455 to /storage/kkm_last_doc_name [13:44:11]save OK [13:44:11]Clear old archive folders... [13:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=663 [13:44:11]tlvbuf is 00F8EA40 [13:44:11]SAM_PROTO_ClearQueue [13:44:11]wFMCommunicate request_size=4 [13:44:11]MH_SAM_APDU [13:44:11]CAPDU: 80 09 00 00 [13:44:11]Write to MH i2c: E2 08 00 CF 1F 80 09 00 00 00 00 00 00 60 [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:11]Read from MH i2c: E2 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 03 00 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 03 00 CF 1F 00 90 00 62 [13:44:11]RAPDU: 90 00 [13:44:11]wFMCommunicate OK [13:44:11]SAM_PROTO_ClearQueue done [13:44:11]KKMCreateOFDPacket [13:44:11]OFDProtocolAddRootSTLVToBuf [13:44:11]FM_MakeSignedData [13:44:11]FM_MakeSignedData [13:44:11]SAM_PROTO_SignData [13:44:11]wFMCommunicate request_size=4 [13:44:11]MH_SAM_APDU [13:44:11]CAPDU: 80 0D 01 02 [13:44:11]Write to MH i2c: E2 08 00 D0 1F 80 0D 01 02 00 00 00 00 68 [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:11]Read from MH i2c: E2 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 03 00 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 03 00 D0 1F 00 90 00 63 [13:44:11]RAPDU: 90 00 [13:44:11]wFMCommunicate OK [13:44:11]wFMCommunicate request_size=255 [13:44:11]MH_SAM_APDU [13:44:11]CAPDU: 80 0D 02 02 FA 03 00 97 02 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 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 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 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 [13:44:11]Write to MH i2c: E2 02 01 D1 1F 80 0D 02 02 FA 00 03 00 97 02 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 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 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 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 [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:11]Read from MH i2c: E2 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 03 00 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 03 00 D1 1F 00 90 00 64 [13:44:11]RAPDU: 90 00 [13:44:11]wFMCommunicate OK [13:44:11]wFMCommunicate request_size=255 [13:44:11]MH_SAM_APDU [13:44:11]CAPDU: 80 0D 02 02 FA 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 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 [13:44:11]Write to MH i2c: E2 02 01 D2 1F 80 0D 02 02 FA 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 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 A7 [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:11]Read from MH i2c: E2 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 03 00 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 03 00 D2 1F 00 90 00 65 [13:44:11]RAPDU: 90 00 [13:44:11]wFMCommunicate OK [13:44:11]wFMCommunicate request_size=172 [13:44:11]MH_SAM_APDU [13:44:11]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC B1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 2D 93 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 69 01 00 35 04 06 00 74 77 1C E5 B0 F5 [13:44:11]Write to MH i2c: E2 AF 00 D3 1F 80 0D 02 02 A7 00 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC B1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 2D 93 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 69 01 00 35 04 06 00 74 77 1C E5 B0 F5 00 00 ED [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:12]Read from MH i2c: E2 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 03 00 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 03 00 D3 1F 00 90 00 66 [13:44:12]RAPDU: 90 00 [13:44:12]wFMCommunicate OK [13:44:12]wFMCommunicate request_size=4 [13:44:12]MH_SAM_APDU [13:44:12]CAPDU: 80 0D 03 02 [13:44:12]Write to MH i2c: E2 08 00 D4 1F 80 0D 03 02 00 00 00 00 6E [13:44:12]Write i2c OK [13:44:12]MH_I2C_Read... [13:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:12]Read from MH i2c: E2 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 0B 00 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 0B 00 D4 1F 00 6A 4E C3 0A D6 D8 9F 31 90 00 72 [13:44:12]RAPDU: 6A 4E C3 0A D6 D8 9F 31 90 00 [13:44:12]wFMCommunicate OK [13:44:12]SAM_PROTO_SignData done [13:44:12]FM_MakeSignedData done [13:44:12]CreateOFDProtocolMessage [13:44:12]wFMCommunicate request_size=4 [13:44:12]MH_SAM_APDU [13:44:12]CAPDU: 80 11 00 00 [13:44:12]Write to MH i2c: E2 08 00 D5 1F 80 11 00 00 00 00 00 00 6E [13:44:12]Write i2c OK [13:44:12]MH_I2C_Read... [13:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:12]Read from MH i2c: E2 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: E2 17 00 [13:44:12]MH_I2C_Read... [13:44:12]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 34 36 39 32 90 00 C5 [13:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:44:12]wFMCommunicate OK [13:44:12]CreateOFDProtocolMessage done [13:44:12]OFDSenderStorePacket 92455 [13:44:12]StoreOFDPacket docnum=92455 [13:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AB 02 00 00 00 37 A3 02 D1 73 5A 03 01 00 03 00 97 02 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 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 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 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 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC B1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 2D 93 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 69 01 00 35 04 06 00 74 77 1C E5 B0 F5 6A 4E C3 0A D6 D8 9F 31 [13:44:12]CheckFolder [13:44:12]dirname=/storage/ofd_packets [13:44:12]CheckFolder done [13:44:12]ProducePacketName [13:44:12]name=ofd_packets/00092455 [13:44:12]NVStorageSaveData ofd_packets/00092455 [13:44:12]File name is /storage/ofd_packets/00092455 [13:44:12]Write 713 bytes [13:44:12]NVStorageSaveData done [13:44:12]OFDSenderStorePacket done [13:44:12]KKMCreateOFDPacket done [13:44:12]NVStorageSaveData kkm_last_timestamp [13:44:12]File name is /storage/kkm_last_timestamp [13:44:12]Write 4 bytes [13:44:12]NVStorageSaveData done [13:44:12]ExternCall_PrintAddStr [13:44:12]wPrintStart [13:44:12]Write to MH i2c: 01 00 00 D6 1F F5 [13:44:12]Write i2c OK [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: 01 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: 01 07 00 [13:44:12]MH_I2C_Read... [13:44:12]Read from MH i2c: 01 07 00 D6 1F 00 00 00 00 00 FF 0F 0A [13:44:12]RasterBufferAndPrint [13:44:12]line Счет N : (3)127362 [13:44:12]line ИНН: 02508201610067 [13:44:12]line Контрольно-Кассовый Чек [13:44:12]line ПРОДАЖА [13:44:12]line Товар: 4870202522008 [13:44:12]line Напиток Maxi Чай Грушевый 0,45л [13:44:12]line 3.000 * 70.00 [13:44:12]line = 210.00 [13:44:12]line НДС 12% НСП 1% [13:44:12]line > о реализуемом товаре [13:44:12]line Товар: 4600338001623 [13:44:12]line Вода Фруто НЯНЯ негазир д/детей 0,33л [13:44:12]line 1.000 * 80.00 [13:44:12]line = 80.00 [13:44:12]line НДС 12% НСП 1% [13:44:12]line > о реализуемом товаре [13:44:12]line Товар: 5449000325907 [13:44:12]line Напиток Фанта 0,45л ж/б [13:44:12]line 1.000 * 90.00 [13:44:12]line = 90.00 [13:44:12]line НДС 12% НСП 1% [13:44:12]line > о реализуемом товаре [13:44:12]line Товар: 5449000027450 [13:44:12]line Напиток FuzeTea чай манго,ром 0,5л [13:44:12]line 1.000 * 75.00 [13:44:12]line = 75.00 [13:44:12]line НДС 12% НСП 1% [13:44:12]line > о реализуемом товаре [13:44:12]line ИТОГО: 455.00 [13:44:12]line НСП 1% : 4.03 [13:44:12]line НДС 12% : 48.32 [13:44:12]line Наличными: 0.00 [13:44:12]line Безнал.: 455.00 [13:44:12]line Место: АЗС № 5 "Партнер Нефть" [13:44:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:44:12]line СНО: Общий режим [13:44:12]line Чек 106 14.09.2024 13:44 [13:44:12]line Смена: 506 ФФД: 1.0 [13:44:12]line ЗНМ: 03000000022 [13:44:12]line РНМ: 0000000000091423 [13:44:12]line Версия ККМ: 001 [13:44:12]line Платежная система: Бакай Банк [13:44:12]line ФМ: 0000000000874692 [13:44:12]line ФД: 92455 [13:44:12]line ФПД: 128054934745333 [13:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T134413&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92455&fm=128054934745333&tin=02508201610067®Number=0000000000091423&sum=45500 [13:44:12]OFD Sender: Processing packet 92455 [packets to send 63, broken 62] [13:44:12]ProducePacketName [13:44:12]name=ofd_packets/00092455 [13:44:12]OFD Sender: To server: pG, [13:44:12]CommunicateWithHost lk.salyk.kg:30040 [13:44:12]ConnectInit lk.salyk.kg [13:44:12]line 0 [13:44:12]written 0, free lines is 4095 [13:44:12]Connected sock=10 [13:44:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AB 02 00 00 00 37 A3 02 D1 73 5A 03 01 00 03 00 97 02 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 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 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 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 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC B1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 2D 93 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 69 01 00 35 04 06 00 74 77 1C E5 B0 F5 6A 4E C3 0A D6 D8 9F 31 [13:44:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2E C5 47 00 EC 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 27 69 01 00 F4 03 04 00 A9 3B E5 66 B6 04 01 00 00 A2 B2 1E 4A 19 5A 48 FA [13:44:12]CommunicateWithHost err = 0 [13:44:12]CheckOFDResponse [13:44:12]1017 (14) - 77093643461234 [13:44:12]1041 (16) - 0000000000874692 [13:44:12]1040 (4) - 92455 [13:44:12]1012 (4) - 14.09.2024 07:30 [13:44:12]1206 (1) - 0 [13:44:12]OFD Sender: Remove packet 92455 [13:44:12]ProducePacketName [13:44:12]name=ofd_packets/00092455 [13:44:12]NVStorageDeleteData [13:44:13]Write to MH i2c: 01 00 00 15 20 35 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 15 20 00 00 00 00 00 09 0C 51 [13:44:13]RasterBufferAndPrint [13:44:13]line [13:44:13]line [13:44:13]line [13:44:13]line [13:44:13]line [13:44:13]written 0, free lines is 3092 [13:44:13]MH_Cut [13:44:13]Write to MH i2c: D1 01 00 1C 20 01 0E [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: D1 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: D1 01 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: D1 01 00 1C 20 00 0D [13:44:13]Write to MH i2c: 01 00 00 1D 20 3D [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]OFD Sender: No OFD packet to send [13:44:13]*** Cut start [13:44:13]*** Purtial cut [13:44:13]*** Stage 1: CUTSNS_PIN = 1 [13:44:15]Read from MH i2c: 01 [13:44:16]MH_I2C_Read... [13:44:16]*** Stop cut motor [13:44:16]*** Cut end [13:44:16]Read from MH i2c: 01 07 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: 01 07 00 1D 20 00 00 00 00 00 FF 0F 52 [13:44:16]process_action close_receipt done [13:44:16]requested_data is exist [13:44:16]produce_requested_data [13:44:16]requested_item fm.sn is exist - process it [13:44:16]wFMCommunicate request_size=4 [13:44:16]MH_SAM_APDU [13:44:16]CAPDU: 80 11 00 00 [13:44:16]Write to MH i2c: E2 08 00 1E 20 80 11 00 00 00 00 00 00 B8 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 17 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 17 00 1E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0F [13:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:44:16]wFMCommunicate OK [13:44:16]requested_item fd.num is exist - process it [13:44:16]SAM_PROTO_GetFieldsCounters [13:44:16]wFMCommunicate request_size=4 [13:44:16]MH_SAM_APDU [13:44:16]CAPDU: 80 13 00 00 [13:44:16]Write to MH i2c: E2 08 00 1F 20 80 13 00 00 00 00 00 00 BB [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 62 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 62 00 1F 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 27 69 01 00 0E 04 04 00 FA 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 A4 [13:44:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 27 69 01 00 0E 04 04 00 FA 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:44:16]wFMCommunicate OK [13:44:16]SAM_PROTO_GetFieldsCounters done [13:44:16]requested_item shift.num is exist - process it [13:44:16]requested_item shift.opened is exist - process it [13:44:16]req_shift_opened [13:44:16]FM_GetShiftState [13:44:16]SAM_PROTO_GetShiftState [13:44:16]wFMCommunicate request_size=4 [13:44:16]MH_SAM_APDU [13:44:16]CAPDU: 80 13 01 00 [13:44:16]Write to MH i2c: E2 08 00 20 20 80 13 01 00 00 00 00 00 BD [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 0E 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 0E 00 20 20 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 57 [13:44:16]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:44:16]wFMCommunicate OK [13:44:16]SAM_PROTO_GetShiftState done [13:44:16]FM_GetShiftState done [13:44:16]req_shift_opened done [13:44:16]requested_item shift.open_date is exist - process it [13:44:16]req_shift_open_date [13:44:16]req_shift_open_date done [13:44:16]produce_requested_data done [13:44:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92455,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:44:16]process_action_free close_receipt [13:44:16]json_value_free [13:44:16]json_value_free done [13:44:16]process_json_proto returns [13:44:16]Send response to host [13:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92455,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:44:16]free response buf [13:44:16]execute_script done [13:44:16]execute_script returns [13:44:16]free content buf [13:44:16]Sock 9.Close socket [13:44:16]Sock 9.Thread stoped [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:01]accept exits with 8 [13:46:01]New connection [13:46:01]New thread 3066658148 created [13:46:01]Thread 3066801508 joined [13:46:01]Waiting for new connection... [13:46:01] Sock 8.Parse request [13:46:01]Sock 8.Check first char [13:46:01]Sock 8.First char is OK [13:46:01]request: POST /json_proto HTTP/1.0 [13:46:01]Method: POST [13:46:01]URL: /json_proto [13:46:01]Method is POST - this is cgi request [13:46:01]url: /json_proto [13:46:01]query_string will be loaded in cgi processing [13:46:01]execute_cgi json_proto POST (null) [13:46:01]execute_cgi path=json_proto method=POST [13:46:01]POST find Content-Length [13:46:01]Host: 172.17.57.71:8080 [13:46:01]Content-Length: 620 [13:46:01]Content-Type: application/json [13:46:01] [13:46:01]POST finish read [13:46:01]Found Content-Length = 620 [13:46:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127363", "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" ] } } [13:46:01]execute_script... [13:46: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)127363", "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" ] } } [13:46:01]POST & json_proto [13:46:01]process_json_proto [13:46:01]json parsed OK: [13:46:01]protocol is kg_v1.0 [13:46:01]action value=close_receipt [13:46:01]process_action close_receipt [13:46:01]cmd_close_receipt [13:46:01]MH_GetDate [13:46:01]Write to MH i2c: F0 00 00 21 20 30 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: F0 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: F0 09 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: F0 09 00 21 20 00 9C 93 E5 66 33 3A A4 66 2A [13:46:01]GetLastDocTimeStamp 1726321453 [13:46:01]current date 1726321564 [13:46:01]FM_GetShiftState [13:46:01]SAM_PROTO_GetShiftState [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 13 01 00 [13:46:01]Write to MH i2c: E2 08 00 22 20 80 13 01 00 00 00 00 00 BF [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 0E 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 0E 00 22 20 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 59 [13:46:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:46:01]wFMCommunicate OK [13:46:01]SAM_PROTO_GetShiftState done [13:46:01]FM_GetShiftState done [13:46:01]opened in 1726273389 [13:46:01]opened+sec_in_day 1726359789 [13:46:01]quantity*price = 13900 [13:46:01]sum+1 = 13901 [13:46:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 107 14.09.2024 13:46 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92456 ФПД: 96265207904270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T134604&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92456&fm=96265207904270&tin=02508201610067®Number=0000000000091423&sum=13900 0 [13:46:02]StoreToDocumentArchive [13:46:02]shift 506 fd 92456 [13:46:02]save to /storage/0506/doc_00092456 [13:46:02]save last doc name /storage/0506/doc_00092456 to /storage/kkm_last_doc_name [13:46:02]save OK [13:46:02]Clear old archive folders... [13:46:02]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:46:02]tlvbuf is 00FCB150 [13:46:02]SAM_PROTO_ClearQueue [13:46:02]wFMCommunicate request_size=4 [13:46:02]MH_SAM_APDU [13:46:02]CAPDU: 80 09 00 00 [13:46:02]Write to MH i2c: E2 08 00 2F 20 80 09 00 00 00 00 00 00 C1 [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:02]Read from MH i2c: E2 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 03 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 03 00 2F 20 00 90 00 C3 [13:46:02]RAPDU: 90 00 [13:46:02]wFMCommunicate OK [13:46:02]SAM_PROTO_ClearQueue done [13:46:02]KKMCreateOFDPacket [13:46:02]OFDProtocolAddRootSTLVToBuf [13:46:02]FM_MakeSignedData [13:46:02]FM_MakeSignedData [13:46:02]SAM_PROTO_SignData [13:46:02]wFMCommunicate request_size=4 [13:46:02]MH_SAM_APDU [13:46:02]CAPDU: 80 0D 01 02 [13:46:02]Write to MH i2c: E2 08 00 30 20 80 0D 01 02 00 00 00 00 C9 [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:02]Read from MH i2c: E2 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 03 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 03 00 30 20 00 90 00 C4 [13:46:02]RAPDU: 90 00 [13:46:02]wFMCommunicate OK [13:46:02]wFMCommunicate request_size=255 [13:46:02]MH_SAM_APDU [13:46:02]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 6B 00 00 00 F4 03 04 00 9C 93 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [13:46:02]Write to MH i2c: E2 02 01 31 20 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 6B 00 00 00 F4 03 04 00 9C 93 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 D4 [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:02]Read from MH i2c: E2 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 03 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 03 00 31 20 00 90 00 C5 [13:46:02]RAPDU: 90 00 [13:46:02]wFMCommunicate OK [13:46:02]wFMCommunicate request_size=31 [13:46:02]MH_SAM_APDU [13:46:02]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 28 69 01 00 35 04 06 00 57 8D 7D 85 78 0E [13:46:02]Write to MH i2c: E2 22 00 32 20 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 28 69 01 00 35 04 06 00 57 8D 7D 85 78 0E 00 00 F9 [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:02]Read from MH i2c: E2 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 03 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 03 00 32 20 00 90 00 C6 [13:46:02]RAPDU: 90 00 [13:46:02]wFMCommunicate OK [13:46:02]wFMCommunicate request_size=4 [13:46:02]MH_SAM_APDU [13:46:02]CAPDU: 80 0D 03 02 [13:46:02]Write to MH i2c: E2 08 00 33 20 80 0D 03 02 00 00 00 00 CE [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:02]Read from MH i2c: E2 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 0B 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 0B 00 33 20 00 75 C2 A0 7C 99 8D F8 77 90 00 B7 [13:46:02]RAPDU: 75 C2 A0 7C 99 8D F8 77 90 00 [13:46:02]wFMCommunicate OK [13:46:02]SAM_PROTO_SignData done [13:46:02]FM_MakeSignedData done [13:46:02]CreateOFDProtocolMessage [13:46:02]wFMCommunicate request_size=4 [13:46:02]MH_SAM_APDU [13:46:02]CAPDU: 80 11 00 00 [13:46:02]Write to MH i2c: E2 08 00 34 20 80 11 00 00 00 00 00 00 CE [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:02]Read from MH i2c: E2 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 17 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 17 00 34 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 25 [13:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:46:02]wFMCommunicate OK [13:46:02]CreateOFDProtocolMessage done [13:46:02]OFDSenderStorePacket 92456 [13:46:02]StoreOFDPacket docnum=92456 [13:46:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 DD 96 1C 01 0A 15 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 6B 00 00 00 F4 03 04 00 9C 93 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 28 69 01 00 35 04 06 00 57 8D 7D 85 78 0E 75 C2 A0 7C 99 8D F8 77 [13:46:02]CheckFolder [13:46:02]dirname=/storage/ofd_packets [13:46:02]CheckFolder done [13:46:02]ProducePacketName [13:46:02]name=ofd_packets/00092456 [13:46:02]NVStorageSaveData ofd_packets/00092456 [13:46:02]File name is /storage/ofd_packets/00092456 [13:46:02]Write 322 bytes [13:46:02]NVStorageSaveData done [13:46:02]OFDSenderStorePacket done [13:46:02]KKMCreateOFDPacket done [13:46:02]NVStorageSaveData kkm_last_timestamp [13:46:02]File name is /storage/kkm_last_timestamp [13:46:02]Write 4 bytes [13:46:02]NVStorageSaveData done [13:46:02]ExternCall_PrintAddStr [13:46:02]wPrintStart [13:46:02]Write to MH i2c: 01 00 00 35 20 55 [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 07 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 07 00 35 20 00 00 00 00 00 FF 0F 6A [13:46:02]RasterBufferAndPrint [13:46:02]line Счет N : (3)127363 [13:46:02]line ИНН: 02508201610067 [13:46:02]line Контрольно-Кассовый Чек [13:46:02]line ПРОДАЖА [13:46:02]line Товар: 48745000 [13:46:02]line Сигареты Winston Purple Mix [13:46:02]line 1.000 * 139.00 [13:46:02]line = 139.00 [13:46:02]line НДС 12% НСП 1% [13:46:02]line > о реализуемом товаре [13:46:02]line ИТОГО: 139.00 [13:46:02]line НСП 1% : 1.23 [13:46:02]line НДС 12% : 14.76 [13:46:02]line Наличными: 139.00 [13:46:02]line Безнал.: 0.00 [13:46:02]line Место: АЗС № 5 "Партнер Нефть" [13:46:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:46:02]line СНО: Общий режим [13:46:02]line Чек 107 14.09.2024 13:46 [13:46:02]line Смена: 506 ФФД: 1.0 [13:46:02]line ЗНМ: 03000000022 [13:46:02]line РНМ: 0000000000091423 [13:46:02]line Версия ККМ: 001 [13:46:02]line ФМ: 0000000000874692 [13:46:02]line ФД: 92456 [13:46:02]line ФПД: 96265207904270 [13:46:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T134604&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92456&fm=96265207904270&tin=02508201610067®Number=0000000000091423&sum=13900 [13:46:03]line 0 [13:46:03]OFD Sender: Processing packet 92456 [packets to send 63, broken 62] [13:46:03]ProducePacketName [13:46:03]name=ofd_packets/00092456 [13:46:03]OFD Sender: To server: pG, [13:46:03]CommunicateWithHost lk.salyk.kg:30040 [13:46:03]ConnectInit lk.salyk.kg [13:46:03]written 0, free lines is 4095 [13:46:03]Connected sock=10 [13:46:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 DD 96 1C 01 0A 15 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 6B 00 00 00 F4 03 04 00 9C 93 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 28 69 01 00 35 04 06 00 57 8D 7D 85 78 0E 75 C2 A0 7C 99 8D F8 77 [13:46:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 01 F8 47 00 12 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 28 69 01 00 F4 03 04 00 17 3C E5 66 B6 04 01 00 00 5B 47 42 C7 5D 5D 51 59 [13:46:03]CommunicateWithHost err = 0 [13:46:03]CheckOFDResponse [13:46:03]1017 (14) - 77093643461234 [13:46:03]1041 (16) - 0000000000874692 [13:46:03]1040 (4) - 92456 [13:46:03]1012 (4) - 14.09.2024 07:32 [13:46:03]1206 (1) - 0 [13:46:03]OFD Sender: Remove packet 92456 [13:46:03]ProducePacketName [13:46:03]name=ofd_packets/00092456 [13:46:03]NVStorageDeleteData [13:46:03]Write to MH i2c: 01 00 00 5D 20 7D [13:46:03]Write i2c OK [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: 01 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: 01 07 00 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: 01 07 00 5D 20 00 00 00 00 00 25 0D B6 [13:46:03]RasterBufferAndPrint [13:46:03]line [13:46:03]line [13:46:03]line [13:46:03]line [13:46:03]line [13:46:03]written 0, free lines is 3371 [13:46:03]MH_Cut [13:46:03]Write to MH i2c: D1 01 00 64 20 01 56 [13:46:03]Write i2c OK [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: D1 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: D1 01 00 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: D1 01 00 64 20 00 55 [13:46:03]Write to MH i2c: 01 00 00 65 20 85 [13:46:03]Write i2c OK [13:46:03]MH_I2C_Read... [13:46:04]OFD Sender: No OFD packet to send [13:46:04]*** Cut start [13:46:04]*** Purtial cut [13:46:04]*** Stage 1: CUTSNS_PIN = 1 [13:46:06]Read from MH i2c: 01 [13:46:06]MH_I2C_Read... [13:46:06]*** Stop cut motor [13:46:06]*** Cut end [13:46:06]Read from MH i2c: 01 07 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 07 00 65 20 00 00 00 00 00 FF 0F 9A [13:46:06]process_action close_receipt done [13:46:06]requested_data is exist [13:46:06]produce_requested_data [13:46:06]requested_item fm.sn is exist - process it [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 11 00 00 [13:46:06]Write to MH i2c: E2 08 00 66 20 80 11 00 00 00 00 00 00 00 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 17 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 17 00 66 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 57 [13:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:46:06]wFMCommunicate OK [13:46:06]requested_item fd.num is exist - process it [13:46:06]SAM_PROTO_GetFieldsCounters [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 13 00 00 [13:46:06]Write to MH i2c: E2 08 00 67 20 80 13 00 00 00 00 00 00 03 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 62 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 62 00 67 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 28 69 01 00 0E 04 04 00 FA 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 F0 [13:46:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 28 69 01 00 0E 04 04 00 FA 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:46:06]wFMCommunicate OK [13:46:06]SAM_PROTO_GetFieldsCounters done [13:46:06]requested_item shift.num is exist - process it [13:46:06]requested_item shift.opened is exist - process it [13:46:06]req_shift_opened [13:46:06]FM_GetShiftState [13:46:06]SAM_PROTO_GetShiftState [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 13 01 00 [13:46:06]Write to MH i2c: E2 08 00 68 20 80 13 01 00 00 00 00 00 05 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 0E 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 0E 00 68 20 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9F [13:46:06]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:46:06]wFMCommunicate OK [13:46:06]SAM_PROTO_GetShiftState done [13:46:06]FM_GetShiftState done [13:46:06]req_shift_opened done [13:46:06]requested_item shift.open_date is exist - process it [13:46:06]req_shift_open_date [13:46:06]req_shift_open_date done [13:46:06]produce_requested_data done [13:46:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92456,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:46:06]process_action_free close_receipt [13:46:06]json_value_free [13:46:06]json_value_free done [13:46:06]process_json_proto returns [13:46:06]Send response to host [13:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92456,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:46:06]free response buf [13:46:06]execute_script done [13:46:06]execute_script returns [13:46:06]free content buf [13:46:06]Sock 8.Close socket [13:46:06]Sock 8.Thread stoped [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:01]accept exits with 9 [13:58:01]New connection [13:58:01]New thread 3066801508 created [13:58:01] Sock 9.Parse request [13:58:01]Sock 9.Check first char [13:58:01]Sock 9.First char is OK [13:58:01]request: POST /json_proto HTTP/1.0 [13:58:01]Method: POST [13:58:01]URL: /json_proto [13:58:01]Method is POST - this is cgi request [13:58:01]url: /json_proto [13:58:01]query_string will be loaded in cgi processing [13:58:01]execute_cgi json_proto POST (null) [13:58:01]execute_cgi path=json_proto method=POST [13:58:01]POST find Content-Length [13:58:01]Host: 172.17.57.71:8080 [13:58:01]Content-Length: 670 [13:58:01]Content-Type: application/json [13:58:01] [13:58:01]POST finish read [13:58:01]Found Content-Length = 670 [13:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:01]execute_script... [13:58:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:01]POST & json_proto [13:58:01]process_json_proto [13:58:01]json parsed OK: [13:58:01]protocol is kg_v1.0 [13:58:01]action value=close_receipt [13:58:01]process_action close_receipt [13:58:01]cmd_close_receipt [13:58:01]MH_GetDate [13:58:01]Write to MH i2c: F0 00 00 69 20 78 [13:58:01]Thread 3066658148 joined [13:58:01]Waiting for new connection... [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: F0 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: F0 09 00 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: F0 09 00 69 20 00 6C 96 E5 66 33 3A A4 66 45 [13:58:01]GetLastDocTimeStamp 1726321564 [13:58:01]current date 1726322284 [13:58:01]FM_GetShiftState [13:58:01]SAM_PROTO_GetShiftState [13:58:01]wFMCommunicate request_size=4 [13:58:01]MH_SAM_APDU [13:58:01]CAPDU: 80 13 01 00 [13:58:01]Write to MH i2c: E2 08 00 6A 20 80 13 01 00 00 00 00 00 07 [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:01]Read from MH i2c: E2 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: E2 0E 00 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: E2 0E 00 6A 20 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A1 [13:58:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:58:01]wFMCommunicate OK [13:58:01]SAM_PROTO_GetShiftState done [13:58:01]FM_GetShiftState done [13:58:01]opened in 1726273389 [13:58:01]opened+sec_in_day 1726359789 [13:58:01]quantity*price = 50042 [13:58:01]sum+1 = 50043 [13:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 108 14.09.2024 13:58 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92457 ФПД: 135300685777102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T135805&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92457&fm=135300685777102&tin=02508201610067®Number=0000000000091423&sum=50000 [13:58:02]StoreToDocumentArchive [13:58:02]shift 506 fd 92457 [13:58:02]save to /storage/0506/doc_00092457 [13:58:02]save last doc name /storage/0506/doc_00092457 to /storage/kkm_last_doc_name [13:58:02]save OK [13:58:02]Clear old archive folders... [13:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:58:02]tlvbuf is B6F30480 [13:58:02]SAM_PROTO_ClearQueue [13:58:02]wFMCommunicate request_size=4 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 09 00 00 [13:58:02]Write to MH i2c: E2 08 00 77 20 80 09 00 00 00 00 00 00 09 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 77 20 00 90 00 0B [13:58:02]RAPDU: 90 00 [13:58:02]wFMCommunicate OK [13:58:02]SAM_PROTO_ClearQueue done [13:58:02]KKMCreateOFDPacket [13:58:02]OFDProtocolAddRootSTLVToBuf [13:58:02]FM_MakeSignedData [13:58:02]FM_MakeSignedData [13:58:02]SAM_PROTO_SignData [13:58:02]wFMCommunicate request_size=4 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 0D 01 02 [13:58:02]Write to MH i2c: E2 08 00 78 20 80 0D 01 02 00 00 00 00 11 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [13:58:02]RAPDU: 90 00 [13:58:02]wFMCommunicate OK [13:58:02]wFMCommunicate request_size=255 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6D 96 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 69 01 00 35 04 06 00 [13:58:02]Write to MH i2c: E2 02 01 79 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6D 96 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 69 01 00 35 04 06 00 00 00 79 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:03]Read from MH i2c: E2 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 03 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [13:58:03]RAPDU: 90 00 [13:58:03]wFMCommunicate OK [13:58:03]wFMCommunicate request_size=11 [13:58:03]MH_SAM_APDU [13:58:03]CAPDU: 80 0D 02 02 06 7B 0E 25 50 48 CE [13:58:03]Write to MH i2c: E2 0E 00 7A 20 80 0D 02 02 06 00 7B 0E 25 50 48 CE 00 00 34 [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:03]Read from MH i2c: E2 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 03 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [13:58:03]RAPDU: 90 00 [13:58:03]wFMCommunicate OK [13:58:03]wFMCommunicate request_size=4 [13:58:03]MH_SAM_APDU [13:58:03]CAPDU: 80 0D 03 02 [13:58:03]Write to MH i2c: E2 08 00 7B 20 80 0D 03 02 00 00 00 00 16 [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:03]Read from MH i2c: E2 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 0B 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 0B 00 7B 20 00 F8 4C C8 52 EF A3 A5 25 90 00 D1 [13:58:03]RAPDU: F8 4C C8 52 EF A3 A5 25 90 00 [13:58:03]wFMCommunicate OK [13:58:03]SAM_PROTO_SignData done [13:58:03]FM_MakeSignedData done [13:58:03]CreateOFDProtocolMessage [13:58:03]wFMCommunicate request_size=4 [13:58:03]MH_SAM_APDU [13:58:03]CAPDU: 80 11 00 00 [13:58:03]Write to MH i2c: E2 08 00 7C 20 80 11 00 00 00 00 00 00 16 [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:03]Read from MH i2c: E2 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 17 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 17 00 7C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6D [13:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:58:03]wFMCommunicate OK [13:58:03]CreateOFDProtocolMessage done [13:58:03]OFDSenderStorePacket 92457 [13:58:03]StoreOFDPacket docnum=92457 [13:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 01 00 00 D1 F1 08 01 3A 6C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6D 96 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 69 01 00 35 04 06 00 7B 0E 25 50 48 CE F8 4C C8 52 EF A3 A5 25 [13:58:03]CheckFolder [13:58:03]dirname=/storage/ofd_packets [13:58:03]CheckFolder done [13:58:03]ProducePacketName [13:58:03]name=ofd_packets/00092457 [13:58:03]NVStorageSaveData ofd_packets/00092457 [13:58:03]File name is /storage/ofd_packets/00092457 [13:58:03]Write 302 bytes [13:58:03]NVStorageSaveData done [13:58:03]OFDSenderStorePacket done [13:58:03]KKMCreateOFDPacket done [13:58:03]NVStorageSaveData kkm_last_timestamp [13:58:03]File name is /storage/kkm_last_timestamp [13:58:03]Write 4 bytes [13:58:03]NVStorageSaveData done [13:58:03]ExternCall_PrintAddStr [13:58:03]wPrintStart [13:58:03]Write to MH i2c: 01 00 00 7D 20 9D [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 7D 20 00 00 00 00 00 FF 0F B2 [13:58:03]RasterBufferAndPrint [13:58:03]line Счет N : (1)647607 [13:58:03]line ИНН: 02508201610067 [13:58:03]line Контрольно-Кассовый Чек [13:58:03]line ПРОДАЖА [13:58:03]line ТРК (МРК, ГНК) : 51 [13:58:03]line Товар: 2710124130 [13:58:03]line SUPER 92-К-5 [13:58:03]line 7.370 * 67.90 [13:58:03]line = 500.42 [13:58:03]line НДС 12% НСП 1% [13:58:03]line > о реализуемом товаре [13:58:03]line ОКРУГЛЕНИЕ: -0.42 [13:58:03]line ИТОГО: 500.00 [13:58:03]line Внесено: 500.00 [13:58:03]line СДАЧА: 0.00 [13:58:03]line НСП 1% : 4.43 [13:58:03]line НДС 12% : 53.14 [13:58:03]line Наличными: 500.00 [13:58:03]line Безнал.: 0.00 [13:58:03]line Место: АЗС № 5 "Партнер Нефть" [13:58:03]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:58:03]line СНО: Общий режим [13:58:03]line Чек 108 14.09.2024 13:58 [13:58:03]line Смена: 506 ФФД: 1.0 [13:58:03]line ЗНМ: 03000000022 [13:58:03]line РНМ: 0000000000091423 [13:58:03]line Версия ККМ: 001 [13:58:03]line ФМ: 0000000000874692 [13:58:03]line ФД: 92457 [13:58:03]line ФПД: 135300685777102 [13:58:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T135805&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92457&fm=135300685777102&tin=02508201610067®Number=0000000000091423&sum=50000 [13:58:03]OFD Sender: Processing packet 92457 [packets to send 63, broken 62] [13:58:03]ProducePacketName [13:58:03]name=ofd_packets/00092457 [13:58:03]OFD Sender: To server: pG, [13:58:03]CommunicateWithHost lk.salyk.kg:30040 [13:58:03]ConnectInit lk.salyk.kg [13:58:03]written 0, free lines is 4095 [13:58:03]Connected sock=8 [13:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 01 00 00 D1 F1 08 01 3A 6C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6D 96 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 69 01 00 35 04 06 00 7B 0E 25 50 48 CE F8 4C C8 52 EF A3 A5 25 [13:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 16 1C 47 00 1C 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 29 69 01 00 F4 03 04 00 E8 3E E5 66 B6 04 01 00 00 83 42 BA 4A AE CC 63 B6 [13:58:03]CommunicateWithHost err = 0 [13:58:03]CheckOFDResponse [13:58:03]1017 (14) - 77093643461234 [13:58:03]1041 (16) - 0000000000874692 [13:58:03]1040 (4) - 92457 [13:58:03]1012 (4) - 14.09.2024 07:44 [13:58:03]1206 (1) - 0 [13:58:03]OFD Sender: Remove packet 92457 [13:58:03]ProducePacketName [13:58:03]name=ofd_packets/00092457 [13:58:03]NVStorageDeleteData [13:58:04]Write to MH i2c: 01 00 00 A8 20 C8 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 07 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 07 00 A8 20 00 00 00 00 00 EA 0C C5 [13:58:04]RasterBufferAndPrint [13:58:04]line [13:58:04]line [13:58:04]line [13:58:04]line [13:58:04]line [13:58:04]written 0, free lines is 3313 [13:58:04]MH_Cut [13:58:04]Write to MH i2c: D1 01 00 AF 20 01 A1 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: D1 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: D1 01 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: D1 01 00 AF 20 00 A0 [13:58:04]Write to MH i2c: 01 00 00 B0 20 D0 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]OFD Sender: No OFD packet to send [13:58:04]*** Cut start [13:58:04]*** Purtial cut [13:58:04]*** Stage 1: CUTSNS_PIN = 1 [13:58:06]Read from MH i2c: 01 [13:58:06]MH_I2C_Read... [13:58:06]*** Stop cut motor [13:58:06]*** Cut end [13:58:06]Read from MH i2c: 01 07 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: 01 07 00 B0 20 00 00 00 00 00 FF 0F E5 [13:58:06]process_action close_receipt done [13:58:06]requested_data is exist [13:58:06]produce_requested_data [13:58:06]requested_item fm.sn is exist - process it [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 11 00 00 [13:58:06]Write to MH i2c: E2 08 00 B1 20 80 11 00 00 00 00 00 00 4B [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 17 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 17 00 B1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A2 [13:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:58:06]wFMCommunicate OK [13:58:06]requested_item fd.num is exist - process it [13:58:06]SAM_PROTO_GetFieldsCounters [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 13 00 00 [13:58:06]Write to MH i2c: E2 08 00 B2 20 80 13 00 00 00 00 00 00 4E [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 62 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 62 00 B2 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 29 69 01 00 0E 04 04 00 FA 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 3F [13:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 29 69 01 00 0E 04 04 00 FA 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:58:06]wFMCommunicate OK [13:58:06]SAM_PROTO_GetFieldsCounters done [13:58:06]requested_item shift.num is exist - process it [13:58:06]requested_item shift.opened is exist - process it [13:58:06]req_shift_opened [13:58:06]FM_GetShiftState [13:58:06]SAM_PROTO_GetShiftState [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 13 01 00 [13:58:06]Write to MH i2c: E2 08 00 B3 20 80 13 01 00 00 00 00 00 50 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 0E 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 0E 00 B3 20 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EA [13:58:06]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:58:06]wFMCommunicate OK [13:58:06]SAM_PROTO_GetShiftState done [13:58:06]FM_GetShiftState done [13:58:06]req_shift_opened done [13:58:06]requested_item shift.open_date is exist - process it [13:58:06]req_shift_open_date [13:58:06]req_shift_open_date done [13:58:06]produce_requested_data done [13:58:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92457,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:58:06]process_action_free close_receipt [13:58:06]json_value_free [13:58:06]json_value_free done [13:58:06]process_json_proto returns [13:58:06]Send response to host [13:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92457,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:58:06]free response buf [13:58:06]execute_script done [13:58:06]execute_script returns [13:58:06]free content buf [13:58:06]Sock 9.Close socket [13:58:06]Sock 9.Thread stoped [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:38]accept exits with 10 [13:58:38]New connection [13:58:38]New thread 3066658148 created [13:58:38]Thread 3066801508 joined [13:58:38]Waiting for new connection... [13:58:38] Sock 10.Parse request [13:58:38]Sock 10.Check first char [13:58:38]Sock 10.First char is OK [13:58:38]request: POST /json_proto HTTP/1.0 [13:58:38]Method: POST [13:58:38]URL: /json_proto [13:58:38]Method is POST - this is cgi request [13:58:38]url: /json_proto [13:58:38]query_string will be loaded in cgi processing [13:58:38]execute_cgi json_proto POST (null) [13:58:38]execute_cgi path=json_proto method=POST [13:58:38]POST find Content-Length [13:58:38]Host: 172.17.57.71:8080 [13:58:38]Content-Length: 805 [13:58:38]Content-Type: application/json [13:58:38] [13:58:38]POST finish read [13:58:38]Found Content-Length = 805 [13:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:38]execute_script... [13:58:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:38]POST & json_proto [13:58:38]process_json_proto [13:58:38]json parsed OK: [13:58:38]protocol is kg_v1.0 [13:58:38]action value=close_receipt [13:58:38]process_action close_receipt [13:58:38]cmd_close_receipt [13:58:38]MH_GetDate [13:58:38]Write to MH i2c: F0 00 00 B4 20 C3 [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: F0 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: F0 09 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: F0 09 00 B4 20 00 91 96 E5 66 33 3A A4 66 B5 [13:58:38]GetLastDocTimeStamp 1726322285 [13:58:38]current date 1726322321 [13:58:38]FM_GetShiftState [13:58:38]SAM_PROTO_GetShiftState [13:58:38]wFMCommunicate request_size=4 [13:58:38]MH_SAM_APDU [13:58:38]CAPDU: 80 13 01 00 [13:58:38]Write to MH i2c: E2 08 00 B5 20 80 13 01 00 00 00 00 00 52 [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:38]Read from MH i2c: E2 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 0E 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: E2 0E 00 B5 20 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EC [13:58:38]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:58:38]wFMCommunicate OK [13:58:38]SAM_PROTO_GetShiftState done [13:58:38]FM_GetShiftState done [13:58:38]opened in 1726273389 [13:58:38]opened+sec_in_day 1726359789 [13:58:38]quantity*price = 60009 [13:58:38]sum+1 = 60010 [13:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 109 14.09.2024 13:58 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92458 ФПД: 246618740979030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T135841&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92458&fm=246618740979030&tin=02508201610067®Number=0000000000091423&sum=60009 [13:58:39]StoreToDocumentArchive [13:58:39]shift 506 fd 92458 [13:58:39]save to /storage/0506/doc_00092458 [13:58:39]save last doc name /storage/0506/doc_00092458 to /storage/kkm_last_doc_name [13:58:39]save OK [13:58:39]Clear old archive folders... [13:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:39]tlvbuf is 00F830A0 [13:58:39]SAM_PROTO_ClearQueue [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 09 00 00 [13:58:39]Write to MH i2c: E2 08 00 C2 20 80 09 00 00 00 00 00 00 54 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 03 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [13:58:39]RAPDU: 90 00 [13:58:39]wFMCommunicate OK [13:58:39]SAM_PROTO_ClearQueue done [13:58:39]KKMCreateOFDPacket [13:58:39]OFDProtocolAddRootSTLVToBuf [13:58:39]FM_MakeSignedData [13:58:39]FM_MakeSignedData [13:58:39]SAM_PROTO_SignData [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 0D 01 02 [13:58:39]Write to MH i2c: E2 08 00 C3 20 80 0D 01 02 00 00 00 00 5C [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 03 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [13:58:39]RAPDU: 90 00 [13:58:39]wFMCommunicate OK [13:58:39]wFMCommunicate request_size=255 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 91 96 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 69 01 00 35 04 06 00 E0 [13:58:39]Write to MH i2c: E2 02 01 C4 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 91 96 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 69 01 00 35 04 06 00 E0 00 00 26 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 03 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [13:58:39]RAPDU: 90 00 [13:58:39]wFMCommunicate OK [13:58:39]wFMCommunicate request_size=10 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 0D 02 02 05 4C 66 73 75 56 [13:58:39]Write to MH i2c: E2 0D 00 C5 20 80 0D 02 02 05 00 4C 66 73 75 56 00 00 59 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 03 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [13:58:39]RAPDU: 90 00 [13:58:39]wFMCommunicate OK [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 0D 03 02 [13:58:39]Write to MH i2c: E2 08 00 C6 20 80 0D 03 02 00 00 00 00 61 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 0B 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 0B 00 C6 20 00 FE 87 9E FE 0A 6E 6F FB 90 00 65 [13:58:39]RAPDU: FE 87 9E FE 0A 6E 6F FB 90 00 [13:58:39]wFMCommunicate OK [13:58:39]SAM_PROTO_SignData done [13:58:39]FM_MakeSignedData done [13:58:39]CreateOFDProtocolMessage [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 11 00 00 [13:58:39]Write to MH i2c: E2 08 00 C7 20 80 11 00 00 00 00 00 00 61 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 17 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 17 00 C7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B8 [13:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:58:39]wFMCommunicate OK [13:58:39]CreateOFDProtocolMessage done [13:58:39]OFDSenderStorePacket 92458 [13:58:39]StoreOFDPacket docnum=92458 [13:58:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 25 94 07 01 8B 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 91 96 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 69 01 00 35 04 06 00 E0 4C 66 73 75 56 FE 87 9E FE 0A 6E 6F FB [13:58:39]CheckFolder [13:58:39]dirname=/storage/ofd_packets [13:58:39]CheckFolder done [13:58:39]ProducePacketName [13:58:39]name=ofd_packets/00092458 [13:58:39]NVStorageSaveData ofd_packets/00092458 [13:58:39]File name is /storage/ofd_packets/00092458 [13:58:39]Write 301 bytes [13:58:39]NVStorageSaveData done [13:58:39]OFDSenderStorePacket done [13:58:39]KKMCreateOFDPacket done [13:58:39]NVStorageSaveData kkm_last_timestamp [13:58:39]File name is /storage/kkm_last_timestamp [13:58:39]Write 4 bytes [13:58:39]NVStorageSaveData done [13:58:39]ExternCall_PrintAddStr [13:58:39]wPrintStart [13:58:39]Write to MH i2c: 01 00 00 C8 20 E8 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: 01 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: 01 07 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: 01 07 00 C8 20 00 00 00 00 00 FF 0F FD [13:58:39]RasterBufferAndPrint [13:58:39]line Счет N : (1)647608 [13:58:39]line ИНН: 02508201610067 [13:58:39]line Контрольно-Кассовый Чек [13:58:39]line ПРОДАЖА [13:58:39]line ТРК (МРК, ГНК) : 13 [13:58:39]line Товар: 2710124130 [13:58:39]line Аи-92-К-5 [13:58:39]line 8.970 * 66.90 [13:58:39]line = 600.09 [13:58:39]line НДС 12% НСП 1% [13:58:39]line > о реализуемом товаре [13:58:39]line ИТОГО: 600.09 [13:58:39]line НСП 1% : 5.31 [13:58:39]line НДС 12% : 63.73 [13:58:39]line Наличными: 0.00 [13:58:39]line Безнал.: 600.09 [13:58:39]line Место: АЗС № 5 "Партнер Нефть" [13:58:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [13:58:39]line СНО: Общий режим [13:58:39]line Чек 109 14.09.2024 13:58 [13:58:39]line Смена: 506 ФФД: 1.0 [13:58:39]line ЗНМ: 03000000022 [13:58:39]line РНМ: 0000000000091423 [13:58:39]line Версия ККМ: 001 [13:58:39]line Платежная система: О! деньги [13:58:39]line ФМ: 0000000000874692 [13:58:39]line ФД: 92458 [13:58:39]line ФПД: 246618740979030 [13:58:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T135841&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92458&fm=246618740979030&tin=02508201610067®Number=0000000000091423&sum=60009 [13:58:40]OFD Sender: Processing packet 92458 [packets to send 63, broken 62] [13:58:40]ProducePacketName [13:58:40]name=ofd_packets/00092458 [13:58:40]OFD Sender: To server: pG, [13:58:40]CommunicateWithHost lk.salyk.kg:30040 [13:58:40]ConnectInit lk.salyk.kg [13:58:40]written 0, free lines is 4095 [13:58:40]Connected sock=9 [13:58:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 25 94 07 01 8B 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 91 96 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2A 69 01 00 35 04 06 00 E0 4C 66 73 75 56 FE 87 9E FE 0A 6E 6F FB [13:58:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DA 52 47 00 F9 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 34 36 39 32 10 04 04 00 2A 69 01 00 F4 03 04 00 0C 3F E5 66 B6 04 01 00 00 2D 73 FE 81 19 D0 12 B9 [13:58:40]CommunicateWithHost err = 0 [13:58:40]CheckOFDResponse [13:58:40]1017 (14) - 77093643461234 [13:58:40]1041 (16) - 0000000000874692 [13:58:40]1040 (4) - 92458 [13:58:40]1012 (4) - 14.09.2024 07:45 [13:58:40]1206 (1) - 0 [13:58:40]OFD Sender: Remove packet 92458 [13:58:40]ProducePacketName [13:58:40]name=ofd_packets/00092458 [13:58:40]NVStorageDeleteData [13:58:40]Write to MH i2c: 01 00 00 F2 20 12 [13:58:40]Write i2c OK [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: 01 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: 01 07 00 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: 01 07 00 F2 20 00 00 00 00 00 0F 0D 35 [13:58:40]RasterBufferAndPrint [13:58:40]line [13:58:40]line [13:58:40]line [13:58:40]line [13:58:40]line [13:58:40]written 0, free lines is 3350 [13:58:40]MH_Cut [13:58:40]Write to MH i2c: D1 01 00 F9 20 01 EB [13:58:40]Write i2c OK [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: D1 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: D1 01 00 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: D1 01 00 F9 20 00 EA [13:58:40]Write to MH i2c: 01 00 00 FA 20 1A [13:58:40]Write i2c OK [13:58:40]MH_I2C_Read... [13:58:41]OFD Sender: No OFD packet to send [13:58:41]*** Cut start [13:58:41]*** Purtial cut [13:58:41]*** Stage 1: CUTSNS_PIN = 1 [13:58:43]Read from MH i2c: 01 [13:58:43]MH_I2C_Read... [13:58:43]*** Stop cut motor [13:58:43]*** Cut end [13:58:43]Read from MH i2c: 01 07 00 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: 01 07 00 FA 20 00 00 00 00 00 FF 0F 2F [13:58:43]process_action close_receipt done [13:58:43]requested_data is exist [13:58:43]produce_requested_data [13:58:43]requested_item fm.sn is exist - process it [13:58:43]wFMCommunicate request_size=4 [13:58:43]MH_SAM_APDU [13:58:43]CAPDU: 80 11 00 00 [13:58:43]Write to MH i2c: E2 08 00 FB 20 80 11 00 00 00 00 00 00 95 [13:58:43]Write i2c OK [13:58:43]MH_I2C_Read... [13:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:43]Read from MH i2c: E2 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 17 00 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 17 00 FB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EC [13:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [13:58:43]wFMCommunicate OK [13:58:43]requested_item fd.num is exist - process it [13:58:43]SAM_PROTO_GetFieldsCounters [13:58:43]wFMCommunicate request_size=4 [13:58:43]MH_SAM_APDU [13:58:43]CAPDU: 80 13 00 00 [13:58:43]Write to MH i2c: E2 08 00 FC 20 80 13 00 00 00 00 00 00 98 [13:58:43]Write i2c OK [13:58:43]MH_I2C_Read... [13:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:43]Read from MH i2c: E2 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 62 00 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 62 00 FC 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2A 69 01 00 0E 04 04 00 FA 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 8D [13:58:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2A 69 01 00 0E 04 04 00 FA 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:58:43]wFMCommunicate OK [13:58:43]SAM_PROTO_GetFieldsCounters done [13:58:43]requested_item shift.num is exist - process it [13:58:43]requested_item shift.opened is exist - process it [13:58:43]req_shift_opened [13:58:43]FM_GetShiftState [13:58:43]SAM_PROTO_GetShiftState [13:58:43]wFMCommunicate request_size=4 [13:58:43]MH_SAM_APDU [13:58:43]CAPDU: 80 13 01 00 [13:58:43]Write to MH i2c: E2 08 00 FD 20 80 13 01 00 00 00 00 00 9A [13:58:43]Write i2c OK [13:58:43]MH_I2C_Read... [13:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:43]Read from MH i2c: E2 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 0E 00 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 0E 00 FD 20 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 34 [13:58:43]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [13:58:43]wFMCommunicate OK [13:58:43]SAM_PROTO_GetShiftState done [13:58:43]FM_GetShiftState done [13:58:43]req_shift_opened done [13:58:43]requested_item shift.open_date is exist - process it [13:58:43]req_shift_open_date [13:58:43]req_shift_open_date done [13:58:43]produce_requested_data done [13:58:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92458,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [13:58:43]process_action_free close_receipt [13:58:43]json_value_free [13:58:43]json_value_free done [13:58:43]process_json_proto returns [13:58:43]Send response to host [13:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92458,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [13:58:43]free response buf [13:58:43]execute_script done [13:58:43]execute_script returns [13:58:43]free content buf [13:58:43]Sock 10.Close socket [13:58:43]Sock 10.Thread stoped [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]accept exits with 8 [14:03:11]New connection [14:03:11]New thread 3066801508 created [14:03:11]Thread 3066658148 joined [14:03:11]Waiting for new connection... [14:03:11] Sock 8.Parse request [14:03:11]Sock 8.Check first char [14:03:11]Sock 8.First char is OK [14:03:11]request: POST /json_proto HTTP/1.0 [14:03:11]Method: POST [14:03:11]URL: /json_proto [14:03:11]Method is POST - this is cgi request [14:03:11]url: /json_proto [14:03:11]query_string will be loaded in cgi processing [14:03:11]execute_cgi json_proto POST (null) [14:03:11]execute_cgi path=json_proto method=POST [14:03:11]POST find Content-Length [14:03:11]Host: 172.17.57.71:8080 [14:03:11]Content-Length: 652 [14:03:11]Content-Type: application/json [14:03:11] [14:03:11]POST finish read [14:03:11]Found Content-Length = 652 [14:03:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127364", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:11]execute_script... [14:03:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127364", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:11]POST & json_proto [14:03:11]process_json_proto [14:03:11]json parsed OK: [14:03:11]protocol is kg_v1.0 [14:03:11]action value=close_receipt [14:03:11]process_action close_receipt [14:03:11]cmd_close_receipt [14:03:11]MH_GetDate [14:03:11]Write to MH i2c: F0 00 00 FE 20 0D [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: F0 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: F0 09 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: F0 09 00 FE 20 00 A2 97 E5 66 33 3A A4 66 11 [14:03:11]GetLastDocTimeStamp 1726322321 [14:03:11]current date 1726322594 [14:03:11]FM_GetShiftState [14:03:11]SAM_PROTO_GetShiftState [14:03:11]wFMCommunicate request_size=4 [14:03:11]MH_SAM_APDU [14:03:11]CAPDU: 80 13 01 00 [14:03:11]Write to MH i2c: E2 08 00 FF 20 80 13 01 00 00 00 00 00 9C [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:11]Read from MH i2c: E2 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 0E 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 0E 00 FF 20 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 36 [14:03:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:03:11]wFMCommunicate OK [14:03:11]SAM_PROTO_GetShiftState done [14:03:11]FM_GetShiftState done [14:03:11]opened in 1726273389 [14:03:11]opened+sec_in_day 1726359789 [14:03:11]quantity*price = 9500 [14:03:11]sum+1 = 9501 [14:03:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 110 14.09.2024 14:03 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92459 ФПД: 116009001850213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140314&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92459&fm=116009001850213&tin=02508201610067®Number=0000000000091423&sum=9500 0 [14:03:12]StoreToDocumentArchive [14:03:12]shift 506 fd 92459 [14:03:12]save to /storage/0506/doc_00092459 [14:03:12]save last doc name /storage/0506/doc_00092459 to /storage/kkm_last_doc_name [14:03:12]save OK [14:03:12]Clear old archive folders... [14:03:12]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:03:12]tlvbuf is 00FB3EE0 [14:03:12]SAM_PROTO_ClearQueue [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 09 00 00 [14:03:12]Write to MH i2c: E2 08 00 0C 21 80 09 00 00 00 00 00 00 9F [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]SAM_PROTO_ClearQueue done [14:03:12]KKMCreateOFDPacket [14:03:12]OFDProtocolAddRootSTLVToBuf [14:03:12]FM_MakeSignedData [14:03:12]FM_MakeSignedData [14:03:12]SAM_PROTO_SignData [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 01 02 [14:03:12]Write to MH i2c: E2 08 00 0D 21 80 0D 01 02 00 00 00 00 A7 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=255 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 6E 00 00 00 F4 03 04 00 A2 97 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [14:03:12]Write to MH i2c: E2 02 01 0E 21 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 6E 00 00 00 F4 03 04 00 A2 97 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 AD [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=34 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 69 01 00 35 04 06 00 69 82 73 58 95 65 [14:03:12]Write to MH i2c: E2 25 00 0F 21 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 69 01 00 35 04 06 00 69 82 73 58 95 65 00 00 B4 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 03 02 [14:03:12]Write to MH i2c: E2 08 00 10 21 80 0D 03 02 00 00 00 00 AC [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 0B 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 0B 00 10 21 00 9E 21 F8 E8 15 D4 D9 7C 90 00 8A [14:03:12]RAPDU: 9E 21 F8 E8 15 D4 D9 7C 90 00 [14:03:12]wFMCommunicate OK [14:03:12]SAM_PROTO_SignData done [14:03:12]FM_MakeSignedData done [14:03:12]CreateOFDProtocolMessage [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 11 00 00 [14:03:12]Write to MH i2c: E2 08 00 11 21 80 11 00 00 00 00 00 00 AC [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 17 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 17 00 11 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 03 [14:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:03:12]wFMCommunicate OK [14:03:12]CreateOFDProtocolMessage done [14:03:12]OFDSenderStorePacket 92459 [14:03:12]StoreOFDPacket docnum=92459 [14:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 97 08 1F 01 1B F0 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 6E 00 00 00 F4 03 04 00 A2 97 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 69 01 00 35 04 06 00 69 82 73 58 95 65 9E 21 F8 E8 15 D4 D9 7C [14:03:12]CheckFolder [14:03:12]dirname=/storage/ofd_packets [14:03:12]CheckFolder done [14:03:12]ProducePacketName [14:03:12]name=ofd_packets/00092459 [14:03:12]NVStorageSaveData ofd_packets/00092459 [14:03:12]File name is /storage/ofd_packets/00092459 [14:03:12]Write 325 bytes [14:03:12]NVStorageSaveData done [14:03:12]OFDSenderStorePacket done [14:03:12]KKMCreateOFDPacket done [14:03:12]NVStorageSaveData kkm_last_timestamp [14:03:12]File name is /storage/kkm_last_timestamp [14:03:12]Write 4 bytes [14:03:12]NVStorageSaveData done [14:03:12]ExternCall_PrintAddStr [14:03:12]wPrintStart [14:03:12]Write to MH i2c: 01 00 00 12 21 33 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 07 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 07 00 12 21 00 00 00 00 00 FF 0F 48 [14:03:12]RasterBufferAndPrint [14:03:12]line Счет N : (3)127364 [14:03:12]line ИНН: 02508201610067 [14:03:12]line Контрольно-Кассовый Чек [14:03:12]line ПРОДАЖА [14:03:12]line Товар: 4660013331438 [14:03:12]line Эскимо Московское [14:03:12]line 1.000 * 95.00 [14:03:12]line = 95.00 [14:03:12]line НДС 12% НСП 1% [14:03:12]line > о реализуемом товаре [14:03:12]line ИТОГО: 95.00 [14:03:12]line НСП 1% : 0.84 [14:03:12]line НДС 12% : 10.09 [14:03:12]line Наличными: 95.00 [14:03:12]line Безнал.: 0.00 [14:03:12]line Место: АЗС № 5 "Партнер Нефть" [14:03:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:03:12]line СНО: Общий режим [14:03:12]line Чек 110 14.09.2024 14:03 [14:03:12]line Смена: 506 ФФД: 1.0 [14:03:12]line ЗНМ: 03000000022 [14:03:12]line РНМ: 0000000000091423 [14:03:12]line Версия ККМ: 001 [14:03:12]line ФМ: 0000000000874692 [14:03:12]line ФД: 92459 [14:03:12]line ФПД: 116009001850213 [14:03:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140314&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92459&fm=116009001850213&tin=02508201610067®Number=0000000000091423&sum=9500 [14:03:13]line 0 [14:03:13]OFD Sender: Processing packet 92459 [packets to send 63, broken 62] [14:03:13]ProducePacketName [14:03:13]name=ofd_packets/00092459 [14:03:13]OFD Sender: To server: pG, [14:03:13]CommunicateWithHost lk.salyk.kg:30040 [14:03:13]ConnectInit lk.salyk.kg [14:03:13]written 0, free lines is 4095 [14:03:13]Connected sock=10 [14:03:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 97 08 1F 01 1B F0 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 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 6E 00 00 00 F4 03 04 00 A2 97 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 69 01 00 35 04 06 00 69 82 73 58 95 65 9E 21 F8 E8 15 D4 D9 7C [14:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E1 71 47 00 A1 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2B 69 01 00 F4 03 04 00 1D 40 E5 66 B6 04 01 00 00 E9 6D F5 64 25 EA D8 25 [14:03:13]CommunicateWithHost err = 0 [14:03:13]CheckOFDResponse [14:03:13]1017 (14) - 77093643461234 [14:03:13]1041 (16) - 0000000000874692 [14:03:13]1040 (4) - 92459 [14:03:13]1012 (4) - 14.09.2024 07:49 [14:03:13]1206 (1) - 0 [14:03:13]OFD Sender: Remove packet 92459 [14:03:13]ProducePacketName [14:03:13]name=ofd_packets/00092459 [14:03:13]NVStorageDeleteData [14:03:13]Write to MH i2c: 01 00 00 3A 21 5B [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 07 00 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 07 00 3A 21 00 00 00 00 00 12 0D 81 [14:03:13]RasterBufferAndPrint [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]written 0, free lines is 3351 [14:03:13]MH_Cut [14:03:13]Write to MH i2c: D1 01 00 41 21 01 34 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 01 00 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 01 00 41 21 00 33 [14:03:13]Write to MH i2c: 01 00 00 42 21 63 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:14]OFD Sender: No OFD packet to send [14:03:14]*** Cut start [14:03:14]*** Purtial cut [14:03:14]*** Stage 1: CUTSNS_PIN = 1 [14:03:16]Read from MH i2c: 01 [14:03:16]MH_I2C_Read... [14:03:16]*** Stop cut motor [14:03:16]*** Cut end [14:03:16]Read from MH i2c: 01 07 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: 01 07 00 42 21 00 00 00 00 00 FF 0F 78 [14:03:16]process_action close_receipt done [14:03:16]requested_data is exist [14:03:16]produce_requested_data [14:03:16]requested_item fm.sn is exist - process it [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 11 00 00 [14:03:16]Write to MH i2c: E2 08 00 43 21 80 11 00 00 00 00 00 00 DE [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 17 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 17 00 43 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 35 [14:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:03:16]wFMCommunicate OK [14:03:16]requested_item fd.num is exist - process it [14:03:16]SAM_PROTO_GetFieldsCounters [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 13 00 00 [14:03:16]Write to MH i2c: E2 08 00 44 21 80 13 00 00 00 00 00 00 E1 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 62 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 62 00 44 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2B 69 01 00 0E 04 04 00 FA 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 DA [14:03:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2B 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:16]wFMCommunicate OK [14:03:16]SAM_PROTO_GetFieldsCounters done [14:03:16]requested_item shift.num is exist - process it [14:03:16]requested_item shift.opened is exist - process it [14:03:16]req_shift_opened [14:03:16]FM_GetShiftState [14:03:16]SAM_PROTO_GetShiftState [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 13 01 00 [14:03:16]Write to MH i2c: E2 08 00 45 21 80 13 01 00 00 00 00 00 E3 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 0E 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 0E 00 45 21 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7D [14:03:16]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:03:16]wFMCommunicate OK [14:03:16]SAM_PROTO_GetShiftState done [14:03:16]FM_GetShiftState done [14:03:16]req_shift_opened done [14:03:16]requested_item shift.open_date is exist - process it [14:03:16]req_shift_open_date [14:03:16]req_shift_open_date done [14:03:16]produce_requested_data done [14:03:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92459,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:03:16]process_action_free close_receipt [14:03:16]json_value_free [14:03:16]json_value_free done [14:03:16]process_json_proto returns [14:03:16]Send response to host [14:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92459,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:03:16]free response buf [14:03:16]execute_script done [14:03:16]execute_script returns [14:03:16]free content buf [14:03:16]Sock 8.Close socket [14:03:16]Sock 8.Thread stoped [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:52]accept exits with 9 [14:04:52]New connection [14:04:52]New thread 3066658148 created [14:04:52]Thread 3066801508 joined [14:04:52]Waiting for new connection... [14:04:52] Sock 9.Parse request [14:04:52]Sock 9.Check first char [14:04:52]Sock 9.First char is OK [14:04:52]request: POST /json_proto HTTP/1.0 [14:04:52]Method: POST [14:04:52]URL: /json_proto [14:04:52]Method is POST - this is cgi request [14:04:52]url: /json_proto [14:04:52]query_string will be loaded in cgi processing [14:04:52]execute_cgi json_proto POST (null) [14:04:52]execute_cgi path=json_proto method=POST [14:04:52]POST find Content-Length [14:04:52]Host: 172.17.57.71:8080 [14:04:52]Content-Length: 797 [14:04:52]Content-Type: application/json [14:04:52] [14:04:52]POST finish read [14:04:52]Found Content-Length = 797 [14:04:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127365", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:52]execute_script... [14:04: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)127365", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:52]POST & json_proto [14:04:52]process_json_proto [14:04:52]json parsed OK: [14:04:52]protocol is kg_v1.0 [14:04:52]action value=close_receipt [14:04:52]process_action close_receipt [14:04:52]cmd_close_receipt [14:04:52]MH_GetDate [14:04:52]Write to MH i2c: F0 00 00 46 21 56 [14:04:52]Write i2c OK [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: F0 [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: F0 09 00 [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: F0 09 00 46 21 00 07 98 E5 66 33 3A A4 66 C0 [14:04:52]GetLastDocTimeStamp 1726322594 [14:04:52]current date 1726322695 [14:04:52]FM_GetShiftState [14:04:52]SAM_PROTO_GetShiftState [14:04:52]wFMCommunicate request_size=4 [14:04:52]MH_SAM_APDU [14:04:52]CAPDU: 80 13 01 00 [14:04:52]Write to MH i2c: E2 08 00 47 21 80 13 01 00 00 00 00 00 E5 [14:04:52]Write i2c OK [14:04:52]MH_I2C_Read... [14:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:52]Read from MH i2c: E2 [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: E2 0E 00 [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: E2 0E 00 47 21 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7F [14:04:52]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:04:52]wFMCommunicate OK [14:04:52]SAM_PROTO_GetShiftState done [14:04:52]FM_GetShiftState done [14:04:52]opened in 1726273389 [14:04:52]opened+sec_in_day 1726359789 [14:04:52]quantity*price = 15000 [14:04:52]sum+1 = 15001 [14:04:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 111 14.09.2024 14:04 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92460 ФПД: 56442965509746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140455&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92460&fm=56442965509746&tin=02508201610067®Number=0000000000091423&sum=15000 0 [14:04:53]StoreToDocumentArchive [14:04:53]shift 506 fd 92460 [14:04:53]save to /storage/0506/doc_00092460 [14:04:53]save last doc name /storage/0506/doc_00092460 to /storage/kkm_last_doc_name [14:04:53]save OK [14:04:53]Clear old archive folders... [14:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:04:53]tlvbuf is 00F99640 [14:04:53]SAM_PROTO_ClearQueue [14:04:53]wFMCommunicate request_size=4 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 09 00 00 [14:04:53]Write to MH i2c: E2 08 00 54 21 80 09 00 00 00 00 00 00 E7 [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 54 21 00 90 00 E9 [14:04:53]RAPDU: 90 00 [14:04:53]wFMCommunicate OK [14:04:53]SAM_PROTO_ClearQueue done [14:04:53]KKMCreateOFDPacket [14:04:53]OFDProtocolAddRootSTLVToBuf [14:04:53]FM_MakeSignedData [14:04:53]FM_MakeSignedData [14:04:53]SAM_PROTO_SignData [14:04:53]wFMCommunicate request_size=4 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 0D 01 02 [14:04:53]Write to MH i2c: E2 08 00 55 21 80 0D 01 02 00 00 00 00 EF [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 55 21 00 90 00 EA [14:04:53]RAPDU: 90 00 [14:04:53]wFMCommunicate OK [14:04:53]wFMCommunicate request_size=255 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 07 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [14:04:53]Write to MH i2c: E2 02 01 56 21 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 07 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C5 [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:53]Read from MH i2c: E2 03 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [14:04:53]RAPDU: 90 00 [14:04:53]wFMCommunicate OK [14:04:53]wFMCommunicate request_size=31 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 2C 69 01 00 35 04 06 00 33 55 A6 E8 C6 72 [14:04:53]Write to MH i2c: E2 22 00 57 21 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 2C 69 01 00 35 04 06 00 33 55 A6 E8 C6 72 00 00 05 [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [14:04:53]RAPDU: 90 00 [14:04:53]wFMCommunicate OK [14:04:53]wFMCommunicate request_size=4 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 0D 03 02 [14:04:53]Write to MH i2c: E2 08 00 58 21 80 0D 03 02 00 00 00 00 F4 [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 0B 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 0B 00 58 21 00 7A F8 D3 D1 3A A8 F8 10 90 00 F5 [14:04:53]RAPDU: 7A F8 D3 D1 3A A8 F8 10 90 00 [14:04:53]wFMCommunicate OK [14:04:53]SAM_PROTO_SignData done [14:04:53]FM_MakeSignedData done [14:04:53]CreateOFDProtocolMessage [14:04:53]wFMCommunicate request_size=4 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 11 00 00 [14:04:53]Write to MH i2c: E2 08 00 59 21 80 11 00 00 00 00 00 00 F4 [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 17 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 17 00 59 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4B [14:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:04:53]wFMCommunicate OK [14:04:53]CreateOFDProtocolMessage done [14:04:53]OFDSenderStorePacket 92460 [14:04:53]StoreOFDPacket docnum=92460 [14:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 0E 7C 1C 01 6E E2 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 07 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 69 01 00 35 04 06 00 33 55 A6 E8 C6 72 7A F8 D3 D1 3A A8 F8 10 [14:04:53]CheckFolder [14:04:53]dirname=/storage/ofd_packets [14:04:53]CheckFolder done [14:04:53]ProducePacketName [14:04:53]name=ofd_packets/00092460 [14:04:53]NVStorageSaveData ofd_packets/00092460 [14:04:53]File name is /storage/ofd_packets/00092460 [14:04:53]Write 322 bytes [14:04:53]NVStorageSaveData done [14:04:53]OFDSenderStorePacket done [14:04:53]KKMCreateOFDPacket done [14:04:53]NVStorageSaveData kkm_last_timestamp [14:04:53]File name is /storage/kkm_last_timestamp [14:04:53]Write 4 bytes [14:04:53]NVStorageSaveData done [14:04:53]ExternCall_PrintAddStr [14:04:53]wPrintStart [14:04:53]Write to MH i2c: 01 00 00 5A 21 7B [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: 01 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: 01 07 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: 01 07 00 5A 21 00 00 00 00 00 FF 0F 90 [14:04:53]RasterBufferAndPrint [14:04:53]line Счет N : (3)127365 [14:04:53]line ИНН: 02508201610067 [14:04:53]line Контрольно-Кассовый Чек [14:04:53]line ПРОДАЖА [14:04:53]line Товар: 4640030091607 [14:04:53]line Сигареты ESSE Exchange [14:04:53]line 1.000 * 150.00 [14:04:53]line = 150.00 [14:04:53]line НДС 12% НСП 1% [14:04:53]line > о реализуемом товаре [14:04:53]line ИТОГО: 150.00 [14:04:53]line НСП 1% : 1.33 [14:04:53]line НДС 12% : 15.93 [14:04:53]line Наличными: 0.00 [14:04:53]line Безнал.: 150.00 [14:04:53]line Место: АЗС № 5 "Партнер Нефть" [14:04:53]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:04:53]line СНО: Общий режим [14:04:53]line Чек 111 14.09.2024 14:04 [14:04:53]line Смена: 506 ФФД: 1.0 [14:04:53]line ЗНМ: 03000000022 [14:04:53]line РНМ: 0000000000091423 [14:04:53]line Версия ККМ: 001 [14:04:53]line Платежная система: Бакай Банк [14:04:53]line ФМ: 0000000000874692 [14:04:53]line ФД: 92460 [14:04:53]line ФПД: 56442965509746 [14:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140455&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92460&fm=56442965509746&tin=02508201610067®Number=0000000000091423&sum=15000 [14:04:53]line 0 [14:04:53]written 0, free lines is 4095 [14:04:53]OFD Sender: Processing packet 92460 [packets to send 63, broken 62] [14:04:53]ProducePacketName [14:04:53]name=ofd_packets/00092460 [14:04:53]OFD Sender: To server: pG, [14:04:53]CommunicateWithHost lk.salyk.kg:30040 [14:04:53]ConnectInit lk.salyk.kg [14:04:54]Connected sock=10 [14:04:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 0E 7C 1C 01 6E E2 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 07 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2C 69 01 00 35 04 06 00 33 55 A6 E8 C6 72 7A F8 D3 D1 3A A8 F8 10 [14:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D1 74 47 00 A5 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 34 36 39 32 10 04 04 00 2C 69 01 00 F4 03 04 00 82 40 E5 66 B6 04 01 00 00 AA 09 89 2B AA A9 52 71 [14:04:54]CommunicateWithHost err = 0 [14:04:54]CheckOFDResponse [14:04:54]1017 (14) - 77093643461234 [14:04:54]1041 (16) - 0000000000874692 [14:04:54]1040 (4) - 92460 [14:04:54]1012 (4) - 14.09.2024 07:51 [14:04:54]1206 (1) - 0 [14:04:54]OFD Sender: Remove packet 92460 [14:04:54]ProducePacketName [14:04:54]name=ofd_packets/00092460 [14:04:54]NVStorageDeleteData [14:04:54]Write to MH i2c: 01 00 00 84 21 A5 [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 07 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 07 00 84 21 00 00 00 00 00 0C 0D C5 [14:04:54]RasterBufferAndPrint [14:04:54]line [14:04:54]line [14:04:54]line [14:04:54]line [14:04:54]line [14:04:54]written 0, free lines is 3347 [14:04:54]MH_Cut [14:04:54]Write to MH i2c: D1 01 00 8B 21 01 7E [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: D1 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: D1 01 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: D1 01 00 8B 21 00 7D [14:04:54]Write to MH i2c: 01 00 00 8C 21 AD [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]OFD Sender: No OFD packet to send [14:04:54]*** Cut start [14:04:54]*** Purtial cut [14:04:54]*** Stage 1: CUTSNS_PIN = 1 [14:04:57]Read from MH i2c: 01 [14:04:57]MH_I2C_Read... [14:04:57]*** Stop cut motor [14:04:57]*** Cut end [14:04:57]Read from MH i2c: 01 07 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 FF 0F C2 [14:04:57]process_action close_receipt done [14:04:57]requested_data is exist [14:04:57]produce_requested_data [14:04:57]requested_item fm.sn is exist - process it [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 11 00 00 [14:04:57]Write to MH i2c: E2 08 00 8D 21 80 11 00 00 00 00 00 00 28 [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 17 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 17 00 8D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7F [14:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:04:57]wFMCommunicate OK [14:04:57]requested_item fd.num is exist - process it [14:04:57]SAM_PROTO_GetFieldsCounters [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 13 00 00 [14:04:57]Write to MH i2c: E2 08 00 8E 21 80 13 00 00 00 00 00 00 2B [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 62 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 62 00 8E 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2C 69 01 00 0E 04 04 00 FA 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 28 [14:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2C 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:57]wFMCommunicate OK [14:04:57]SAM_PROTO_GetFieldsCounters done [14:04:57]requested_item shift.num is exist - process it [14:04:57]requested_item shift.opened is exist - process it [14:04:57]req_shift_opened [14:04:57]FM_GetShiftState [14:04:57]SAM_PROTO_GetShiftState [14:04:57]wFMCommunicate request_size=4 [14:04:57]MH_SAM_APDU [14:04:57]CAPDU: 80 13 01 00 [14:04:57]Write to MH i2c: E2 08 00 8F 21 80 13 01 00 00 00 00 00 2D [14:04:57]Write i2c OK [14:04:57]MH_I2C_Read... [14:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:57]Read from MH i2c: E2 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 0E 00 [14:04:57]MH_I2C_Read... [14:04:57]Read from MH i2c: E2 0E 00 8F 21 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C7 [14:04:57]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:04:57]wFMCommunicate OK [14:04:57]SAM_PROTO_GetShiftState done [14:04:57]FM_GetShiftState done [14:04:57]req_shift_opened done [14:04:57]requested_item shift.open_date is exist - process it [14:04:57]req_shift_open_date [14:04:57]req_shift_open_date done [14:04:57]produce_requested_data done [14:04:57]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92460,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:04:57]process_action_free close_receipt [14:04:57]json_value_free [14:04:57]json_value_free done [14:04:57]process_json_proto returns [14:04:57]Send response to host [14:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92460,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:04:57]free response buf [14:04:57]execute_script done [14:04:57]execute_script returns [14:04:57]free content buf [14:04:57]Sock 9.Close socket [14:04:57]Sock 9.Thread stoped [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:13]accept exits with 8 [14:05:13]New connection [14:05:13]New thread 3066801508 created [14:05:13]Thread 3066658148 joined [14:05:13]Waiting for new connection... [14:05:13] Sock 8.Parse request [14:05:13]Sock 8.Check first char [14:05:13]Sock 8.First char is OK [14:05:13]request: POST /json_proto HTTP/1.0 [14:05:13]Method: POST [14:05:13]URL: /json_proto [14:05:13]Method is POST - this is cgi request [14:05:13]url: /json_proto [14:05:13]query_string will be loaded in cgi processing [14:05:13]execute_cgi json_proto POST (null) [14:05:13]execute_cgi path=json_proto method=POST [14:05:13]POST find Content-Length [14:05:13]Host: 172.17.57.71:8080 [14:05:13]Content-Length: 850 [14:05:13]Content-Type: application/json [14:05:13] [14:05:13]POST finish read [14:05:13]Found Content-Length = 850 [14:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127366", "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 }]} ], "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:13]execute_script... [14:05: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)127366", "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 }]} ], "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:13]POST & json_proto [14:05:13]process_json_proto [14:05:13]json parsed OK: [14:05:13]protocol is kg_v1.0 [14:05:13]action value=close_receipt [14:05:13]process_action close_receipt [14:05:13]cmd_close_receipt [14:05:13]MH_GetDate [14:05:13]Write to MH i2c: F0 00 00 90 21 A0 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: F0 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: F0 09 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: F0 09 00 90 21 00 1C 98 E5 66 33 3A A4 66 1F [14:05:13]GetLastDocTimeStamp 1726322695 [14:05:13]current date 1726322716 [14:05:13]FM_GetShiftState [14:05:13]SAM_PROTO_GetShiftState [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 13 01 00 [14:05:13]Write to MH i2c: E2 08 00 91 21 80 13 01 00 00 00 00 00 2F [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 0E 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 0E 00 91 21 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C9 [14:05:13]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:05:13]wFMCommunicate OK [14:05:13]SAM_PROTO_GetShiftState done [14:05:13]FM_GetShiftState done [14:05:13]opened in 1726273389 [14:05:13]opened+sec_in_day 1726359789 [14:05:13]quantity*price = 19000 [14:05:13]sum+1 = 19001 [14:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 0.00 Безнал.: 190.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 112 14.09.2024 14:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92461 ФПД: 225494026349598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140516&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92461&fm=225494026349598&tin=02508201610067®Number=0000000000091423&sum=19000 0 [14:05:14]StoreToDocumentArchive [14:05:14]shift 506 fd 92461 [14:05:14]save to /storage/0506/doc_00092461 [14:05:14]save last doc name /storage/0506/doc_00092461 to /storage/kkm_last_doc_name [14:05:14]save OK [14:05:14]Clear old archive folders... [14:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=297 [14:05:14]tlvbuf is B6F30650 [14:05:14]SAM_PROTO_ClearQueue [14:05:14]wFMCommunicate request_size=4 [14:05:14]MH_SAM_APDU [14:05:14]CAPDU: 80 09 00 00 [14:05:14]Write to MH i2c: E2 08 00 9E 21 80 09 00 00 00 00 00 00 31 [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:14]Read from MH i2c: E2 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 03 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 03 00 9E 21 00 90 00 33 [14:05:14]RAPDU: 90 00 [14:05:14]wFMCommunicate OK [14:05:14]SAM_PROTO_ClearQueue done [14:05:14]KKMCreateOFDPacket [14:05:14]OFDProtocolAddRootSTLVToBuf [14:05:14]FM_MakeSignedData [14:05:14]FM_MakeSignedData [14:05:14]SAM_PROTO_SignData [14:05:14]wFMCommunicate request_size=4 [14:05:14]MH_SAM_APDU [14:05:14]CAPDU: 80 0D 01 02 [14:05:14]Write to MH i2c: E2 08 00 9F 21 80 0D 01 02 00 00 00 00 39 [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:14]Read from MH i2c: E2 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 03 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 03 00 9F 21 00 90 00 34 [14:05:14]RAPDU: 90 00 [14:05:14]wFMCommunicate OK [14:05:14]wFMCommunicate request_size=255 [14:05:14]MH_SAM_APDU [14:05:14]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1C 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [14:05:14]Write to MH i2c: E2 02 01 A0 21 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1C 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 D4 [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:14]Read from MH i2c: E2 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 03 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 03 00 A0 21 00 90 00 35 [14:05:14]RAPDU: 90 00 [14:05:14]wFMCommunicate OK [14:05:14]wFMCommunicate request_size=56 [14:05:14]MH_SAM_APDU [14:05:14]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 69 01 00 35 04 06 00 CD 15 EB 56 EC 1E [14:05:14]Write to MH i2c: E2 3B 00 A1 21 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 69 01 00 35 04 06 00 CD 15 EB 56 EC 1E 00 00 89 [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:14]Read from MH i2c: E2 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 03 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [14:05:14]RAPDU: 90 00 [14:05:14]wFMCommunicate OK [14:05:14]wFMCommunicate request_size=4 [14:05:14]MH_SAM_APDU [14:05:14]CAPDU: 80 0D 03 02 [14:05:14]Write to MH i2c: E2 08 00 A2 21 80 0D 03 02 00 00 00 00 3E [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]OFD Sender: No OFD packet to send [14:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:14]Read from MH i2c: E2 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 0B 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 0B 00 A2 21 00 E9 16 FC 2B 00 3E A6 27 90 00 70 [14:05:14]RAPDU: E9 16 FC 2B 00 3E A6 27 90 00 [14:05:14]wFMCommunicate OK [14:05:14]SAM_PROTO_SignData done [14:05:14]FM_MakeSignedData done [14:05:14]CreateOFDProtocolMessage [14:05:14]wFMCommunicate request_size=4 [14:05:14]MH_SAM_APDU [14:05:14]CAPDU: 80 11 00 00 [14:05:14]Write to MH i2c: E2 08 00 A3 21 80 11 00 00 00 00 00 00 3E [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:14]Read from MH i2c: E2 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 17 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 17 00 A3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 95 [14:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:05:14]wFMCommunicate OK [14:05:14]CreateOFDProtocolMessage done [14:05:14]OFDSenderStorePacket 92461 [14:05:14]StoreOFDPacket docnum=92461 [14:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 B9 1E 35 01 B8 02 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1C 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 69 01 00 35 04 06 00 CD 15 EB 56 EC 1E E9 16 FC 2B 00 3E A6 27 [14:05:14]CheckFolder [14:05:14]dirname=/storage/ofd_packets [14:05:14]CheckFolder done [14:05:14]ProducePacketName [14:05:14]name=ofd_packets/00092461 [14:05:14]NVStorageSaveData ofd_packets/00092461 [14:05:14]File name is /storage/ofd_packets/00092461 [14:05:14]Write 347 bytes [14:05:14]NVStorageSaveData done [14:05:14]OFDSenderStorePacket done [14:05:14]KKMCreateOFDPacket done [14:05:14]NVStorageSaveData kkm_last_timestamp [14:05:14]File name is /storage/kkm_last_timestamp [14:05:14]Write 4 bytes [14:05:14]NVStorageSaveData done [14:05:14]ExternCall_PrintAddStr [14:05:14]wPrintStart [14:05:14]Write to MH i2c: 01 00 00 A4 21 C5 [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: 01 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: 01 07 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: 01 07 00 A4 21 00 00 00 00 00 FF 0F DA [14:05:14]RasterBufferAndPrint [14:05:14]line Счет N : (3)127366 [14:05:14]line ИНН: 02508201610067 [14:05:14]line Контрольно-Кассовый Чек [14:05:14]line ПРОДАЖА [14:05:14]line Товар: 4700041420084 [14:05:14]line Салфетки влажн BEST ANTIBACTERIAL 100 шт [14:05:14]line 1.000 * 190.00 [14:05:14]line = 190.00 [14:05:14]line НДС 12% НСП 1% [14:05:14]line > о реализуемом товаре [14:05:14]line ИТОГО: 190.00 [14:05:14]line НСП 1% : 1.68 [14:05:14]line НДС 12% : 20.18 [14:05:14]line Наличными: 0.00 [14:05:14]line Безнал.: 190.00 [14:05:14]line Место: АЗС № 5 "Партнер Нефть" [14:05:14]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:05:14]line СНО: Общий режим [14:05:14]line Чек 112 14.09.2024 14:05 [14:05:14]line Смена: 506 ФФД: 1.0 [14:05:14]line ЗНМ: 03000000022 [14:05:14]line РНМ: 0000000000091423 [14:05:14]line Версия ККМ: 001 [14:05:14]line Платежная система: Бакай Банк [14:05:14]line ФМ: 0000000000874692 [14:05:14]line ФД: 92461 [14:05:14]line ФПД: 225494026349598 [14:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140516&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92461&fm=225494026349598&tin=02508201610067®Number=0000000000091423&sum=19000 [14:05:15]line 0 [14:05:15]OFD Sender: Processing packet 92461 [packets to send 63, broken 62] [14:05:15]ProducePacketName [14:05:15]name=ofd_packets/00092461 [14:05:15]OFD Sender: To server: pG, [14:05:15]CommunicateWithHost lk.salyk.kg:30040 [14:05:15]ConnectInit lk.salyk.kg [14:05:15]written 0, free lines is 4095 [14:05:15]Connected sock=10 [14:05:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 B9 1E 35 01 B8 02 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1C 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 69 01 00 35 04 06 00 CD 15 EB 56 EC 1E E9 16 FC 2B 00 3E A6 27 [14:05:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 05 65 47 00 97 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2D 69 01 00 F4 03 04 00 97 40 E5 66 B6 04 01 00 00 90 6B AA FC 85 92 09 C1 [14:05:15]CommunicateWithHost err = 0 [14:05:15]CheckOFDResponse [14:05:15]1017 (14) - 77093643461234 [14:05:15]1041 (16) - 0000000000874692 [14:05:15]1040 (4) - 92461 [14:05:15]1012 (4) - 14.09.2024 07:51 [14:05:15]1206 (1) - 0 [14:05:15]OFD Sender: Remove packet 92461 [14:05:15]ProducePacketName [14:05:15]name=ofd_packets/00092461 [14:05:15]NVStorageDeleteData [14:05:15]Write to MH i2c: 01 00 00 CF 21 F0 [14:05:15]Write i2c OK [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: 01 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: 01 07 00 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: 01 07 00 CF 21 00 00 00 00 00 F4 0C F7 [14:05:15]RasterBufferAndPrint [14:05:15]line [14:05:15]line [14:05:15]line [14:05:15]line [14:05:15]line [14:05:15]written 0, free lines is 3324 [14:05:15]MH_Cut [14:05:15]Write to MH i2c: D1 01 00 D6 21 01 C9 [14:05:15]Write i2c OK [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: D1 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: D1 01 00 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: D1 01 00 D6 21 00 C8 [14:05:15]Write to MH i2c: 01 00 00 D7 21 F8 [14:05:15]Write i2c OK [14:05:15]MH_I2C_Read... [14:05:16]OFD Sender: No OFD packet to send [14:05:16]*** Cut start [14:05:16]*** Purtial cut [14:05:16]*** Stage 1: CUTSNS_PIN = 1 [14:05:18]Read from MH i2c: 01 [14:05:18]MH_I2C_Read... [14:05:18]*** Stop cut motor [14:05:18]*** Cut end [14:05:18]Read from MH i2c: 01 07 00 [14:05:18]MH_I2C_Read... [14:05:18]Read from MH i2c: 01 07 00 D7 21 00 00 00 00 00 FF 0F 0D [14:05:18]process_action close_receipt done [14:05:18]requested_data is exist [14:05:18]produce_requested_data [14:05:18]requested_item fm.sn is exist - process it [14:05:18]wFMCommunicate request_size=4 [14:05:18]MH_SAM_APDU [14:05:18]CAPDU: 80 11 00 00 [14:05:18]Write to MH i2c: E2 08 00 D8 21 80 11 00 00 00 00 00 00 73 [14:05:18]Write i2c OK [14:05:18]MH_I2C_Read... [14:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:18]Read from MH i2c: E2 [14:05:18]MH_I2C_Read... [14:05:18]Read from MH i2c: E2 17 00 [14:05:18]MH_I2C_Read... [14:05:18]Read from MH i2c: E2 17 00 D8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CA [14:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:05:18]wFMCommunicate OK [14:05:18]requested_item fd.num is exist - process it [14:05:18]SAM_PROTO_GetFieldsCounters [14:05:18]wFMCommunicate request_size=4 [14:05:18]MH_SAM_APDU [14:05:18]CAPDU: 80 13 00 00 [14:05:18]Write to MH i2c: E2 08 00 D9 21 80 13 00 00 00 00 00 00 76 [14:05:18]Write i2c OK [14:05:18]MH_I2C_Read... [14:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:18]Read from MH i2c: E2 [14:05:18]MH_I2C_Read... [14:05:18]Read from MH i2c: E2 62 00 [14:05:18]MH_I2C_Read... [14:05:18]Read from MH i2c: E2 62 00 D9 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2D 69 01 00 0E 04 04 00 FA 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 77 [14:05:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2D 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:18]wFMCommunicate OK [14:05:18]SAM_PROTO_GetFieldsCounters done [14:05:18]requested_item shift.num is exist - process it [14:05:18]requested_item shift.opened is exist - process it [14:05:18]req_shift_opened [14:05:18]FM_GetShiftState [14:05:18]SAM_PROTO_GetShiftState [14:05:18]wFMCommunicate request_size=4 [14:05:18]MH_SAM_APDU [14:05:18]CAPDU: 80 13 01 00 [14:05:18]Write to MH i2c: E2 08 00 DA 21 80 13 01 00 00 00 00 00 78 [14:05:18]Write i2c OK [14:05:18]MH_I2C_Read... [14:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:18]Read from MH i2c: E2 [14:05:18]MH_I2C_Read... [14:05:18]Read from MH i2c: E2 0E 00 [14:05:18]MH_I2C_Read... [14:05:18]Read from MH i2c: E2 0E 00 DA 21 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 12 [14:05:18]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:05:18]wFMCommunicate OK [14:05:18]SAM_PROTO_GetShiftState done [14:05:18]FM_GetShiftState done [14:05:18]req_shift_opened done [14:05:18]requested_item shift.open_date is exist - process it [14:05:18]req_shift_open_date [14:05:18]req_shift_open_date done [14:05:18]produce_requested_data done [14:05:18]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92461,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:05:18]process_action_free close_receipt [14:05:18]json_value_free [14:05:18]json_value_free done [14:05:18]process_json_proto returns [14:05:18]Send response to host [14:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92461,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:05:18]free response buf [14:05:18]execute_script done [14:05:18]execute_script returns [14:05:18]free content buf [14:05:18]Sock 8.Close socket [14:05:18]Sock 8.Thread stoped [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:40]accept exits with 9 [14:05:40]New connection [14:05:40]New thread 3066658148 created [14:05:40]Thread 3066801508 joined [14:05:40]Waiting for new connection... [14:05:40] Sock 9.Parse request [14:05:40]Sock 9.Check first char [14:05:40]Sock 9.First char is OK [14:05:40]request: POST /json_proto HTTP/1.0 [14:05:40]Method: POST [14:05:40]URL: /json_proto [14:05:40]Method is POST - this is cgi request [14:05:40]url: /json_proto [14:05:40]query_string will be loaded in cgi processing [14:05:40]execute_cgi json_proto POST (null) [14:05:40]execute_cgi path=json_proto method=POST [14:05:40]POST find Content-Length [14:05:40]Host: 172.17.57.71:8080 [14:05:40]Content-Length: 838 [14:05:40]Content-Type: application/json [14:05:40] [14:05:40]POST finish read [14:05:40]Found Content-Length = 838 [14:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127367", "tax_sys" : 0, "items" : [ { "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.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" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:40]execute_script... [14: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)127367", "tax_sys" : 0, "items" : [ { "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.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" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:40]POST & json_proto [14:05:40]process_json_proto [14:05:40]json parsed OK: [14:05:40]protocol is kg_v1.0 [14:05:40]action value=close_receipt [14:05:40]process_action close_receipt [14:05:40]cmd_close_receipt [14:05:40]MH_GetDate [14:05:40]Write to MH i2c: F0 00 00 DB 21 EB [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 09 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 09 00 DB 21 00 37 98 E5 66 33 3A A4 66 85 [14:05:40]GetLastDocTimeStamp 1726322716 [14:05:40]current date 1726322743 [14:05:40]FM_GetShiftState [14:05:40]SAM_PROTO_GetShiftState [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 13 01 00 [14:05:40]Write to MH i2c: E2 08 00 DC 21 80 13 01 00 00 00 00 00 7A [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 DC 21 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 14 [14:05:40]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_GetShiftState done [14:05:40]FM_GetShiftState done [14:05:40]opened in 1726273389 [14:05:40]opened+sec_in_day 1726359789 [14:05:40]quantity*price = 6700 [14:05:40]sum+1 = 6701 [14:05:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 0.00 Безнал.: 67.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 113 14.09.2024 14:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92462 ФПД: 245022805268819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140543&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92462&fm=245022805268819&tin=02508201610067®Number=0000000000091423&sum=6700 0 [14:05:41]StoreToDocumentArchive [14:05:41]shift 506 fd 92462 [14:05:41]save to /storage/0506/doc_00092462 [14:05:41]save last doc name /storage/0506/doc_00092462 to /storage/kkm_last_doc_name [14:05:41]save OK [14:05:41]Clear old archive folders... [14:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:05:41]tlvbuf is 010228E0 [14:05:41]SAM_PROTO_ClearQueue [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 09 00 00 [14:05:41]Write to MH i2c: E2 08 00 E9 21 80 09 00 00 00 00 00 00 7C [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 E9 21 00 90 00 7E [14:05:41]RAPDU: 90 00 [14:05:41]wFMCommunicate OK [14:05:41]SAM_PROTO_ClearQueue done [14:05:41]KKMCreateOFDPacket [14:05:41]OFDProtocolAddRootSTLVToBuf [14:05:41]FM_MakeSignedData [14:05:41]FM_MakeSignedData [14:05:41]SAM_PROTO_SignData [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 0D 01 02 [14:05:41]Write to MH i2c: E2 08 00 EA 21 80 0D 01 02 00 00 00 00 84 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 EA 21 00 90 00 7F [14:05:41]RAPDU: 90 00 [14:05:41]wFMCommunicate OK [14:05:41]wFMCommunicate request_size=255 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 37 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [14:05:41]Write to MH i2c: E2 02 01 EB 21 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 37 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 29 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 EB 21 00 90 00 80 [14:05:41]RAPDU: 90 00 [14:05:41]wFMCommunicate OK [14:05:41]wFMCommunicate request_size=43 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 69 01 00 35 04 06 00 DE D8 D1 45 19 53 [14:05:41]Write to MH i2c: E2 2E 00 EC 21 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 69 01 00 35 04 06 00 DE D8 D1 45 19 53 00 00 43 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [14:05:41]RAPDU: 90 00 [14:05:41]wFMCommunicate OK [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 0D 03 02 [14:05:41]Write to MH i2c: E2 08 00 ED 21 80 0D 03 02 00 00 00 00 89 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0B 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0B 00 ED 21 00 4E 2A 54 44 FF 45 14 57 90 00 49 [14:05:41]RAPDU: 4E 2A 54 44 FF 45 14 57 90 00 [14:05:41]wFMCommunicate OK [14:05:41]SAM_PROTO_SignData done [14:05:41]FM_MakeSignedData done [14:05:41]CreateOFDProtocolMessage [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 11 00 00 [14:05:41]Write to MH i2c: E2 08 00 EE 21 80 11 00 00 00 00 00 00 89 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 17 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 17 00 EE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E0 [14:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:05:41]wFMCommunicate OK [14:05:41]CreateOFDProtocolMessage done [14:05:41]OFDSenderStorePacket 92462 [14:05:41]StoreOFDPacket docnum=92462 [14:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 30 01 00 00 CB B6 28 01 11 23 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 37 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 69 01 00 35 04 06 00 DE D8 D1 45 19 53 4E 2A 54 44 FF 45 14 57 [14:05:41]CheckFolder [14:05:41]dirname=/storage/ofd_packets [14:05:41]CheckFolder done [14:05:41]ProducePacketName [14:05:41]name=ofd_packets/00092462 [14:05:41]NVStorageSaveData ofd_packets/00092462 [14:05:41]File name is /storage/ofd_packets/00092462 [14:05:41]Write 334 bytes [14:05:41]NVStorageSaveData done [14:05:41]OFDSenderStorePacket done [14:05:41]KKMCreateOFDPacket done [14:05:41]NVStorageSaveData kkm_last_timestamp [14:05:41]File name is /storage/kkm_last_timestamp [14:05:41]Write 4 bytes [14:05:41]NVStorageSaveData done [14:05:41]ExternCall_PrintAddStr [14:05:41]wPrintStart [14:05:41]Write to MH i2c: 01 00 00 EF 21 10 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: 01 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: 01 07 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: 01 07 00 EF 21 00 00 00 00 00 FF 0F 25 [14:05:41]RasterBufferAndPrint [14:05:41]line Счет N : (3)127367 [14:05:41]line ИНН: 02508201610067 [14:05:41]line Контрольно-Кассовый Чек [14:05:41]line ПРОДАЖА [14:05:41]line Товар: 8710732217097 [14:05:41]line Зажигалка Cricket ПН пьезо [14:05:41]line 1.000 * 67.00 [14:05:41]line = 67.00 [14:05:41]line НДС 12% НСП 1% [14:05:41]line > о реализуемом товаре [14:05:41]line ИТОГО: 67.00 [14:05:41]line НСП 1% : 0.59 [14:05:41]line НДС 12% : 7.11 [14:05:41]line Наличными: 0.00 [14:05:41]line Безнал.: 67.00 [14:05:41]line Место: АЗС № 5 "Партнер Нефть" [14:05:41]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:05:41]line СНО: Общий режим [14:05:41]line Чек 113 14.09.2024 14:05 [14:05:41]line Смена: 506 ФФД: 1.0 [14:05:41]line ЗНМ: 03000000022 [14:05:41]line РНМ: 0000000000091423 [14:05:41]line Версия ККМ: 001 [14:05:41]line Платежная система: Бакай Банк [14:05:41]line ФМ: 0000000000874692 [14:05:41]line ФД: 92462 [14:05:41]line ФПД: 245022805268819 [14:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140543&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92462&fm=245022805268819&tin=02508201610067®Number=0000000000091423&sum=6700 [14:05:42]line 0 [14:05:42]OFD Sender: Processing packet 92462 [packets to send 63, broken 62] [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00092462 [14:05:42]OFD Sender: To server: pG, [14:05:42]CommunicateWithHost lk.salyk.kg:30040 [14:05:42]ConnectInit lk.salyk.kg [14:05:42]written 0, free lines is 4095 [14:05:42]Connected sock=10 [14: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 34 36 39 32 30 01 00 00 CB B6 28 01 11 23 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 37 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 69 01 00 35 04 06 00 DE D8 D1 45 19 53 4E 2A 54 44 FF 45 14 57 [14:05:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6C 17 47 00 69 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2E 69 01 00 F4 03 04 00 B2 40 E5 66 B6 04 01 00 00 75 C2 7B E1 F8 13 76 81 [14:05:42]CommunicateWithHost err = 0 [14:05:42]CheckOFDResponse [14:05:42]1017 (14) - 77093643461234 [14:05:42]1041 (16) - 0000000000874692 [14:05:42]1040 (4) - 92462 [14:05:42]1012 (4) - 14.09.2024 07:52 [14:05:42]1206 (1) - 0 [14:05:42]OFD Sender: Remove packet 92462 [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00092462 [14:05:42]NVStorageDeleteData [14:05:42]Write to MH i2c: 01 00 00 19 22 3B [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 19 22 00 00 00 00 00 06 0D 55 [14:05:42]RasterBufferAndPrint [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]written 0, free lines is 3340 [14:05:42]MH_Cut [14:05:42]Write to MH i2c: D1 01 00 20 22 01 14 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 01 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 01 00 20 22 00 13 [14:05:42]Write to MH i2c: 01 00 00 21 22 43 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]OFD Sender: No OFD packet to send [14:05:43]*** Cut start [14:05:43]*** Purtial cut [14:05:43]*** Stage 1: CUTSNS_PIN = 1 [14:05:45]Read from MH i2c: 01 [14:05:45]MH_I2C_Read... [14:05:45]*** Stop cut motor [14:05:45]*** Cut end [14:05:45]Read from MH i2c: 01 07 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: 01 07 00 21 22 00 00 00 00 00 FF 0F 58 [14:05:45]process_action close_receipt done [14:05:45]requested_data is exist [14:05:45]produce_requested_data [14:05:45]requested_item fm.sn is exist - process it [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 11 00 00 [14:05:45]Write to MH i2c: E2 08 00 22 22 80 11 00 00 00 00 00 00 BE [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 17 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 17 00 22 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 15 [14:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:05:45]wFMCommunicate OK [14:05:45]requested_item fd.num is exist - process it [14:05:45]SAM_PROTO_GetFieldsCounters [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 13 00 00 [14:05:45]Write to MH i2c: E2 08 00 23 22 80 13 00 00 00 00 00 00 C1 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 62 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 62 00 23 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2E 69 01 00 0E 04 04 00 FA 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 C6 [14:05:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2E 69 01 00 0E 04 04 00 FA 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:05:45]wFMCommunicate OK [14:05:45]SAM_PROTO_GetFieldsCounters done [14:05:45]requested_item shift.num is exist - process it [14:05:45]requested_item shift.opened is exist - process it [14:05:45]req_shift_opened [14:05:45]FM_GetShiftState [14:05:45]SAM_PROTO_GetShiftState [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 13 01 00 [14:05:45]Write to MH i2c: E2 08 00 24 22 80 13 01 00 00 00 00 00 C3 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 0E 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 0E 00 24 22 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5D [14:05:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:05:45]wFMCommunicate OK [14:05:45]SAM_PROTO_GetShiftState done [14:05:45]FM_GetShiftState done [14:05:45]req_shift_opened done [14:05:45]requested_item shift.open_date is exist - process it [14:05:45]req_shift_open_date [14:05:45]req_shift_open_date done [14:05:45]produce_requested_data done [14:05:45]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92462,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:05:45]process_action_free close_receipt [14:05:45]json_value_free [14:05:45]json_value_free done [14:05:45]process_json_proto returns [14:05:45]Send response to host [14:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92462,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:05:45]free response buf [14:05:45]execute_script done [14:05:45]execute_script returns [14:05:45]free content buf [14:05:45]Sock 9.Close socket [14:05:45]Sock 9.Thread stoped [14:05:47]OFD Sender: No OFD packet to send [14:05:50]accept exits with 8 [14:05:50]New connection [14:05:50]New thread 3066801508 created [14:05:50]Thread 3066658148 joined [14:05:50]Waiting for new connection... [14:05:50] Sock 8.Parse request [14:05:50]Sock 8.Check first char [14:05:50]Sock 8.First char is OK [14:05:50]request: POST /json_proto HTTP/1.0 [14:05:50]Method: POST [14:05:50]URL: /json_proto [14:05:50]Method is POST - this is cgi request [14:05:50]url: /json_proto [14:05:50]query_string will be loaded in cgi processing [14:05:50]execute_cgi json_proto POST (null) [14:05:50]execute_cgi path=json_proto method=POST [14:05:50]POST find Content-Length [14:05:50]Host: 172.17.57.71:8080 [14:05:50]Content-Length: 922 [14:05:50]Content-Type: application/json [14:05:50] [14:05:50]POST finish read [14:05:50]Found Content-Length = 922 [14:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127368", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:50]execute_script... [14:05: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)127368", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:50]POST & json_proto [14:05:50]process_json_proto [14:05:50]json parsed OK: [14:05:50]protocol is kg_v1.0 [14:05:50]action value=close_receipt [14:05:50]process_action close_receipt [14:05:50]cmd_close_receipt [14:05:50]MH_GetDate [14:05:50]Write to MH i2c: F0 00 00 25 22 36 [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: F0 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: F0 09 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: F0 09 00 25 22 00 41 98 E5 66 33 3A A4 66 DA [14:05:50]GetLastDocTimeStamp 1726322743 [14:05:50]current date 1726322753 [14:05:50]FM_GetShiftState [14:05:50]SAM_PROTO_GetShiftState [14:05:50]wFMCommunicate request_size=4 [14:05:50]MH_SAM_APDU [14:05:50]CAPDU: 80 13 01 00 [14:05:50]Write to MH i2c: E2 08 00 26 22 80 13 01 00 00 00 00 00 C5 [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:50]Read from MH i2c: E2 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 0E 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 0E 00 26 22 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5F [14:05:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:05:50]wFMCommunicate OK [14:05:50]SAM_PROTO_GetShiftState done [14:05:50]FM_GetShiftState done [14:05:50]opened in 1726273389 [14:05:50]opened+sec_in_day 1726359789 [14:05:50]quantity*price = 7000 [14:05:50]sum+1 = 7001 [14:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 114 14.09.2024 14:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92463 ФПД: 95231386428642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140553&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92463&fm=95231386428642&tin=02508201610067®Number=0000000000091423&sum=7000 0 [14:05:51]StoreToDocumentArchive [14:05:51]shift 506 fd 92463 [14:05:51]save to /storage/0506/doc_00092463 [14:05:51]save last doc name /storage/0506/doc_00092463 to /storage/kkm_last_doc_name [14:05:51]save OK [14:05:51]Clear old archive folders... [14:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=312 [14:05:51]tlvbuf is 00FC8830 [14:05:51]SAM_PROTO_ClearQueue [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 09 00 00 [14:05:51]Write to MH i2c: E2 08 00 33 22 80 09 00 00 00 00 00 00 C7 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 33 22 00 90 00 C9 [14:05:51]RAPDU: 90 00 [14:05:51]wFMCommunicate OK [14:05:51]SAM_PROTO_ClearQueue done [14:05:51]KKMCreateOFDPacket [14:05:51]OFDProtocolAddRootSTLVToBuf [14:05:51]FM_MakeSignedData [14:05:51]FM_MakeSignedData [14:05:51]SAM_PROTO_SignData [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 0D 01 02 [14:05:51]Write to MH i2c: E2 08 00 34 22 80 0D 01 02 00 00 00 00 CF [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 34 22 00 90 00 CA [14:05:51]RAPDU: 90 00 [14:05:51]wFMCommunicate OK [14:05:51]wFMCommunicate request_size=255 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 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 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 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 41 98 E5 66 0E 04 04 00 FA [14:05:51]Write to MH i2c: E2 02 01 35 22 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 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 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 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 41 98 E5 66 0E 04 04 00 FA 00 00 BF [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 35 22 00 90 00 CB [14:05:51]RAPDU: 90 00 [14:05:51]wFMCommunicate OK [14:05:51]wFMCommunicate request_size=71 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 0D 02 02 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 69 01 00 35 04 06 00 56 9C C8 F5 A4 E2 [14:05:51]Write to MH i2c: E2 4A 00 36 22 80 0D 02 02 42 00 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 69 01 00 35 04 06 00 56 9C C8 F5 A4 E2 00 00 B8 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 36 22 00 90 00 CC [14:05:51]RAPDU: 90 00 [14:05:51]wFMCommunicate OK [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 0D 03 02 [14:05:51]Write to MH i2c: E2 08 00 37 22 80 0D 03 02 00 00 00 00 D4 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 0B 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 0B 00 37 22 00 DF B4 3F 24 2E A7 40 94 90 00 74 [14:05:51]RAPDU: DF B4 3F 24 2E A7 40 94 90 00 [14:05:51]wFMCommunicate OK [14:05:51]SAM_PROTO_SignData done [14:05:51]FM_MakeSignedData done [14:05:51]CreateOFDProtocolMessage [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 11 00 00 [14:05:51]Write to MH i2c: E2 08 00 38 22 80 11 00 00 00 00 00 00 D4 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 17 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 17 00 38 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2B [14:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:05:51]wFMCommunicate OK [14:05:51]CreateOFDProtocolMessage done [14:05:51]OFDSenderStorePacket 92463 [14:05:51]StoreOFDPacket docnum=92463 [14:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4C 01 00 00 57 6F 44 01 36 31 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 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 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 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 41 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 69 01 00 35 04 06 00 56 9C C8 F5 A4 E2 DF B4 3F 24 2E A7 40 94 [14:05:51]CheckFolder [14:05:51]dirname=/storage/ofd_packets [14:05:51]CheckFolder done [14:05:51]ProducePacketName [14:05:51]name=ofd_packets/00092463 [14:05:51]NVStorageSaveData ofd_packets/00092463 [14:05:51]File name is /storage/ofd_packets/00092463 [14:05:51]Write 362 bytes [14:05:51]NVStorageSaveData done [14:05:51]OFDSenderStorePacket done [14:05:51]KKMCreateOFDPacket done [14:05:51]NVStorageSaveData kkm_last_timestamp [14:05:51]File name is /storage/kkm_last_timestamp [14:05:51]Write 4 bytes [14:05:51]NVStorageSaveData done [14:05:51]ExternCall_PrintAddStr [14:05:51]wPrintStart [14:05:51]Write to MH i2c: 01 00 00 39 22 5B [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 07 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 07 00 39 22 00 00 00 00 00 FF 0F 70 [14:05:51]RasterBufferAndPrint [14:05:51]line Счет N : (3)127368 [14:05:51]line ИНН: 02508201610067 [14:05:51]line Контрольно-Кассовый Чек [14:05:51]line ПРОДАЖА [14:05:51]line Товар: 4870202521186 [14:05:51]line Чай холодный MAXI черный со вкусом клубн [14:05:51]line 1.000 * 70.00 [14:05:51]line = 70.00 [14:05:51]line НДС 12% НСП 1% [14:05:51]line > о реализуемом товаре [14:05:51]line ИТОГО: 70.00 [14:05:51]line НСП 1% : 0.62 [14:05:51]line НДС 12% : 7.43 [14:05:51]line Наличными: 0.00 [14:05:51]line Безнал.: 70.00 [14:05:51]line Место: АЗС № 5 "Партнер Нефть" [14:05:51]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:05:51]line СНО: Общий режим [14:05:51]line Чек 114 14.09.2024 14:05 [14:05:51]line Смена: 506 ФФД: 1.0 [14:05:51]line ЗНМ: 03000000022 [14:05:51]line РНМ: 0000000000091423 [14:05:51]line Версия ККМ: 001 [14:05:51]line Платежная система: Бакай Банк [14:05:51]line ФМ: 0000000000874692 [14:05:51]line ФД: 92463 [14:05:51]line ФПД: 95231386428642 [14:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T140553&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92463&fm=95231386428642&tin=02508201610067®Number=0000000000091423&sum=7000 [14:05:52]OFD Sender: Processing packet 92463 [packets to send 63, broken 62] [14:05:52]ProducePacketName [14:05:52]name=ofd_packets/00092463 [14:05:52]OFD Sender: To server: pG, [14:05:52]CommunicateWithHost lk.salyk.kg:30040 [14:05:52]ConnectInit lk.salyk.kg [14:05:52]line 0 [14:05:52]written 0, free lines is 4095 [14:05:52]Connected sock=10 [14:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4C 01 00 00 57 6F 44 01 36 31 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 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 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 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 41 98 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 69 01 00 35 04 06 00 56 9C C8 F5 A4 E2 DF B4 3F 24 2E A7 40 94 [14:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F0 C3 47 00 98 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 2F 69 01 00 F4 03 04 00 BC 40 E5 66 B6 04 01 00 00 3A F1 3C BD CB EF 86 64 [14:05:52]CommunicateWithHost err = 0 [14:05:52]CheckOFDResponse [14:05:52]1017 (14) - 77093643461234 [14:05:52]1041 (16) - 0000000000874692 [14:05:52]1040 (4) - 92463 [14:05:52]1012 (4) - 14.09.2024 07:52 [14:05:52]1206 (1) - 0 [14:05:52]OFD Sender: Remove packet 92463 [14:05:52]ProducePacketName [14:05:52]name=ofd_packets/00092463 [14:05:52]NVStorageDeleteData [14:05:52]Write to MH i2c: 01 00 00 64 22 86 [14:05:52]Write i2c OK [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: 01 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: 01 07 00 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: 01 07 00 64 22 00 00 00 00 00 01 0D 9B [14:05:52]RasterBufferAndPrint [14:05:52]line [14:05:52]line [14:05:52]line [14:05:52]line [14:05:52]line [14:05:52]written 0, free lines is 3339 [14:05:52]MH_Cut [14:05:52]Write to MH i2c: D1 01 00 6B 22 01 5F [14:05:52]Write i2c OK [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: D1 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: D1 01 00 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: D1 01 00 6B 22 00 5E [14:05:52]Write to MH i2c: 01 00 00 6C 22 8E [14:05:52]Write i2c OK [14:05:52]MH_I2C_Read... [14:05:53]OFD Sender: No OFD packet to send [14:05:53]*** Cut start [14:05:53]*** Purtial cut [14:05:53]*** Stage 1: CUTSNS_PIN = 1 [14:05:55]Read from MH i2c: 01 [14:05:55]MH_I2C_Read... [14:05:55]*** Stop cut motor [14:05:55]*** Cut end [14:05:55]Read from MH i2c: 01 07 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: 01 07 00 6C 22 00 00 00 00 00 FF 0F A3 [14:05:55]process_action close_receipt done [14:05:55]requested_data is exist [14:05:55]produce_requested_data [14:05:55]requested_item fm.sn is exist - process it [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 11 00 00 [14:05:55]Write to MH i2c: E2 08 00 6D 22 80 11 00 00 00 00 00 00 09 [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 17 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 17 00 6D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 60 [14:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:05:55]wFMCommunicate OK [14:05:55]requested_item fd.num is exist - process it [14:05:55]SAM_PROTO_GetFieldsCounters [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 13 00 00 [14:05:55]Write to MH i2c: E2 08 00 6E 22 80 13 00 00 00 00 00 00 0C [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 62 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 62 00 6E 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2F 69 01 00 0E 04 04 00 FA 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 15 [14:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 2F 69 01 00 0E 04 04 00 FA 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:05:55]wFMCommunicate OK [14:05:55]SAM_PROTO_GetFieldsCounters done [14:05:55]requested_item shift.num is exist - process it [14:05:55]requested_item shift.opened is exist - process it [14:05:55]req_shift_opened [14:05:55]FM_GetShiftState [14:05:55]SAM_PROTO_GetShiftState [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 13 01 00 [14:05:55]Write to MH i2c: E2 08 00 6F 22 80 13 01 00 00 00 00 00 0E [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 0E 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 0E 00 6F 22 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A8 [14:05:55]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:05:55]wFMCommunicate OK [14:05:55]SAM_PROTO_GetShiftState done [14:05:55]FM_GetShiftState done [14:05:55]req_shift_opened done [14:05:55]requested_item shift.open_date is exist - process it [14:05:55]req_shift_open_date [14:05:55]req_shift_open_date done [14:05:55]produce_requested_data done [14:05:55]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92463,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:05:55]process_action_free close_receipt [14:05:55]json_value_free [14:05:55]json_value_free done [14:05:55]process_json_proto returns [14:05:55]Send response to host [14:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92463,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:05:55]free response buf [14:05:55]execute_script done [14:05:55]execute_script returns [14:05:55]free content buf [14:05:55]Sock 8.Close socket [14:05:55]Sock 8.Thread stoped [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:16]accept exits with 9 [14:10:16]New connection [14:10:16]New thread 3066658148 created [14:10:16]Thread 3066801508 joined [14:10:16]Waiting for new connection... [14:10:16] Sock 9.Parse request [14:10:16]Sock 9.Check first char [14:10:16]Sock 9.First char is OK [14:10:16]request: POST /json_proto HTTP/1.0 [14:10:16]Method: POST [14:10:16]URL: /json_proto [14:10:16]Method is POST - this is cgi request [14:10:16]url: /json_proto [14:10:16]query_string will be loaded in cgi processing [14:10:16]execute_cgi json_proto POST (null) [14:10:16]execute_cgi path=json_proto method=POST [14:10:16]POST find Content-Length [14:10:16]Host: 172.17.57.71:8080 [14:10:16]Content-Length: 796 [14:10:16]Content-Type: application/json [14:10:16] [14:10:16]POST finish read [14:10:16]Found Content-Length = 796 [14:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127369", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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: \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" ] } } [14:10:16]execute_script... [14:10:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127369", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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: \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" ] } } [14:10:16]POST & json_proto [14:10:16]process_json_proto [14:10:16]json parsed OK: [14:10:16]protocol is kg_v1.0 [14:10:16]action value=close_receipt [14:10:16]process_action close_receipt [14:10:16]cmd_close_receipt [14:10:16]MH_GetDate [14:10:16]Write to MH i2c: F0 00 00 70 22 81 [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: F0 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: F0 09 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: F0 09 00 70 22 00 4B 99 E5 66 33 3A A4 66 30 [14:10:16]GetLastDocTimeStamp 1726322753 [14:10:16]current date 1726323019 [14:10:16]FM_GetShiftState [14:10:16]SAM_PROTO_GetShiftState [14:10:16]wFMCommunicate request_size=4 [14:10:16]MH_SAM_APDU [14:10:16]CAPDU: 80 13 01 00 [14:10:16]Write to MH i2c: E2 08 00 71 22 80 13 01 00 00 00 00 00 10 [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:16]Read from MH i2c: E2 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 0E 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 0E 00 71 22 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AA [14:10:16]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:10:16]wFMCommunicate OK [14:10:16]SAM_PROTO_GetShiftState done [14:10:16]FM_GetShiftState done [14:10:16]opened in 1726273389 [14:10:16]opened+sec_in_day 1726359789 [14:10:16]quantity*price = 14400 [14:10:16]sum+1 = 14401 [14:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 115 14.09.2024 14:10 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92464 ФПД: 148936027077099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T141019&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92464&fm=148936027077099&tin=02508201610067®Number=0000000000091423&sum=14400 0 [14:10:17]StoreToDocumentArchive [14:10:17]shift 506 fd 92464 [14:10:17]save to /storage/0506/doc_00092464 [14:10:17]save last doc name /storage/0506/doc_00092464 to /storage/kkm_last_doc_name [14:10:17]save OK [14:10:17]Clear old archive folders... [14:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:10:17]tlvbuf is 01032450 [14:10:17]SAM_PROTO_ClearQueue [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 09 00 00 [14:10:17]Write to MH i2c: E2 08 00 7E 22 80 09 00 00 00 00 00 00 12 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 7E 22 00 90 00 14 [14:10:17]RAPDU: 90 00 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_ClearQueue done [14:10:17]KKMCreateOFDPacket [14:10:17]OFDProtocolAddRootSTLVToBuf [14:10:17]FM_MakeSignedData [14:10:17]FM_MakeSignedData [14:10:17]SAM_PROTO_SignData [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 0D 01 02 [14:10:17]Write to MH i2c: E2 08 00 7F 22 80 0D 01 02 00 00 00 00 1A [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 7F 22 00 90 00 15 [14:10:17]RAPDU: 90 00 [14:10:17]wFMCommunicate OK [14:10:17]wFMCommunicate request_size=255 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 73 00 00 00 F4 03 04 00 4B 99 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:10:17]Write to MH i2c: E2 02 01 80 22 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 73 00 00 00 F4 03 04 00 4B 99 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 AA [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 80 22 00 90 00 16 [14:10:17]RAPDU: 90 00 [14:10:17]wFMCommunicate OK [14:10:17]wFMCommunicate request_size=30 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 30 69 01 00 35 04 06 00 87 74 DE FC F9 EB [14:10:17]Write to MH i2c: E2 21 00 81 22 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 30 69 01 00 35 04 06 00 87 74 DE FC F9 EB 00 00 6D [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 81 22 00 90 00 17 [14:10:17]RAPDU: 90 00 [14:10:17]wFMCommunicate OK [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 0D 03 02 [14:10:17]Write to MH i2c: E2 08 00 82 22 80 0D 03 02 00 00 00 00 1F [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0B 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0B 00 82 22 00 E1 5A BF A3 D1 A7 51 34 90 00 BA [14:10:17]RAPDU: E1 5A BF A3 D1 A7 51 34 90 00 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_SignData done [14:10:17]FM_MakeSignedData done [14:10:17]CreateOFDProtocolMessage [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 11 00 00 [14:10:17]Write to MH i2c: E2 08 00 83 22 80 11 00 00 00 00 00 00 1F [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 [14:10:17]MH_I2C_Read... [14:10:17]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 34 36 39 32 90 00 76 [14:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:10:17]wFMCommunicate OK [14:10:17]CreateOFDProtocolMessage done [14:10:17]OFDSenderStorePacket 92464 [14:10:17]StoreOFDPacket docnum=92464 [14:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 A0 37 1B 01 B5 B7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 73 00 00 00 F4 03 04 00 4B 99 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 69 01 00 35 04 06 00 87 74 DE FC F9 EB E1 5A BF A3 D1 A7 51 34 [14:10:17]CheckFolder [14:10:17]dirname=/storage/ofd_packets [14:10:17]CheckFolder done [14:10:17]ProducePacketName [14:10:17]name=ofd_packets/00092464 [14:10:17]NVStorageSaveData ofd_packets/00092464 [14:10:17]File name is /storage/ofd_packets/00092464 [14:10:17]Write 321 bytes [14:10:17]NVStorageSaveData done [14:10:17]OFDSenderStorePacket done [14:10:17]KKMCreateOFDPacket done [14:10:17]NVStorageSaveData kkm_last_timestamp [14:10:17]File name is /storage/kkm_last_timestamp [14:10:17]Write 4 bytes [14:10:17]NVStorageSaveData done [14:10:17]ExternCall_PrintAddStr [14:10:17]wPrintStart [14:10:17]Write to MH i2c: 01 00 00 84 22 A6 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 84 22 00 00 00 00 00 FF 0F BB [14:10:17]RasterBufferAndPrint [14:10:17]line Счет N : (3)127369 [14:10:17]line ИНН: 02508201610067 [14:10:17]line Контрольно-Кассовый Чек [14:10:17]line ПРОДАЖА [14:10:17]line Товар: 47802995 [14:10:17]line Сигареты Winston XS Silver [14:10:17]line 1.000 * 144.00 [14:10:17]line = 144.00 [14:10:17]line НДС 12% НСП 1% [14:10:17]line > о реализуемом товаре [14:10:17]line ИТОГО: 144.00 [14:10:17]line НСП 1% : 1.27 [14:10:17]line НДС 12% : 15.29 [14:10:17]line Наличными: 0.00 [14:10:17]line Безнал.: 144.00 [14:10:17]line Место: АЗС № 5 "Партнер Нефть" [14:10:17]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:10:17]line СНО: Общий режим [14:10:17]line Чек 115 14.09.2024 14:10 [14:10:17]line Смена: 506 ФФД: 1.0 [14:10:17]line ЗНМ: 03000000022 [14:10:17]line РНМ: 0000000000091423 [14:10:17]line Версия ККМ: 001 [14:10:17]line Платежная система: Бакай Банк [14:10:17]line ФМ: 0000000000874692 [14:10:17]line ФД: 92464 [14:10:17]line ФПД: 148936027077099 [14:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T141019&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92464&fm=148936027077099&tin=02508201610067®Number=0000000000091423&sum=14400 [14:10:18]OFD Sender: Processing packet 92464 [packets to send 63, broken 62] [14:10:18]ProducePacketName [14:10:18]name=ofd_packets/00092464 [14:10:18]OFD Sender: To server: pG, [14:10:18]CommunicateWithHost lk.salyk.kg:30040 [14:10:18]ConnectInit lk.salyk.kg [14:10:18]line 0 [14:10:18]written 0, free lines is 4095 [14:10:18]Connected sock=10 [14:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 A0 37 1B 01 B5 B7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 73 00 00 00 F4 03 04 00 4B 99 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 69 01 00 35 04 06 00 87 74 DE FC F9 EB E1 5A BF A3 D1 A7 51 34 [14:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 95 22 47 00 41 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 30 69 01 00 F4 03 04 00 C6 41 E5 66 B6 04 01 00 00 A1 3F 1C DF E0 DD 08 D9 [14:10:18]CommunicateWithHost err = 0 [14:10:18]CheckOFDResponse [14:10:18]1017 (14) - 77093643461234 [14:10:18]1041 (16) - 0000000000874692 [14:10:18]1040 (4) - 92464 [14:10:18]1012 (4) - 14.09.2024 07:56 [14:10:18]1206 (1) - 0 [14:10:18]OFD Sender: Remove packet 92464 [14:10:18]ProducePacketName [14:10:18]name=ofd_packets/00092464 [14:10:18]NVStorageDeleteData [14:10:18]Write to MH i2c: 01 00 00 AE 22 D0 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 07 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 07 00 AE 22 00 00 00 00 00 06 0D EA [14:10:18]RasterBufferAndPrint [14:10:18]line [14:10:18]line [14:10:18]line [14:10:18]line [14:10:18]line [14:10:18]written 0, free lines is 3341 [14:10:18]MH_Cut [14:10:18]Write to MH i2c: D1 01 00 B5 22 01 A9 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: D1 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: D1 01 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: D1 01 00 B5 22 00 A8 [14:10:18]Write to MH i2c: 01 00 00 B6 22 D8 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]OFD Sender: No OFD packet to send [14:10:19]*** Cut start [14:10:19]*** Purtial cut [14:10:19]*** Stage 1: CUTSNS_PIN = 1 [14:10:21]Read from MH i2c: 01 [14:10:21]MH_I2C_Read... [14:10:21]*** Stop cut motor [14:10:21]*** Cut end [14:10:21]Read from MH i2c: 01 07 00 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: 01 07 00 B6 22 00 00 00 00 00 FF 0F ED [14:10:21]process_action close_receipt done [14:10:21]requested_data is exist [14:10:21]produce_requested_data [14:10:21]requested_item fm.sn is exist - process it [14:10:21]wFMCommunicate request_size=4 [14:10:21]MH_SAM_APDU [14:10:21]CAPDU: 80 11 00 00 [14:10:21]Write to MH i2c: E2 08 00 B7 22 80 11 00 00 00 00 00 00 53 [14:10:21]Write i2c OK [14:10:21]MH_I2C_Read... [14:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:21]Read from MH i2c: E2 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 17 00 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 17 00 B7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AA [14:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:10:21]wFMCommunicate OK [14:10:21]requested_item fd.num is exist - process it [14:10:21]SAM_PROTO_GetFieldsCounters [14:10:21]wFMCommunicate request_size=4 [14:10:21]MH_SAM_APDU [14:10:21]CAPDU: 80 13 00 00 [14:10:21]Write to MH i2c: E2 08 00 B8 22 80 13 00 00 00 00 00 00 56 [14:10:21]Write i2c OK [14:10:21]MH_I2C_Read... [14:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:21]Read from MH i2c: E2 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 62 00 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 62 00 B8 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 30 69 01 00 0E 04 04 00 FA 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 63 [14:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 30 69 01 00 0E 04 04 00 FA 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:10:21]wFMCommunicate OK [14:10:21]SAM_PROTO_GetFieldsCounters done [14:10:21]requested_item shift.num is exist - process it [14:10:21]requested_item shift.opened is exist - process it [14:10:21]req_shift_opened [14:10:21]FM_GetShiftState [14:10:21]SAM_PROTO_GetShiftState [14:10:21]wFMCommunicate request_size=4 [14:10:21]MH_SAM_APDU [14:10:21]CAPDU: 80 13 01 00 [14:10:21]Write to MH i2c: E2 08 00 B9 22 80 13 01 00 00 00 00 00 58 [14:10:21]Write i2c OK [14:10:21]MH_I2C_Read... [14:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:21]Read from MH i2c: E2 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 0E 00 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 0E 00 B9 22 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F2 [14:10:21]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:10:21]wFMCommunicate OK [14:10:21]SAM_PROTO_GetShiftState done [14:10:21]FM_GetShiftState done [14:10:21]req_shift_opened done [14:10:21]requested_item shift.open_date is exist - process it [14:10:21]req_shift_open_date [14:10:21]req_shift_open_date done [14:10:21]produce_requested_data done [14:10:21]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92464,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:10:21]process_action_free close_receipt [14:10:21]json_value_free [14:10:21]json_value_free done [14:10:21]process_json_proto returns [14:10:21]Send response to host [14:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92464,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:10:21]free response buf [14:10:21]execute_script done [14:10:21]execute_script returns [14:10:21]free content buf [14:10:21]Sock 9.Close socket [14:10:21]Sock 9.Thread stoped [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]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]accept exits with 8 [14:23:39]New connection [14:23:39]New thread 3066801508 created [14:23:39]Thread 3066658148 joined [14:23:39]Waiting for new connection... [14:23:39] Sock 8.Parse request [14:23:39]Sock 8.Check first char [14:23:39]Sock 8.First char is OK [14:23:39]request: POST /json_proto HTTP/1.0 [14:23:39]Method: POST [14:23:39]URL: /json_proto [14:23:39]Method is POST - this is cgi request [14:23:39]url: /json_proto [14:23:39]query_string will be loaded in cgi processing [14:23:39]execute_cgi json_proto POST (null) [14:23:39]execute_cgi path=json_proto method=POST [14:23:39]POST find Content-Length [14:23:39]Host: 172.17.57.71:8080 [14:23:39]Content-Length: 624 [14:23:39]Content-Type: application/json [14:23:39] [14:23:39]POST finish read [14:23:39]Found Content-Length = 624 [14:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127370", "tax_sys" : 0, "items" : [ { "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:39]execute_script... [14:23: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)127370", "tax_sys" : 0, "items" : [ { "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:39]POST & json_proto [14:23:39]process_json_proto [14:23:39]json parsed OK: [14:23:39]protocol is kg_v1.0 [14:23:39]action value=close_receipt [14:23:39]process_action close_receipt [14:23:39]cmd_close_receipt [14:23:39]MH_GetDate [14:23:39]Write to MH i2c: F0 00 00 BA 22 CB [14:23:39]Write i2c OK [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 09 00 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 09 00 BA 22 00 6E 9C E5 66 33 3A A4 66 A0 [14:23:39]GetLastDocTimeStamp 1726323019 [14:23:39]current date 1726323822 [14:23:39]FM_GetShiftState [14:23:39]SAM_PROTO_GetShiftState [14:23:39]wFMCommunicate request_size=4 [14:23:39]MH_SAM_APDU [14:23:39]CAPDU: 80 13 01 00 [14:23:39]Write to MH i2c: E2 08 00 BB 22 80 13 01 00 00 00 00 00 5A [14:23:39]Write i2c OK [14:23:39]MH_I2C_Read... [14:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:39]Read from MH i2c: E2 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: E2 0E 00 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: E2 0E 00 BB 22 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F4 [14:23:39]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:23:39]wFMCommunicate OK [14:23:39]SAM_PROTO_GetShiftState done [14:23:39]FM_GetShiftState done [14:23:39]opened in 1726273389 [14:23:39]opened+sec_in_day 1726359789 [14:23:39]quantity*price = 4000 [14:23:39]sum+1 = 4001 [14:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 116 14.09.2024 14:23 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92465 ФПД: 63464755306409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T142342&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92465&fm=63464755306409&tin=02508201610067®Number=0000000000091423&sum=4000 0 [14:23:40]StoreToDocumentArchive [14:23:40]shift 506 fd 92465 [14:23:40]save to /storage/0506/doc_00092465 [14:23:40]save last doc name /storage/0506/doc_00092465 to /storage/kkm_last_doc_name [14:23:40]save OK [14:23:40]Clear old archive folders... [14:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:23:40]tlvbuf is B6F33D60 [14:23:40]SAM_PROTO_ClearQueue [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 09 00 00 [14:23:40]Write to MH i2c: E2 08 00 C8 22 80 09 00 00 00 00 00 00 5C [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 C8 22 00 90 00 5E [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]SAM_PROTO_ClearQueue done [14:23:40]KKMCreateOFDPacket [14:23:40]OFDProtocolAddRootSTLVToBuf [14:23:40]FM_MakeSignedData [14:23:40]FM_MakeSignedData [14:23:40]SAM_PROTO_SignData [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 01 02 [14:23:40]Write to MH i2c: E2 08 00 C9 22 80 0D 01 02 00 00 00 00 64 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 C9 22 00 90 00 5F [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]wFMCommunicate request_size=255 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 74 00 00 00 F4 03 04 00 6E 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:23:40]Write to MH i2c: E2 02 01 CA 22 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 74 00 00 00 F4 03 04 00 6E 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 F9 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 CA 22 00 90 00 60 [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]wFMCommunicate request_size=30 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 02 02 19 30 38 37 34 36 39 32 10 04 04 00 31 69 01 00 35 04 06 00 39 B8 8A 32 1F A9 [14:23:40]Write to MH i2c: E2 21 00 CB 22 80 0D 02 02 19 00 30 38 37 34 36 39 32 10 04 04 00 31 69 01 00 35 04 06 00 39 B8 8A 32 1F A9 00 00 74 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 CB 22 00 90 00 61 [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 03 02 [14:23:40]Write to MH i2c: E2 08 00 CC 22 80 0D 03 02 00 00 00 00 69 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 0B 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 0B 00 CC 22 00 4C 14 6B B9 11 26 D1 F8 90 00 EE [14:23:40]RAPDU: 4C 14 6B B9 11 26 D1 F8 90 00 [14:23:40]wFMCommunicate OK [14:23:40]SAM_PROTO_SignData done [14:23:40]FM_MakeSignedData done [14:23:40]CreateOFDProtocolMessage [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 11 00 00 [14:23:40]Write to MH i2c: E2 08 00 CD 22 80 11 00 00 00 00 00 00 69 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 17 00 [14:23:40]MH_I2C_Read... [14:23:40]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 34 36 39 32 90 00 C0 [14:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:23:40]wFMCommunicate OK [14:23:40]CreateOFDProtocolMessage done [14:23:40]OFDSenderStorePacket 92465 [14:23:40]StoreOFDPacket docnum=92465 [14:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 F2 28 1B 01 55 B0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 74 00 00 00 F4 03 04 00 6E 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 31 69 01 00 35 04 06 00 39 B8 8A 32 1F A9 4C 14 6B B9 11 26 D1 F8 [14:23:40]CheckFolder [14:23:40]dirname=/storage/ofd_packets [14:23:40]CheckFolder done [14:23:40]ProducePacketName [14:23:40]name=ofd_packets/00092465 [14:23:40]NVStorageSaveData ofd_packets/00092465 [14:23:40]File name is /storage/ofd_packets/00092465 [14:23:40]Write 321 bytes [14:23:40]NVStorageSaveData done [14:23:40]OFDSenderStorePacket done [14:23:40]KKMCreateOFDPacket done [14:23:40]NVStorageSaveData kkm_last_timestamp [14:23:40]File name is /storage/kkm_last_timestamp [14:23:40]Write 4 bytes [14:23:40]NVStorageSaveData done [14:23:40]ExternCall_PrintAddStr [14:23:40]wPrintStart [14:23:40]Write to MH i2c: 01 00 00 CE 22 F0 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: 01 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: 01 07 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: 01 07 00 CE 22 00 00 00 00 00 FF 0F 05 [14:23:40]RasterBufferAndPrint [14:23:40]line Счет N : (3)127370 [14:23:40]line ИНН: 02508201610067 [14:23:40]line Контрольно-Кассовый Чек [14:23:40]line ПРОДАЖА [14:23:40]line Товар: 46177872 [14:23:40]line Жев Orbit подушки Citrus [14:23:40]line 1.000 * 40.00 [14:23:40]line = 40.00 [14:23:40]line НДС 12% НСП 1% [14:23:40]line > о реализуемом товаре [14:23:40]line ИТОГО: 40.00 [14:23:40]line НСП 1% : 0.35 [14:23:40]line НДС 12% : 4.25 [14:23:40]line Наличными: 40.00 [14:23:40]line Безнал.: 0.00 [14:23:40]line Место: АЗС № 5 "Партнер Нефть" [14:23:40]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:23:40]line СНО: Общий режим [14:23:40]line Чек 116 14.09.2024 14:23 [14:23:40]line Смена: 506 ФФД: 1.0 [14:23:40]line ЗНМ: 03000000022 [14:23:40]line РНМ: 0000000000091423 [14:23:40]line Версия ККМ: 001 [14:23:40]line ФМ: 0000000000874692 [14:23:40]line ФД: 92465 [14:23:40]line ФПД: 63464755306409 [14:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T142342&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92465&fm=63464755306409&tin=02508201610067®Number=0000000000091423&sum=4000 [14:23:40]line 0 [14:23:40]written 0, free lines is 4095 [14:23:40]OFD Sender: Processing packet 92465 [packets to send 63, broken 62] [14:23:40]ProducePacketName [14:23:40]name=ofd_packets/00092465 [14:23:40]OFD Sender: To server: pG, [14:23:40]CommunicateWithHost lk.salyk.kg:30040 [14:23:40]ConnectInit lk.salyk.kg [14:23:40]Connected sock=10 [14:23:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 01 00 00 F2 28 1B 01 55 B0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 74 00 00 00 F4 03 04 00 6E 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 31 69 01 00 35 04 06 00 39 B8 8A 32 1F A9 4C 14 6B B9 11 26 D1 F8 [14:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9E 37 47 00 C3 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 31 69 01 00 F4 03 04 00 E9 44 E5 66 B6 04 01 00 00 62 7C BE 0A F6 BA 84 69 [14:23:41]CommunicateWithHost err = 0 [14:23:41]CheckOFDResponse [14:23:41]1017 (14) - 77093643461234 [14:23:41]1041 (16) - 0000000000874692 [14:23:41]1040 (4) - 92465 [14:23:41]1012 (4) - 14.09.2024 08:10 [14:23:41]1206 (1) - 0 [14:23:41]OFD Sender: Remove packet 92465 [14:23:41]ProducePacketName [14:23:41]name=ofd_packets/00092465 [14:23:41]NVStorageDeleteData [14:23:41]Write to MH i2c: 01 00 00 F6 22 18 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 07 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 07 00 F6 22 00 00 00 00 00 19 0D 45 [14:23:41]RasterBufferAndPrint [14:23:41]line [14:23:41]line [14:23:41]line [14:23:41]line [14:23:41]line [14:23:41]written 0, free lines is 3362 [14:23:41]MH_Cut [14:23:41]Write to MH i2c: D1 01 00 FD 22 01 F1 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: D1 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: D1 01 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: D1 01 00 FD 22 00 F0 [14:23:41]Write to MH i2c: 01 00 00 FE 22 20 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]OFD Sender: No OFD packet to send [14:23:41]*** Cut start [14:23:41]*** Purtial cut [14:23:41]*** Stage 1: CUTSNS_PIN = 1 [14:23:43]Read from MH i2c: 01 [14:23:43]MH_I2C_Read... [14:23:43]*** Stop cut motor [14:23:43]*** Cut end [14:23:43]Read from MH i2c: 01 07 00 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 FF 0F 35 [14:23:43]process_action close_receipt done [14:23:43]requested_data is exist [14:23:43]produce_requested_data [14:23:43]requested_item fm.sn is exist - process it [14:23:43]wFMCommunicate request_size=4 [14:23:43]MH_SAM_APDU [14:23:43]CAPDU: 80 11 00 00 [14:23:43]Write to MH i2c: E2 08 00 FF 22 80 11 00 00 00 00 00 00 9B [14:23:43]Write i2c OK [14:23:43]MH_I2C_Read... [14:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:43]Read from MH i2c: E2 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: E2 17 00 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: E2 17 00 FF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F2 [14:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:23:43]wFMCommunicate OK [14:23:43]requested_item fd.num is exist - process it [14:23:43]SAM_PROTO_GetFieldsCounters [14:23:43]wFMCommunicate request_size=4 [14:23:43]MH_SAM_APDU [14:23:43]CAPDU: 80 13 00 00 [14:23:43]Write to MH i2c: E2 08 00 00 23 80 13 00 00 00 00 00 00 9F [14:23:43]Write i2c OK [14:23:43]MH_I2C_Read... [14:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:44]Read from MH i2c: E2 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 62 00 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 62 00 00 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 31 69 01 00 0E 04 04 00 FA 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 B0 [14:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 31 69 01 00 0E 04 04 00 FA 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:23:44]wFMCommunicate OK [14:23:44]SAM_PROTO_GetFieldsCounters done [14:23:44]requested_item shift.num is exist - process it [14:23:44]requested_item shift.opened is exist - process it [14:23:44]req_shift_opened [14:23:44]FM_GetShiftState [14:23:44]SAM_PROTO_GetShiftState [14:23:44]wFMCommunicate request_size=4 [14:23:44]MH_SAM_APDU [14:23:44]CAPDU: 80 13 01 00 [14:23:44]Write to MH i2c: E2 08 00 01 23 80 13 01 00 00 00 00 00 A1 [14:23:44]Write i2c OK [14:23:44]MH_I2C_Read... [14:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:44]Read from MH i2c: E2 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 0E 00 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 0E 00 01 23 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3B [14:23:44]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:23:44]wFMCommunicate OK [14:23:44]SAM_PROTO_GetShiftState done [14:23:44]FM_GetShiftState done [14:23:44]req_shift_opened done [14:23:44]requested_item shift.open_date is exist - process it [14:23:44]req_shift_open_date [14:23:44]req_shift_open_date done [14:23:44]produce_requested_data done [14:23:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92465,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:23:44]process_action_free close_receipt [14:23:44]json_value_free [14:23:44]json_value_free done [14:23:44]process_json_proto returns [14:23:44]Send response to host [14:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92465,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:23:44]free response buf [14:23:44]execute_script done [14:23:44]execute_script returns [14:23:44]free content buf [14:23:44]Sock 8.Close socket [14:23:44]Sock 8.Thread stoped [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:14]accept exits with 9 [14:24:14]New connection [14:24:14]New thread 3066658148 created [14:24:14]Thread 3066801508 joined [14:24:14]Waiting for new connection... [14:24:14] Sock 9.Parse request [14:24:14]Sock 9.Check first char [14:24:14]Sock 9.First char is OK [14:24:14]request: POST /json_proto HTTP/1.0 [14:24:14]Method: POST [14:24:14]URL: /json_proto [14:24:14]Method is POST - this is cgi request [14:24:14]url: /json_proto [14:24:14]query_string will be loaded in cgi processing [14:24:14]execute_cgi json_proto POST (null) [14:24:14]execute_cgi path=json_proto method=POST [14:24:14]POST find Content-Length [14:24:14]Host: 172.17.57.71:8080 [14:24:14]Content-Length: 991 [14:24:14]Content-Type: application/json [14:24:14] [14:24:14]POST finish read [14:24:14]Found Content-Length = 991 [14:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127371", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 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" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:14]execute_script... [14:24: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)127371", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 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" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:14]POST & json_proto [14:24:14]process_json_proto [14:24:14]json parsed OK: [14:24:14]protocol is kg_v1.0 [14:24:14]action value=close_receipt [14:24:14]process_action close_receipt [14:24:14]cmd_close_receipt [14:24:14]MH_GetDate [14:24:14]Write to MH i2c: F0 00 00 02 23 14 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: F0 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: F0 09 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: F0 09 00 02 23 00 91 9C E5 66 33 3A A4 66 0C [14:24:14]GetLastDocTimeStamp 1726323822 [14:24:14]current date 1726323857 [14:24:14]FM_GetShiftState [14:24:14]SAM_PROTO_GetShiftState [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 13 01 00 [14:24:14]Write to MH i2c: E2 08 00 03 23 80 13 01 00 00 00 00 00 A3 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0E 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0E 00 03 23 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3D [14:24:14]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:24:14]wFMCommunicate OK [14:24:14]SAM_PROTO_GetShiftState done [14:24:14]FM_GetShiftState done [14:24:14]opened in 1726273389 [14:24:14]opened+sec_in_day 1726359789 [14:24:14]quantity*price = 19000 [14:24:14]sum+1 = 19001 [14:24:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.27 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 117 14.09.2024 14:24 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92466 ФПД: 201656127450566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T142417&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92466&fm=201656127450566&tin=02508201610067®Number=0000000000091423&sum=28500 0 [14:24:15]StoreToDocumentArchive [14:24:15]shift 506 fd 92466 [14:24:15]save to /storage/0506/doc_00092466 [14:24:15]save last doc name /storage/0506/doc_00092466 to /storage/kkm_last_doc_name [14:24:15]save OK [14:24:15]Clear old archive folders... [14:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=424 [14:24:15]tlvbuf is 00F9F550 [14:24:15]SAM_PROTO_ClearQueue [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 09 00 00 [14:24:15]Write to MH i2c: E2 08 00 10 23 80 09 00 00 00 00 00 00 A5 [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 10 23 00 90 00 A7 [14:24:15]RAPDU: 90 00 [14:24:15]wFMCommunicate OK [14:24:15]SAM_PROTO_ClearQueue done [14:24:15]KKMCreateOFDPacket [14:24:15]OFDProtocolAddRootSTLVToBuf [14:24:15]FM_MakeSignedData [14:24:15]FM_MakeSignedData [14:24:15]SAM_PROTO_SignData [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 0D 01 02 [14:24:15]Write to MH i2c: E2 08 00 11 23 80 0D 01 02 00 00 00 00 AD [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 11 23 00 90 00 A8 [14:24:15]RAPDU: 90 00 [14:24:15]wFMCommunicate OK [14:24:15]wFMCommunicate request_size=255 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 0D 02 02 FA 03 00 A8 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 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 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 [14:24:15]Write to MH i2c: E2 02 01 12 23 80 0D 02 02 FA 00 03 00 A8 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 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 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 00 00 14 [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 12 23 00 90 00 A9 [14:24:15]RAPDU: 90 00 [14:24:15]wFMCommunicate OK [14:24:15]wFMCommunicate request_size=183 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 0D 02 02 B2 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 75 00 00 00 F4 03 04 00 91 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 69 01 00 35 04 06 00 B7 67 B9 D7 ED C6 [14:24:15]Write to MH i2c: E2 BA 00 13 23 80 0D 02 02 B2 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 75 00 00 00 F4 03 04 00 91 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 69 01 00 35 04 06 00 B7 67 B9 D7 ED C6 00 00 58 [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:16]Read from MH i2c: E2 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 03 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 03 00 13 23 00 90 00 AA [14:24:16]RAPDU: 90 00 [14:24:16]wFMCommunicate OK [14:24:16]wFMCommunicate request_size=4 [14:24:16]MH_SAM_APDU [14:24:16]CAPDU: 80 0D 03 02 [14:24:16]Write to MH i2c: E2 08 00 14 23 80 0D 03 02 00 00 00 00 B2 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:16]Read from MH i2c: E2 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 0B 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 0B 00 14 23 00 EB FA 0F 65 0F AC 0C B9 90 00 8C [14:24:16]RAPDU: EB FA 0F 65 0F AC 0C B9 90 00 [14:24:16]wFMCommunicate OK [14:24:16]SAM_PROTO_SignData done [14:24:16]FM_MakeSignedData done [14:24:16]CreateOFDProtocolMessage [14:24:16]wFMCommunicate request_size=4 [14:24:16]MH_SAM_APDU [14:24:16]CAPDU: 80 11 00 00 [14:24:16]Write to MH i2c: E2 08 00 15 23 80 11 00 00 00 00 00 00 B2 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:16]Read from MH i2c: E2 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 17 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 17 00 15 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 09 [14:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:24:16]wFMCommunicate OK [14:24:16]CreateOFDProtocolMessage done [14:24:16]OFDSenderStorePacket 92466 [14:24:16]StoreOFDPacket docnum=92466 [14:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 BC 01 00 00 72 31 B4 01 84 6C 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 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 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 75 00 00 00 F4 03 04 00 91 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 69 01 00 35 04 06 00 B7 67 B9 D7 ED C6 EB FA 0F 65 0F AC 0C B9 [14:24:16]CheckFolder [14:24:16]dirname=/storage/ofd_packets [14:24:16]CheckFolder done [14:24:16]ProducePacketName [14:24:16]name=ofd_packets/00092466 [14:24:16]NVStorageSaveData ofd_packets/00092466 [14:24:16]File name is /storage/ofd_packets/00092466 [14:24:16]Write 474 bytes [14:24:16]NVStorageSaveData done [14:24:16]OFDSenderStorePacket done [14:24:16]KKMCreateOFDPacket done [14:24:16]NVStorageSaveData kkm_last_timestamp [14:24:16]File name is /storage/kkm_last_timestamp [14:24:16]Write 4 bytes [14:24:16]NVStorageSaveData done [14:24:16]ExternCall_PrintAddStr [14:24:16]wPrintStart [14:24:16]Write to MH i2c: 01 00 00 16 23 39 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: 01 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: 01 07 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 FF 0F 4E [14:24:16]RasterBufferAndPrint [14:24:16]line Счет N : (3)127371 [14:24:16]line ИНН: 02508201610067 [14:24:16]line Контрольно-Кассовый Чек [14:24:16]line ПРОДАЖА [14:24:16]line Товар: 4700000481965 [14:24:16]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [14:24:16]line 2.000 * 95.00 [14:24:16]line = 190.00 [14:24:16]line НДС 12% НСП 1% [14:24:16]line > о реализуемом товаре [14:24:16]line Товар: 4700000481453 [14:24:16]line Напиток энерг Nitro Max 0,45 ж/б [14:24:16]line 1.000 * 95.00 [14:24:16]line = 95.00 [14:24:16]line НДС 12% НСП 1% [14:24:16]line > о реализуемом товаре [14:24:16]line ИТОГО: 285.00 [14:24:16]line НСП 1% : 2.52 [14:24:16]line НДС 12% : 30.27 [14:24:16]line Наличными: 285.00 [14:24:16]line Безнал.: 0.00 [14:24:16]line Место: АЗС № 5 "Партнер Нефть" [14:24:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:24:16]line СНО: Общий режим [14:24:16]line Чек 117 14.09.2024 14:24 [14:24:16]line Смена: 506 ФФД: 1.0 [14:24:16]line ЗНМ: 03000000022 [14:24:16]line РНМ: 0000000000091423 [14:24:16]line Версия ККМ: 001 [14:24:16]line ФМ: 0000000000874692 [14:24:16]line ФД: 92466 [14:24:16]line ФПД: 201656127450566 [14:24:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T142417&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92466&fm=201656127450566&tin=02508201610067®Number=0000000000091423&sum=28500 [14:24:16]line 0 [14:24:16]OFD Sender: Processing packet 92466 [packets to send 63, broken 62] [14:24:16]ProducePacketName [14:24:16]name=ofd_packets/00092466 [14:24:16]OFD Sender: To server: pG, [14:24:16]CommunicateWithHost lk.salyk.kg:30040 [14:24:16]ConnectInit lk.salyk.kg [14:24:16]written 0, free lines is 4095 [14:24:16]Connected sock=10 [14:24:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 BC 01 00 00 72 31 B4 01 84 6C 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 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 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 75 00 00 00 F4 03 04 00 91 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 69 01 00 35 04 06 00 B7 67 B9 D7 ED C6 EB FA 0F 65 0F AC 0C B9 [14:24:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AA 2D 47 00 83 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 32 69 01 00 F4 03 04 00 0D 45 E5 66 B6 04 01 00 00 5E 3F 1F D9 FC A7 2A 62 [14:24:16]CommunicateWithHost err = 0 [14:24:16]CheckOFDResponse [14:24:16]1017 (14) - 77093643461234 [14:24:16]1041 (16) - 0000000000874692 [14:24:16]1040 (4) - 92466 [14:24:16]1012 (4) - 14.09.2024 08:10 [14:24:16]1206 (1) - 0 [14:24:16]OFD Sender: Remove packet 92466 [14:24:16]ProducePacketName [14:24:16]name=ofd_packets/00092466 [14:24:16]NVStorageDeleteData [14:24:17]Write to MH i2c: 01 00 00 46 23 69 [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: 01 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: 01 07 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: 01 07 00 46 23 00 00 00 00 00 B8 0C 34 [14:24:17]RasterBufferAndPrint [14:24:17]line [14:24:17]line [14:24:17]line [14:24:17]line [14:24:17]line [14:24:17]written 0, free lines is 3262 [14:24:17]MH_Cut [14:24:17]Write to MH i2c: D1 01 00 4D 23 01 42 [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: D1 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: D1 01 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: D1 01 00 4D 23 00 41 [14:24:17]Write to MH i2c: 01 00 00 4E 23 71 [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]OFD Sender: No OFD packet to send [14:24:17]*** Cut start [14:24:17]*** Purtial cut [14:24:17]*** Stage 1: CUTSNS_PIN = 1 [14:24:19]Read from MH i2c: 01 [14:24:19]MH_I2C_Read... [14:24:19]*** Stop cut motor [14:24:19]*** Cut end [14:24:19]Read from MH i2c: 01 07 00 [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: 01 07 00 4E 23 00 00 00 00 00 FF 0F 86 [14:24:19]process_action close_receipt done [14:24:19]requested_data is exist [14:24:19]produce_requested_data [14:24:19]requested_item fm.sn is exist - process it [14:24:19]wFMCommunicate request_size=4 [14:24:19]MH_SAM_APDU [14:24:19]CAPDU: 80 11 00 00 [14:24:19]Write to MH i2c: E2 08 00 4F 23 80 11 00 00 00 00 00 00 EC [14:24:19]Write i2c OK [14:24:19]MH_I2C_Read... [14:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:19]Read from MH i2c: E2 [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: E2 17 00 [14:24:19]MH_I2C_Read... [14:24:19]Read from MH i2c: E2 17 00 4F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 43 [14:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:24:19]wFMCommunicate OK [14:24:19]requested_item fd.num is exist - process it [14:24:19]SAM_PROTO_GetFieldsCounters [14:24:19]wFMCommunicate request_size=4 [14:24:19]MH_SAM_APDU [14:24:19]CAPDU: 80 13 00 00 [14:24:19]Write to MH i2c: E2 08 00 50 23 80 13 00 00 00 00 00 00 EF [14:24:19]Write i2c OK [14:24:19]MH_I2C_Read... [14:24:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:20]Read from MH i2c: E2 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 62 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 62 00 50 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 32 69 01 00 0E 04 04 00 FA 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 04 [14:24:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 32 69 01 00 0E 04 04 00 FA 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:24:20]wFMCommunicate OK [14:24:20]SAM_PROTO_GetFieldsCounters done [14:24:20]requested_item shift.num is exist - process it [14:24:20]requested_item shift.opened is exist - process it [14:24:20]req_shift_opened [14:24:20]FM_GetShiftState [14:24:20]SAM_PROTO_GetShiftState [14:24:20]wFMCommunicate request_size=4 [14:24:20]MH_SAM_APDU [14:24:20]CAPDU: 80 13 01 00 [14:24:20]Write to MH i2c: E2 08 00 51 23 80 13 01 00 00 00 00 00 F1 [14:24:20]Write i2c OK [14:24:20]MH_I2C_Read... [14:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:20]Read from MH i2c: E2 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 0E 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 0E 00 51 23 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8B [14:24:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:24:20]wFMCommunicate OK [14:24:20]SAM_PROTO_GetShiftState done [14:24:20]FM_GetShiftState done [14:24:20]req_shift_opened done [14:24:20]requested_item shift.open_date is exist - process it [14:24:20]req_shift_open_date [14:24:20]req_shift_open_date done [14:24:20]produce_requested_data done [14:24:20]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92466,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:24:20]process_action_free close_receipt [14:24:20]json_value_free [14:24:20]json_value_free done [14:24:20]process_json_proto returns [14:24:20]Send response to host [14:24:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92466,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:24:20]free response buf [14:24:20]execute_script done [14:24:20]execute_script returns [14:24:20]free content buf [14:24:20]Sock 9.Close socket [14:24:20]Sock 9.Thread stoped [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:55]accept exits with 8 [14:24:55]New connection [14:24:55]New thread 3066801508 created [14:24:55]Thread 3066658148 joined [14:24:55]Waiting for new connection... [14:24:55] Sock 8.Parse request [14:24:55]Sock 8.Check first char [14:24:55]Sock 8.First char is OK [14:24:55]request: POST /json_proto HTTP/1.0 [14:24:55]Method: POST [14:24:55]URL: /json_proto [14:24:55]Method is POST - this is cgi request [14:24:55]url: /json_proto [14:24:55]query_string will be loaded in cgi processing [14:24:55]execute_cgi json_proto POST (null) [14:24:55]execute_cgi path=json_proto method=POST [14:24:55]POST find Content-Length [14:24:55]Host: 172.17.57.71:8080 [14:24:55]Content-Length: 709 [14:24:55]Content-Type: application/json [14:24:55] [14:24:55]POST finish read [14:24:55]Found Content-Length = 709 [14:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127372", "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" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:55]execute_script... [14:24:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127372", "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" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:55]POST & json_proto [14:24:55]process_json_proto [14:24:55]json parsed OK: [14:24:55]protocol is kg_v1.0 [14:24:55]action value=close_receipt [14:24:55]process_action close_receipt [14:24:55]cmd_close_receipt [14:24:55]MH_GetDate [14:24:55]Write to MH i2c: F0 00 00 52 23 64 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: F0 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: F0 09 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: F0 09 00 52 23 00 BA 9C E5 66 33 3A A4 66 85 [14:24:55]GetLastDocTimeStamp 1726323857 [14:24:55]current date 1726323898 [14:24:55]FM_GetShiftState [14:24:55]SAM_PROTO_GetShiftState [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 13 01 00 [14:24:55]Write to MH i2c: E2 08 00 53 23 80 13 01 00 00 00 00 00 F3 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 0E 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 0E 00 53 23 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8D [14:24:55]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:24:55]wFMCommunicate OK [14:24:55]SAM_PROTO_GetShiftState done [14:24:55]FM_GetShiftState done [14:24:55]opened in 1726273389 [14:24:55]opened+sec_in_day 1726359789 [14:24:55]quantity*price = 9500 [14:24:55]sum+1 = 9501 [14:24:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 118 14.09.2024 14:24 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92467 ФПД: 176704834947613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T142458&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92467&fm=176704834947613&tin=02508201610067®Number=0000000000091423&sum=9500 0 [14:24:56]StoreToDocumentArchive [14:24:56]shift 506 fd 92467 [14:24:56]save to /storage/0506/doc_00092467 [14:24:56]save last doc name /storage/0506/doc_00092467 to /storage/kkm_last_doc_name [14:24:56]save OK [14:24:56]Clear old archive folders... [14:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=304 [14:24:56]tlvbuf is 0102BC70 [14:24:56]SAM_PROTO_ClearQueue [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 09 00 00 [14:24:56]Write to MH i2c: E2 08 00 60 23 80 09 00 00 00 00 00 00 F5 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 60 23 00 90 00 F7 [14:24:56]RAPDU: 90 00 [14:24:56]wFMCommunicate OK [14:24:56]SAM_PROTO_ClearQueue done [14:24:56]KKMCreateOFDPacket [14:24:56]OFDProtocolAddRootSTLVToBuf [14:24:56]FM_MakeSignedData [14:24:56]FM_MakeSignedData [14:24:56]SAM_PROTO_SignData [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 0D 01 02 [14:24:56]Write to MH i2c: E2 08 00 61 23 80 0D 01 02 00 00 00 00 FD [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 61 23 00 90 00 F8 [14:24:56]RAPDU: 90 00 [14:24:56]wFMCommunicate OK [14:24:56]wFMCommunicate request_size=255 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 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 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 76 00 00 00 F4 03 04 00 BA 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 [14:24:56]Write to MH i2c: E2 02 01 62 23 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 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 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 76 00 00 00 F4 03 04 00 BA 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 00 00 55 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [14:24:56]RAPDU: 90 00 [14:24:56]wFMCommunicate OK [14:24:56]wFMCommunicate request_size=63 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 69 01 00 35 04 06 00 A0 B6 4C EA CA 1D [14:24:56]Write to MH i2c: E2 42 00 63 23 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 69 01 00 35 04 06 00 A0 B6 4C EA CA 1D 00 00 58 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [14:24:56]RAPDU: 90 00 [14:24:56]wFMCommunicate OK [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 0D 03 02 [14:24:56]Write to MH i2c: E2 08 00 64 23 80 0D 03 02 00 00 00 00 02 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 0B 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 0B 00 64 23 00 6B 43 D0 43 3B 9E FE DC 90 00 77 [14:24:56]RAPDU: 6B 43 D0 43 3B 9E FE DC 90 00 [14:24:56]wFMCommunicate OK [14:24:56]SAM_PROTO_SignData done [14:24:56]FM_MakeSignedData done [14:24:56]CreateOFDProtocolMessage [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 11 00 00 [14:24:56]Write to MH i2c: E2 08 00 65 23 80 11 00 00 00 00 00 00 02 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 17 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 17 00 65 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 59 [14:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:24:56]wFMCommunicate OK [14:24:56]CreateOFDProtocolMessage done [14:24:56]OFDSenderStorePacket 92467 [14:24:56]StoreOFDPacket docnum=92467 [14:24:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 44 01 00 00 A9 50 3C 01 F5 B9 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 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 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 76 00 00 00 F4 03 04 00 BA 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 69 01 00 35 04 06 00 A0 B6 4C EA CA 1D 6B 43 D0 43 3B 9E FE DC [14:24:56]CheckFolder [14:24:56]dirname=/storage/ofd_packets [14:24:56]CheckFolder done [14:24:56]ProducePacketName [14:24:56]name=ofd_packets/00092467 [14:24:56]NVStorageSaveData ofd_packets/00092467 [14:24:56]File name is /storage/ofd_packets/00092467 [14:24:56]Write 354 bytes [14:24:56]NVStorageSaveData done [14:24:56]OFDSenderStorePacket done [14:24:56]KKMCreateOFDPacket done [14:24:56]NVStorageSaveData kkm_last_timestamp [14:24:56]File name is /storage/kkm_last_timestamp [14:24:56]Write 4 bytes [14:24:56]NVStorageSaveData done [14:24:56]ExternCall_PrintAddStr [14:24:56]wPrintStart [14:24:56]Write to MH i2c: 01 00 00 66 23 89 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: 01 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: 01 07 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: 01 07 00 66 23 00 00 00 00 00 FF 0F 9E [14:24:56]RasterBufferAndPrint [14:24:56]line Счет N : (3)127372 [14:24:56]line ИНН: 02508201610067 [14:24:56]line Контрольно-Кассовый Чек [14:24:56]line ПРОДАЖА [14:24:56]line Товар: 4700000480302 [14:24:56]line Напиток энерг Nitro манго-клуб 0.45 ж/б [14:24:56]line 1.000 * 95.00 [14:24:56]line = 95.00 [14:24:56]line НДС 12% НСП 1% [14:24:56]line > о реализуемом товаре [14:24:56]line ИТОГО: 95.00 [14:24:56]line НСП 1% : 0.84 [14:24:56]line НДС 12% : 10.09 [14:24:56]line Наличными: 95.00 [14:24:56]line Безнал.: 0.00 [14:24:56]line Место: АЗС № 5 "Партнер Нефть" [14:24:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:24:56]line СНО: Общий режим [14:24:56]line Чек 118 14.09.2024 14:24 [14:24:56]line Смена: 506 ФФД: 1.0 [14:24:56]line ЗНМ: 03000000022 [14:24:56]line РНМ: 0000000000091423 [14:24:56]line Версия ККМ: 001 [14:24:56]line ФМ: 0000000000874692 [14:24:56]line ФД: 92467 [14:24:56]line ФПД: 176704834947613 [14:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T142458&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92467&fm=176704834947613&tin=02508201610067®Number=0000000000091423&sum=9500 [14:24:57]line 0 [14:24:57]OFD Sender: Processing packet 92467 [packets to send 63, broken 62] [14:24:57]ProducePacketName [14:24:57]name=ofd_packets/00092467 [14:24:57]OFD Sender: To server: pG, [14:24:57]CommunicateWithHost lk.salyk.kg:30040 [14:24:57]ConnectInit lk.salyk.kg [14:24:57]written 0, free lines is 4095 [14:24:57]Connected sock=9 [14:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 44 01 00 00 A9 50 3C 01 F5 B9 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 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 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 76 00 00 00 F4 03 04 00 BA 9C E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 69 01 00 35 04 06 00 A0 B6 4C EA CA 1D 6B 43 D0 43 3B 9E FE DC [14:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2B CF 47 00 F3 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 33 69 01 00 F4 03 04 00 35 45 E5 66 B6 04 01 00 00 89 82 84 A1 4F E8 DC 83 [14:24:57]CommunicateWithHost err = 0 [14:24:57]CheckOFDResponse [14:24:57]1017 (14) - 77093643461234 [14:24:57]1041 (16) - 0000000000874692 [14:24:57]1040 (4) - 92467 [14:24:57]1012 (4) - 14.09.2024 08:11 [14:24:57]1206 (1) - 0 [14:24:57]OFD Sender: Remove packet 92467 [14:24:57]ProducePacketName [14:24:57]name=ofd_packets/00092467 [14:24:57]NVStorageDeleteData [14:24:57]Write to MH i2c: 01 00 00 8F 23 B2 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 8F 23 00 00 00 00 00 0E 0D D4 [14:24:57]RasterBufferAndPrint [14:24:57]line [14:24:57]line [14:24:57]line [14:24:57]line [14:24:57]line [14:24:57]written 0, free lines is 3350 [14:24:57]MH_Cut [14:24:57]Write to MH i2c: D1 01 00 96 23 01 8B [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: D1 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: D1 01 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: D1 01 00 96 23 00 8A [14:24:57]Write to MH i2c: 01 00 00 97 23 BA [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]OFD Sender: No OFD packet to send [14:24:58]*** Cut start [14:24:58]*** Purtial cut [14:24:58]*** Stage 1: CUTSNS_PIN = 1 [14:25:00]Read from MH i2c: 01 [14:25:00]MH_I2C_Read... [14:25:00]*** Stop cut motor [14:25:00]*** Cut end [14:25:00]Read from MH i2c: 01 07 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: 01 07 00 97 23 00 00 00 00 00 FF 0F CF [14:25:00]process_action close_receipt done [14:25:00]requested_data is exist [14:25:00]produce_requested_data [14:25:00]requested_item fm.sn is exist - process it [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 11 00 00 [14:25:00]Write to MH i2c: E2 08 00 98 23 80 11 00 00 00 00 00 00 35 [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 17 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 17 00 98 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8C [14:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:25:00]wFMCommunicate OK [14:25:00]requested_item fd.num is exist - process it [14:25:00]SAM_PROTO_GetFieldsCounters [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 13 00 00 [14:25:00]Write to MH i2c: E2 08 00 99 23 80 13 00 00 00 00 00 00 38 [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 62 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 62 00 99 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 33 69 01 00 0E 04 04 00 FA 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 51 [14:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 33 69 01 00 0E 04 04 00 FA 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:25:00]wFMCommunicate OK [14:25:00]SAM_PROTO_GetFieldsCounters done [14:25:00]requested_item shift.num is exist - process it [14:25:00]requested_item shift.opened is exist - process it [14:25:00]req_shift_opened [14:25:00]FM_GetShiftState [14:25:00]SAM_PROTO_GetShiftState [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 13 01 00 [14:25:00]Write to MH i2c: E2 08 00 9A 23 80 13 01 00 00 00 00 00 3A [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 0E 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 0E 00 9A 23 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D4 [14:25:00]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:25:00]wFMCommunicate OK [14:25:00]SAM_PROTO_GetShiftState done [14:25:00]FM_GetShiftState done [14:25:00]req_shift_opened done [14:25:00]requested_item shift.open_date is exist - process it [14:25:00]req_shift_open_date [14:25:00]req_shift_open_date done [14:25:00]produce_requested_data done [14:25:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92467,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:25:00]process_action_free close_receipt [14:25:00]json_value_free [14:25:00]json_value_free done [14:25:00]process_json_proto returns [14:25:00]Send response to host [14:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92467,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:25:00]free response buf [14:25:00]execute_script done [14:25:00]execute_script returns [14:25:00]free content buf [14:25:00]Sock 8.Close socket [14:25:00]Sock 8.Thread stoped [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:07]accept exits with 10 [14:27:07]New connection [14:27:07]New thread 3066658148 created [14:27:07]Thread 3066801508 joined [14:27:07]Waiting for new connection... [14:27:07] Sock 10.Parse request [14:27:07]Sock 10.Check first char [14:27:07]Sock 10.First char is OK [14:27:07]request: POST /json_proto HTTP/1.0 [14:27:07]Method: POST [14:27:07]URL: /json_proto [14:27:07]Method is POST - this is cgi request [14:27:07]url: /json_proto [14:27:07]query_string will be loaded in cgi processing [14:27:07]execute_cgi json_proto POST (null) [14:27:07]execute_cgi path=json_proto method=POST [14:27:07]POST find Content-Length [14:27:07]Host: 172.17.57.71:8080 [14:27:07]Content-Length: 637 [14:27:07]Content-Type: application/json [14:27:07] [14:27:07]POST finish read [14:27:07]Found Content-Length = 637 [14:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127373", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\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" ] } } [14:27:07]execute_script... [14:27:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127373", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\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" ] } } [14:27:07]POST & json_proto [14:27:07]process_json_proto [14:27:07]json parsed OK: [14:27:07]protocol is kg_v1.0 [14:27:07]action value=close_receipt [14:27:07]process_action close_receipt [14:27:07]cmd_close_receipt [14:27:07]MH_GetDate [14:27:07]Write to MH i2c: F0 00 00 9B 23 AD [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: F0 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: F0 09 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: F0 09 00 9B 23 00 3E 9D E5 66 33 3A A4 66 53 [14:27:07]GetLastDocTimeStamp 1726323898 [14:27:07]current date 1726324030 [14:27:07]FM_GetShiftState [14:27:07]SAM_PROTO_GetShiftState [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 13 01 00 [14:27:07]Write to MH i2c: E2 08 00 9C 23 80 13 01 00 00 00 00 00 3C [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 0E 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 0E 00 9C 23 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D6 [14:27:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:27:07]wFMCommunicate OK [14:27:07]SAM_PROTO_GetShiftState done [14:27:07]FM_GetShiftState done [14:27:07]opened in 1726273389 [14:27:07]opened+sec_in_day 1726359789 [14:27:07]quantity*price = 5000 [14:27:07]sum+1 = 5001 [14:27:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 119 14.09.2024 14:27 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92468 ФПД: 151431880186112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T142711&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92468&fm=151431880186112&tin=02508201610067®Number=0000000000091423&sum=5000 0 [14:27:08]StoreToDocumentArchive [14:27:08]shift 506 fd 92468 [14:27:08]save to /storage/0506/doc_00092468 [14:27:08]save last doc name /storage/0506/doc_00092468 to /storage/kkm_last_doc_name [14:27:08]save OK [14:27:08]Clear old archive folders... [14:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:27:08]tlvbuf is 01022F60 [14:27:08]SAM_PROTO_ClearQueue [14:27:08]wFMCommunicate request_size=4 [14:27:08]MH_SAM_APDU [14:27:08]CAPDU: 80 09 00 00 [14:27:08]Write to MH i2c: E2 08 00 A9 23 80 09 00 00 00 00 00 00 3E [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 A9 23 00 90 00 40 [14:27:08]RAPDU: 90 00 [14:27:08]wFMCommunicate OK [14:27:08]SAM_PROTO_ClearQueue done [14:27:08]KKMCreateOFDPacket [14:27:08]OFDProtocolAddRootSTLVToBuf [14:27:08]FM_MakeSignedData [14:27:08]FM_MakeSignedData [14:27:08]SAM_PROTO_SignData [14:27:08]wFMCommunicate request_size=4 [14:27:08]MH_SAM_APDU [14:27:08]CAPDU: 80 0D 01 02 [14:27:08]Write to MH i2c: E2 08 00 AA 23 80 0D 01 02 00 00 00 00 46 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 AA 23 00 90 00 41 [14:27:08]RAPDU: 90 00 [14:27:08]wFMCommunicate OK [14:27:08]wFMCommunicate request_size=255 [14:27:08]MH_SAM_APDU [14:27:08]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 77 00 00 00 F4 03 04 00 3F 9D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 [14:27:08]Write to MH i2c: E2 02 01 AB 23 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 77 00 00 00 F4 03 04 00 3F 9D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 26 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 AB 23 00 90 00 42 [14:27:08]RAPDU: 90 00 [14:27:08]wFMCommunicate OK [14:27:08]wFMCommunicate request_size=31 [14:27:08]MH_SAM_APDU [14:27:08]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 39 32 10 04 04 00 34 69 01 00 35 04 06 00 89 B9 FB 6D 19 00 [14:27:08]Write to MH i2c: E2 22 00 AC 23 80 0D 02 02 1A 00 30 30 38 37 34 36 39 32 10 04 04 00 34 69 01 00 35 04 06 00 89 B9 FB 6D 19 00 00 00 D9 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:09]Read from MH i2c: E2 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 03 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 03 00 AC 23 00 90 00 43 [14:27:09]RAPDU: 90 00 [14:27:09]wFMCommunicate OK [14:27:09]wFMCommunicate request_size=4 [14:27:09]MH_SAM_APDU [14:27:09]CAPDU: 80 0D 03 02 [14:27:09]Write to MH i2c: E2 08 00 AD 23 80 0D 03 02 00 00 00 00 4B [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:09]Read from MH i2c: E2 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 0B 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 0B 00 AD 23 00 03 47 4B 07 3A A4 64 4C 90 00 76 [14:27:09]RAPDU: 03 47 4B 07 3A A4 64 4C 90 00 [14:27:09]wFMCommunicate OK [14:27:09]SAM_PROTO_SignData done [14:27:09]FM_MakeSignedData done [14:27:09]CreateOFDProtocolMessage [14:27:09]wFMCommunicate request_size=4 [14:27:09]MH_SAM_APDU [14:27:09]CAPDU: 80 11 00 00 [14:27:09]Write to MH i2c: E2 08 00 AE 23 80 11 00 00 00 00 00 00 4B [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:09]Read from MH i2c: E2 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 17 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 17 00 AE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A2 [14:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:27:09]wFMCommunicate OK [14:27:09]CreateOFDProtocolMessage done [14:27:09]OFDSenderStorePacket 92468 [14:27:09]StoreOFDPacket docnum=92468 [14:27:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 AE 70 1C 01 64 D0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 77 00 00 00 F4 03 04 00 3F 9D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 34 69 01 00 35 04 06 00 89 B9 FB 6D 19 00 03 47 4B 07 3A A4 64 4C [14:27:09]CheckFolder [14:27:09]dirname=/storage/ofd_packets [14:27:09]CheckFolder done [14:27:09]ProducePacketName [14:27:09]name=ofd_packets/00092468 [14:27:09]NVStorageSaveData ofd_packets/00092468 [14:27:09]File name is /storage/ofd_packets/00092468 [14:27:09]Write 322 bytes [14:27:09]NVStorageSaveData done [14:27:09]OFDSenderStorePacket done [14:27:09]KKMCreateOFDPacket done [14:27:09]NVStorageSaveData kkm_last_timestamp [14:27:09]File name is /storage/kkm_last_timestamp [14:27:09]Write 4 bytes [14:27:09]NVStorageSaveData done [14:27:09]ExternCall_PrintAddStr [14:27:09]wPrintStart [14:27:09]Write to MH i2c: 01 00 00 AF 23 D2 [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: 01 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: 01 07 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: 01 07 00 AF 23 00 00 00 00 00 FF 0F E7 [14:27:09]RasterBufferAndPrint [14:27:09]line Счет N : (3)127373 [14:27:09]line ИНН: 02508201610067 [14:27:09]line Контрольно-Кассовый Чек [14:27:09]line ПРОДАЖА [14:27:09]line Товар: 4700000160051 [14:27:09]line Вода Ыссык Ата 1л [14:27:09]line 1.000 * 50.00 [14:27:09]line = 50.00 [14:27:09]line НДС 12% НСП 1% [14:27:09]line > о реализуемом товаре [14:27:09]line ИТОГО: 50.00 [14:27:09]line НСП 1% : 0.44 [14:27:09]line НДС 12% : 5.31 [14:27:09]line Наличными: 50.00 [14:27:09]line Безнал.: 0.00 [14:27:09]line Место: АЗС № 5 "Партнер Нефть" [14:27:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:27:09]line СНО: Общий режим [14:27:09]line Чек 119 14.09.2024 14:27 [14:27:09]line Смена: 506 ФФД: 1.0 [14:27:09]line ЗНМ: 03000000022 [14:27:09]line РНМ: 0000000000091423 [14:27:09]line Версия ККМ: 001 [14:27:09]line ФМ: 0000000000874692 [14:27:09]line ФД: 92468 [14:27:09]line ФПД: 151431880186112 [14:27:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T142711&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92468&fm=151431880186112&tin=02508201610067®Number=0000000000091423&sum=5000 [14:27:09]line 0 [14:27:09]written 0, free lines is 4095 [14:27:09]OFD Sender: Processing packet 92468 [packets to send 63, broken 62] [14:27:09]ProducePacketName [14:27:09]name=ofd_packets/00092468 [14:27:09]OFD Sender: To server: pG, [14:27:09]CommunicateWithHost lk.salyk.kg:30040 [14:27:09]ConnectInit lk.salyk.kg [14:27:09]Write to MH i2c: 01 00 00 D7 23 FA [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: 01 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: 01 07 00 [14:27:09]MH_I2C_Read... [14:27:09]Connected sock=9 [14:27:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 24 01 00 00 AE 70 1C 01 64 D0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 77 00 00 00 F4 03 04 00 3F 9D E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 34 69 01 00 35 04 06 00 89 B9 FB 6D 19 00 03 47 4B 07 3A A4 64 4C [14:27:09]Read from MH i2c: 01 07 00 D7 23 00 00 00 00 00 08 0D 16 [14:27:09]RasterBufferAndPrint [14:27:09]line [14:27:09]line [14:27:09]line [14:27:09]line [14:27:09]line [14:27:09]written 0, free lines is 3361 [14:27:09]MH_Cut [14:27:09]Write to MH i2c: D1 01 00 DE 23 01 D3 [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: D1 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: D1 01 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: D1 01 00 DE 23 00 D2 [14:27:09]Write to MH i2c: 01 00 00 DF 23 02 [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FF C6 47 00 B1 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 34 69 01 00 F4 03 04 00 BA 45 E5 66 B6 04 01 00 00 2B 2D 00 F5 9D 25 0A 20 [14:27:09]CommunicateWithHost err = 0 [14:27:09]CheckOFDResponse [14:27:09]1017 (14) - 77093643461234 [14:27:09]1041 (16) - 0000000000874692 [14:27:09]1040 (4) - 92468 [14:27:09]1012 (4) - 14.09.2024 08:13 [14:27:09]1206 (1) - 0 [14:27:09]OFD Sender: Remove packet 92468 [14:27:09]ProducePacketName [14:27:09]name=ofd_packets/00092468 [14:27:09]NVStorageDeleteData [14:27:10]*** Cut start [14:27:10]*** Purtial cut [14:27:10]*** Stage 1: CUTSNS_PIN = 1 [14:27:10]OFD Sender: No OFD packet to send [14:27:12]Read from MH i2c: 01 [14:27:12]MH_I2C_Read... [14:27:12]*** Stop cut motor [14:27:12]*** Cut end [14:27:12]Read from MH i2c: 01 07 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 DF 23 00 00 00 00 00 FF 0F 17 [14:27:12]process_action close_receipt done [14:27:12]requested_data is exist [14:27:12]produce_requested_data [14:27:12]requested_item fm.sn is exist - process it [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 11 00 00 [14:27:12]Write to MH i2c: E2 08 00 E0 23 80 11 00 00 00 00 00 00 7D [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 17 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 17 00 E0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D4 [14:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:27:12]wFMCommunicate OK [14:27:12]requested_item fd.num is exist - process it [14:27:12]SAM_PROTO_GetFieldsCounters [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 13 00 00 [14:27:12]Write to MH i2c: E2 08 00 E1 23 80 13 00 00 00 00 00 00 80 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 62 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 62 00 E1 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 34 69 01 00 0E 04 04 00 FA 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 9D [14:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 34 69 01 00 0E 04 04 00 FA 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:27:12]wFMCommunicate OK [14:27:12]SAM_PROTO_GetFieldsCounters done [14:27:12]requested_item shift.num is exist - process it [14:27:12]requested_item shift.opened is exist - process it [14:27:12]req_shift_opened [14:27:12]FM_GetShiftState [14:27:12]SAM_PROTO_GetShiftState [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 13 01 00 [14:27:12]Write to MH i2c: E2 08 00 E2 23 80 13 01 00 00 00 00 00 82 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 0E 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 0E 00 E2 23 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 1C [14:27:12]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:27:12]wFMCommunicate OK [14:27:12]SAM_PROTO_GetShiftState done [14:27:12]FM_GetShiftState done [14:27:12]req_shift_opened done [14:27:12]requested_item shift.open_date is exist - process it [14:27:12]req_shift_open_date [14:27:12]req_shift_open_date done [14:27:12]produce_requested_data done [14:27:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92468,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:27:12]process_action_free close_receipt [14:27:12]json_value_free [14:27:12]json_value_free done [14:27:12]process_json_proto returns [14:27:12]Send response to host [14:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92468,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:27:12]free response buf [14:27:12]execute_script done [14:27:12]execute_script returns [14:27:12]free content buf [14:27:12]Sock 10.Close socket [14:27:12]Sock 10.Thread stoped [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:11]accept exits with 8 [14:31:11]New connection [14:31:11]New thread 3066801508 created [14:31:11]Thread 3066658148 joined [14:31:11]Waiting for new connection... [14:31:11] Sock 8.Parse request [14:31:11]Sock 8.Check first char [14:31:11]Sock 8.First char is OK [14:31:11]request: POST /json_proto HTTP/1.0 [14:31:11]Method: POST [14:31:11]URL: /json_proto [14:31:11]Method is POST - this is cgi request [14:31:11]url: /json_proto [14:31:11]query_string will be loaded in cgi processing [14:31:11]execute_cgi json_proto POST (null) [14:31:11]execute_cgi path=json_proto method=POST [14:31:11]POST find Content-Length [14:31:11]Host: 172.17.57.71:8080 [14:31:11]Content-Length: 926 [14:31:11]Content-Type: application/json [14:31:11] [14:31:11]POST finish read [14:31:11]Found Content-Length = 926 [14:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127374", "tax_sys" : 0, "items" : [ { "code": "4660013330790", "name": "\u0428\u043E\u043A \u043F\u0435\u0447\u0435\u043D\u044C\u0435 \u0441\u044D\u043D\u0434\u0432\u0438\u0447 \u043F\u043B\u043E\u043C\u0431\u0438\u0440 \u0432\u0430\u043D\u0438\u043B\u044C\u043D\u044B\u0439", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:11]execute_script... [14:31:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127374", "tax_sys" : 0, "items" : [ { "code": "4660013330790", "name": "\u0428\u043E\u043A \u043F\u0435\u0447\u0435\u043D\u044C\u0435 \u0441\u044D\u043D\u0434\u0432\u0438\u0447 \u043F\u043B\u043E\u043C\u0431\u0438\u0440 \u0432\u0430\u043D\u0438\u043B\u044C\u043D\u044B\u0439", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:11]POST & json_proto [14:31:11]process_json_proto [14:31:11]json parsed OK: [14:31:11]protocol is kg_v1.0 [14:31:11]action value=close_receipt [14:31:11]process_action close_receipt [14:31:11]cmd_close_receipt [14:31:11]MH_GetDate [14:31:11]Write to MH i2c: F0 00 00 E3 23 F5 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: F0 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: F0 09 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: F0 09 00 E3 23 00 32 9E E5 66 33 3A A4 66 90 [14:31:11]GetLastDocTimeStamp 1726324031 [14:31:11]current date 1726324274 [14:31:11]FM_GetShiftState [14:31:11]SAM_PROTO_GetShiftState [14:31:11]wFMCommunicate request_size=4 [14:31:11]MH_SAM_APDU [14:31:11]CAPDU: 80 13 01 00 [14:31:11]Write to MH i2c: E2 08 00 E4 23 80 13 01 00 00 00 00 00 84 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:11]Read from MH i2c: E2 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 0E 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 0E 00 E4 23 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 1E [14:31:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:31:11]wFMCommunicate OK [14:31:11]SAM_PROTO_GetShiftState done [14:31:11]FM_GetShiftState done [14:31:11]opened in 1726273389 [14:31:11]opened+sec_in_day 1726359789 [14:31:11]quantity*price = 10000 [14:31:11]sum+1 = 10001 [14:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 0.00 Безнал.: 100.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 120 14.09.2024 14:31 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92469 ФПД: 175813879493826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T143114&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92469&fm=175813879493826&tin=02508201610067®Number=0000000000091423&sum=10000 0 [14:31:12]StoreToDocumentArchive [14:31:12]shift 506 fd 92469 [14:31:12]save to /storage/0506/doc_00092469 [14:31:12]save last doc name /storage/0506/doc_00092469 to /storage/kkm_last_doc_name [14:31:12]save OK [14:31:12]Clear old archive folders... [14:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=312 [14:31:12]tlvbuf is 0101E5E0 [14:31:12]SAM_PROTO_ClearQueue [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 09 00 00 [14:31:12]Write to MH i2c: E2 08 00 F1 23 80 09 00 00 00 00 00 00 86 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [14:31:12]RAPDU: 90 00 [14:31:12]wFMCommunicate OK [14:31:12]SAM_PROTO_ClearQueue done [14:31:12]KKMCreateOFDPacket [14:31:12]OFDProtocolAddRootSTLVToBuf [14:31:12]FM_MakeSignedData [14:31:12]FM_MakeSignedData [14:31:12]SAM_PROTO_SignData [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 0D 01 02 [14:31:12]Write to MH i2c: E2 08 00 F2 23 80 0D 01 02 00 00 00 00 8E [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 F2 23 00 90 00 89 [14:31:12]RAPDU: 90 00 [14:31:12]wFMCommunicate OK [14:31:12]wFMCommunicate request_size=255 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 32 9E E5 66 0E 04 04 00 FA [14:31:12]Write to MH i2c: E2 02 01 F3 23 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 32 9E E5 66 0E 04 04 00 FA 00 00 4F [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 F3 23 00 90 00 8A [14:31:12]RAPDU: 90 00 [14:31:12]wFMCommunicate OK [14:31:12]wFMCommunicate request_size=71 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 0D 02 02 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 69 01 00 35 04 06 00 9F E6 DB D5 74 C2 [14:31:12]Write to MH i2c: E2 4A 00 F4 23 80 0D 02 02 42 00 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 69 01 00 35 04 06 00 9F E6 DB D5 74 C2 00 00 B3 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 F4 23 00 90 00 8B [14:31:12]RAPDU: 90 00 [14:31:12]wFMCommunicate OK [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 0D 03 02 [14:31:12]Write to MH i2c: E2 08 00 F5 23 80 0D 03 02 00 00 00 00 93 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 0B 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 0B 00 F5 23 00 8F 1C 76 56 AA 96 55 46 90 00 E6 [14:31:12]RAPDU: 8F 1C 76 56 AA 96 55 46 90 00 [14:31:12]wFMCommunicate OK [14:31:12]SAM_PROTO_SignData done [14:31:12]FM_MakeSignedData done [14:31:12]CreateOFDProtocolMessage [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 11 00 00 [14:31:12]Write to MH i2c: E2 08 00 F6 23 80 11 00 00 00 00 00 00 93 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 17 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 17 00 F6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EA [14:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:31:12]wFMCommunicate OK [14:31:12]CreateOFDProtocolMessage done [14:31:12]OFDSenderStorePacket 92469 [14:31:12]StoreOFDPacket docnum=92469 [14:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4C 01 00 00 14 DC 44 01 7D 2F 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 32 9E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 69 01 00 35 04 06 00 9F E6 DB D5 74 C2 8F 1C 76 56 AA 96 55 46 [14:31:12]CheckFolder [14:31:12]dirname=/storage/ofd_packets [14:31:12]CheckFolder done [14:31:12]ProducePacketName [14:31:12]name=ofd_packets/00092469 [14:31:12]NVStorageSaveData ofd_packets/00092469 [14:31:12]File name is /storage/ofd_packets/00092469 [14:31:12]Write 362 bytes [14:31:12]NVStorageSaveData done [14:31:12]OFDSenderStorePacket done [14:31:12]KKMCreateOFDPacket done [14:31:12]NVStorageSaveData kkm_last_timestamp [14:31:12]File name is /storage/kkm_last_timestamp [14:31:12]Write 4 bytes [14:31:12]NVStorageSaveData done [14:31:12]ExternCall_PrintAddStr [14:31:12]wPrintStart [14:31:12]Write to MH i2c: 01 00 00 F7 23 1A [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: 01 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: 01 07 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: 01 07 00 F7 23 00 00 00 00 00 FF 0F 2F [14:31:12]RasterBufferAndPrint [14:31:12]line Счет N : (3)127374 [14:31:12]line ИНН: 02508201610067 [14:31:12]line Контрольно-Кассовый Чек [14:31:12]line ПРОДАЖА [14:31:12]line Товар: 4660013330790 [14:31:12]line Шок печенье сэндвич пломбир ванильный [14:31:12]line 1.000 * 100.00 [14:31:12]line = 100.00 [14:31:12]line НДС 12% НСП 1% [14:31:12]line > о реализуемом товаре [14:31:12]line ИТОГО: 100.00 [14:31:12]line НСП 1% : 0.88 [14:31:12]line НДС 12% : 10.62 [14:31:12]line Наличными: 0.00 [14:31:12]line Безнал.: 100.00 [14:31:12]line Место: АЗС № 5 "Партнер Нефть" [14:31:12]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:31:12]line СНО: Общий режим [14:31:12]line Чек 120 14.09.2024 14:31 [14:31:12]line Смена: 506 ФФД: 1.0 [14:31:12]line ЗНМ: 03000000022 [14:31:12]line РНМ: 0000000000091423 [14:31:12]line Версия ККМ: 001 [14:31:12]line Платежная система: О! деньги [14:31:12]line ФМ: 0000000000874692 [14:31:12]line ФД: 92469 [14:31:12]line ФПД: 175813879493826 [14:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T143114&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92469&fm=175813879493826&tin=02508201610067®Number=0000000000091423&sum=10000 [14:31:13]line 0 [14:31:13]OFD Sender: Processing packet 92469 [packets to send 63, broken 62] [14:31:13]ProducePacketName [14:31:13]name=ofd_packets/00092469 [14:31:13]OFD Sender: To server: pG, [14:31:13]CommunicateWithHost lk.salyk.kg:30040 [14:31:13]ConnectInit lk.salyk.kg [14:31:13]written 0, free lines is 4095 [14:31:13]Connected sock=10 [14:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4C 01 00 00 14 DC 44 01 7D 2F 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 32 9E E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 35 69 01 00 35 04 06 00 9F E6 DB D5 74 C2 8F 1C 76 56 AA 96 55 46 [14:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CF 59 47 00 27 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 34 36 39 32 10 04 04 00 35 69 01 00 F4 03 04 00 AD 46 E5 66 B6 04 01 00 00 D6 8D DB 54 F6 15 E6 DD [14:31:13]CommunicateWithHost err = 0 [14:31:13]CheckOFDResponse [14:31:13]1017 (14) - 77093643461234 [14:31:13]1041 (16) - 0000000000874692 [14:31:13]1040 (4) - 92469 [14:31:13]1012 (4) - 14.09.2024 08:17 [14:31:13]1206 (1) - 0 [14:31:13]OFD Sender: Remove packet 92469 [14:31:13]ProducePacketName [14:31:13]name=ofd_packets/00092469 [14:31:13]NVStorageDeleteData [14:31:13]Write to MH i2c: 01 00 00 22 24 46 [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 07 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 07 00 22 24 00 00 00 00 00 F6 0C 4F [14:31:13]RasterBufferAndPrint [14:31:13]line [14:31:13]line [14:31:13]line [14:31:13]line [14:31:13]line [14:31:13]written 0, free lines is 3326 [14:31:13]MH_Cut [14:31:13]Write to MH i2c: D1 01 00 29 24 01 1F [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: D1 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: D1 01 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: D1 01 00 29 24 00 1E [14:31:13]Write to MH i2c: 01 00 00 2A 24 4E [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:14]OFD Sender: No OFD packet to send [14:31:14]*** Cut start [14:31:14]*** Purtial cut [14:31:14]*** Stage 1: CUTSNS_PIN = 1 [14:31:16]Read from MH i2c: 01 [14:31:16]MH_I2C_Read... [14:31:16]*** Stop cut motor [14:31:16]*** Cut end [14:31:16]Read from MH i2c: 01 07 00 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: 01 07 00 2A 24 00 00 00 00 00 FF 0F 63 [14:31:16]process_action close_receipt done [14:31:16]requested_data is exist [14:31:16]produce_requested_data [14:31:16]requested_item fm.sn is exist - process it [14:31:16]wFMCommunicate request_size=4 [14:31:16]MH_SAM_APDU [14:31:16]CAPDU: 80 11 00 00 [14:31:16]Write to MH i2c: E2 08 00 2B 24 80 11 00 00 00 00 00 00 C9 [14:31:16]Write i2c OK [14:31:16]MH_I2C_Read... [14:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:16]Read from MH i2c: E2 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: E2 17 00 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: E2 17 00 2B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 20 [14:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:31:16]wFMCommunicate OK [14:31:16]requested_item fd.num is exist - process it [14:31:16]SAM_PROTO_GetFieldsCounters [14:31:16]wFMCommunicate request_size=4 [14:31:16]MH_SAM_APDU [14:31:16]CAPDU: 80 13 00 00 [14:31:16]Write to MH i2c: E2 08 00 2C 24 80 13 00 00 00 00 00 00 CC [14:31:16]Write i2c OK [14:31:16]MH_I2C_Read... [14:31:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:16]Read from MH i2c: E2 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: E2 62 00 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: E2 62 00 2C 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 35 69 01 00 0E 04 04 00 FA 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 ED [14:31:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 35 69 01 00 0E 04 04 00 FA 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:31:16]wFMCommunicate OK [14:31:16]SAM_PROTO_GetFieldsCounters done [14:31:16]requested_item shift.num is exist - process it [14:31:16]requested_item shift.opened is exist - process it [14:31:16]req_shift_opened [14:31:16]FM_GetShiftState [14:31:16]SAM_PROTO_GetShiftState [14:31:16]wFMCommunicate request_size=4 [14:31:16]MH_SAM_APDU [14:31:16]CAPDU: 80 13 01 00 [14:31:16]Write to MH i2c: E2 08 00 2D 24 80 13 01 00 00 00 00 00 CE [14:31:16]Write i2c OK [14:31:16]MH_I2C_Read... [14:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:16]Read from MH i2c: E2 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: E2 0E 00 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: E2 0E 00 2D 24 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 68 [14:31:16]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:31:16]wFMCommunicate OK [14:31:16]SAM_PROTO_GetShiftState done [14:31:16]FM_GetShiftState done [14:31:16]req_shift_opened done [14:31:16]requested_item shift.open_date is exist - process it [14:31:16]req_shift_open_date [14:31:16]req_shift_open_date done [14:31:16]produce_requested_data done [14:31:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92469,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:31:16]process_action_free close_receipt [14:31:16]json_value_free [14:31:16]json_value_free done [14:31:16]process_json_proto returns [14:31:16]Send response to host [14:31:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92469,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:31:16]free response buf [14:31:16]execute_script done [14:31:16]execute_script returns [14:31:16]free content buf [14:31:16]Sock 8.Close socket [14:31:16]Sock 8.Thread stoped [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:27]accept exits with 9 [14:41:27]New connection [14:41:27]New thread 3066658148 created [14:41:27]Thread 3066801508 joined [14:41:27]Waiting for new connection... [14:41:27] Sock 9.Parse request [14:41:27]Sock 9.Check first char [14:41:27]Sock 9.First char is OK [14:41:27]request: POST /json_proto HTTP/1.0 [14:41:27]Method: POST [14:41:27]URL: /json_proto [14:41:27]Method is POST - this is cgi request [14:41:27]url: /json_proto [14:41:27]query_string will be loaded in cgi processing [14:41:27]execute_cgi json_proto POST (null) [14:41:27]execute_cgi path=json_proto method=POST [14:41:27]POST find Content-Length [14:41:27]Host: 172.17.57.71:8080 [14:41:27]Content-Length: 630 [14:41:27]Content-Type: application/json [14:41:27] [14:41:27]POST finish read [14:41:27]Found Content-Length = 630 [14:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127375", "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" ] } } [14:41:27]execute_script... [14:41: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)127375", "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" ] } } [14:41:27]POST & json_proto [14:41:27]process_json_proto [14:41:27]json parsed OK: [14:41:27]protocol is kg_v1.0 [14:41:27]action value=close_receipt [14:41:27]process_action close_receipt [14:41:27]cmd_close_receipt [14:41:27]MH_GetDate [14:41:27]Write to MH i2c: F0 00 00 2E 24 41 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: F0 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: F0 09 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: F0 09 00 2E 24 00 9A A0 E5 66 33 3A A4 66 46 [14:41:27]GetLastDocTimeStamp 1726324274 [14:41:27]current date 1726324890 [14:41:27]FM_GetShiftState [14:41:27]SAM_PROTO_GetShiftState [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 13 01 00 [14:41:27]Write to MH i2c: E2 08 00 2F 24 80 13 01 00 00 00 00 00 D0 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0E 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0E 00 2F 24 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 6A [14:41:27]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:41:27]wFMCommunicate OK [14:41:27]SAM_PROTO_GetShiftState done [14:41:27]FM_GetShiftState done [14:41:27]opened in 1726273389 [14:41:27]opened+sec_in_day 1726359789 [14:41:27]quantity*price = 5000 [14:41:27]sum+1 = 5001 [14:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 121 14.09.2024 14:41 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92470 ФПД: 190159028698665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T144130&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92470&fm=190159028698665&tin=02508201610067®Number=0000000000091423&sum=5000 0 [14:41:28]StoreToDocumentArchive [14:41:28]shift 506 fd 92470 [14:41:28]save to /storage/0506/doc_00092470 [14:41:28]save last doc name /storage/0506/doc_00092470 to /storage/kkm_last_doc_name [14:41:28]save OK [14:41:28]Clear old archive folders... [14:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:41:28]tlvbuf is 00F92B80 [14:41:28]SAM_PROTO_ClearQueue [14:41:28]wFMCommunicate request_size=4 [14:41:28]MH_SAM_APDU [14:41:28]CAPDU: 80 09 00 00 [14:41:28]Write to MH i2c: E2 08 00 3C 24 80 09 00 00 00 00 00 00 D2 [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:28]Read from MH i2c: E2 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 03 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 03 00 3C 24 00 90 00 D4 [14:41:28]RAPDU: 90 00 [14:41:28]wFMCommunicate OK [14:41:28]SAM_PROTO_ClearQueue done [14:41:28]KKMCreateOFDPacket [14:41:28]OFDProtocolAddRootSTLVToBuf [14:41:28]FM_MakeSignedData [14:41:28]FM_MakeSignedData [14:41:28]SAM_PROTO_SignData [14:41:28]wFMCommunicate request_size=4 [14:41:28]MH_SAM_APDU [14:41:28]CAPDU: 80 0D 01 02 [14:41:28]Write to MH i2c: E2 08 00 3D 24 80 0D 01 02 00 00 00 00 DA [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:28]Read from MH i2c: E2 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 03 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 03 00 3D 24 00 90 00 D5 [14:41:28]RAPDU: 90 00 [14:41:28]wFMCommunicate OK [14:41:28]wFMCommunicate request_size=255 [14:41:28]MH_SAM_APDU [14:41:28]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 79 00 00 00 F4 03 04 00 9A A0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:41:28]Write to MH i2c: E2 02 01 3E 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 79 00 00 00 F4 03 04 00 9A A0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 E4 [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:28]Read from MH i2c: E2 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 03 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 03 00 3E 24 00 90 00 D6 [14:41:28]RAPDU: 90 00 [14:41:28]wFMCommunicate OK [14:41:28]wFMCommunicate request_size=28 [14:41:28]MH_SAM_APDU [14:41:28]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 36 69 01 00 35 04 06 00 AC F2 D9 5B 3E 29 [14:41:28]Write to MH i2c: E2 1F 00 3F 24 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 36 69 01 00 35 04 06 00 AC F2 D9 5B 3E 29 00 00 47 [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:28]Read from MH i2c: E2 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 03 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 03 00 3F 24 00 90 00 D7 [14:41:28]RAPDU: 90 00 [14:41:28]wFMCommunicate OK [14:41:28]wFMCommunicate request_size=4 [14:41:28]MH_SAM_APDU [14:41:28]CAPDU: 80 0D 03 02 [14:41:28]Write to MH i2c: E2 08 00 40 24 80 0D 03 02 00 00 00 00 DF [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:28]Read from MH i2c: E2 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 0B 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 0B 00 40 24 00 E6 E6 F0 43 9B C0 5C A7 90 00 3D [14:41:28]RAPDU: E6 E6 F0 43 9B C0 5C A7 90 00 [14:41:28]wFMCommunicate OK [14:41:28]SAM_PROTO_SignData done [14:41:28]FM_MakeSignedData done [14:41:28]CreateOFDProtocolMessage [14:41:28]wFMCommunicate request_size=4 [14:41:28]MH_SAM_APDU [14:41:28]CAPDU: 80 11 00 00 [14:41:28]Write to MH i2c: E2 08 00 41 24 80 11 00 00 00 00 00 00 DF [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:28]Read from MH i2c: E2 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 17 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: E2 17 00 41 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 36 [14:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:41:28]wFMCommunicate OK [14:41:28]CreateOFDProtocolMessage done [14:41:28]OFDSenderStorePacket 92470 [14:41:28]StoreOFDPacket docnum=92470 [14:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 27 0C 19 01 D7 F2 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 79 00 00 00 F4 03 04 00 9A A0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 36 69 01 00 35 04 06 00 AC F2 D9 5B 3E 29 E6 E6 F0 43 9B C0 5C A7 [14:41:28]CheckFolder [14:41:28]dirname=/storage/ofd_packets [14:41:28]CheckFolder done [14:41:28]ProducePacketName [14:41:28]name=ofd_packets/00092470 [14:41:28]NVStorageSaveData ofd_packets/00092470 [14:41:28]File name is /storage/ofd_packets/00092470 [14:41:28]Write 319 bytes [14:41:28]NVStorageSaveData done [14:41:28]OFDSenderStorePacket done [14:41:28]KKMCreateOFDPacket done [14:41:28]NVStorageSaveData kkm_last_timestamp [14:41:28]File name is /storage/kkm_last_timestamp [14:41:28]Write 4 bytes [14:41:28]NVStorageSaveData done [14:41:28]ExternCall_PrintAddStr [14:41:28]wPrintStart [14:41:28]Write to MH i2c: 01 00 00 42 24 66 [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 07 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 07 00 42 24 00 00 00 00 00 FF 0F 7B [14:41:28]RasterBufferAndPrint [14:41:28]line Счет N : (3)127375 [14:41:28]line ИНН: 02508201610067 [14:41:28]line Контрольно-Кассовый Чек [14:41:28]line ПРОДАЖА [14:41:28]line Товар: 4700000160358 [14:41:28]line Вода Легенда 1л [14:41:28]line 1.000 * 50.00 [14:41:28]line = 50.00 [14:41:28]line НДС 12% НСП 1% [14:41:28]line > о реализуемом товаре [14:41:28]line ИТОГО: 50.00 [14:41:28]line НСП 1% : 0.44 [14:41:28]line НДС 12% : 5.31 [14:41:28]line Наличными: 50.00 [14:41:28]line Безнал.: 0.00 [14:41:28]line Место: АЗС № 5 "Партнер Нефть" [14:41:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:41:28]line СНО: Общий режим [14:41:28]line Чек 121 14.09.2024 14:41 [14:41:28]line Смена: 506 ФФД: 1.0 [14:41:28]line ЗНМ: 03000000022 [14:41:28]line РНМ: 0000000000091423 [14:41:28]line Версия ККМ: 001 [14:41:28]line ФМ: 0000000000874692 [14:41:28]line ФД: 92470 [14:41:28]line ФПД: 190159028698665 [14:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T144130&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92470&fm=190159028698665&tin=02508201610067®Number=0000000000091423&sum=5000 [14:41:29]OFD Sender: Processing packet 92470 [packets to send 63, broken 62] [14:41:29]ProducePacketName [14:41:29]name=ofd_packets/00092470 [14:41:29]OFD Sender: To server: pG, [14:41:29]CommunicateWithHost lk.salyk.kg:30040 [14:41:29]ConnectInit lk.salyk.kg [14:41:29]line 0 [14:41:29]written 0, free lines is 4095 [14:41:29]Connected sock=10 [14:41:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 27 0C 19 01 D7 F2 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 79 00 00 00 F4 03 04 00 9A A0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 36 69 01 00 35 04 06 00 AC F2 D9 5B 3E 29 E6 E6 F0 43 9B C0 5C A7 [14:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 28 FF 47 00 5E CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 36 69 01 00 F4 03 04 00 15 49 E5 66 B6 04 01 00 00 CB A1 BE A8 6D AD 1E 83 [14:41:29]CommunicateWithHost err = 0 [14:41:29]CheckOFDResponse [14:41:29]1017 (14) - 77093643461234 [14:41:29]1041 (16) - 0000000000874692 [14:41:29]1040 (4) - 92470 [14:41:29]1012 (4) - 14.09.2024 08:28 [14:41:29]1206 (1) - 0 [14:41:29]OFD Sender: Remove packet 92470 [14:41:29]ProducePacketName [14:41:29]name=ofd_packets/00092470 [14:41:29]NVStorageDeleteData [14:41:29]Write to MH i2c: 01 00 00 6A 24 8E [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: 01 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: 01 07 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: 01 07 00 6A 24 00 00 00 00 00 21 0D C3 [14:41:29]RasterBufferAndPrint [14:41:29]line [14:41:29]line [14:41:29]line [14:41:29]line [14:41:29]line [14:41:29]written 0, free lines is 3368 [14:41:29]MH_Cut [14:41:29]Write to MH i2c: D1 01 00 71 24 01 67 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: D1 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: D1 01 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: D1 01 00 71 24 00 66 [14:41:29]Write to MH i2c: 01 00 00 72 24 96 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]OFD Sender: No OFD packet to send [14:41:30]*** Cut start [14:41:30]*** Purtial cut [14:41:30]*** Stage 1: CUTSNS_PIN = 1 [14:41:32]Read from MH i2c: 01 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: 01 07 00 [14:41:32]MH_I2C_Read... [14:41:32]*** Stop cut motor [14:41:32]*** Cut end [14:41:32]Read from MH i2c: 01 07 00 72 24 00 00 00 00 00 FF 0F AB [14:41:32]process_action close_receipt done [14:41:32]requested_data is exist [14:41:32]produce_requested_data [14:41:32]requested_item fm.sn is exist - process it [14:41:32]wFMCommunicate request_size=4 [14:41:32]MH_SAM_APDU [14:41:32]CAPDU: 80 11 00 00 [14:41:32]Write to MH i2c: E2 08 00 73 24 80 11 00 00 00 00 00 00 11 [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:32]Read from MH i2c: E2 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: E2 17 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: E2 17 00 73 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 68 [14:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:41:32]wFMCommunicate OK [14:41:32]requested_item fd.num is exist - process it [14:41:32]SAM_PROTO_GetFieldsCounters [14:41:32]wFMCommunicate request_size=4 [14:41:32]MH_SAM_APDU [14:41:32]CAPDU: 80 13 00 00 [14:41:32]Write to MH i2c: E2 08 00 74 24 80 13 00 00 00 00 00 00 14 [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:32]Read from MH i2c: E2 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: E2 62 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: E2 62 00 74 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 36 69 01 00 0E 04 04 00 FA 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 39 [14:41:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 36 69 01 00 0E 04 04 00 FA 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:41:32]wFMCommunicate OK [14:41:32]SAM_PROTO_GetFieldsCounters done [14:41:32]requested_item shift.num is exist - process it [14:41:32]requested_item shift.opened is exist - process it [14:41:32]req_shift_opened [14:41:32]FM_GetShiftState [14:41:32]SAM_PROTO_GetShiftState [14:41:32]wFMCommunicate request_size=4 [14:41:32]MH_SAM_APDU [14:41:32]CAPDU: 80 13 01 00 [14:41:32]Write to MH i2c: E2 08 00 75 24 80 13 01 00 00 00 00 00 16 [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:32]Read from MH i2c: E2 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: E2 0E 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: E2 0E 00 75 24 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B0 [14:41:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:41:32]wFMCommunicate OK [14:41:32]SAM_PROTO_GetShiftState done [14:41:32]FM_GetShiftState done [14:41:32]req_shift_opened done [14:41:32]requested_item shift.open_date is exist - process it [14:41:32]req_shift_open_date [14:41:32]req_shift_open_date done [14:41:32]produce_requested_data done [14:41:32]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92470,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:41:32]process_action_free close_receipt [14:41:32]json_value_free [14:41:32]json_value_free done [14:41:32]process_json_proto returns [14:41:32]Send response to host [14:41:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92470,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:41:32]free response buf [14:41:32]execute_script done [14:41:32]execute_script returns [14:41:32]free content buf [14:41:32]Sock 9.Close socket [14:41:32]Sock 9.Thread stoped [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43: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:46:56]accept exits with 8 [14:46:56]New connection [14:46:56]New thread 3066801508 created [14:46:56]Thread 3066658148 joined [14:46:56]Waiting for new connection... [14:46:56] Sock 8.Parse request [14:46:56]Sock 8.Check first char [14:46:56]Sock 8.First char is OK [14:46:56]request: POST /json_proto HTTP/1.0 [14:46:56]Method: POST [14:46:56]URL: /json_proto [14:46:56]Method is POST - this is cgi request [14:46:56]url: /json_proto [14:46:56]query_string will be loaded in cgi processing [14:46:56]execute_cgi json_proto POST (null) [14:46:56]execute_cgi path=json_proto method=POST [14:46:56]POST find Content-Length [14:46:56]Host: 172.17.57.71:8080 [14:46:56]Content-Length: 648 [14:46:56]Content-Type: application/json [14:46:56] [14:46:56]POST finish read [14:46:56]Found Content-Length = 648 [14:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127376", "tax_sys" : 0, "items" : [ { "code": "75032814", "name": "\u041F\u0438\u0432\u043E Corona Extra \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,355 \u043B", "price" : 235.00, "quantity" : 6.000, "sum" : 1410.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:56]execute_script... [14:46: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)127376", "tax_sys" : 0, "items" : [ { "code": "75032814", "name": "\u041F\u0438\u0432\u043E Corona Extra \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,355 \u043B", "price" : 235.00, "quantity" : 6.000, "sum" : 1410.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:56]POST & json_proto [14:46:56]process_json_proto [14:46:56]json parsed OK: [14:46:56]protocol is kg_v1.0 [14:46:56]action value=close_receipt [14:46:56]process_action close_receipt [14:46:56]cmd_close_receipt [14:46:56]MH_GetDate [14:46:56]Write to MH i2c: F0 00 00 76 24 89 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: F0 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: F0 09 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: F0 09 00 76 24 00 E4 A1 E5 66 33 3A A4 66 D9 [14:46:56]GetLastDocTimeStamp 1726324890 [14:46:56]current date 1726325220 [14:46:56]FM_GetShiftState [14:46:56]SAM_PROTO_GetShiftState [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 13 01 00 [14:46:56]Write to MH i2c: E2 08 00 77 24 80 13 01 00 00 00 00 00 18 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 0E 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 0E 00 77 24 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B2 [14:46:57]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:46:57]wFMCommunicate OK [14:46:57]SAM_PROTO_GetShiftState done [14:46:57]FM_GetShiftState done [14:46:57]opened in 1726273389 [14:46:57]opened+sec_in_day 1726359789 [14:46:57]quantity*price = 141000 [14:46:57]sum+1 = 141001 [14:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1410.00 НСП 1% : 12.48 НДС 12% : 149.73 Наличными: 1410.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 122 14.09.2024 14:47 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92471 ФПД: 63489606473936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T144700&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92471&fm=63489606473936&tin=02508201610067®Number=0000000000091423&sum=141000 0 [14:46:58]StoreToDocumentArchive [14:46:58]shift 506 fd 92471 [14:46:58]save to /storage/0506/doc_00092471 [14:46:58]save last doc name /storage/0506/doc_00092471 to /storage/kkm_last_doc_name [14:46:58]save OK [14:46:58]Clear old archive folders... [14:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:46:58]tlvbuf is 00F922B0 [14:46:58]SAM_PROTO_ClearQueue [14:46:58]wFMCommunicate request_size=4 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 09 00 00 [14:46:58]Write to MH i2c: E2 08 00 84 24 80 09 00 00 00 00 00 00 1A [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 84 24 00 90 00 1C [14:46:58]RAPDU: 90 00 [14:46:58]wFMCommunicate OK [14:46:58]SAM_PROTO_ClearQueue done [14:46:58]KKMCreateOFDPacket [14:46:58]OFDProtocolAddRootSTLVToBuf [14:46:58]FM_MakeSignedData [14:46:58]FM_MakeSignedData [14:46:58]SAM_PROTO_SignData [14:46:58]wFMCommunicate request_size=4 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 0D 01 02 [14:46:58]Write to MH i2c: E2 08 00 85 24 80 0D 01 02 00 00 00 00 22 [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 85 24 00 90 00 1D [14:46:58]RAPDU: 90 00 [14:46:58]wFMCommunicate OK [14:46:58]wFMCommunicate request_size=255 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 08 00 37 35 30 33 32 38 31 34 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 43 6F 72 6F 6E 61 20 45 78 74 72 61 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 33 35 35 20 D0 BB FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 C8 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 3A 00 00 00 00 07 04 06 00 C8 26 02 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 E4 A1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [14:46:58]Write to MH i2c: E2 02 01 86 24 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 08 00 37 35 30 33 32 38 31 34 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 43 6F 72 6F 6E 61 20 45 78 74 72 61 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 33 35 35 20 D0 BB FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 C8 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 3A 00 00 00 00 07 04 06 00 C8 26 02 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 E4 A1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 66 [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 86 24 00 90 00 1E [14:46:58]RAPDU: 90 00 [14:46:58]wFMCommunicate OK [14:46:58]wFMCommunicate request_size=41 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 69 01 00 35 04 06 00 39 BE 53 70 D8 D0 [14:46:58]Write to MH i2c: E2 2C 00 87 24 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 69 01 00 35 04 06 00 39 BE 53 70 D8 D0 00 00 FB [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 03 00 87 24 00 90 00 1F [14:46:58]RAPDU: 90 00 [14:46:58]wFMCommunicate OK [14:46:58]wFMCommunicate request_size=4 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 0D 03 02 [14:46:58]Write to MH i2c: E2 08 00 88 24 80 0D 03 02 00 00 00 00 27 [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 0B 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 0B 00 88 24 00 75 5B 46 85 3A 5B A0 16 90 00 0E [14:46:58]RAPDU: 75 5B 46 85 3A 5B A0 16 90 00 [14:46:58]wFMCommunicate OK [14:46:58]SAM_PROTO_SignData done [14:46:58]FM_MakeSignedData done [14:46:58]CreateOFDProtocolMessage [14:46:58]wFMCommunicate request_size=4 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 11 00 00 [14:46:58]Write to MH i2c: E2 08 00 89 24 80 11 00 00 00 00 00 00 27 [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 17 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 17 00 89 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7E [14:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:46:58]wFMCommunicate OK [14:46:58]CreateOFDProtocolMessage done [14:46:58]OFDSenderStorePacket 92471 [14:46:58]StoreOFDPacket docnum=92471 [14:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 EC E9 26 01 2F 59 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 08 00 37 35 30 33 32 38 31 34 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 43 6F 72 6F 6E 61 20 45 78 74 72 61 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 33 35 35 20 D0 BB FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 C8 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 3A 00 00 00 00 07 04 06 00 C8 26 02 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 E4 A1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 69 01 00 35 04 06 00 39 BE 53 70 D8 D0 75 5B 46 85 3A 5B A0 16 [14:46:58]CheckFolder [14:46:58]dirname=/storage/ofd_packets [14:46:58]CheckFolder done [14:46:58]ProducePacketName [14:46:58]name=ofd_packets/00092471 [14:46:58]NVStorageSaveData ofd_packets/00092471 [14:46:58]File name is /storage/ofd_packets/00092471 [14:46:58]Write 332 bytes [14:46:58]NVStorageSaveData done [14:46:58]OFDSenderStorePacket done [14:46:58]KKMCreateOFDPacket done [14:46:58]NVStorageSaveData kkm_last_timestamp [14:46:58]File name is /storage/kkm_last_timestamp [14:46:58]Write 4 bytes [14:46:58]NVStorageSaveData done [14:46:58]ExternCall_PrintAddStr [14:46:58]wPrintStart [14:46:58]Write to MH i2c: 01 00 00 8A 24 AE [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 07 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: 01 07 00 8A 24 00 00 00 00 00 FF 0F C3 [14:46:58]RasterBufferAndPrint [14:46:58]line Счет N : (3)127376 [14:46:58]line ИНН: 02508201610067 [14:46:58]line Контрольно-Кассовый Чек [14:46:58]line ПРОДАЖА [14:46:58]line Товар: 75032814 [14:46:58]line Пиво Corona Extra светлое 0,355 л [14:46:58]line 6.000 * 235.00 [14:46:58]line = 1410.00 [14:46:58]line НДС 12% НСП 1% [14:46:58]line > о реализуемом товаре [14:46:58]line ИТОГО: 1410.00 [14:46:58]line НСП 1% : 12.48 [14:46:58]line НДС 12% : 149.73 [14:46:58]line Наличными: 1410.00 [14:46:58]line Безнал.: 0.00 [14:46:58]line Место: АЗС № 5 "Партнер Нефть" [14:46:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:46:58]line СНО: Общий режим [14:46:58]line Чек 122 14.09.2024 14:47 [14:46:58]line Смена: 506 ФФД: 1.0 [14:46:58]line ЗНМ: 03000000022 [14:46:58]line РНМ: 0000000000091423 [14:46:58]line Версия ККМ: 001 [14:46:58]line ФМ: 0000000000874692 [14:46:58]line ФД: 92471 [14:46:58]line ФПД: 63489606473936 [14:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T144700&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92471&fm=63489606473936&tin=02508201610067®Number=0000000000091423&sum=141000 [14:46:59]OFD Sender: Processing packet 92471 [packets to send 63, broken 62] [14:46:59]ProducePacketName [14:46:59]name=ofd_packets/00092471 [14:46:59]OFD Sender: To server: pG, [14:46:59]CommunicateWithHost lk.salyk.kg:30040 [14:46:59]ConnectInit lk.salyk.kg [14:46:59]line 0 [14:46:59]written 0, free lines is 4095 [14:46:59]Connected sock=10 [14: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 34 36 39 32 2E 01 00 00 EC E9 26 01 2F 59 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 08 00 37 35 30 33 32 38 31 34 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 43 6F 72 6F 6E 61 20 45 78 74 72 61 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 33 35 35 20 D0 BB FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 CC 5B 00 00 00 00 13 04 06 00 C8 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 3A 00 00 00 00 07 04 06 00 C8 26 02 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 E4 A1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 69 01 00 35 04 06 00 39 BE 53 70 D8 D0 75 5B 46 85 3A 5B A0 16 [14:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AD 3E 47 00 5B 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 37 69 01 00 F4 03 04 00 5F 4A E5 66 B6 04 01 00 00 76 87 27 AA 98 FC 1D E3 [14:46:59]CommunicateWithHost err = 0 [14:46:59]CheckOFDResponse [14:46:59]1017 (14) - 77093643461234 [14:46:59]1041 (16) - 0000000000874692 [14:46:59]1040 (4) - 92471 [14:46:59]1012 (4) - 14.09.2024 08:33 [14:46:59]1206 (1) - 0 [14:46:59]OFD Sender: Remove packet 92471 [14:46:59]ProducePacketName [14:46:59]name=ofd_packets/00092471 [14:46:59]NVStorageDeleteData [14:46:59]Write to MH i2c: 01 00 00 B3 24 D7 [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: 01 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: 01 07 00 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: 01 07 00 B3 24 00 00 00 00 00 11 0D FC [14:46:59]RasterBufferAndPrint [14:46:59]line [14:46:59]line [14:46:59]line [14:46:59]line [14:46:59]line [14:46:59]written 0, free lines is 3350 [14:46:59]MH_Cut [14:46:59]Write to MH i2c: D1 01 00 BA 24 01 B0 [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: D1 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: D1 01 00 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: D1 01 00 BA 24 00 AF [14:46:59]Write to MH i2c: 01 00 00 BB 24 DF [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]OFD Sender: No OFD packet to send [14:47:00]*** Cut start [14:47:00]*** Purtial cut [14:47:00]*** Stage 1: CUTSNS_PIN = 1 [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]*** Stop cut motor [14:47:02]*** Cut end [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 BB 24 00 00 00 00 00 FF 0F F4 [14:47:02]process_action close_receipt done [14:47:02]requested_data is exist [14:47:02]produce_requested_data [14:47:02]requested_item fm.sn is exist - process it [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 11 00 00 [14:47:02]Write to MH i2c: E2 08 00 BC 24 80 11 00 00 00 00 00 00 5A [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 BC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B1 [14:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:47:02]wFMCommunicate OK [14:47:02]requested_item fd.num is exist - process it [14:47:02]SAM_PROTO_GetFieldsCounters [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 13 00 00 [14:47:02]Write to MH i2c: E2 08 00 BD 24 80 13 00 00 00 00 00 00 5D [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 62 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 62 00 BD 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 37 69 01 00 0E 04 04 00 FA 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 86 [14: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 37 69 01 00 0E 04 04 00 FA 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:47:02]wFMCommunicate OK [14:47:02]SAM_PROTO_GetFieldsCounters done [14:47:02]requested_item shift.num is exist - process it [14:47:02]requested_item shift.opened is exist - process it [14:47:02]req_shift_opened [14:47:02]FM_GetShiftState [14:47:02]SAM_PROTO_GetShiftState [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 13 01 00 [14:47:02]Write to MH i2c: E2 08 00 BE 24 80 13 01 00 00 00 00 00 5F [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0E 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0E 00 BE 24 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F9 [14:47:02]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:47:02]wFMCommunicate OK [14:47:02]SAM_PROTO_GetShiftState done [14:47:02]FM_GetShiftState done [14:47:02]req_shift_opened done [14:47:02]requested_item shift.open_date is exist - process it [14:47:02]req_shift_open_date [14:47:02]req_shift_open_date done [14:47:02]produce_requested_data done [14:47:02]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92471,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:47:02]process_action_free close_receipt [14:47:02]json_value_free [14:47:02]json_value_free done [14:47:02]process_json_proto returns [14:47:02]Send response to host [14:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92471,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:47:02]free response buf [14:47:02]execute_script done [14:47:02]execute_script returns [14:47:02]free content buf [14:47:02]Sock 8.Close socket [14:47:02]Sock 8.Thread stoped [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:21]accept exits with 9 [14:52:21]New connection [14:52:21]New thread 3066658148 created [14:52:21]Thread 3066801508 joined [14:52:21]Waiting for new connection... [14:52:21] Sock 9.Parse request [14:52:21]Sock 9.Check first char [14:52:21]Sock 9.First char is OK [14:52:21]request: POST /json_proto HTTP/1.0 [14:52:21]Method: POST [14:52:21]URL: /json_proto [14:52:21]Method is POST - this is cgi request [14:52:21]url: /json_proto [14:52:21]query_string will be loaded in cgi processing [14:52:21]execute_cgi json_proto POST (null) [14:52:21]execute_cgi path=json_proto method=POST [14:52:21]POST find Content-Length [14:52:21]Host: 172.17.57.71:8080 [14:52:21]Content-Length: 1362 [14:52:21]Content-Type: application/json [14:52:21] [14:52:21]POST finish read [14:52:21]Found Content-Length = 1362 [14:52:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127377", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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": "4620021192902", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u0428\u043E\u043A\u043E\u043B\u0430\u0434", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:21]execute_script... [14:52: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)127377", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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": "4620021192902", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u0428\u043E\u043A\u043E\u043B\u0430\u0434", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:21]POST & json_proto [14:52:21]process_json_proto [14:52:21]json parsed OK: [14:52:21]protocol is kg_v1.0 [14:52:21]action value=close_receipt [14:52:21]process_action close_receipt [14:52:21]cmd_close_receipt [14:52:21]MH_GetDate [14:52:21]Write to MH i2c: F0 00 00 BF 24 D2 [14:52:21]Write i2c OK [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: F0 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: F0 09 00 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: F0 09 00 BF 24 00 29 A3 E5 66 33 3A A4 66 69 [14:52:21]GetLastDocTimeStamp 1726325220 [14:52:21]current date 1726325545 [14:52:21]FM_GetShiftState [14:52:21]SAM_PROTO_GetShiftState [14:52:21]wFMCommunicate request_size=4 [14:52:21]MH_SAM_APDU [14:52:21]CAPDU: 80 13 01 00 [14:52:21]Write to MH i2c: E2 08 00 C0 24 80 13 01 00 00 00 00 00 61 [14:52:21]Write i2c OK [14:52:21]MH_I2C_Read... [14:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:21]Read from MH i2c: E2 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: E2 0E 00 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: E2 0E 00 C0 24 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 FB [14:52:21]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:52:21]wFMCommunicate OK [14:52:21]SAM_PROTO_GetShiftState done [14:52:21]FM_GetShiftState done [14:52:21]opened in 1726273389 [14:52:21]opened+sec_in_day 1726359789 [14:52:21]quantity*price = 9000 [14:52:21]sum+1 = 9001 [14:52:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620021192902 48 Копеек стакан Шоколад 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.08 НДС 12% : 24.96 Наличными: 0.00 Безнал.: 235.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 123 14.09.2024 14:52 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92472 ФПД: 277668527421644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T145225&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92472&fm=277668527421644&tin=02508201610067®Number=0000000000091423&sum=23500 0 [14:52:22]StoreToDocumentArchive [14:52:22]shift 506 fd 92472 [14:52:22]save to /storage/0506/doc_00092472 [14:52:22]save last doc name /storage/0506/doc_00092472 to /storage/kkm_last_doc_name [14:52:22]save OK [14:52:22]Clear old archive folders... [14:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=496 [14:52:22]tlvbuf is 00FA1D90 [14:52:22]SAM_PROTO_ClearQueue [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 09 00 00 [14:52:22]Write to MH i2c: E2 08 00 CD 24 80 09 00 00 00 00 00 00 63 [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 03 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 03 00 CD 24 00 90 00 65 [14:52:22]RAPDU: 90 00 [14:52:22]wFMCommunicate OK [14:52:22]SAM_PROTO_ClearQueue done [14:52:22]KKMCreateOFDPacket [14:52:22]OFDProtocolAddRootSTLVToBuf [14:52:22]FM_MakeSignedData [14:52:22]FM_MakeSignedData [14:52:22]SAM_PROTO_SignData [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 0D 01 02 [14:52:22]Write to MH i2c: E2 08 00 CE 24 80 0D 01 02 00 00 00 00 6B [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 03 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 03 00 CE 24 00 90 00 66 [14:52:22]RAPDU: 90 00 [14:52:22]wFMCommunicate OK [14:52:22]wFMCommunicate request_size=255 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 0D 02 02 FA 03 00 F0 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 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 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 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A [14:52:23]Write to MH i2c: E2 02 01 CF 24 80 0D 02 02 FA 00 03 00 F0 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 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 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 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A 00 00 C2 [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:23]Read from MH i2c: E2 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 03 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 03 00 CF 24 00 90 00 67 [14:52:23]RAPDU: 90 00 [14:52:23]wFMCommunicate OK [14:52:23]wFMCommunicate request_size=255 [14:52:23]MH_SAM_APDU [14:52:23]CAPDU: 80 0D 02 02 FA D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 29 A3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 69 01 00 35 04 06 00 FC 89 BD F1 38 CC [14:52:23]Write to MH i2c: E2 02 01 D0 24 80 0D 02 02 FA 00 D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 29 A3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 69 01 00 35 04 06 00 FC 89 BD F1 38 CC 00 00 AE [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:23]Read from MH i2c: E2 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 03 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 03 00 D0 24 00 90 00 68 [14:52:23]RAPDU: 90 00 [14:52:23]wFMCommunicate OK [14:52:23]wFMCommunicate request_size=4 [14:52:23]MH_SAM_APDU [14:52:23]CAPDU: 80 0D 03 02 [14:52:23]Write to MH i2c: E2 08 00 D1 24 80 0D 03 02 00 00 00 00 70 [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:23]Read from MH i2c: E2 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 0B 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 0B 00 D1 24 00 BD 26 FA 0F D2 A8 7C E8 90 00 3B [14:52:23]RAPDU: BD 26 FA 0F D2 A8 7C E8 90 00 [14:52:23]wFMCommunicate OK [14:52:23]SAM_PROTO_SignData done [14:52:23]FM_MakeSignedData done [14:52:23]CreateOFDProtocolMessage [14:52:23]wFMCommunicate request_size=4 [14:52:23]MH_SAM_APDU [14:52:23]CAPDU: 80 11 00 00 [14:52:23]Write to MH i2c: E2 08 00 D2 24 80 11 00 00 00 00 00 00 70 [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:23]Read from MH i2c: E2 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 17 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 17 00 D2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C7 [14:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:52:23]wFMCommunicate OK [14:52:23]CreateOFDProtocolMessage done [14:52:23]OFDSenderStorePacket 92472 [14:52:23]StoreOFDPacket docnum=92472 [14:52:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 04 02 00 00 29 05 FC 01 2D 5C 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 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 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 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 29 A3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 69 01 00 35 04 06 00 FC 89 BD F1 38 CC BD 26 FA 0F D2 A8 7C E8 [14:52:23]CheckFolder [14:52:23]dirname=/storage/ofd_packets [14:52:23]CheckFolder done [14:52:23]ProducePacketName [14:52:23]name=ofd_packets/00092472 [14:52:23]NVStorageSaveData ofd_packets/00092472 [14:52:23]File name is /storage/ofd_packets/00092472 [14:52:23]Write 546 bytes [14:52:23]NVStorageSaveData done [14:52:23]OFDSenderStorePacket done [14:52:23]KKMCreateOFDPacket done [14:52:23]NVStorageSaveData kkm_last_timestamp [14:52:23]File name is /storage/kkm_last_timestamp [14:52:23]Write 4 bytes [14:52:23]NVStorageSaveData done [14:52:23]ExternCall_PrintAddStr [14:52:23]wPrintStart [14:52:23]Write to MH i2c: 01 00 00 D3 24 F7 [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: 01 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: 01 07 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: 01 07 00 D3 24 00 00 00 00 00 FF 0F 0C [14:52:23]RasterBufferAndPrint [14:52:23]line Счет N : (3)127377 [14:52:23]line ИНН: 02508201610067 [14:52:23]line Контрольно-Кассовый Чек [14:52:23]line ПРОДАЖА [14:52:23]line Товар: 5449000325907 [14:52:23]line Напиток Фанта 0,45л ж/б [14:52:23]line 1.000 * 90.00 [14:52:23]line = 90.00 [14:52:23]line НДС 12% НСП 1% [14:52:23]line > о реализуемом товаре [14:52:23]line Товар: 4700000160211 [14:52:23]line Вода Легенда 0,5л [14:52:23]line 1.000 * 40.00 [14:52:23]line = 40.00 [14:52:23]line НДС 12% НСП 1% [14:52:23]line > о реализуемом товаре [14:52:23]line Товар: 4620021192902 [14:52:23]line 48 Копеек стакан Шоколад [14:52:23]line 1.000 * 105.00 [14:52:23]line = 105.00 [14:52:23]line НДС 12% НСП 1% [14:52:23]line > о реализуемом товаре [14:52:23]line ИТОГО: 235.00 [14:52:23]line НСП 1% : 2.08 [14:52:23]line НДС 12% : 24.96 [14:52:23]line Наличными: 0.00 [14:52:23]line Безнал.: 235.00 [14:52:23]line Место: АЗС № 5 "Партнер Нефть" [14:52:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:52:23]line СНО: Общий режим [14:52:23]line Чек 123 14.09.2024 14:52 [14:52:23]line Смена: 506 ФФД: 1.0 [14:52:23]line ЗНМ: 03000000022 [14:52:23]line РНМ: 0000000000091423 [14:52:23]line Версия ККМ: 001 [14:52:23]line Платежная система: О! деньги [14:52:23]line ФМ: 0000000000874692 [14:52:23]line ФД: 92472 [14:52:23]line ФПД: 277668527421644 [14:52:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T145225&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92472&fm=277668527421644&tin=02508201610067®Number=0000000000091423&sum=23500 [14:52:23]line 0 [14:52:23]written 0, free lines is 4095 [14:52:23]OFD Sender: Processing packet 92472 [packets to send 63, broken 62] [14:52:23]ProducePacketName [14:52:23]name=ofd_packets/00092472 [14:52:23]OFD Sender: To server: pG, [14:52:23]CommunicateWithHost lk.salyk.kg:30040 [14:52:23]ConnectInit lk.salyk.kg [14:52:23]Connected sock=10 [14:52:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 04 02 00 00 29 05 FC 01 2D 5C 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 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 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 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 29 A3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 69 01 00 35 04 06 00 FC 89 BD F1 38 CC BD 26 FA 0F D2 A8 7C E8 [14:52:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E6 E3 47 00 0A 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 38 69 01 00 F4 03 04 00 A4 4B E5 66 B6 04 01 00 00 CC C7 87 D3 30 20 C4 E0 [14:52:24]CommunicateWithHost err = 0 [14:52:24]CheckOFDResponse [14:52:24]1017 (14) - 77093643461234 [14:52:24]1041 (16) - 0000000000874692 [14:52:24]1040 (4) - 92472 [14:52:24]1012 (4) - 14.09.2024 08:39 [14:52:24]1206 (1) - 0 [14:52:24]OFD Sender: Remove packet 92472 [14:52:24]ProducePacketName [14:52:24]name=ofd_packets/00092472 [14:52:24]NVStorageDeleteData [14:52:24]Write to MH i2c: 01 00 00 09 25 2E [14:52:24]Write i2c OK [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: 01 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: 01 07 00 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: 01 07 00 09 25 00 00 00 00 00 71 0C B2 [14:52:24]RasterBufferAndPrint [14:52:24]line [14:52:24]line [14:52:24]line [14:52:24]line [14:52:24]line [14:52:24]written 0, free lines is 3192 [14:52:24]MH_Cut [14:52:24]Write to MH i2c: D1 01 00 10 25 01 07 [14:52:24]Write i2c OK [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: D1 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: D1 01 00 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: D1 01 00 10 25 00 06 [14:52:24]Write to MH i2c: 01 00 00 11 25 36 [14:52:24]Write i2c OK [14:52:24]MH_I2C_Read... [14:52:24]OFD Sender: No OFD packet to send [14:52:25]*** Cut start [14:52:25]*** Purtial cut [14:52:25]*** Stage 1: CUTSNS_PIN = 1 [14:52:27]Read from MH i2c: 01 [14:52:27]MH_I2C_Read... [14:52:27]*** Stop cut motor [14:52:27]*** Cut end [14:52:27]Read from MH i2c: 01 07 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: 01 07 00 11 25 00 00 00 00 00 FF 0F 4B [14:52:27]process_action close_receipt done [14:52:27]requested_data is exist [14:52:27]produce_requested_data [14:52:27]requested_item fm.sn is exist - process it [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 11 00 00 [14:52:27]Write to MH i2c: E2 08 00 12 25 80 11 00 00 00 00 00 00 B1 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 17 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 17 00 12 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 08 [14:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:52:27]wFMCommunicate OK [14:52:27]requested_item fd.num is exist - process it [14:52:27]SAM_PROTO_GetFieldsCounters [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 13 00 00 [14:52:27]Write to MH i2c: E2 08 00 13 25 80 13 00 00 00 00 00 00 B4 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 62 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 62 00 13 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 38 69 01 00 0E 04 04 00 FA 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 E1 [14:52:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 38 69 01 00 0E 04 04 00 FA 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:52:27]wFMCommunicate OK [14:52:27]SAM_PROTO_GetFieldsCounters done [14:52:27]requested_item shift.num is exist - process it [14:52:27]requested_item shift.opened is exist - process it [14:52:27]req_shift_opened [14:52:27]FM_GetShiftState [14:52:27]SAM_PROTO_GetShiftState [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 13 01 00 [14:52:27]Write to MH i2c: E2 08 00 14 25 80 13 01 00 00 00 00 00 B6 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 0E 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 0E 00 14 25 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 50 [14:52:27]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:52:27]wFMCommunicate OK [14:52:27]SAM_PROTO_GetShiftState done [14:52:27]FM_GetShiftState done [14:52:27]req_shift_opened done [14:52:27]requested_item shift.open_date is exist - process it [14:52:27]req_shift_open_date [14:52:27]req_shift_open_date done [14:52:27]produce_requested_data done [14:52:27]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92472,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:52:27]process_action_free close_receipt [14:52:27]json_value_free [14:52:27]json_value_free done [14:52:27]process_json_proto returns [14:52:27]Send response to host [14:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92472,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:52:27]free response buf [14:52:27]execute_script done [14:52:27]execute_script returns [14:52:27]free content buf [14:52:27]Sock 9.Close socket [14:52:27]Sock 9.Thread stoped [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:45]accept exits with 8 [14:55:45]New connection [14:55:45]New thread 3066801508 created [14:55:45]Thread 3066658148 joined [14:55:45]Waiting for new connection... [14:55:45] Sock 8.Parse request [14:55:45]Sock 8.Check first char [14:55:45]Sock 8.First char is OK [14:55:45]request: POST /json_proto HTTP/1.0 [14:55:45]Method: POST [14:55:45]URL: /json_proto [14:55:45]Method is POST - this is cgi request [14:55:45]url: /json_proto [14:55:45]query_string will be loaded in cgi processing [14:55:45]execute_cgi json_proto POST (null) [14:55:45]execute_cgi path=json_proto method=POST [14:55:45]POST find Content-Length [14:55:45]Host: 172.17.57.71:8080 [14:55:45]Content-Length: 1098 [14:55:45]Content-Type: application/json [14:55:45] [14:55:45]POST finish read [14:55:45]Found Content-Length = 1098 [14:55:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127378", "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": "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 }]} ], "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" : 117.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:45]execute_script... [14:55: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)127378", "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": "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 }]} ], "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" : 117.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:45]POST & json_proto [14:55:45]process_json_proto [14:55:45]json parsed OK: [14:55:45]protocol is kg_v1.0 [14:55:45]action value=close_receipt [14:55:45]process_action close_receipt [14:55:45]cmd_close_receipt [14:55:45]MH_GetDate [14:55:45]Write to MH i2c: F0 00 00 15 25 29 [14:55:45]Write i2c OK [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: F0 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: F0 09 00 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: F0 09 00 15 25 00 F4 A3 E5 66 33 3A A4 66 8B [14:55:45]GetLastDocTimeStamp 1726325545 [14:55:45]current date 1726325748 [14:55:45]FM_GetShiftState [14:55:45]SAM_PROTO_GetShiftState [14:55:45]wFMCommunicate request_size=4 [14:55:45]MH_SAM_APDU [14:55:45]CAPDU: 80 13 01 00 [14:55:45]Write to MH i2c: E2 08 00 16 25 80 13 01 00 00 00 00 00 B8 [14:55:45]Write i2c OK [14:55:45]MH_I2C_Read... [14:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:45]Read from MH i2c: E2 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: E2 0E 00 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: E2 0E 00 16 25 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 52 [14:55:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:55:45]wFMCommunicate OK [14:55:45]SAM_PROTO_GetShiftState done [14:55:45]FM_GetShiftState done [14:55:45]opened in 1726273389 [14:55:45]opened+sec_in_day 1726359789 [14:55:45]quantity*price = 4200 [14:55:45]sum+1 = 4201 [14:55:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154059 Напиток Lipton IceTea 0,5л зел чай 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 117.00 НСП 1% : 1.03 НДС 12% : 12.42 Наличными: 0.00 Безнал.: 117.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 124 14.09.2024 14:55 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92473 ФПД: 279373684531706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T145549&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92473&fm=279373684531706&tin=02508201610067®Number=0000000000091423&sum=11700 0 [14:55:46]StoreToDocumentArchive [14:55:46]shift 506 fd 92473 [14:55:46]save to /storage/0506/doc_00092473 [14:55:46]save last doc name /storage/0506/doc_00092473 to /storage/kkm_last_doc_name [14:55:46]save OK [14:55:46]Clear old archive folders... [14:55:46]ProcessDocumentItem done err = 0, tmpTLVsize=395 [14:55:46]tlvbuf is 00FCAD90 [14:55:46]SAM_PROTO_ClearQueue [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 09 00 00 [14:55:46]Write to MH i2c: E2 08 00 23 25 80 09 00 00 00 00 00 00 BA [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 23 25 00 90 00 BC [14:55:46]RAPDU: 90 00 [14:55:46]wFMCommunicate OK [14:55:46]SAM_PROTO_ClearQueue done [14:55:46]KKMCreateOFDPacket [14:55:46]OFDProtocolAddRootSTLVToBuf [14:55:46]FM_MakeSignedData [14:55:46]FM_MakeSignedData [14:55:46]SAM_PROTO_SignData [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 0D 01 02 [14:55:46]Write to MH i2c: E2 08 00 24 25 80 0D 01 02 00 00 00 00 C2 [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 24 25 00 90 00 BD [14:55:46]RAPDU: 90 00 [14:55:46]wFMCommunicate OK [14:55:46]wFMCommunicate request_size=255 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 0D 02 02 FA 03 00 8B 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 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 FC 03 06 00 B4 2D 00 00 00 00 EB 03 26 00 EF 03 [14:55:46]Write to MH i2c: E2 02 01 25 25 80 0D 02 02 FA 00 03 00 8B 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 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 FC 03 06 00 B4 2D 00 00 00 00 EB 03 26 00 EF 03 00 00 BB [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 25 25 00 90 00 BE [14:55:46]RAPDU: 90 00 [14:55:46]wFMCommunicate OK [14:55:46]wFMCommunicate request_size=154 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 2D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F5 A3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 69 01 00 35 04 06 00 FE 16 C1 39 E1 FA [14:55:46]Write to MH i2c: E2 9D 00 26 25 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 2D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F5 A3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 69 01 00 35 04 06 00 FE 16 C1 39 E1 FA 00 00 30 [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:47]Read from MH i2c: E2 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 03 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 03 00 26 25 00 90 00 BF [14:55:47]RAPDU: 90 00 [14:55:47]wFMCommunicate OK [14:55:47]wFMCommunicate request_size=4 [14:55:47]MH_SAM_APDU [14:55:47]CAPDU: 80 0D 03 02 [14:55:47]Write to MH i2c: E2 08 00 27 25 80 0D 03 02 00 00 00 00 C7 [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:47]Read from MH i2c: E2 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 0B 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 0B 00 27 25 00 71 A7 BF EF 1D 4E 05 ED 90 00 EB [14:55:47]RAPDU: 71 A7 BF EF 1D 4E 05 ED 90 00 [14:55:47]wFMCommunicate OK [14:55:47]SAM_PROTO_SignData done [14:55:47]FM_MakeSignedData done [14:55:47]CreateOFDProtocolMessage [14:55:47]wFMCommunicate request_size=4 [14:55:47]MH_SAM_APDU [14:55:47]CAPDU: 80 11 00 00 [14:55:47]Write to MH i2c: E2 08 00 28 25 80 11 00 00 00 00 00 00 C7 [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:47]Read from MH i2c: E2 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 17 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 17 00 28 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1E [14:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:55:47]wFMCommunicate OK [14:55:47]CreateOFDProtocolMessage done [14:55:47]OFDSenderStorePacket 92473 [14:55:47]StoreOFDPacket docnum=92473 [14:55:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9F 01 00 00 D5 51 97 01 E9 6C 5A 03 01 00 03 00 8B 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 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 FC 03 06 00 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 2D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F5 A3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 69 01 00 35 04 06 00 FE 16 C1 39 E1 FA 71 A7 BF EF 1D 4E 05 ED [14:55:47]CheckFolder [14:55:47]dirname=/storage/ofd_packets [14:55:47]CheckFolder done [14:55:47]ProducePacketName [14:55:47]name=ofd_packets/00092473 [14:55:47]NVStorageSaveData ofd_packets/00092473 [14:55:47]File name is /storage/ofd_packets/00092473 [14:55:47]Write 445 bytes [14:55:47]NVStorageSaveData done [14:55:47]OFDSenderStorePacket done [14:55:47]KKMCreateOFDPacket done [14:55:47]NVStorageSaveData kkm_last_timestamp [14:55:47]File name is /storage/kkm_last_timestamp [14:55:47]Write 4 bytes [14:55:47]NVStorageSaveData done [14:55:47]ExternCall_PrintAddStr [14:55:47]wPrintStart [14:55:47]Write to MH i2c: 01 00 00 29 25 4E [14:55:47]OFD Sender: Processing packet 92473 [packets to send 63, broken 62] [14:55:47]ProducePacketName [14:55:47]name=ofd_packets/00092473 [14:55:47]OFD Sender: To server: pG, [14:55:47]CommunicateWithHost lk.salyk.kg:30040 [14:55:47]ConnectInit lk.salyk.kg [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: 01 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: 01 07 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: 01 07 00 29 25 00 00 00 00 00 FF 0F 63 [14:55:47]RasterBufferAndPrint [14:55:47]line Счет N : (3)127378 [14:55:47]line ИНН: 02508201610067 [14:55:47]line Контрольно-Кассовый Чек [14:55:47]line ПРОДАЖА [14:55:47]line Товар: 5449000005489 [14:55:47]line Вода Бонаква 1л б/г [14:55:47]line 1.000 * 42.00 [14:55:47]line = 42.00 [14:55:47]line НДС 12% НСП 1% [14:55:47]line > о реализуемом товаре [14:55:47]line Товар: 4870001154059 [14:55:47]line Напиток Lipton IceTea 0,5л зел чай [14:55:47]line 1.000 * 75.00 [14:55:47]line = 75.00 [14:55:47]line НДС 12% НСП 1% [14:55:47]line > о реализуемом товаре [14:55:47]line ИТОГО: 117.00 [14:55:47]line НСП 1% : 1.03 [14:55:47]line НДС 12% : 12.42 [14:55:47]line Наличными: 0.00 [14:55:47]line Безнал.: 117.00 [14:55:47]line Место: АЗС № 5 "Партнер Нефть" [14:55:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [14:55:47]line СНО: Общий режим [14:55:47]line Чек 124 14.09.2024 14:55 [14:55:47]line Смена: 506 ФФД: 1.0 [14:55:47]line ЗНМ: 03000000022 [14:55:47]line РНМ: 0000000000091423 [14:55:47]line Версия ККМ: 001 [14:55:47]line Платежная система: Бакай Банк [14:55:47]line ФМ: 0000000000874692 [14:55:47]line ФД: 92473 [14:55:47]line ФПД: 279373684531706 [14:55:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T145549&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92473&fm=279373684531706&tin=02508201610067®Number=0000000000091423&sum=11700 [14:55:47]line 0 [14:55:47]written 0, free lines is 4095 [14:55:47]Connected sock=10 [14:55:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9F 01 00 00 D5 51 97 01 E9 6C 5A 03 01 00 03 00 8B 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 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 FC 03 06 00 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 2D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F5 A3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 69 01 00 35 04 06 00 FE 16 C1 39 E1 FA 71 A7 BF EF 1D 4E 05 ED [14:55:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 49 D3 47 00 B6 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 39 69 01 00 F4 03 04 00 70 4C E5 66 B6 04 01 00 00 52 95 D7 BA D0 1A 3F 49 [14:55:47]CommunicateWithHost err = 0 [14:55:47]CheckOFDResponse [14:55:47]1017 (14) - 77093643461234 [14:55:47]1041 (16) - 0000000000874692 [14:55:47]1040 (4) - 92473 [14:55:47]1012 (4) - 14.09.2024 08:42 [14:55:47]1206 (1) - 0 [14:55:47]OFD Sender: Remove packet 92473 [14:55:47]ProducePacketName [14:55:47]name=ofd_packets/00092473 [14:55:47]NVStorageDeleteData [14:55:48]Write to MH i2c: 01 00 00 5A 25 7F [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 07 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 07 00 5A 25 00 00 00 00 00 B0 0C 42 [14:55:48]RasterBufferAndPrint [14:55:48]line [14:55:48]line [14:55:48]line [14:55:48]line [14:55:48]line [14:55:48]written 0, free lines is 3257 [14:55:48]MH_Cut [14:55:48]Write to MH i2c: D1 01 00 61 25 01 58 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: D1 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: D1 01 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: D1 01 00 61 25 00 57 [14:55:48]Write to MH i2c: 01 00 00 62 25 87 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]OFD Sender: No OFD packet to send [14:55:48]*** Cut start [14:55:48]*** Purtial cut [14:55:48]*** Stage 1: CUTSNS_PIN = 1 [14:55:50]Read from MH i2c: 01 [14:55:50]MH_I2C_Read... [14:55:50]*** Stop cut motor [14:55:50]*** Cut end [14:55:50]Read from MH i2c: 01 07 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: 01 07 00 62 25 00 00 00 00 00 FF 0F 9C [14:55:50]process_action close_receipt done [14:55:50]requested_data is exist [14:55:50]produce_requested_data [14:55:50]requested_item fm.sn is exist - process it [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 11 00 00 [14:55:50]Write to MH i2c: E2 08 00 63 25 80 11 00 00 00 00 00 00 02 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 17 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 17 00 63 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 59 [14:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [14:55:50]wFMCommunicate OK [14:55:50]requested_item fd.num is exist - process it [14:55:50]SAM_PROTO_GetFieldsCounters [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 13 00 00 [14:55:50]Write to MH i2c: E2 08 00 64 25 80 13 00 00 00 00 00 00 05 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 62 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 62 00 64 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 39 69 01 00 0E 04 04 00 FA 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 36 [14:55:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 39 69 01 00 0E 04 04 00 FA 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:55:50]wFMCommunicate OK [14:55:50]SAM_PROTO_GetFieldsCounters done [14:55:50]requested_item shift.num is exist - process it [14:55:50]requested_item shift.opened is exist - process it [14:55:50]req_shift_opened [14:55:50]FM_GetShiftState [14:55:50]SAM_PROTO_GetShiftState [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 13 01 00 [14:55:50]Write to MH i2c: E2 08 00 65 25 80 13 01 00 00 00 00 00 07 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0E 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0E 00 65 25 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A1 [14:55:51]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [14:55:51]wFMCommunicate OK [14:55:51]SAM_PROTO_GetShiftState done [14:55:51]FM_GetShiftState done [14:55:51]req_shift_opened done [14:55:51]requested_item shift.open_date is exist - process it [14:55:51]req_shift_open_date [14:55:51]req_shift_open_date done [14:55:51]produce_requested_data done [14:55:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92473,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [14:55:51]process_action_free close_receipt [14:55:51]json_value_free [14:55:51]json_value_free done [14:55:51]process_json_proto returns [14:55:51]Send response to host [14:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92473,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [14:55:51]free response buf [14:55:51]execute_script done [14:55:51]execute_script returns [14:55:51]free content buf [14:55:51]Sock 8.Close socket [14:55:51]Sock 8.Thread stoped [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:57]accept exits with 9 [15:04:57]New connection [15:04:57]New thread 3066658148 created [15:04:57]Thread 3066801508 joined [15:04:57]Waiting for new connection... [15:04:57] Sock 9.Parse request [15:04:57]Sock 9.Check first char [15:04:57]Sock 9.First char is OK [15:04:57]request: POST /json_proto HTTP/1.0 [15:04:57]Method: POST [15:04:57]URL: /json_proto [15:04:57]Method is POST - this is cgi request [15:04:57]url: /json_proto [15:04:57]query_string will be loaded in cgi processing [15:04:57]execute_cgi json_proto POST (null) [15:04:57]execute_cgi path=json_proto method=POST [15:04:57]POST find Content-Length [15:04:57]Host: 172.17.57.71:8080 [15:04:57]Content-Length: 1745 [15:04:57]Content-Type: application/json [15:04:57] [15:04:57]POST finish read [15:04:57]Found Content-Length = 1745 [15:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127379", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 2.000, "sum" : 122.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 542.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:57]execute_script... [15:04: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)127379", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 2.000, "sum" : 122.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 542.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:57]POST & json_proto [15:04:57]process_json_proto [15:04:57]json parsed OK: [15:04:57]protocol is kg_v1.0 [15:04:57]action value=close_receipt [15:04:57]process_action close_receipt [15:04:57]cmd_close_receipt [15:04:57]MH_GetDate [15:04:57]Write to MH i2c: F0 00 00 66 25 7A [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: F0 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: F0 09 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: F0 09 00 66 25 00 1D A6 E5 66 33 3A A4 66 08 [15:04:57]GetLastDocTimeStamp 1726325749 [15:04:57]current date 1726326301 [15:04:57]FM_GetShiftState [15:04:57]SAM_PROTO_GetShiftState [15:04:57]wFMCommunicate request_size=4 [15:04:57]MH_SAM_APDU [15:04:57]CAPDU: 80 13 01 00 [15:04:57]Write to MH i2c: E2 08 00 67 25 80 13 01 00 00 00 00 00 09 [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 0E 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 0E 00 67 25 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A3 [15:04:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:04:58]wFMCommunicate OK [15:04:58]SAM_PROTO_GetShiftState done [15:04:58]FM_GetShiftState done [15:04:58]opened in 1726273389 [15:04:58]opened+sec_in_day 1726359789 [15:04:58]quantity*price = 12200 [15:04:58]sum+1 = 12201 [15:04:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681383 ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 58411125749 Те самые макарон 1.000 * 195.00 = 195.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 542.00 НСП 1% : 4.80 НДС 12% : 57.56 Наличными: 0.00 Безнал.: 542.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 125 14.09.2024 15:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92474 ФПД: 227458107070506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T150501&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92474&fm=227458107070506&tin=02508201610067®Number=0000000000091423&sum=54200 0 [15:04:59]StoreToDocumentArchive [15:04:59]shift 506 fd 92474 [15:04:59]save to /storage/0506/doc_00092474 [15:04:59]save last doc name /storage/0506/doc_00092474 to /storage/kkm_last_doc_name [15:04:59]save OK [15:04:59]Clear old archive folders... [15:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=653 [15:04:59]tlvbuf is 01040E70 [15:04:59]SAM_PROTO_ClearQueue [15:04:59]wFMCommunicate request_size=4 [15:04:59]MH_SAM_APDU [15:04:59]CAPDU: 80 09 00 00 [15:04:59]Write to MH i2c: E2 08 00 74 25 80 09 00 00 00 00 00 00 0B [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:59]Read from MH i2c: E2 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 74 25 00 90 00 0D [15:04:59]RAPDU: 90 00 [15:04:59]wFMCommunicate OK [15:04:59]SAM_PROTO_ClearQueue done [15:04:59]KKMCreateOFDPacket [15:04:59]OFDProtocolAddRootSTLVToBuf [15:04:59]FM_MakeSignedData [15:04:59]FM_MakeSignedData [15:04:59]SAM_PROTO_SignData [15:04:59]wFMCommunicate request_size=4 [15:04:59]MH_SAM_APDU [15:04:59]CAPDU: 80 0D 01 02 [15:04:59]Write to MH i2c: E2 08 00 75 25 80 0D 01 02 00 00 00 00 13 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:59]Read from MH i2c: E2 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 75 25 00 90 00 0E [15:04:59]RAPDU: 90 00 [15:04:59]wFMCommunicate OK [15:04:59]wFMCommunicate request_size=255 [15:04:59]MH_SAM_APDU [15:04:59]CAPDU: 80 0D 02 02 FA 03 00 8D 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 A8 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 [15:04:59]Write to MH i2c: E2 02 01 76 25 80 0D 02 02 FA 00 03 00 8D 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 A8 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 00 00 FA [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:59]Read from MH i2c: E2 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 76 25 00 90 00 0F [15:04:59]RAPDU: 90 00 [15:04:59]wFMCommunicate OK [15:04:59]wFMCommunicate request_size=255 [15:04:59]MH_SAM_APDU [15:04:59]CAPDU: 80 0D 02 02 FA 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 B8 D3 00 00 [15:04:59]Write to MH i2c: E2 02 01 77 25 80 0D 02 02 FA 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 B8 D3 00 00 00 00 F8 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:59]Read from MH i2c: E2 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 77 25 00 90 00 10 [15:04:59]RAPDU: 90 00 [15:04:59]wFMCommunicate OK [15:04:59]wFMCommunicate request_size=162 [15:04:59]MH_SAM_APDU [15:04:59]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 E0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 1D A6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 69 01 00 35 04 06 00 CE DF 37 AC 58 2A [15:04:59]Write to MH i2c: E2 A5 00 78 25 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 E0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 1D A6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 69 01 00 35 04 06 00 CE DF 37 AC 58 2A 00 00 C6 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:59]Read from MH i2c: E2 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 03 00 78 25 00 90 00 11 [15:04:59]RAPDU: 90 00 [15:04:59]wFMCommunicate OK [15:04:59]wFMCommunicate request_size=4 [15:04:59]MH_SAM_APDU [15:04:59]CAPDU: 80 0D 03 02 [15:04:59]Write to MH i2c: E2 08 00 79 25 80 0D 03 02 00 00 00 00 19 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 0B 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 0B 00 79 25 00 45 D9 DC 61 44 31 7F 8B 90 00 F4 [15:05:00]RAPDU: 45 D9 DC 61 44 31 7F 8B 90 00 [15:05:00]wFMCommunicate OK [15:05:00]SAM_PROTO_SignData done [15:05:00]FM_MakeSignedData done [15:05:00]CreateOFDProtocolMessage [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 11 00 00 [15:05:00]Write to MH i2c: E2 08 00 7A 25 80 11 00 00 00 00 00 00 19 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 17 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 17 00 7A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 70 [15:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:05:00]wFMCommunicate OK [15:05:00]CreateOFDProtocolMessage done [15:05:00]OFDSenderStorePacket 92474 [15:05:00]StoreOFDPacket docnum=92474 [15:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 02 00 00 66 C8 99 02 05 12 5A 03 01 00 03 00 8D 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 A8 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 B8 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 1D A6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 69 01 00 35 04 06 00 CE DF 37 AC 58 2A 45 D9 DC 61 44 31 7F 8B [15:05:00]CheckFolder [15:05:00]dirname=/storage/ofd_packets [15:05:00]CheckFolder done [15:05:00]ProducePacketName [15:05:00]name=ofd_packets/00092474 [15:05:00]NVStorageSaveData ofd_packets/00092474 [15:05:00]File name is /storage/ofd_packets/00092474 [15:05:00]Write 703 bytes [15:05:00]NVStorageSaveData done [15:05:00]OFDSenderStorePacket done [15:05:00]KKMCreateOFDPacket done [15:05:00]NVStorageSaveData kkm_last_timestamp [15:05:00]File name is /storage/kkm_last_timestamp [15:05:00]Write 4 bytes [15:05:00]NVStorageSaveData done [15:05:00]ExternCall_PrintAddStr [15:05:00]wPrintStart [15:05:00]Write to MH i2c: 01 00 00 7B 25 A0 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: 01 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: 01 07 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: 01 07 00 7B 25 00 00 00 00 00 FF 0F B5 [15:05:00]RasterBufferAndPrint [15:05:00]line Счет N : (3)127379 [15:05:00]line ИНН: 02508201610067 [15:05:00]line Контрольно-Кассовый Чек [15:05:00]line ПРОДАЖА [15:05:00]line Товар: 4870001154035 [15:05:00]line Напиток Lipton IceTea 0,5л перс [15:05:00]line 2.000 * 61.00 [15:05:00]line = 122.00 [15:05:00]line НДС 12% НСП 1% [15:05:00]line > о реализуемом товаре [15:05:00]line Товар: 4870235681383 [15:05:00]line ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г [15:05:00]line 1.000 * 95.00 [15:05:00]line = 95.00 [15:05:00]line НДС 12% НСП 1% [15:05:00]line > о реализуемом товаре [15:05:00]line Товар: 58411125749 [15:05:00]line Те самые макарон [15:05:00]line 1.000 * 195.00 [15:05:00]line = 195.00 [15:05:00]line НДС 12% НСП 1% [15:05:00]line > о реализуемом товаре [15:05:00]line Товар: 2000032780015 [15:05:00]line Слойка DC треугольная курица 110г [15:05:00]line 2.000 * 65.00 [15:05:00]line = 130.00 [15:05:00]line НДС 12% НСП 1% [15:05:00]line > о реализуемом товаре [15:05:00]line ИТОГО: 542.00 [15:05:00]line НСП 1% : 4.80 [15:05:00]line НДС 12% : 57.56 [15:05:00]line Наличными: 0.00 [15:05:00]line Безнал.: 542.00 [15:05:00]line Место: АЗС № 5 "Партнер Нефть" [15:05:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:05:00]line СНО: Общий режим [15:05:00]line Чек 125 14.09.2024 15:05 [15:05:00]line Смена: 506 ФФД: 1.0 [15:05:00]line ЗНМ: 03000000022 [15:05:00]line РНМ: 0000000000091423 [15:05:00]line Версия ККМ: 001 [15:05:00]line Платежная система: О! деньги [15:05:00]line ФМ: 0000000000874692 [15:05:00]line ФД: 92474 [15:05:00]line ФПД: 227458107070506 [15:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T150501&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92474&fm=227458107070506&tin=02508201610067®Number=0000000000091423&sum=54200 [15:05:00]OFD Sender: Processing packet 92474 [packets to send 63, broken 62] [15:05:00]ProducePacketName [15:05:00]name=ofd_packets/00092474 [15:05:00]OFD Sender: To server: pG, [15:05:00]CommunicateWithHost lk.salyk.kg:30040 [15:05:00]ConnectInit lk.salyk.kg [15:05:00]line 0 [15:05:00]written 0, free lines is 4095 [15:05:00]Connected sock=10 [15:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 02 00 00 66 C8 99 02 05 12 5A 03 01 00 03 00 8D 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 A8 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 B8 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 1D A6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 69 01 00 35 04 06 00 CE DF 37 AC 58 2A 45 D9 DC 61 44 31 7F 8B [15:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CD E5 47 00 F1 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3A 69 01 00 F4 03 04 00 99 4E E5 66 B6 04 01 00 00 16 F4 57 04 45 AE 75 54 [15:05:00]CommunicateWithHost err = 0 [15:05:00]CheckOFDResponse [15:05:00]1017 (14) - 77093643461234 [15:05:00]1041 (16) - 0000000000874692 [15:05:00]1040 (4) - 92474 [15:05:00]1012 (4) - 14.09.2024 08:51 [15:05:00]1206 (1) - 0 [15:05:00]OFD Sender: Remove packet 92474 [15:05:00]ProducePacketName [15:05:00]name=ofd_packets/00092474 [15:05:00]NVStorageDeleteData [15:05:01]Write to MH i2c: 01 00 00 BA 25 DF [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 BA 25 00 00 00 00 00 F6 0B E7 [15:05:01]RasterBufferAndPrint [15:05:01]line [15:05:01]line [15:05:01]line [15:05:01]line [15:05:01]line [15:05:01]written 0, free lines is 3070 [15:05:01]MH_Cut [15:05:01]Write to MH i2c: D1 01 00 C1 25 01 B8 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: D1 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: D1 01 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: D1 01 00 C1 25 00 B7 [15:05:01]Write to MH i2c: 01 00 00 C2 25 E7 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]OFD Sender: No OFD packet to send [15:05:01]*** Cut start [15:05:01]*** Purtial cut [15:05:01]*** Stage 1: CUTSNS_PIN = 1 [15:05:03]Read from MH i2c: 01 [15:05:03]MH_I2C_Read... [15:05:03]*** Stop cut motor [15:05:03]*** Cut end [15:05:03]Read from MH i2c: 01 07 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: 01 07 00 C2 25 00 00 00 00 00 FF 0F FC [15:05:03]process_action close_receipt done [15:05:03]requested_data is exist [15:05:03]produce_requested_data [15:05:03]requested_item fm.sn is exist - process it [15:05:03]wFMCommunicate request_size=4 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 11 00 00 [15:05:03]Write to MH i2c: E2 08 00 C3 25 80 11 00 00 00 00 00 00 62 [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 [15:05:04]MH_I2C_Read... [15:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:04]Read from MH i2c: E2 17 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 17 00 C3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B9 [15:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:05:04]wFMCommunicate OK [15:05:04]requested_item fd.num is exist - process it [15:05:04]SAM_PROTO_GetFieldsCounters [15:05:04]wFMCommunicate request_size=4 [15:05:04]MH_SAM_APDU [15:05:04]CAPDU: 80 13 00 00 [15:05:04]Write to MH i2c: E2 08 00 C4 25 80 13 00 00 00 00 00 00 65 [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:04]Read from MH i2c: E2 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 62 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 62 00 C4 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3A 69 01 00 0E 04 04 00 FA 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 9A [15:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3A 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:04]wFMCommunicate OK [15:05:04]SAM_PROTO_GetFieldsCounters done [15:05:04]requested_item shift.num is exist - process it [15:05:04]requested_item shift.opened is exist - process it [15:05:04]req_shift_opened [15:05:04]FM_GetShiftState [15:05:04]SAM_PROTO_GetShiftState [15:05:04]wFMCommunicate request_size=4 [15:05:04]MH_SAM_APDU [15:05:04]CAPDU: 80 13 01 00 [15:05:04]Write to MH i2c: E2 08 00 C5 25 80 13 01 00 00 00 00 00 67 [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 [15:05:04]MH_I2C_Read... [15:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:04]Read from MH i2c: E2 0E 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 0E 00 C5 25 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 01 [15:05:04]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:05:04]wFMCommunicate OK [15:05:04]SAM_PROTO_GetShiftState done [15:05:04]FM_GetShiftState done [15:05:04]req_shift_opened done [15:05:04]requested_item shift.open_date is exist - process it [15:05:04]req_shift_open_date [15:05:04]req_shift_open_date done [15:05:04]produce_requested_data done [15:05:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92474,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:05:04]process_action_free close_receipt [15:05:04]json_value_free [15:05:04]json_value_free done [15:05:04]process_json_proto returns [15:05:04]Send response to host [15:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92474,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:05:04]free response buf [15:05:04]execute_script done [15:05:04]execute_script returns [15:05:04]free content buf [15:05:04]Sock 9.Close socket [15:05:04]Sock 9.Thread stoped [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]accept exits with 8 [15:05:21]New connection [15:05:21]New thread 3066801508 created [15:05:21]Thread 3066658148 joined [15:05:21]Waiting for new connection... [15:05:21] Sock 8.Parse request [15:05:21]Sock 8.Check first char [15:05:21]Sock 8.First char is OK [15:05:21]request: POST /json_proto HTTP/1.0 [15:05:21]Method: POST [15:05:21]URL: /json_proto [15:05:21]Method is POST - this is cgi request [15:05:21]url: /json_proto [15:05:21]query_string will be loaded in cgi processing [15:05:21]execute_cgi json_proto POST (null) [15:05:21]execute_cgi path=json_proto method=POST [15:05:21]POST find Content-Length [15:05:21]Host: 172.17.57.71:8080 [15:05:21]Content-Length: 915 [15:05:21]Content-Type: application/json [15:05:21] [15:05:21]POST finish read [15:05:21]Found Content-Length = 915 [15:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127380", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:21]execute_script... [15:05: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)127380", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:21]POST & json_proto [15:05:21]process_json_proto [15:05:21]json parsed OK: [15:05:21]protocol is kg_v1.0 [15:05:21]action value=close_receipt [15:05:21]process_action close_receipt [15:05:21]cmd_close_receipt [15:05:21]MH_GetDate [15:05:21]Write to MH i2c: F0 00 00 C6 25 DA [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 09 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 09 00 C6 25 00 34 A6 E5 66 33 3A A4 66 7F [15:05:21]GetLastDocTimeStamp 1726326301 [15:05:21]current date 1726326324 [15:05:21]FM_GetShiftState [15:05:21]SAM_PROTO_GetShiftState [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 13 01 00 [15:05:21]Write to MH i2c: E2 08 00 C7 25 80 13 01 00 00 00 00 00 69 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 C7 25 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 03 [15:05:21]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_GetShiftState done [15:05:21]FM_GetShiftState done [15:05:21]opened in 1726273389 [15:05:21]opened+sec_in_day 1726359789 [15:05:21]quantity*price = 7500 [15:05:21]sum+1 = 7501 [15:05:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.08 НДС 12% : 24.95 Наличными: 235.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 126 14.09.2024 15:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92475 ФПД: 265427621316754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T150524&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92475&fm=265427621316754&tin=02508201610067®Number=0000000000091423&sum=23500 0 [15:05:22]StoreToDocumentArchive [15:05:22]shift 506 fd 92475 [15:05:22]save to /storage/0506/doc_00092475 [15:05:22]save last doc name /storage/0506/doc_00092475 to /storage/kkm_last_doc_name [15:05:22]save OK [15:05:22]Clear old archive folders... [15:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=391 [15:05:22]tlvbuf is 00F83520 [15:05:22]SAM_PROTO_ClearQueue [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 09 00 00 [15:05:22]Write to MH i2c: E2 08 00 D4 25 80 09 00 00 00 00 00 00 6B [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 D4 25 00 90 00 6D [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]SAM_PROTO_ClearQueue done [15:05:22]KKMCreateOFDPacket [15:05:22]OFDProtocolAddRootSTLVToBuf [15:05:22]FM_MakeSignedData [15:05:22]FM_MakeSignedData [15:05:22]SAM_PROTO_SignData [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 01 02 [15:05:22]Write to MH i2c: E2 08 00 D5 25 80 0D 01 02 00 00 00 00 73 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 D5 25 00 90 00 6E [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=255 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [15:05:22]Write to MH i2c: E2 02 01 D6 25 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 69 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 D6 25 00 90 00 6F [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=150 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 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 7E 00 00 00 F4 03 04 00 34 A6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 69 01 00 35 04 06 00 F1 67 AF 15 08 92 [15:05:22]Write to MH i2c: E2 99 00 D7 25 80 0D 02 02 91 00 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 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 7E 00 00 00 F4 03 04 00 34 A6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 69 01 00 35 04 06 00 F1 67 AF 15 08 92 00 00 7D [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 D7 25 00 90 00 70 [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 03 02 [15:05:22]Write to MH i2c: E2 08 00 D8 25 80 0D 03 02 00 00 00 00 78 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 0B 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 0B 00 D8 25 00 56 73 8D 33 2D 9B 8D BE 90 00 15 [15:05:22]RAPDU: 56 73 8D 33 2D 9B 8D BE 90 00 [15:05:22]wFMCommunicate OK [15:05:22]SAM_PROTO_SignData done [15:05:22]FM_MakeSignedData done [15:05:22]CreateOFDProtocolMessage [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 11 00 00 [15:05:22]Write to MH i2c: E2 08 00 D9 25 80 11 00 00 00 00 00 00 78 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 17 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 17 00 D9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CF [15:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:05:22]wFMCommunicate OK [15:05:22]CreateOFDProtocolMessage done [15:05:22]OFDSenderStorePacket 92475 [15:05:22]StoreOFDPacket docnum=92475 [15:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9B 01 00 00 EF 1B 93 01 51 25 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 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 7E 00 00 00 F4 03 04 00 34 A6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 69 01 00 35 04 06 00 F1 67 AF 15 08 92 56 73 8D 33 2D 9B 8D BE [15:05:22]CheckFolder [15:05:22]dirname=/storage/ofd_packets [15:05:22]CheckFolder done [15:05:22]ProducePacketName [15:05:22]name=ofd_packets/00092475 [15:05:22]NVStorageSaveData ofd_packets/00092475 [15:05:22]File name is /storage/ofd_packets/00092475 [15:05:22]Write 441 bytes [15:05:22]NVStorageSaveData done [15:05:22]OFDSenderStorePacket done [15:05:22]KKMCreateOFDPacket done [15:05:22]NVStorageSaveData kkm_last_timestamp [15:05:22]File name is /storage/kkm_last_timestamp [15:05:22]Write 4 bytes [15:05:22]NVStorageSaveData done [15:05:22]ExternCall_PrintAddStr [15:05:22]wPrintStart [15:05:22]Write to MH i2c: 01 00 00 DA 25 FF [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 07 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 07 00 DA 25 00 00 00 00 00 FF 0F 14 [15:05:22]RasterBufferAndPrint [15:05:22]line Счет N : (3)127380 [15:05:22]line ИНН: 02508201610067 [15:05:22]line Контрольно-Кассовый Чек [15:05:22]line ПРОДАЖА [15:05:23]line Товар: 4870112002775 [15:05:23]line Шок батончик ALBENI BITES 80гр [15:05:23]line 1.000 * 75.00 [15:05:23]line = 75.00 [15:05:23]line НДС 12% НСП 1% [15:05:23]line > о реализуемом товаре [15:05:23]line Товар: 4860019001346 [15:05:23]line Вода Боржоми 0,5л ст [15:05:23]line 1.000 * 160.00 [15:05:23]line = 160.00 [15:05:23]line НДС 12% НСП 1% [15:05:23]line > о реализуемом товаре [15:05:23]line ИТОГО: 235.00 [15:05:23]line НСП 1% : 2.08 [15:05:23]line НДС 12% : 24.95 [15:05:23]line Наличными: 235.00 [15:05:23]line Безнал.: 0.00 [15:05:23]line Место: АЗС № 5 "Партнер Нефть" [15:05:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:05:23]line СНО: Общий режим [15:05:23]line Чек 126 14.09.2024 15:05 [15:05:23]line Смена: 506 ФФД: 1.0 [15:05:23]line ЗНМ: 03000000022 [15:05:23]line РНМ: 0000000000091423 [15:05:23]line Версия ККМ: 001 [15:05:23]line ФМ: 0000000000874692 [15:05:23]line ФД: 92475 [15:05:23]line ФПД: 265427621316754 [15:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T150524&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92475&fm=265427621316754&tin=02508201610067®Number=0000000000091423&sum=23500 [15:05:23]line 0 [15:05:23]OFD Sender: Processing packet 92475 [packets to send 63, broken 62] [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00092475 [15:05:23]OFD Sender: To server: pG, [15:05:23]CommunicateWithHost lk.salyk.kg:30040 [15:05:23]ConnectInit lk.salyk.kg [15:05:23]written 0, free lines is 4095 [15:05:23]Connected sock=10 [15:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9B 01 00 00 EF 1B 93 01 51 25 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 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 7E 00 00 00 F4 03 04 00 34 A6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 69 01 00 35 04 06 00 F1 67 AF 15 08 92 56 73 8D 33 2D 9B 8D BE [15:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6E 32 47 00 9F 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3B 69 01 00 F4 03 04 00 AF 4E E5 66 B6 04 01 00 00 F8 97 E6 DE 73 3A 25 64 [15:05:23]CommunicateWithHost err = 0 [15:05:23]CheckOFDResponse [15:05:23]1017 (14) - 77093643461234 [15:05:23]1041 (16) - 0000000000874692 [15:05:23]1040 (4) - 92475 [15:05:23]1012 (4) - 14.09.2024 08:51 [15:05:23]1206 (1) - 0 [15:05:23]OFD Sender: Remove packet 92475 [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00092475 [15:05:23]NVStorageDeleteData [15:05:23]Write to MH i2c: 01 00 00 09 26 2F [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 09 26 00 00 00 00 00 D8 0C 1A [15:05:23]RasterBufferAndPrint [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]written 0, free lines is 3296 [15:05:23]MH_Cut [15:05:23]Write to MH i2c: D1 01 00 10 26 01 08 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 01 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 01 00 10 26 00 07 [15:05:23]Write to MH i2c: 01 00 00 11 26 37 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:24]OFD Sender: No OFD packet to send [15:05:24]*** Cut start [15:05:24]*** Purtial cut [15:05:24]*** Stage 1: CUTSNS_PIN = 1 [15:05:26]Read from MH i2c: 01 [15:05:26]MH_I2C_Read... [15:05:26]*** Stop cut motor [15:05:26]*** Cut end [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 11 26 00 00 00 00 00 FF 0F 4C [15:05:26]process_action close_receipt done [15:05:26]requested_data is exist [15:05:26]produce_requested_data [15:05:26]requested_item fm.sn is exist - process it [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 12 26 80 11 00 00 00 00 00 00 B2 [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 12 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 09 [15:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:05:26]wFMCommunicate OK [15:05:26]requested_item fd.num is exist - process it [15:05:26]SAM_PROTO_GetFieldsCounters [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 13 00 00 [15:05:26]Write to MH i2c: E2 08 00 13 26 80 13 00 00 00 00 00 00 B5 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 62 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 62 00 13 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3B 69 01 00 0E 04 04 00 FA 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 EE [15:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3B 69 01 00 0E 04 04 00 FA 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:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_GetFieldsCounters done [15:05:26]requested_item shift.num is exist - process it [15:05:26]requested_item shift.opened is exist - process it [15:05:26]req_shift_opened [15:05:26]FM_GetShiftState [15:05:26]SAM_PROTO_GetShiftState [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 13 01 00 [15:05:26]Write to MH i2c: E2 08 00 14 26 80 13 01 00 00 00 00 00 B7 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:26]Read from MH i2c: E2 0E 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0E 00 14 26 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 51 [15:05:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_GetShiftState done [15:05:26]FM_GetShiftState done [15:05:26]req_shift_opened done [15:05:26]requested_item shift.open_date is exist - process it [15:05:26]req_shift_open_date [15:05:26]req_shift_open_date done [15:05:26]produce_requested_data done [15:05:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92475,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:05:26]process_action_free close_receipt [15:05:26]json_value_free [15:05:26]json_value_free done [15:05:26]process_json_proto returns [15:05:26]Send response to host [15:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92475,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:05:26]free response buf [15:05:26]execute_script done [15:05:26]execute_script returns [15:05:26]free content buf [15:05:26]Sock 8.Close socket [15:05:26]Sock 8.Thread stoped [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:33]accept exits with 9 [15:14:33]New connection [15:14:33]New thread 3066658148 created [15:14:33]Thread 3066801508 joined [15:14:33]Waiting for new connection... [15:14:33] Sock 9.Parse request [15:14:33]Sock 9.Check first char [15:14:33]Sock 9.First char is OK [15:14:33]request: POST /json_proto HTTP/1.0 [15:14:33]Method: POST [15:14:33]URL: /json_proto [15:14:33]Method is POST - this is cgi request [15:14:33]url: /json_proto [15:14:33]query_string will be loaded in cgi processing [15:14:33]execute_cgi json_proto POST (null) [15:14:33]execute_cgi path=json_proto method=POST [15:14:33]POST find Content-Length [15:14:33]Host: 172.17.57.71:8080 [15:14:33]Content-Length: 829 [15:14:33]Content-Type: application/json [15:14:33] [15:14:33]POST finish read [15:14:33]Found Content-Length = 829 [15:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127381", "tax_sys" : 0, "items" : [ { "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 }]} ], "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" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:33]execute_script... [15:14:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127381", "tax_sys" : 0, "items" : [ { "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 }]} ], "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" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:33]POST & json_proto [15:14:33]process_json_proto [15:14:33]json parsed OK: [15:14:33]protocol is kg_v1.0 [15:14:33]action value=close_receipt [15:14:33]process_action close_receipt [15:14:33]cmd_close_receipt [15:14:33]MH_GetDate [15:14:33]Write to MH i2c: F0 00 00 15 26 2A [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: F0 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: F0 09 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: F0 09 00 15 26 00 5C A8 E5 66 33 3A A4 66 F9 [15:14:33]GetLastDocTimeStamp 1726326324 [15:14:33]current date 1726326876 [15:14:33]FM_GetShiftState [15:14:33]SAM_PROTO_GetShiftState [15:14:33]wFMCommunicate request_size=4 [15:14:33]MH_SAM_APDU [15:14:33]CAPDU: 80 13 01 00 [15:14:33]Write to MH i2c: E2 08 00 16 26 80 13 01 00 00 00 00 00 B9 [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 0E 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 0E 00 16 26 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 53 [15:14:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:14:33]wFMCommunicate OK [15:14:33]SAM_PROTO_GetShiftState done [15:14:33]FM_GetShiftState done [15:14:33]opened in 1726273389 [15:14:33]opened+sec_in_day 1726359789 [15:14:33]quantity*price = 7500 [15:14:33]sum+1 = 7501 [15:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 127 14.09.2024 15:14 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92476 ФПД: 28550063616172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T151436&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92476&fm=28550063616172&tin=02508201610067®Number=0000000000091423&sum=7500 0 [15:14:34]StoreToDocumentArchive [15:14:34]shift 506 fd 92476 [15:14:34]save to /storage/0506/doc_00092476 [15:14:34]save last doc name /storage/0506/doc_00092476 to /storage/kkm_last_doc_name [15:14:34]save OK [15:14:34]Clear old archive folders... [15:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:14:34]tlvbuf is 010226D0 [15:14:34]SAM_PROTO_ClearQueue [15:14:34]wFMCommunicate request_size=4 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 09 00 00 [15:14:34]Write to MH i2c: E2 08 00 23 26 80 09 00 00 00 00 00 00 BB [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 23 26 00 90 00 BD [15:14:34]RAPDU: 90 00 [15:14:34]wFMCommunicate OK [15:14:34]SAM_PROTO_ClearQueue done [15:14:34]KKMCreateOFDPacket [15:14:34]OFDProtocolAddRootSTLVToBuf [15:14:34]FM_MakeSignedData [15:14:34]FM_MakeSignedData [15:14:34]SAM_PROTO_SignData [15:14:34]wFMCommunicate request_size=4 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 0D 01 02 [15:14:34]Write to MH i2c: E2 08 00 24 26 80 0D 01 02 00 00 00 00 C3 [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 24 26 00 90 00 BE [15:14:34]RAPDU: 90 00 [15:14:34]wFMCommunicate OK [15:14:34]wFMCommunicate request_size=255 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 5C A8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [15:14:34]Write to MH i2c: E2 02 01 25 26 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 5C A8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 75 [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:34]Read from MH i2c: E2 03 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 25 26 00 90 00 BF [15:14:34]RAPDU: 90 00 [15:14:34]wFMCommunicate OK [15:14:34]wFMCommunicate request_size=34 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 69 01 00 35 04 06 00 19 F7 54 66 70 AC [15:14:34]Write to MH i2c: E2 25 00 26 26 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 69 01 00 35 04 06 00 19 F7 54 66 70 AC 00 00 17 [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 26 26 00 90 00 C0 [15:14:34]RAPDU: 90 00 [15:14:34]wFMCommunicate OK [15:14:34]wFMCommunicate request_size=4 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 0D 03 02 [15:14:34]Write to MH i2c: E2 08 00 27 26 80 0D 03 02 00 00 00 00 C8 [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]OFD Sender: No OFD packet to send [15:14:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 0B 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 0B 00 27 26 00 24 CF 30 E4 EE BA D5 1C 90 00 69 [15:14:34]RAPDU: 24 CF 30 E4 EE BA D5 1C 90 00 [15:14:34]wFMCommunicate OK [15:14:34]SAM_PROTO_SignData done [15:14:34]FM_MakeSignedData done [15:14:34]CreateOFDProtocolMessage [15:14:34]wFMCommunicate request_size=4 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 11 00 00 [15:14:34]Write to MH i2c: E2 08 00 28 26 80 11 00 00 00 00 00 00 C8 [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 17 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 17 00 28 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1F [15:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:14:34]wFMCommunicate OK [15:14:34]CreateOFDProtocolMessage done [15:14:34]OFDSenderStorePacket 92476 [15:14:34]StoreOFDPacket docnum=92476 [15:14:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 D7 9A 1F 01 A4 C9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 5C A8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 69 01 00 35 04 06 00 19 F7 54 66 70 AC 24 CF 30 E4 EE BA D5 1C [15:14:34]CheckFolder [15:14:34]dirname=/storage/ofd_packets [15:14:34]CheckFolder done [15:14:34]ProducePacketName [15:14:34]name=ofd_packets/00092476 [15:14:34]NVStorageSaveData ofd_packets/00092476 [15:14:34]File name is /storage/ofd_packets/00092476 [15:14:34]Write 325 bytes [15:14:34]NVStorageSaveData done [15:14:34]OFDSenderStorePacket done [15:14:34]KKMCreateOFDPacket done [15:14:34]NVStorageSaveData kkm_last_timestamp [15:14:34]File name is /storage/kkm_last_timestamp [15:14:34]Write 4 bytes [15:14:34]NVStorageSaveData done [15:14:34]ExternCall_PrintAddStr [15:14:34]wPrintStart [15:14:34]Write to MH i2c: 01 00 00 29 26 4F [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: 01 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: 01 07 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: 01 07 00 29 26 00 00 00 00 00 FF 0F 64 [15:14:34]RasterBufferAndPrint [15:14:34]line Счет N : (3)127381 [15:14:34]line ИНН: 02508201610067 [15:14:34]line Контрольно-Кассовый Чек [15:14:34]line ПРОДАЖА [15:14:34]line Товар: 54491472 [15:14:34]line Напиток Кока-Кола 0,5л [15:14:34]line 1.000 * 75.00 [15:14:34]line = 75.00 [15:14:34]line НДС 12% НСП 1% [15:14:34]line > о реализуемом товаре [15:14:34]line ИТОГО: 75.00 [15:14:34]line НСП 1% : 0.66 [15:14:34]line НДС 12% : 7.96 [15:14:34]line Наличными: 0.00 [15:14:34]line Безнал.: 75.00 [15:14:34]line Место: АЗС № 5 "Партнер Нефть" [15:14:34]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:14:34]line СНО: Общий режим [15:14:34]line Чек 127 14.09.2024 15:14 [15:14:34]line Смена: 506 ФФД: 1.0 [15:14:34]line ЗНМ: 03000000022 [15:14:34]line РНМ: 0000000000091423 [15:14:34]line Версия ККМ: 001 [15:14:34]line Платежная система: Бакай Банк [15:14:34]line ФМ: 0000000000874692 [15:14:34]line ФД: 92476 [15:14:34]line ФПД: 28550063616172 [15:14:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T151436&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92476&fm=28550063616172&tin=02508201610067®Number=0000000000091423&sum=7500 [15:14:34]line 0 [15:14:34]written 0, free lines is 4095 [15:14:34]OFD Sender: Processing packet 92476 [packets to send 63, broken 62] [15:14:34]ProducePacketName [15:14:34]name=ofd_packets/00092476 [15:14:34]OFD Sender: To server: pG, [15:14:34]CommunicateWithHost lk.salyk.kg:30040 [15:14:34]ConnectInit lk.salyk.kg [15:14:34]Connected sock=10 [15:14:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 D7 9A 1F 01 A4 C9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 5C A8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 69 01 00 35 04 06 00 19 F7 54 66 70 AC 24 CF 30 E4 EE BA D5 1C [15:14:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A9 2E 47 00 95 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3C 69 01 00 F4 03 04 00 D7 50 E5 66 B6 04 01 00 00 8C C9 B7 D7 66 A1 AC 7D [15:14:35]CommunicateWithHost err = 0 [15:14:35]CheckOFDResponse [15:14:35]1017 (14) - 77093643461234 [15:14:35]1041 (16) - 0000000000874692 [15:14:35]1040 (4) - 92476 [15:14:35]1012 (4) - 14.09.2024 09:01 [15:14:35]1206 (1) - 0 [15:14:35]OFD Sender: Remove packet 92476 [15:14:35]ProducePacketName [15:14:35]name=ofd_packets/00092476 [15:14:35]NVStorageDeleteData [15:14:35]Write to MH i2c: 01 00 00 53 26 79 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: 01 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: 01 07 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: 01 07 00 53 26 00 00 00 00 00 FC 0C 88 [15:14:35]RasterBufferAndPrint [15:14:35]line [15:14:35]line [15:14:35]line [15:14:35]line [15:14:35]line [15:14:35]written 0, free lines is 3332 [15:14:35]MH_Cut [15:14:35]Write to MH i2c: D1 01 00 5A 26 01 52 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: D1 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: D1 01 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: D1 01 00 5A 26 00 51 [15:14:35]Write to MH i2c: 01 00 00 5B 26 81 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]OFD Sender: No OFD packet to send [15:14:35]*** Cut start [15:14:35]*** Purtial cut [15:14:35]*** Stage 1: CUTSNS_PIN = 1 [15:14:37]Read from MH i2c: 01 [15:14:37]MH_I2C_Read... [15:14:37]*** Stop cut motor [15:14:37]*** Cut end [15:14:37]Read from MH i2c: 01 07 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: 01 07 00 5B 26 00 00 00 00 00 FF 0F 96 [15:14:37]process_action close_receipt done [15:14:37]requested_data is exist [15:14:37]produce_requested_data [15:14:37]requested_item fm.sn is exist - process it [15:14:37]wFMCommunicate request_size=4 [15:14:37]MH_SAM_APDU [15:14:37]CAPDU: 80 11 00 00 [15:14:37]Write to MH i2c: E2 08 00 5C 26 80 11 00 00 00 00 00 00 FC [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:37]Read from MH i2c: E2 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: E2 17 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: E2 17 00 5C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 53 [15:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:14:37]wFMCommunicate OK [15:14:37]requested_item fd.num is exist - process it [15:14:37]SAM_PROTO_GetFieldsCounters [15:14:37]wFMCommunicate request_size=4 [15:14:37]MH_SAM_APDU [15:14:37]CAPDU: 80 13 00 00 [15:14:37]Write to MH i2c: E2 08 00 5D 26 80 13 00 00 00 00 00 00 FF [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:38]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 62 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 62 00 5D 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3C 69 01 00 0E 04 04 00 FA 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 3C [15:14:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3C 69 01 00 0E 04 04 00 FA 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:14:38]wFMCommunicate OK [15:14:38]SAM_PROTO_GetFieldsCounters done [15:14:38]requested_item shift.num is exist - process it [15:14:38]requested_item shift.opened is exist - process it [15:14:38]req_shift_opened [15:14:38]FM_GetShiftState [15:14:38]SAM_PROTO_GetShiftState [15:14:38]wFMCommunicate request_size=4 [15:14:38]MH_SAM_APDU [15:14:38]CAPDU: 80 13 01 00 [15:14:38]Write to MH i2c: E2 08 00 5E 26 80 13 01 00 00 00 00 00 01 [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:38]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 0E 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 0E 00 5E 26 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9B [15:14:38]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:14:38]wFMCommunicate OK [15:14:38]SAM_PROTO_GetShiftState done [15:14:38]FM_GetShiftState done [15:14:38]req_shift_opened done [15:14:38]requested_item shift.open_date is exist - process it [15:14:38]req_shift_open_date [15:14:38]req_shift_open_date done [15:14:38]produce_requested_data done [15:14:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92476,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:14:38]process_action_free close_receipt [15:14:38]json_value_free [15:14:38]json_value_free done [15:14:38]process_json_proto returns [15:14:38]Send response to host [15:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92476,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:14:38]free response buf [15:14:38]execute_script done [15:14:38]execute_script returns [15:14:38]free content buf [15:14:38]Sock 9.Close socket [15:14:38]Sock 9.Thread stoped [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:47]accept exits with 8 [15:20:47]New connection [15:20:47]New thread 3066801508 created [15:20:47]Thread 3066658148 joined [15:20:47]Waiting for new connection... [15:20:47] Sock 8.Parse request [15:20:47]Sock 8.Check first char [15:20:47]Sock 8.First char is OK [15:20:47]request: POST /json_proto HTTP/1.0 [15:20:47]Method: POST [15:20:47]URL: /json_proto [15:20:47]Method is POST - this is cgi request [15:20:47]url: /json_proto [15:20:47]query_string will be loaded in cgi processing [15:20:47]execute_cgi json_proto POST (null) [15:20:47]execute_cgi path=json_proto method=POST [15:20:47]POST find Content-Length [15:20:47]Host: 172.17.57.71:8080 [15:20:47]Content-Length: 798 [15:20:47]Content-Type: application/json [15:20:47] [15:20:47]POST finish read [15:20:47]Found Content-Length = 798 [15:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127382", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:47]execute_script... [15:20: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)127382", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:47]POST & json_proto [15:20:47]process_json_proto [15:20:47]json parsed OK: [15:20:47]protocol is kg_v1.0 [15:20:47]action value=close_receipt [15:20:47]process_action close_receipt [15:20:47]cmd_close_receipt [15:20:47]MH_GetDate [15:20:47]Write to MH i2c: F0 00 00 5F 26 74 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: F0 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: F0 09 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: F0 09 00 5F 26 00 D2 A9 E5 66 33 3A A4 66 BA [15:20:47]GetLastDocTimeStamp 1726326876 [15:20:47]current date 1726327250 [15:20:47]FM_GetShiftState [15:20:47]SAM_PROTO_GetShiftState [15:20:47]wFMCommunicate request_size=4 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 13 01 00 [15:20:47]Write to MH i2c: E2 08 00 60 26 80 13 01 00 00 00 00 00 03 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 0E 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 0E 00 60 26 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 9D [15:20:47]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:20:47]wFMCommunicate OK [15:20:47]SAM_PROTO_GetShiftState done [15:20:47]FM_GetShiftState done [15:20:47]opened in 1726273389 [15:20:47]opened+sec_in_day 1726359789 [15:20:47]quantity*price = 10000 [15:20:47]sum+1 = 10001 [15:20:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 0.00 Безнал.: 100.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 128 14.09.2024 15:20 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92477 ФПД: 149264143999351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T152050&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92477&fm=149264143999351&tin=02508201610067®Number=0000000000091423&sum=10000 0 [15:20:48]StoreToDocumentArchive [15:20:48]shift 506 fd 92477 [15:20:48]save to /storage/0506/doc_00092477 [15:20:48]save last doc name /storage/0506/doc_00092477 to /storage/kkm_last_doc_name [15:20:48]save OK [15:20:48]Clear old archive folders... [15:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:20:48]tlvbuf is 00FA1E00 [15:20:48]SAM_PROTO_ClearQueue [15:20:48]wFMCommunicate request_size=4 [15:20:48]MH_SAM_APDU [15:20:48]CAPDU: 80 09 00 00 [15:20:48]Write to MH i2c: E2 08 00 6D 26 80 09 00 00 00 00 00 00 05 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:48]Read from MH i2c: E2 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 03 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 03 00 6D 26 00 90 00 07 [15:20:48]RAPDU: 90 00 [15:20:48]wFMCommunicate OK [15:20:48]SAM_PROTO_ClearQueue done [15:20:48]KKMCreateOFDPacket [15:20:48]OFDProtocolAddRootSTLVToBuf [15:20:48]FM_MakeSignedData [15:20:48]FM_MakeSignedData [15:20:48]SAM_PROTO_SignData [15:20:48]wFMCommunicate request_size=4 [15:20:48]MH_SAM_APDU [15:20:48]CAPDU: 80 0D 01 02 [15:20:48]Write to MH i2c: E2 08 00 6E 26 80 0D 01 02 00 00 00 00 0D [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:48]Read from MH i2c: E2 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 03 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 03 00 6E 26 00 90 00 08 [15:20:48]RAPDU: 90 00 [15:20:48]wFMCommunicate OK [15:20:48]wFMCommunicate request_size=255 [15:20:48]MH_SAM_APDU [15:20:48]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D2 A9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:20:48]Write to MH i2c: E2 02 01 6F 26 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D2 A9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 60 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:48]Read from MH i2c: E2 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 03 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 03 00 6F 26 00 90 00 09 [15:20:48]RAPDU: 90 00 [15:20:48]wFMCommunicate OK [15:20:48]wFMCommunicate request_size=28 [15:20:48]MH_SAM_APDU [15:20:48]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 3D 69 01 00 35 04 06 00 87 C1 44 47 E1 77 [15:20:48]Write to MH i2c: E2 1F 00 70 26 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 3D 69 01 00 35 04 06 00 87 C1 44 47 E1 77 00 00 73 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:48]Read from MH i2c: E2 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 03 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 03 00 70 26 00 90 00 0A [15:20:48]RAPDU: 90 00 [15:20:48]wFMCommunicate OK [15:20:48]wFMCommunicate request_size=4 [15:20:48]MH_SAM_APDU [15:20:48]CAPDU: 80 0D 03 02 [15:20:48]Write to MH i2c: E2 08 00 71 26 80 0D 03 02 00 00 00 00 12 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:48]Read from MH i2c: E2 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 0B 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 0B 00 71 26 00 77 E6 D4 4F 1A 23 DA A1 90 00 4B [15:20:48]RAPDU: 77 E6 D4 4F 1A 23 DA A1 90 00 [15:20:48]wFMCommunicate OK [15:20:48]SAM_PROTO_SignData done [15:20:48]FM_MakeSignedData done [15:20:48]CreateOFDProtocolMessage [15:20:48]wFMCommunicate request_size=4 [15:20:48]MH_SAM_APDU [15:20:48]CAPDU: 80 11 00 00 [15:20:48]Write to MH i2c: E2 08 00 72 26 80 11 00 00 00 00 00 00 12 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:48]Read from MH i2c: E2 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 17 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 17 00 72 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 69 [15:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:20:48]wFMCommunicate OK [15:20:48]CreateOFDProtocolMessage done [15:20:48]OFDSenderStorePacket 92477 [15:20:48]StoreOFDPacket docnum=92477 [15:20:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 FA 87 19 01 8B 25 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D2 A9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3D 69 01 00 35 04 06 00 87 C1 44 47 E1 77 77 E6 D4 4F 1A 23 DA A1 [15:20:48]CheckFolder [15:20:48]dirname=/storage/ofd_packets [15:20:48]CheckFolder done [15:20:48]ProducePacketName [15:20:48]name=ofd_packets/00092477 [15:20:48]NVStorageSaveData ofd_packets/00092477 [15:20:48]File name is /storage/ofd_packets/00092477 [15:20:48]Write 319 bytes [15:20:48]NVStorageSaveData done [15:20:48]OFDSenderStorePacket done [15:20:48]KKMCreateOFDPacket done [15:20:48]NVStorageSaveData kkm_last_timestamp [15:20:48]File name is /storage/kkm_last_timestamp [15:20:48]Write 4 bytes [15:20:48]NVStorageSaveData done [15:20:48]ExternCall_PrintAddStr [15:20:48]wPrintStart [15:20:48]Write to MH i2c: 01 00 00 73 26 99 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: 01 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: 01 07 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: 01 07 00 73 26 00 00 00 00 00 FF 0F AE [15:20:48]RasterBufferAndPrint [15:20:48]line Счет N : (3)127382 [15:20:48]line ИНН: 02508201610067 [15:20:48]line Контрольно-Кассовый Чек [15:20:48]line ПРОДАЖА [15:20:48]line Товар: 4700000160358 [15:20:48]line Вода Легенда 1л [15:20:48]line 2.000 * 50.00 [15:20:48]line = 100.00 [15:20:48]line НДС 12% НСП 1% [15:20:48]line > о реализуемом товаре [15:20:48]line ИТОГО: 100.00 [15:20:48]line НСП 1% : 0.88 [15:20:48]line НДС 12% : 10.62 [15:20:48]line Наличными: 0.00 [15:20:48]line Безнал.: 100.00 [15:20:48]line Место: АЗС № 5 "Партнер Нефть" [15:20:48]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:20:48]line СНО: Общий режим [15:20:48]line Чек 128 14.09.2024 15:20 [15:20:48]line Смена: 506 ФФД: 1.0 [15:20:48]line ЗНМ: 03000000022 [15:20:48]line РНМ: 0000000000091423 [15:20:48]line Версия ККМ: 001 [15:20:48]line Платежная система: О! деньги [15:20:48]line ФМ: 0000000000874692 [15:20:48]line ФД: 92477 [15:20:49]line ФПД: 149264143999351 [15:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T152050&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92477&fm=149264143999351&tin=02508201610067®Number=0000000000091423&sum=10000 [15:20:49]line 0 [15:20:49]OFD Sender: Processing packet 92477 [packets to send 63, broken 62] [15:20:49]ProducePacketName [15:20:49]name=ofd_packets/00092477 [15:20:49]OFD Sender: To server: pG, [15:20:49]CommunicateWithHost lk.salyk.kg:30040 [15:20:49]ConnectInit lk.salyk.kg [15:20:49]written 0, free lines is 4095 [15:20:49]Connected sock=10 [15:20:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 FA 87 19 01 8B 25 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D2 A9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3D 69 01 00 35 04 06 00 87 C1 44 47 E1 77 77 E6 D4 4F 1A 23 DA A1 [15:20:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1B 18 47 00 E7 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3D 69 01 00 F4 03 04 00 4D 52 E5 66 B6 04 01 00 00 B1 F4 A9 19 79 D3 AE 65 [15:20:49]CommunicateWithHost err = 0 [15:20:49]CheckOFDResponse [15:20:49]1017 (14) - 77093643461234 [15:20:49]1041 (16) - 0000000000874692 [15:20:49]1040 (4) - 92477 [15:20:49]1012 (4) - 14.09.2024 09:07 [15:20:49]1206 (1) - 0 [15:20:49]OFD Sender: Remove packet 92477 [15:20:49]ProducePacketName [15:20:49]name=ofd_packets/00092477 [15:20:49]NVStorageDeleteData [15:20:49]Write to MH i2c: 01 00 00 9D 26 C3 [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: 01 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: 01 07 00 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: 01 07 00 9D 26 00 00 00 00 00 04 0D DB [15:20:49]RasterBufferAndPrint [15:20:49]line [15:20:49]line [15:20:49]line [15:20:49]line [15:20:49]line [15:20:49]written 0, free lines is 3336 [15:20:49]MH_Cut [15:20:49]Write to MH i2c: D1 01 00 A4 26 01 9C [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: D1 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: D1 01 00 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: D1 01 00 A4 26 00 9B [15:20:49]Write to MH i2c: 01 00 00 A5 26 CB [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]OFD Sender: No OFD packet to send [15:20:50]*** Cut start [15:20:50]*** Purtial cut [15:20:50]*** Stage 1: CUTSNS_PIN = 1 [15:20:52]Read from MH i2c: 01 [15:20:52]MH_I2C_Read... [15:20:52]*** Stop cut motor [15:20:52]*** Cut end [15:20:52]Read from MH i2c: 01 07 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: 01 07 00 A5 26 00 00 00 00 00 FF 0F E0 [15:20:52]process_action close_receipt done [15:20:52]requested_data is exist [15:20:52]produce_requested_data [15:20:52]requested_item fm.sn is exist - process it [15:20:52]wFMCommunicate request_size=4 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 11 00 00 [15:20:52]Write to MH i2c: E2 08 00 A6 26 80 11 00 00 00 00 00 00 46 [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:52]Read from MH i2c: E2 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 17 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 17 00 A6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9D [15:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:20:52]wFMCommunicate OK [15:20:52]requested_item fd.num is exist - process it [15:20:52]SAM_PROTO_GetFieldsCounters [15:20:52]wFMCommunicate request_size=4 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 13 00 00 [15:20:52]Write to MH i2c: E2 08 00 A7 26 80 13 00 00 00 00 00 00 49 [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:52]Read from MH i2c: E2 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 62 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 62 00 A7 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3D 69 01 00 0E 04 04 00 FA 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 8A [15:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3D 69 01 00 0E 04 04 00 FA 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:20:52]wFMCommunicate OK [15:20:52]SAM_PROTO_GetFieldsCounters done [15:20:52]requested_item shift.num is exist - process it [15:20:52]requested_item shift.opened is exist - process it [15:20:52]req_shift_opened [15:20:52]FM_GetShiftState [15:20:52]SAM_PROTO_GetShiftState [15:20:52]wFMCommunicate request_size=4 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 13 01 00 [15:20:52]Write to MH i2c: E2 08 00 A8 26 80 13 01 00 00 00 00 00 4B [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:52]Read from MH i2c: E2 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 0E 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 0E 00 A8 26 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E5 [15:20:52]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:20:52]wFMCommunicate OK [15:20:52]SAM_PROTO_GetShiftState done [15:20:52]FM_GetShiftState done [15:20:52]req_shift_opened done [15:20:52]requested_item shift.open_date is exist - process it [15:20:52]req_shift_open_date [15:20:52]req_shift_open_date done [15:20:52]produce_requested_data done [15:20:52]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92477,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:20:52]process_action_free close_receipt [15:20:52]json_value_free [15:20:52]json_value_free done [15:20:52]process_json_proto returns [15:20:52]Send response to host [15:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92477,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:20:52]free response buf [15:20:52]execute_script done [15:20:52]execute_script returns [15:20:52]free content buf [15:20:52]Sock 8.Close socket [15:20:52]Sock 8.Thread stoped [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:22]accept exits with 9 [15:24:22]New connection [15:24:22]New thread 3066658148 created [15:24:22]Thread 3066801508 joined [15:24:22]Waiting for new connection... [15:24:22] Sock 9.Parse request [15:24:22]Sock 9.Check first char [15:24:22]Sock 9.First char is OK [15:24:22]request: POST /json_proto HTTP/1.0 [15:24:22]Method: POST [15:24:22]URL: /json_proto [15:24:22]Method is POST - this is cgi request [15:24:22]url: /json_proto [15:24:22]query_string will be loaded in cgi processing [15:24:22]execute_cgi json_proto POST (null) [15:24:22]execute_cgi path=json_proto method=POST [15:24:22]POST find Content-Length [15:24:22]Host: 172.17.57.71:8080 [15:24:22]Content-Length: 849 [15:24:22]Content-Type: application/json [15:24:22] [15:24:22]POST finish read [15:24:22]Found Content-Length = 849 [15:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127383", "tax_sys" : 0, "items" : [ { "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:22]execute_script... [15:24: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 : (3)127383", "tax_sys" : 0, "items" : [ { "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:22]POST & json_proto [15:24:22]process_json_proto [15:24:22]json parsed OK: [15:24:22]protocol is kg_v1.0 [15:24:22]action value=close_receipt [15:24:22]process_action close_receipt [15:24:22]cmd_close_receipt [15:24:22]MH_GetDate [15:24:22]Write to MH i2c: F0 00 00 A9 26 BE [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: F0 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: F0 09 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: F0 09 00 A9 26 00 A9 AA E5 66 33 3A A4 66 DC [15:24:22]GetLastDocTimeStamp 1726327250 [15:24:22]current date 1726327465 [15:24:22]FM_GetShiftState [15:24:22]SAM_PROTO_GetShiftState [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 13 01 00 [15:24:22]Write to MH i2c: E2 08 00 AA 26 80 13 01 00 00 00 00 00 4D [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 0E 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 0E 00 AA 26 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 E7 [15:24:22]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:24:22]wFMCommunicate OK [15:24:22]SAM_PROTO_GetShiftState done [15:24:22]FM_GetShiftState done [15:24:22]opened in 1726273389 [15:24:22]opened+sec_in_day 1726359789 [15:24:22]quantity*price = 12500 [15:24:22]sum+1 = 12501 [15:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 129 14.09.2024 15:24 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92478 ФПД: 93966579696101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T152425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92478&fm=93966579696101&tin=02508201610067®Number=0000000000091423&sum=12500 0 [15:24:23]StoreToDocumentArchive [15:24:23]shift 506 fd 92478 [15:24:23]save to /storage/0506/doc_00092478 [15:24:23]save last doc name /storage/0506/doc_00092478 to /storage/kkm_last_doc_name [15:24:23]save OK [15:24:23]Clear old archive folders... [15:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=291 [15:24:23]tlvbuf is 00F99C00 [15:24:23]SAM_PROTO_ClearQueue [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 09 00 00 [15:24:23]Write to MH i2c: E2 08 00 B7 26 80 09 00 00 00 00 00 00 4F [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [15:24:23]RAPDU: 90 00 [15:24:23]wFMCommunicate OK [15:24:23]SAM_PROTO_ClearQueue done [15:24:23]KKMCreateOFDPacket [15:24:23]OFDProtocolAddRootSTLVToBuf [15:24:23]FM_MakeSignedData [15:24:23]FM_MakeSignedData [15:24:23]SAM_PROTO_SignData [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 0D 01 02 [15:24:23]Write to MH i2c: E2 08 00 B8 26 80 0D 01 02 00 00 00 00 57 [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [15:24:23]RAPDU: 90 00 [15:24:23]wFMCommunicate OK [15:24:23]wFMCommunicate request_size=255 [15:24:23]MH_SAM_APDU [15:24:23]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 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 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A9 AA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [15:24:23]Write to MH i2c: E2 02 01 B9 26 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 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 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A9 AA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 1A [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 B9 26 00 90 00 53 [15:24:23]RAPDU: 90 00 [15:24:23]wFMCommunicate OK [15:24:23]wFMCommunicate request_size=50 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 0D 02 02 2D 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 69 01 00 35 04 06 00 55 76 4C 9A 81 E5 [15:24:23]Write to MH i2c: E2 35 00 BA 26 80 0D 02 02 2D 00 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 69 01 00 35 04 06 00 55 76 4C 9A 81 E5 00 00 76 [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 03 00 BA 26 00 90 00 54 [15:24:23]RAPDU: 90 00 [15:24:23]wFMCommunicate OK [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 0D 03 02 [15:24:23]Write to MH i2c: E2 08 00 BB 26 80 0D 03 02 00 00 00 00 5C [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 0B 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 0B 00 BB 26 00 9B 38 D7 77 32 23 73 B0 90 00 F6 [15:24:23]RAPDU: 9B 38 D7 77 32 23 73 B0 90 00 [15:24:23]wFMCommunicate OK [15:24:23]SAM_PROTO_SignData done [15:24:23]FM_MakeSignedData done [15:24:23]CreateOFDProtocolMessage [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 11 00 00 [15:24:23]Write to MH i2c: E2 08 00 BC 26 80 11 00 00 00 00 00 00 5C [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 17 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 17 00 BC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B3 [15:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:24:23]wFMCommunicate OK [15:24:23]CreateOFDProtocolMessage done [15:24:23]OFDSenderStorePacket 92478 [15:24:23]StoreOFDPacket docnum=92478 [15:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 37 01 00 00 C2 4E 2F 01 74 AE 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 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 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A9 AA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 69 01 00 35 04 06 00 55 76 4C 9A 81 E5 9B 38 D7 77 32 23 73 B0 [15:24:23]CheckFolder [15:24:23]dirname=/storage/ofd_packets [15:24:23]CheckFolder done [15:24:23]ProducePacketName [15:24:23]name=ofd_packets/00092478 [15:24:23]NVStorageSaveData ofd_packets/00092478 [15:24:23]File name is /storage/ofd_packets/00092478 [15:24:23]Write 341 bytes [15:24:23]NVStorageSaveData done [15:24:23]OFDSenderStorePacket done [15:24:23]KKMCreateOFDPacket done [15:24:23]NVStorageSaveData kkm_last_timestamp [15:24:23]File name is /storage/kkm_last_timestamp [15:24:23]Write 4 bytes [15:24:23]OFD Sender: Processing packet 92478 [packets to send 63, broken 62] [15:24:23]ProducePacketName [15:24:23]name=ofd_packets/00092478 [15:24:23]OFD Sender: To server: pG, [15:24:23]CommunicateWithHost lk.salyk.kg:30040 [15:24:23]ConnectInit lk.salyk.kg [15:24:23]NVStorageSaveData done [15:24:23]ExternCall_PrintAddStr [15:24:23]wPrintStart [15:24:23]Write to MH i2c: 01 00 00 BD 26 E3 [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: 01 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: 01 07 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: 01 07 00 BD 26 00 00 00 00 00 FF 0F F8 [15:24:23]RasterBufferAndPrint [15:24:23]line Счет N : (3)127383 [15:24:23]line ИНН: 02508201610067 [15:24:23]line Контрольно-Кассовый Чек [15:24:23]line ПРОДАЖА [15:24:23]line Товар: 4870202522015 [15:24:23]line Напиток Maxi Чай Грушевый 1,2л [15:24:23]line 1.000 * 125.00 [15:24:23]line = 125.00 [15:24:23]line НДС 12% НСП 1% [15:24:23]line > о реализуемом товаре [15:24:23]line ИТОГО: 125.00 [15:24:23]line НСП 1% : 1.11 [15:24:23]line НДС 12% : 13.27 [15:24:23]line Наличными: 0.00 [15:24:23]line Безнал.: 125.00 [15:24:23]line Место: АЗС № 5 "Партнер Нефть" [15:24:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:24:23]line СНО: Общий режим [15:24:23]line Чек 129 14.09.2024 15:24 [15:24:23]line Смена: 506 ФФД: 1.0 [15:24:23]line ЗНМ: 03000000022 [15:24:23]line РНМ: 0000000000091423 [15:24:23]line Версия ККМ: 001 [15:24:23]line Платежная система: О! деньги [15:24:23]line ФМ: 0000000000874692 [15:24:23]line ФД: 92478 [15:24:23]line ФПД: 93966579696101 [15:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T152425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92478&fm=93966579696101&tin=02508201610067®Number=0000000000091423&sum=12500 [15:24:24]line 0 [15:24:24]written 0, free lines is 4095 [15:24:24]Write to MH i2c: 01 00 00 E8 26 0E [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 07 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: 01 07 00 E8 26 00 00 00 00 00 E8 0C 09 [15:24:24]RasterBufferAndPrint [15:24:24]line [15:24:24]line [15:24:24]line [15:24:24]line [15:24:24]line [15:24:24]written 0, free lines is 3309 [15:24:24]MH_Cut [15:24:24]Write to MH i2c: D1 01 00 EF 26 01 E7 [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: D1 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: D1 01 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: D1 01 00 EF 26 00 E6 [15:24:24]Write to MH i2c: 01 00 00 F0 26 16 [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:25]*** Cut start [15:24:25]*** Purtial cut [15:24:25]*** Stage 1: CUTSNS_PIN = 1 [15:24:27]Read from MH i2c: 01 [15:24:27]*** Stop cut motor [15:24:27]*** Cut end [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 07 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 07 00 F0 26 00 00 00 00 00 FF 0F 2B [15:24:27]process_action close_receipt done [15:24:27]requested_data is exist [15:24:27]produce_requested_data [15:24:27]requested_item fm.sn is exist - process it [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 11 00 00 [15:24:27]Write to MH i2c: E2 08 00 F1 26 80 11 00 00 00 00 00 00 91 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 17 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 17 00 F1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E8 [15:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:24:27]wFMCommunicate OK [15:24:27]requested_item fd.num is exist - process it [15:24:27]SAM_PROTO_GetFieldsCounters [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 13 00 00 [15:24:27]Write to MH i2c: E2 08 00 F2 26 80 13 00 00 00 00 00 00 94 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 62 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 62 00 F2 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3E 69 01 00 0E 04 04 00 FA 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 D9 [15:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3E 69 01 00 0E 04 04 00 FA 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:24:27]wFMCommunicate OK [15:24:27]SAM_PROTO_GetFieldsCounters done [15:24:27]requested_item shift.num is exist - process it [15:24:27]requested_item shift.opened is exist - process it [15:24:27]req_shift_opened [15:24:27]FM_GetShiftState [15:24:27]SAM_PROTO_GetShiftState [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 13 01 00 [15:24:27]Write to MH i2c: E2 08 00 F3 26 80 13 01 00 00 00 00 00 96 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 0E 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 0E 00 F3 26 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 30 [15:24:27]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:24:27]wFMCommunicate OK [15:24:27]SAM_PROTO_GetShiftState done [15:24:27]FM_GetShiftState done [15:24:27]req_shift_opened done [15:24:27]requested_item shift.open_date is exist - process it [15:24:27]req_shift_open_date [15:24:27]req_shift_open_date done [15:24:27]produce_requested_data done [15:24:27]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92478,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:24:27]process_action_free close_receipt [15:24:27]json_value_free [15:24:27]json_value_free done [15:24:27]process_json_proto returns [15:24:27]Send response to host [15:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92478,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:24:27]free response buf [15:24:27]execute_script done [15:24:27]execute_script returns [15:24:27]free content buf [15:24:27]Sock 9.Close socket [15:24:27]Sock 9.Thread stoped [15:26:36]ConnectInit Can't connect to host [15:26:36]CommunicateWithHost connect error [15:26:36]CommunicateWithHost err = -1 [15:26:36]OFD Sender: Server communicate error [15:26:41]OFD Sender: Processing packet 92478 [packets to send 63, broken 62] [15:26:41]ProducePacketName [15:26:41]name=ofd_packets/00092478 [15:26:41]OFD Sender: To server: pG, [15:26:41]CommunicateWithHost lk.salyk.kg:30040 [15:26:41]ConnectInit lk.salyk.kg [15:26:41]Connected sock=9 [15:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 37 01 00 00 C2 4E 2F 01 74 AE 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 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 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A9 AA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 69 01 00 35 04 06 00 55 76 4C 9A 81 E5 9B 38 D7 77 32 23 73 B0 [15:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FB 10 47 00 42 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3E 69 01 00 F4 03 04 00 AE 53 E5 66 B6 04 01 00 00 EE 3B AC 1A 69 19 F9 8E [15:26:42]CommunicateWithHost err = 0 [15:26:42]CheckOFDResponse [15:26:42]1017 (14) - 77093643461234 [15:26:42]1041 (16) - 0000000000874692 [15:26:42]1040 (4) - 92478 [15:26:42]1012 (4) - 14.09.2024 09:13 [15:26:42]1206 (1) - 0 [15:26:42]OFD Sender: Remove packet 92478 [15:26:42]ProducePacketName [15:26:42]name=ofd_packets/00092478 [15:26:42]NVStorageDeleteData [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:29]accept exits with 8 [15:28:29]New connection [15:28:29]New thread 3066801508 created [15:28:29]Thread 3066658148 joined [15:28:29]Waiting for new connection... [15:28:29] Sock 8.Parse request [15:28:29]Sock 8.Check first char [15:28:29]Sock 8.First char is OK [15:28:29]request: POST /json_proto HTTP/1.0 [15:28:29]Method: POST [15:28:29]URL: /json_proto [15:28:29]Method is POST - this is cgi request [15:28:29]url: /json_proto [15:28:29]query_string will be loaded in cgi processing [15:28:29]execute_cgi json_proto POST (null) [15:28:29]execute_cgi path=json_proto method=POST [15:28:29]POST find Content-Length [15:28:29]Host: 172.17.57.71:8080 [15:28:29]Content-Length: 1037 [15:28:29]Content-Type: application/json [15:28:29] [15:28:29]POST finish read [15:28:29]Found Content-Length = 1037 [15:28:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127384", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" : 132.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:29]execute_script... [15:28: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)127384", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" : 132.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:29]POST & json_proto [15:28:29]process_json_proto [15:28:29]json parsed OK: [15:28:29]protocol is kg_v1.0 [15:28:29]action value=close_receipt [15:28:29]process_action close_receipt [15:28:29]cmd_close_receipt [15:28:29]MH_GetDate [15:28:29]Write to MH i2c: F0 00 00 F4 26 09 [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: F0 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: F0 09 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: F0 09 00 F4 26 00 A0 AB E5 66 33 3A A4 66 1F [15:28:29]GetLastDocTimeStamp 1726327465 [15:28:29]current date 1726327712 [15:28:29]FM_GetShiftState [15:28:29]SAM_PROTO_GetShiftState [15:28:29]wFMCommunicate request_size=4 [15:28:29]MH_SAM_APDU [15:28:29]CAPDU: 80 13 01 00 [15:28:29]Write to MH i2c: E2 08 00 F5 26 80 13 01 00 00 00 00 00 98 [15:28:29]Write i2c OK [15:28:29]MH_I2C_Read... [15:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:29]Read from MH i2c: E2 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 0E 00 [15:28:29]MH_I2C_Read... [15:28:29]Read from MH i2c: E2 0E 00 F5 26 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 32 [15:28:29]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:28:29]wFMCommunicate OK [15:28:29]SAM_PROTO_GetShiftState done [15:28:29]FM_GetShiftState done [15:28:29]opened in 1726273389 [15:28:29]opened+sec_in_day 1726359789 [15:28:29]quantity*price = 8700 [15:28:29]sum+1 = 8701 [15:28:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 132.00 НСП 1% : 1.17 НДС 12% : 14.02 Наличными: 0.00 Безнал.: 132.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 130 14.09.2024 15:28 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92479 ФПД: 138529220941921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T152833&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92479&fm=138529220941921&tin=02508201610067®Number=0000000000091423&sum=13200 0 [15:28:30]StoreToDocumentArchive [15:28:30]shift 506 fd 92479 [15:28:30]save to /storage/0506/doc_00092479 [15:28:30]save last doc name /storage/0506/doc_00092479 to /storage/kkm_last_doc_name [15:28:30]save OK [15:28:30]Clear old archive folders... [15:28:30]ProcessDocumentItem done err = 0, tmpTLVsize=374 [15:28:30]tlvbuf is 00F9F120 [15:28:30]SAM_PROTO_ClearQueue [15:28:30]wFMCommunicate request_size=4 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 09 00 00 [15:28:30]Write to MH i2c: E2 08 00 02 27 80 09 00 00 00 00 00 00 9B [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:30]Read from MH i2c: E2 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 03 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 03 00 02 27 00 90 00 9D [15:28:30]RAPDU: 90 00 [15:28:30]wFMCommunicate OK [15:28:30]SAM_PROTO_ClearQueue done [15:28:30]KKMCreateOFDPacket [15:28:30]OFDProtocolAddRootSTLVToBuf [15:28:30]FM_MakeSignedData [15:28:30]FM_MakeSignedData [15:28:30]SAM_PROTO_SignData [15:28:30]wFMCommunicate request_size=4 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 0D 01 02 [15:28:30]Write to MH i2c: E2 08 00 03 27 80 0D 01 02 00 00 00 00 A3 [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:30]Read from MH i2c: E2 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 03 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 03 00 03 27 00 90 00 9E [15:28:30]RAPDU: 90 00 [15:28:30]wFMCommunicate OK [15:28:30]wFMCommunicate request_size=255 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 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 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 [15:28:30]Write to MH i2c: E2 02 01 04 27 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 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 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 00 00 F5 [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:30]Read from MH i2c: E2 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 03 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 03 00 04 27 00 90 00 9F [15:28:30]RAPDU: 90 00 [15:28:30]wFMCommunicate OK [15:28:30]wFMCommunicate request_size=133 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A1 AB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 69 01 00 35 04 06 00 7D FD D9 01 58 61 [15:28:30]Write to MH i2c: E2 88 00 05 27 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A1 AB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 69 01 00 35 04 06 00 7D FD D9 01 58 61 00 00 DD [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:30]Read from MH i2c: E2 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 03 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 03 00 05 27 00 90 00 A0 [15:28:30]RAPDU: 90 00 [15:28:30]wFMCommunicate OK [15:28:30]wFMCommunicate request_size=4 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 0D 03 02 [15:28:30]Write to MH i2c: E2 08 00 06 27 80 0D 03 02 00 00 00 00 A8 [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:30]Read from MH i2c: E2 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 0B 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 0B 00 06 27 00 B9 65 64 9D 74 AE 61 F3 90 00 3E [15:28:30]RAPDU: B9 65 64 9D 74 AE 61 F3 90 00 [15:28:30]wFMCommunicate OK [15:28:30]SAM_PROTO_SignData done [15:28:30]FM_MakeSignedData done [15:28:30]CreateOFDProtocolMessage [15:28:30]wFMCommunicate request_size=4 [15:28:30]MH_SAM_APDU [15:28:30]CAPDU: 80 11 00 00 [15:28:30]Write to MH i2c: E2 08 00 07 27 80 11 00 00 00 00 00 00 A8 [15:28:30]Write i2c OK [15:28:30]MH_I2C_Read... [15:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:30]Read from MH i2c: E2 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 17 00 [15:28:30]MH_I2C_Read... [15:28:30]Read from MH i2c: E2 17 00 07 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [15:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:28:30]wFMCommunicate OK [15:28:30]CreateOFDProtocolMessage done [15:28:30]OFDSenderStorePacket 92479 [15:28:30]StoreOFDPacket docnum=92479 [15:28:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8A 01 00 00 D3 8E 82 01 9A B1 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 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 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A1 AB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 69 01 00 35 04 06 00 7D FD D9 01 58 61 B9 65 64 9D 74 AE 61 F3 [15:28:30]CheckFolder [15:28:30]dirname=/storage/ofd_packets [15:28:30]CheckFolder done [15:28:30]ProducePacketName [15:28:30]name=ofd_packets/00092479 [15:28:30]NVStorageSaveData ofd_packets/00092479 [15:28:30]File name is /storage/ofd_packets/00092479 [15:28:30]Write 424 bytes [15:28:31]NVStorageSaveData done [15:28:31]OFDSenderStorePacket done [15:28:31]KKMCreateOFDPacket done [15:28:31]NVStorageSaveData kkm_last_timestamp [15:28:31]File name is /storage/kkm_last_timestamp [15:28:31]Write 4 bytes [15:28:31]NVStorageSaveData done [15:28:31]ExternCall_PrintAddStr [15:28:31]wPrintStart [15:28:31]Write to MH i2c: 01 00 00 08 27 2F [15:28:31]OFD Sender: Processing packet 92479 [packets to send 63, broken 62] [15:28:31]ProducePacketName [15:28:31]name=ofd_packets/00092479 [15:28:31]OFD Sender: To server: pG, [15:28:31]CommunicateWithHost lk.salyk.kg:30040 [15:28:31]ConnectInit lk.salyk.kg [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 07 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 07 00 08 27 00 00 00 00 00 FF 0F 44 [15:28:31]RasterBufferAndPrint [15:28:31]line Счет N : (3)127384 [15:28:31]line ИНН: 02508201610067 [15:28:31]line Контрольно-Кассовый Чек [15:28:31]line ПРОДАЖА [15:28:31]line Товар: 4860019001353 [15:28:31]line Вода Боржоми 0,5л ПЭТ [15:28:31]line 1.000 * 87.00 [15:28:31]line = 87.00 [15:28:31]line НДС 12% НСП 1% [15:28:31]line > о реализуемом товаре [15:28:31]line Товар: 46141538 [15:28:31]line Р/ж Orbit Bubblemint 13,6г [15:28:31]line 1.000 * 45.00 [15:28:31]line = 45.00 [15:28:31]line НДС 12% НСП 1% [15:28:31]line > о реализуемом товаре [15:28:31]line ИТОГО: 132.00 [15:28:31]line НСП 1% : 1.17 [15:28:31]line НДС 12% : 14.02 [15:28:31]line Наличными: 0.00 [15:28:31]line Безнал.: 132.00 [15:28:31]line Место: АЗС № 5 "Партнер Нефть" [15:28:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:28:31]line СНО: Общий режим [15:28:31]line Чек 130 14.09.2024 15:28 [15:28:31]line Смена: 506 ФФД: 1.0 [15:28:31]line ЗНМ: 03000000022 [15:28:31]line РНМ: 0000000000091423 [15:28:31]line Версия ККМ: 001 [15:28:31]line Платежная система: Бакай Банк [15:28:31]line ФМ: 0000000000874692 [15:28:31]line ФД: 92479 [15:28:31]line ФПД: 138529220941921 [15:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T152833&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92479&fm=138529220941921&tin=02508201610067®Number=0000000000091423&sum=13200 [15:28:31]line 0 [15:28:31]written 0, free lines is 4095 [15:28:31]Connected sock=10 [15:28:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8A 01 00 00 D3 8E 82 01 9A B1 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 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 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A1 AB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 69 01 00 35 04 06 00 7D FD D9 01 58 61 B9 65 64 9D 74 AE 61 F3 [15:28:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F5 A5 47 00 44 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 3F 69 01 00 F4 03 04 00 1B 54 E5 66 B6 04 01 00 00 11 84 4A 91 FA 5B B5 23 [15:28:31]CommunicateWithHost err = 0 [15:28:31]CheckOFDResponse [15:28:31]1017 (14) - 77093643461234 [15:28:31]1041 (16) - 0000000000874692 [15:28:31]1040 (4) - 92479 [15:28:31]1012 (4) - 14.09.2024 09:15 [15:28:31]1206 (1) - 0 [15:28:31]OFD Sender: Remove packet 92479 [15:28:31]ProducePacketName [15:28:31]name=ofd_packets/00092479 [15:28:31]NVStorageDeleteData [15:28:31]Write to MH i2c: 01 00 00 38 27 5F [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 07 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: 01 07 00 38 27 00 00 00 00 00 BD 0C 2F [15:28:31]RasterBufferAndPrint [15:28:31]line [15:28:31]line [15:28:31]line [15:28:31]line [15:28:31]line [15:28:31]written 0, free lines is 3269 [15:28:31]MH_Cut [15:28:31]Write to MH i2c: D1 01 00 3F 27 01 38 [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: D1 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: D1 01 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: D1 01 00 3F 27 00 37 [15:28:31]Write to MH i2c: 01 00 00 40 27 67 [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:32]OFD Sender: No OFD packet to send [15:28:32]*** Cut start [15:28:32]*** Purtial cut [15:28:32]*** Stage 1: CUTSNS_PIN = 1 [15:28:34]Read from MH i2c: 01 [15:28:34]MH_I2C_Read... [15:28:34]*** Stop cut motor [15:28:34]*** Cut end [15:28:34]Read from MH i2c: 01 07 00 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: 01 07 00 40 27 00 00 00 00 00 FF 0F 7C [15:28:34]process_action close_receipt done [15:28:34]requested_data is exist [15:28:34]produce_requested_data [15:28:34]requested_item fm.sn is exist - process it [15:28:34]wFMCommunicate request_size=4 [15:28:34]MH_SAM_APDU [15:28:34]CAPDU: 80 11 00 00 [15:28:34]Write to MH i2c: E2 08 00 41 27 80 11 00 00 00 00 00 00 E2 [15:28:34]Write i2c OK [15:28:34]MH_I2C_Read... [15:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:34]Read from MH i2c: E2 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 17 00 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 17 00 41 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 39 [15:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:28:34]wFMCommunicate OK [15:28:34]requested_item fd.num is exist - process it [15:28:34]SAM_PROTO_GetFieldsCounters [15:28:34]wFMCommunicate request_size=4 [15:28:34]MH_SAM_APDU [15:28:34]CAPDU: 80 13 00 00 [15:28:34]Write to MH i2c: E2 08 00 42 27 80 13 00 00 00 00 00 00 E5 [15:28:34]Write i2c OK [15:28:34]MH_I2C_Read... [15:28:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:34]Read from MH i2c: E2 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 62 00 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 62 00 42 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3F 69 01 00 0E 04 04 00 FA 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 2E [15:28:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 3F 69 01 00 0E 04 04 00 FA 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:28:34]wFMCommunicate OK [15:28:34]SAM_PROTO_GetFieldsCounters done [15:28:34]requested_item shift.num is exist - process it [15:28:34]requested_item shift.opened is exist - process it [15:28:34]req_shift_opened [15:28:34]FM_GetShiftState [15:28:34]SAM_PROTO_GetShiftState [15:28:34]wFMCommunicate request_size=4 [15:28:34]MH_SAM_APDU [15:28:34]CAPDU: 80 13 01 00 [15:28:34]Write to MH i2c: E2 08 00 43 27 80 13 01 00 00 00 00 00 E7 [15:28:34]Write i2c OK [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 [15:28:34]MH_I2C_Read... [15:28:34]Read from MH i2c: E2 0E 00 [15:28:34]MH_I2C_Read... [15:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:34]Read from MH i2c: E2 0E 00 43 27 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 81 [15:28:34]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:28:34]wFMCommunicate OK [15:28:34]SAM_PROTO_GetShiftState done [15:28:34]FM_GetShiftState done [15:28:34]req_shift_opened done [15:28:34]requested_item shift.open_date is exist - process it [15:28:34]req_shift_open_date [15:28:34]req_shift_open_date done [15:28:34]produce_requested_data done [15:28:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92479,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:28:34]process_action_free close_receipt [15:28:34]json_value_free [15:28:34]json_value_free done [15:28:34]process_json_proto returns [15:28:34]Send response to host [15:28:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92479,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:28:34]free response buf [15:28:34]execute_script done [15:28:34]execute_script returns [15:28:34]free content buf [15:28:34]Sock 8.Close socket [15:28:34]Sock 8.Thread stoped [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33: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:09]accept exits with 9 [15:35:09]New connection [15:35:09]New thread 3066658148 created [15:35:09]Thread 3066801508 joined [15:35:09]Waiting for new connection... [15:35:09] Sock 9.Parse request [15:35:09]Sock 9.Check first char [15:35:09]Sock 9.First char is OK [15:35:09]request: POST /json_proto HTTP/1.0 [15:35:09]Method: POST [15:35:09]URL: /json_proto [15:35:09]Method is POST - this is cgi request [15:35:09]url: /json_proto [15:35:09]query_string will be loaded in cgi processing [15:35:09]execute_cgi json_proto POST (null) [15:35:09]execute_cgi path=json_proto method=POST [15:35:09]POST find Content-Length [15:35:09]Host: 172.17.57.71:8080 [15:35:09]Content-Length: 840 [15:35:09]Content-Type: application/json [15:35:09] [15:35:09]POST finish read [15:35:09]Found Content-Length = 840 [15:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127385", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:09]execute_script... [15: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)127385", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:09]POST & json_proto [15:35:09]process_json_proto [15:35:09]json parsed OK: [15:35:09]protocol is kg_v1.0 [15:35:09]action value=close_receipt [15:35:09]process_action close_receipt [15:35:09]cmd_close_receipt [15:35:09]MH_GetDate [15:35:09]Write to MH i2c: F0 00 00 44 27 5A [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: F0 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: F0 09 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: F0 09 00 44 27 00 30 AD E5 66 33 3A A4 66 02 [15:35:09]GetLastDocTimeStamp 1726327713 [15:35:09]current date 1726328112 [15:35:09]FM_GetShiftState [15:35:09]SAM_PROTO_GetShiftState [15:35:09]wFMCommunicate request_size=4 [15:35:09]MH_SAM_APDU [15:35:09]CAPDU: 80 13 01 00 [15:35:09]Write to MH i2c: E2 08 00 45 27 80 13 01 00 00 00 00 00 E9 [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:09]Read from MH i2c: E2 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 0E 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 0E 00 45 27 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 83 [15:35:09]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:35:09]wFMCommunicate OK [15:35:09]SAM_PROTO_GetShiftState done [15:35:09]FM_GetShiftState done [15:35:09]opened in 1726273389 [15:35:09]opened+sec_in_day 1726359789 [15:35:09]quantity*price = 17000 [15:35:09]sum+1 = 17001 [15:35:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 131 14.09.2024 15:35 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92480 ФПД: 267666686912323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T153512&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92480&fm=267666686912323&tin=02508201610067®Number=0000000000091423&sum=17000 0 [15:35:10]StoreToDocumentArchive [15:35:10]shift 506 fd 92480 [15:35:10]save to /storage/0506/doc_00092480 [15:35:10]save last doc name /storage/0506/doc_00092480 to /storage/kkm_last_doc_name [15:35:10]save OK [15:35:10]Clear old archive folders... [15:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=287 [15:35:10]tlvbuf is 0102B4A0 [15:35:10]SAM_PROTO_ClearQueue [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 09 00 00 [15:35:10]Write to MH i2c: E2 08 00 52 27 80 09 00 00 00 00 00 00 EB [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 52 27 00 90 00 ED [15:35:10]RAPDU: 90 00 [15:35:10]wFMCommunicate OK [15:35:10]SAM_PROTO_ClearQueue done [15:35:10]KKMCreateOFDPacket [15:35:10]OFDProtocolAddRootSTLVToBuf [15:35:10]FM_MakeSignedData [15:35:10]FM_MakeSignedData [15:35:10]SAM_PROTO_SignData [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 0D 01 02 [15:35:10]Write to MH i2c: E2 08 00 53 27 80 0D 01 02 00 00 00 00 F3 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 53 27 00 90 00 EE [15:35:10]RAPDU: 90 00 [15:35:10]wFMCommunicate OK [15:35:10]wFMCommunicate request_size=255 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 30 AD E5 66 0E 04 04 00 FA 01 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:35:10]Write to MH i2c: E2 02 01 54 27 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 30 AD E5 66 0E 04 04 00 FA 01 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 1B [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 54 27 00 90 00 EF [15:35:10]RAPDU: 90 00 [15:35:10]wFMCommunicate OK [15:35:10]wFMCommunicate request_size=46 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 69 01 00 35 04 06 00 F3 71 01 CA A7 43 [15:35:10]Write to MH i2c: E2 31 00 55 27 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 69 01 00 35 04 06 00 F3 71 01 CA A7 43 00 00 44 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 55 27 00 90 00 F0 [15:35:10]RAPDU: 90 00 [15:35:10]wFMCommunicate OK [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 0D 03 02 [15:35:10]Write to MH i2c: E2 08 00 56 27 80 0D 03 02 00 00 00 00 F8 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 0B 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 0B 00 56 27 00 9C 97 77 B1 83 9F EA C0 90 00 20 [15:35:10]RAPDU: 9C 97 77 B1 83 9F EA C0 90 00 [15:35:10]wFMCommunicate OK [15:35:10]SAM_PROTO_SignData done [15:35:10]FM_MakeSignedData done [15:35:10]CreateOFDProtocolMessage [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 11 00 00 [15:35:10]Write to MH i2c: E2 08 00 57 27 80 11 00 00 00 00 00 00 F8 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 17 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 17 00 57 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4F [15:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:35:10]wFMCommunicate OK [15:35:10]CreateOFDProtocolMessage done [15:35:10]OFDSenderStorePacket 92480 [15:35:10]StoreOFDPacket docnum=92480 [15:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 11 9F 2B 01 57 9F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 30 AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 69 01 00 35 04 06 00 F3 71 01 CA A7 43 9C 97 77 B1 83 9F EA C0 [15:35:10]CheckFolder [15:35:10]dirname=/storage/ofd_packets [15:35:10]CheckFolder done [15:35:10]ProducePacketName [15:35:10]name=ofd_packets/00092480 [15:35:10]NVStorageSaveData ofd_packets/00092480 [15:35:10]File name is /storage/ofd_packets/00092480 [15:35:10]Write 337 bytes [15:35:10]NVStorageSaveData done [15:35:10]OFDSenderStorePacket done [15:35:10]KKMCreateOFDPacket done [15:35:10]NVStorageSaveData kkm_last_timestamp [15:35:10]File name is /storage/kkm_last_timestamp [15:35:10]Write 4 bytes [15:35:10]NVStorageSaveData done [15:35:10]ExternCall_PrintAddStr [15:35:10]wPrintStart [15:35:10]Write to MH i2c: 01 00 00 58 27 7F [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: 01 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: 01 07 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: 01 07 00 58 27 00 00 00 00 00 FF 0F 94 [15:35:10]RasterBufferAndPrint [15:35:10]line Счет N : (3)127385 [15:35:10]line ИНН: 02508201610067 [15:35:10]line Контрольно-Кассовый Чек [15:35:10]line ПРОДАЖА [15:35:10]line Товар: 5449000176448 [15:35:10]line Сок Piko Pulpy апельсин ПЭТ 1л [15:35:10]line 1.000 * 170.00 [15:35:10]line = 170.00 [15:35:10]line НДС 12% НСП 1% [15:35:10]line > о реализуемом товаре [15:35:10]line ИТОГО: 170.00 [15:35:10]line НСП 1% : 1.50 [15:35:10]line НДС 12% : 18.05 [15:35:10]line Наличными: 0.00 [15:35:10]line Безнал.: 170.00 [15:35:10]line Место: АЗС № 5 "Партнер Нефть" [15:35:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:35:10]line СНО: Общий режим [15:35:10]line Чек 131 14.09.2024 15:35 [15:35:10]line Смена: 506 ФФД: 1.0 [15:35:10]line ЗНМ: 03000000022 [15:35:10]line РНМ: 0000000000091423 [15:35:10]line Версия ККМ: 001 [15:35:10]line Платежная система: Бакай Банк [15:35:10]line ФМ: 0000000000874692 [15:35:10]line ФД: 92480 [15:35:10]line ФПД: 267666686912323 [15:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T153512&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92480&fm=267666686912323&tin=02508201610067®Number=0000000000091423&sum=17000 [15:35:11]line 0 [15:35:11]OFD Sender: Processing packet 92480 [packets to send 63, broken 62] [15:35:11]ProducePacketName [15:35:11]name=ofd_packets/00092480 [15:35:11]OFD Sender: To server: pG, [15:35:11]CommunicateWithHost lk.salyk.kg:30040 [15:35:11]ConnectInit lk.salyk.kg [15:35:11]written 0, free lines is 4095 [15:35:11]Connected sock=11 [15: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 34 36 39 32 33 01 00 00 11 9F 2B 01 57 9F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 30 AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 69 01 00 35 04 06 00 F3 71 01 CA A7 43 9C 97 77 B1 83 9F EA C0 [15:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FF EE 47 00 C8 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 40 69 01 00 F4 03 04 00 AB 55 E5 66 B6 04 01 00 00 B8 8B E5 CE CE E0 43 81 [15:35:11]CommunicateWithHost err = 0 [15:35:11]CheckOFDResponse [15:35:11]1017 (14) - 77093643461234 [15:35:11]1041 (16) - 0000000000874692 [15:35:11]1040 (4) - 92480 [15:35:11]1012 (4) - 14.09.2024 09:21 [15:35:11]1206 (1) - 0 [15:35:11]OFD Sender: Remove packet 92480 [15:35:11]ProducePacketName [15:35:11]name=ofd_packets/00092480 [15:35:11]NVStorageDeleteData [15:35:11]Write to MH i2c: 01 00 00 83 27 AA [15:35:11]Write i2c OK [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: 01 [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: 01 07 00 [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: 01 07 00 83 27 00 00 00 00 00 F6 0C B3 [15:35:11]RasterBufferAndPrint [15:35:11]line [15:35:11]line [15:35:11]line [15:35:11]line [15:35:11]line [15:35:11]written 0, free lines is 3326 [15:35:11]MH_Cut [15:35:11]Write to MH i2c: D1 01 00 8A 27 01 83 [15:35:11]Write i2c OK [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: D1 [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: D1 01 00 [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: D1 01 00 8A 27 00 82 [15:35:11]Write to MH i2c: 01 00 00 8B 27 B2 [15:35:11]Write i2c OK [15:35:11]MH_I2C_Read... [15:35:11]OFD Sender: No OFD packet to send [15:35:12]*** Cut start [15:35:12]*** Purtial cut [15:35:12]*** Stage 1: CUTSNS_PIN = 1 [15:35:14]Read from MH i2c: 01 [15:35:14]MH_I2C_Read... [15:35:14]*** Stop cut motor [15:35:14]*** Cut end [15:35:14]Read from MH i2c: 01 07 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: 01 07 00 8B 27 00 00 00 00 00 FF 0F C7 [15:35:14]process_action close_receipt done [15:35:14]requested_data is exist [15:35:14]produce_requested_data [15:35:14]requested_item fm.sn is exist - process it [15:35:14]wFMCommunicate request_size=4 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 11 00 00 [15:35:14]Write to MH i2c: E2 08 00 8C 27 80 11 00 00 00 00 00 00 2D [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 17 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 17 00 8C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 84 [15:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:35:14]wFMCommunicate OK [15:35:14]requested_item fd.num is exist - process it [15:35:14]SAM_PROTO_GetFieldsCounters [15:35:14]wFMCommunicate request_size=4 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 13 00 00 [15:35:14]Write to MH i2c: E2 08 00 8D 27 80 13 00 00 00 00 00 00 30 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 62 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 62 00 8D 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 40 69 01 00 0E 04 04 00 FA 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 7D [15:35:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 40 69 01 00 0E 04 04 00 FA 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:35:14]wFMCommunicate OK [15:35:14]SAM_PROTO_GetFieldsCounters done [15:35:14]requested_item shift.num is exist - process it [15:35:14]requested_item shift.opened is exist - process it [15:35:14]req_shift_opened [15:35:14]FM_GetShiftState [15:35:14]SAM_PROTO_GetShiftState [15:35:14]wFMCommunicate request_size=4 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 13 01 00 [15:35:14]Write to MH i2c: E2 08 00 8E 27 80 13 01 00 00 00 00 00 32 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 0E 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 0E 00 8E 27 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 CC [15:35:14]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:35:14]wFMCommunicate OK [15:35:14]SAM_PROTO_GetShiftState done [15:35:14]FM_GetShiftState done [15:35:14]req_shift_opened done [15:35:14]requested_item shift.open_date is exist - process it [15:35:14]req_shift_open_date [15:35:14]req_shift_open_date done [15:35:14]produce_requested_data done [15:35:14]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92480,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:35:14]process_action_free close_receipt [15:35:14]json_value_free [15:35:14]json_value_free done [15:35:14]process_json_proto returns [15:35:14]Send response to host [15:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92480,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:35:14]free response buf [15:35:14]execute_script done [15:35:14]execute_script returns [15:35:14]free content buf [15:35:14]Sock 9.Close socket [15:35:14]Sock 9.Thread stoped [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]accept exits with 8 [15:35:51]New connection [15:35:51]New thread 3066801508 created [15:35:51]Thread 3066658148 joined [15:35:51]Waiting for new connection... [15:35:51] Sock 8.Parse request [15:35:51]Sock 8.Check first char [15:35:51]Sock 8.First char is OK [15:35:51]request: POST /json_proto HTTP/1.0 [15:35:51]Method: POST [15:35:51]URL: /json_proto [15:35:51]Method is POST - this is cgi request [15:35:51]url: /json_proto [15:35:51]query_string will be loaded in cgi processing [15:35:51]execute_cgi json_proto POST (null) [15:35:51]execute_cgi path=json_proto method=POST [15:35:51]POST find Content-Length [15:35:51]Host: 172.17.57.71:8080 [15:35:51]Content-Length: 832 [15:35:51]Content-Type: application/json [15:35:51] [15:35:51]POST finish read [15:35:51]Found Content-Length = 832 [15:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127386", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:51]execute_script... [15: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)127386", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:51]POST & json_proto [15:35:51]process_json_proto [15:35:51]json parsed OK: [15:35:51]protocol is kg_v1.0 [15:35:51]action value=close_receipt [15:35:51]process_action close_receipt [15:35:51]cmd_close_receipt [15:35:51]MH_GetDate [15:35:51]Write to MH i2c: F0 00 00 8F 27 A5 [15:35:51]Write i2c OK [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: F0 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: F0 09 00 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: F0 09 00 8F 27 00 5A AD E5 66 33 3A A4 66 77 [15:35:51]GetLastDocTimeStamp 1726328112 [15:35:51]current date 1726328154 [15:35:51]FM_GetShiftState [15:35:51]SAM_PROTO_GetShiftState [15:35:51]wFMCommunicate request_size=4 [15:35:51]MH_SAM_APDU [15:35:51]CAPDU: 80 13 01 00 [15:35:51]Write to MH i2c: E2 08 00 90 27 80 13 01 00 00 00 00 00 34 [15:35:51]Write i2c OK [15:35:51]MH_I2C_Read... [15:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:51]Read from MH i2c: E2 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: E2 0E 00 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: E2 0E 00 90 27 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 CE [15:35:51]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:35:51]wFMCommunicate OK [15:35:51]SAM_PROTO_GetShiftState done [15:35:51]FM_GetShiftState done [15:35:51]opened in 1726273389 [15:35:51]opened+sec_in_day 1726359789 [15:35:51]quantity*price = 9000 [15:35:51]sum+1 = 9001 [15:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 132 14.09.2024 15:35 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92481 ФПД: 244943930308321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T153554&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92481&fm=244943930308321&tin=02508201610067®Number=0000000000091423&sum=9000 0 [15:35:52]StoreToDocumentArchive [15:35:52]shift 506 fd 92481 [15:35:52]save to /storage/0506/doc_00092481 [15:35:52]save last doc name /storage/0506/doc_00092481 to /storage/kkm_last_doc_name [15:35:52]save OK [15:35:52]Clear old archive folders... [15:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:35:52]tlvbuf is 01037FD0 [15:35:52]SAM_PROTO_ClearQueue [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 09 00 00 [15:35:52]Write to MH i2c: E2 08 00 9D 27 80 09 00 00 00 00 00 00 36 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 03 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 03 00 9D 27 00 90 00 38 [15:35:52]RAPDU: 90 00 [15:35:52]wFMCommunicate OK [15:35:52]SAM_PROTO_ClearQueue done [15:35:52]KKMCreateOFDPacket [15:35:52]OFDProtocolAddRootSTLVToBuf [15:35:52]FM_MakeSignedData [15:35:52]FM_MakeSignedData [15:35:52]SAM_PROTO_SignData [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 0D 01 02 [15:35:52]Write to MH i2c: E2 08 00 9E 27 80 0D 01 02 00 00 00 00 3E [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 03 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 03 00 9E 27 00 90 00 39 [15:35:52]RAPDU: 90 00 [15:35:52]wFMCommunicate OK [15:35:52]wFMCommunicate request_size=255 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 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 84 00 00 00 F4 03 04 00 5A AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:35:52]Write to MH i2c: E2 02 01 9F 27 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 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 84 00 00 00 F4 03 04 00 5A AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 E7 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 03 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 03 00 9F 27 00 90 00 3A [15:35:52]RAPDU: 90 00 [15:35:52]wFMCommunicate OK [15:35:52]wFMCommunicate request_size=52 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 69 01 00 35 04 06 00 DE C6 73 F4 B6 E1 [15:35:52]Write to MH i2c: E2 37 00 A0 27 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 69 01 00 35 04 06 00 DE C6 73 F4 B6 E1 00 00 4F [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 03 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 03 00 A0 27 00 90 00 3B [15:35:52]RAPDU: 90 00 [15:35:52]wFMCommunicate OK [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 0D 03 02 [15:35:52]Write to MH i2c: E2 08 00 A1 27 80 0D 03 02 00 00 00 00 43 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 0B 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 0B 00 A1 27 00 70 05 29 62 E4 A7 2B DA 90 00 D4 [15:35:52]RAPDU: 70 05 29 62 E4 A7 2B DA 90 00 [15:35:52]wFMCommunicate OK [15:35:52]SAM_PROTO_SignData done [15:35:52]FM_MakeSignedData done [15:35:52]CreateOFDProtocolMessage [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 11 00 00 [15:35:52]Write to MH i2c: E2 08 00 A2 27 80 11 00 00 00 00 00 00 43 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 17 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 17 00 A2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9A [15:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:35:52]wFMCommunicate OK [15:35:52]CreateOFDProtocolMessage done [15:35:52]OFDSenderStorePacket 92481 [15:35:52]StoreOFDPacket docnum=92481 [15:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 F7 DF 31 01 00 5B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 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 84 00 00 00 F4 03 04 00 5A AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 69 01 00 35 04 06 00 DE C6 73 F4 B6 E1 70 05 29 62 E4 A7 2B DA [15:35:52]CheckFolder [15:35:52]dirname=/storage/ofd_packets [15:35:52]CheckFolder done [15:35:52]ProducePacketName [15:35:52]name=ofd_packets/00092481 [15:35:52]NVStorageSaveData ofd_packets/00092481 [15:35:52]File name is /storage/ofd_packets/00092481 [15:35:52]Write 343 bytes [15:35:52]NVStorageSaveData done [15:35:52]OFDSenderStorePacket done [15:35:52]KKMCreateOFDPacket done [15:35:52]NVStorageSaveData kkm_last_timestamp [15:35:52]File name is /storage/kkm_last_timestamp [15:35:52]OFD Sender: Processing packet 92481 [packets to send 63, broken 62] [15:35:52]ProducePacketName [15:35:52]name=ofd_packets/00092481 [15:35:52]OFD Sender: To server: pG, [15:35:52]CommunicateWithHost lk.salyk.kg:30040 [15:35:52]ConnectInit lk.salyk.kg [15:35:52]Write 4 bytes [15:35:52]NVStorageSaveData done [15:35:52]ExternCall_PrintAddStr [15:35:52]wPrintStart [15:35:52]Write to MH i2c: 01 00 00 A3 27 CA [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: 01 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: 01 07 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: 01 07 00 A3 27 00 00 00 00 00 FF 0F DF [15:35:52]RasterBufferAndPrint [15:35:52]line Счет N : (3)127386 [15:35:52]line ИНН: 02508201610067 [15:35:52]line Контрольно-Кассовый Чек [15:35:52]line ПРОДАЖА [15:35:52]line Товар: 4870022003305 [15:35:52]line Напиток Gorilla эн нат ж/б 0,5/0,45л [15:35:52]line 1.000 * 90.00 [15:35:52]line = 90.00 [15:35:52]line НДС 12% НСП 1% [15:35:52]line > о реализуемом товаре [15:35:52]line ИТОГО: 90.00 [15:35:52]line НСП 1% : 0.80 [15:35:52]line НДС 12% : 9.56 [15:35:52]line Наличными: 0.00 [15:35:52]line Безнал.: 90.00 [15:35:52]line Место: АЗС № 5 "Партнер Нефть" [15:35:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:35:52]line СНО: Общий режим [15:35:52]line Чек 132 14.09.2024 15:35 [15:35:52]line Смена: 506 ФФД: 1.0 [15:35:52]line ЗНМ: 03000000022 [15:35:52]line РНМ: 0000000000091423 [15:35:52]line Версия ККМ: 001 [15:35:52]line Платежная система: О! деньги [15:35:52]line ФМ: 0000000000874692 [15:35:52]line ФД: 92481 [15:35:52]line ФПД: 244943930308321 [15:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T153554&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92481&fm=244943930308321&tin=02508201610067®Number=0000000000091423&sum=9000 [15:35:53]line 0 [15:35:53]Connected sock=11 [15: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 34 36 39 32 39 01 00 00 F7 DF 31 01 00 5B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 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 84 00 00 00 F4 03 04 00 5A AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 41 69 01 00 35 04 06 00 DE C6 73 F4 B6 E1 70 05 29 62 E4 A7 2B DA [15:35:53]written 0, free lines is 4095 [15:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 22 CF 47 00 EB 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 34 36 39 32 10 04 04 00 41 69 01 00 F4 03 04 00 D5 55 E5 66 B6 04 01 00 00 D9 75 A4 DB 34 C1 15 E4 [15:35:53]CommunicateWithHost err = 0 [15:35:53]CheckOFDResponse [15:35:53]1017 (14) - 77093643461234 [15:35:53]1041 (16) - 0000000000874692 [15:35:53]1040 (4) - 92481 [15:35:53]1012 (4) - 14.09.2024 09:22 [15:35:53]1206 (1) - 0 [15:35:53]OFD Sender: Remove packet 92481 [15:35:53]ProducePacketName [15:35:53]name=ofd_packets/00092481 [15:35:53]NVStorageDeleteData [15:35:53]Write to MH i2c: 01 00 00 CE 27 F5 [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: 01 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: 01 07 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: 01 07 00 CE 27 00 00 00 00 00 F3 0C FB [15:35:53]RasterBufferAndPrint [15:35:53]line [15:35:53]line [15:35:53]line [15:35:53]line [15:35:53]line [15:35:53]written 0, free lines is 3323 [15:35:53]MH_Cut [15:35:53]Write to MH i2c: D1 01 00 D5 27 01 CE [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: D1 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: D1 01 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: D1 01 00 D5 27 00 CD [15:35:53]Write to MH i2c: 01 00 00 D6 27 FD [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]OFD Sender: No OFD packet to send [15:35:54]*** Cut start [15:35:54]*** Purtial cut [15:35:54]*** Stage 1: CUTSNS_PIN = 1 [15:35:56]Read from MH i2c: 01 [15:35:56]MH_I2C_Read... [15:35:56]*** Stop cut motor [15:35:56]*** Cut end [15:35:56]Read from MH i2c: 01 07 00 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: 01 07 00 D6 27 00 00 00 00 00 FF 0F 12 [15:35:56]process_action close_receipt done [15:35:56]requested_data is exist [15:35:56]produce_requested_data [15:35:56]requested_item fm.sn is exist - process it [15:35:56]wFMCommunicate request_size=4 [15:35:56]MH_SAM_APDU [15:35:56]CAPDU: 80 11 00 00 [15:35:56]Write to MH i2c: E2 08 00 D7 27 80 11 00 00 00 00 00 00 78 [15:35:56]Write i2c OK [15:35:56]MH_I2C_Read... [15:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:56]Read from MH i2c: E2 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 17 00 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 17 00 D7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CF [15:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:35:56]wFMCommunicate OK [15:35:56]requested_item fd.num is exist - process it [15:35:56]SAM_PROTO_GetFieldsCounters [15:35:56]wFMCommunicate request_size=4 [15:35:56]MH_SAM_APDU [15:35:56]CAPDU: 80 13 00 00 [15:35:56]Write to MH i2c: E2 08 00 D8 27 80 13 00 00 00 00 00 00 7B [15:35:56]Write i2c OK [15:35:56]MH_I2C_Read... [15:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:56]Read from MH i2c: E2 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 62 00 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 62 00 D8 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 41 69 01 00 0E 04 04 00 FA 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 CC [15: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 41 69 01 00 0E 04 04 00 FA 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:35:56]wFMCommunicate OK [15:35:56]SAM_PROTO_GetFieldsCounters done [15:35:56]requested_item shift.num is exist - process it [15:35:56]requested_item shift.opened is exist - process it [15:35:56]req_shift_opened [15:35:56]FM_GetShiftState [15:35:56]SAM_PROTO_GetShiftState [15:35:56]wFMCommunicate request_size=4 [15:35:56]MH_SAM_APDU [15:35:56]CAPDU: 80 13 01 00 [15:35:56]Write to MH i2c: E2 08 00 D9 27 80 13 01 00 00 00 00 00 7D [15:35:56]Write i2c OK [15:35:56]MH_I2C_Read... [15:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:56]Read from MH i2c: E2 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 0E 00 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 0E 00 D9 27 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 17 [15:35:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:35:56]wFMCommunicate OK [15:35:56]SAM_PROTO_GetShiftState done [15:35:56]FM_GetShiftState done [15:35:56]req_shift_opened done [15:35:56]requested_item shift.open_date is exist - process it [15:35:56]req_shift_open_date [15:35:56]req_shift_open_date done [15:35:56]produce_requested_data done [15:35:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92481,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:35:56]process_action_free close_receipt [15:35:56]json_value_free [15:35:56]json_value_free done [15:35:56]process_json_proto returns [15:35:56]Send response to host [15:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92481,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:35:56]free response buf [15:35:56]execute_script done [15:35:56]execute_script returns [15:35:56]free content buf [15:35:56]Sock 8.Close socket [15:35:56]Sock 8.Thread stoped [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:10]accept exits with 9 [15:38:10]New connection [15:38:10]New thread 3066658148 created [15:38:10]Thread 3066801508 joined [15:38:10]Waiting for new connection... [15:38:10] Sock 9.Parse request [15:38:10]Sock 9.Check first char [15:38:10]Sock 9.First char is OK [15:38:10]request: POST /json_proto HTTP/1.0 [15:38:10]Method: POST [15:38:10]URL: /json_proto [15:38:10]Method is POST - this is cgi request [15:38:10]url: /json_proto [15:38:10]query_string will be loaded in cgi processing [15:38:10]execute_cgi json_proto POST (null) [15:38:10]execute_cgi path=json_proto method=POST [15:38:10]POST find Content-Length [15:38:10]Host: 172.17.57.71:8080 [15:38:10]Content-Length: 694 [15:38:10]Content-Type: application/json [15:38:10] [15:38:10]POST finish read [15:38:10]Found Content-Length = 694 [15:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127387", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:10]execute_script... [15:38: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)127387", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:10]POST & json_proto [15:38:10]process_json_proto [15:38:10]json parsed OK: [15:38:10]protocol is kg_v1.0 [15:38:10]action value=close_receipt [15:38:10]process_action close_receipt [15:38:10]cmd_close_receipt [15:38:10]MH_GetDate [15:38:10]Write to MH i2c: F0 00 00 DA 27 F0 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: F0 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: F0 09 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: F0 09 00 DA 27 00 E5 AD E5 66 33 3A A4 66 4D [15:38:10]GetLastDocTimeStamp 1726328154 [15:38:10]current date 1726328293 [15:38:10]FM_GetShiftState [15:38:10]SAM_PROTO_GetShiftState [15:38:10]wFMCommunicate request_size=4 [15:38:10]MH_SAM_APDU [15:38:10]CAPDU: 80 13 01 00 [15:38:10]Write to MH i2c: E2 08 00 DB 27 80 13 01 00 00 00 00 00 7F [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 0E 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 0E 00 DB 27 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 19 [15:38:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:38:10]wFMCommunicate OK [15:38:10]SAM_PROTO_GetShiftState done [15:38:10]FM_GetShiftState done [15:38:10]opened in 1726273389 [15:38:10]opened+sec_in_day 1726359789 [15:38:10]quantity*price = 6500 [15:38:10]sum+1 = 6501 [15:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 133 14.09.2024 15:38 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92482 ФПД: 8147080117591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T153813&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92482&fm=8147080117591&tin=02508201610067®Number=0000000000091423&sum=6500 0 [15:38:11]StoreToDocumentArchive [15:38:11]shift 506 fd 92482 [15:38:11]save to /storage/0506/doc_00092482 [15:38:11]save last doc name /storage/0506/doc_00092482 to /storage/kkm_last_doc_name [15:38:11]save OK [15:38:11]Clear old archive folders... [15:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=297 [15:38:11]tlvbuf is 00F83430 [15:38:11]SAM_PROTO_ClearQueue [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 09 00 00 [15:38:11]Write to MH i2c: E2 08 00 E8 27 80 09 00 00 00 00 00 00 81 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 E8 27 00 90 00 83 [15:38:11]RAPDU: 90 00 [15:38:11]wFMCommunicate OK [15:38:11]SAM_PROTO_ClearQueue done [15:38:11]KKMCreateOFDPacket [15:38:11]OFDProtocolAddRootSTLVToBuf [15:38:11]FM_MakeSignedData [15:38:11]FM_MakeSignedData [15:38:11]SAM_PROTO_SignData [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 0D 01 02 [15:38:11]Write to MH i2c: E2 08 00 E9 27 80 0D 01 02 00 00 00 00 89 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 E9 27 00 90 00 84 [15:38:11]RAPDU: 90 00 [15:38:11]wFMCommunicate OK [15:38:11]wFMCommunicate request_size=255 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 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 85 00 00 00 F4 03 04 00 E5 AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [15:38:11]Write to MH i2c: E2 02 01 EA 27 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 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 85 00 00 00 F4 03 04 00 E5 AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 E1 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 EA 27 00 90 00 85 [15:38:11]RAPDU: 90 00 [15:38:11]wFMCommunicate OK [15:38:11]wFMCommunicate request_size=56 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 42 69 01 00 35 04 06 00 07 68 E3 D0 FD 57 [15:38:11]Write to MH i2c: E2 3B 00 EB 27 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 42 69 01 00 35 04 06 00 07 68 E3 D0 FD 57 00 00 37 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 EB 27 00 90 00 86 [15:38:11]RAPDU: 90 00 [15:38:11]wFMCommunicate OK [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 0D 03 02 [15:38:11]Write to MH i2c: E2 08 00 EC 27 80 0D 03 02 00 00 00 00 8E [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 0B 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 0B 00 EC 27 00 E0 7C F5 B3 93 97 14 5A 90 00 2B [15:38:11]RAPDU: E0 7C F5 B3 93 97 14 5A 90 00 [15:38:11]wFMCommunicate OK [15:38:11]SAM_PROTO_SignData done [15:38:11]FM_MakeSignedData done [15:38:11]CreateOFDProtocolMessage [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 11 00 00 [15:38:11]Write to MH i2c: E2 08 00 ED 27 80 11 00 00 00 00 00 00 8E [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 17 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 17 00 ED 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E5 [15:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:38:11]wFMCommunicate OK [15:38:11]CreateOFDProtocolMessage done [15:38:11]OFDSenderStorePacket 92482 [15:38:11]StoreOFDPacket docnum=92482 [15:38:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 F2 FF 35 01 50 8C 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 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 85 00 00 00 F4 03 04 00 E5 AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 42 69 01 00 35 04 06 00 07 68 E3 D0 FD 57 E0 7C F5 B3 93 97 14 5A [15:38:11]CheckFolder [15:38:11]dirname=/storage/ofd_packets [15:38:11]CheckFolder done [15:38:11]ProducePacketName [15:38:11]name=ofd_packets/00092482 [15:38:11]NVStorageSaveData ofd_packets/00092482 [15:38:11]File name is /storage/ofd_packets/00092482 [15:38:11]Write 347 bytes [15:38:11]NVStorageSaveData done [15:38:11]OFDSenderStorePacket done [15:38:11]KKMCreateOFDPacket done [15:38:11]NVStorageSaveData kkm_last_timestamp [15:38:11]File name is /storage/kkm_last_timestamp [15:38:11]Write 4 bytes [15:38:11]NVStorageSaveData done [15:38:11]ExternCall_PrintAddStr [15:38:11]wPrintStart [15:38:11]Write to MH i2c: 01 00 00 EE 27 15 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: 01 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: 01 07 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: 01 07 00 EE 27 00 00 00 00 00 FF 0F 2A [15:38:11]RasterBufferAndPrint [15:38:11]line Счет N : (3)127387 [15:38:11]line ИНН: 02508201610067 [15:38:11]line Контрольно-Кассовый Чек [15:38:11]line ПРОДАЖА [15:38:11]line Товар: 4870001571535 [15:38:11]line Вода ASU пит н.газ персик ПЭТ 0,5л [15:38:11]line 1.000 * 65.00 [15:38:11]line = 65.00 [15:38:11]line НДС 12% НСП 1% [15:38:11]line > о реализуемом товаре [15:38:11]line ИТОГО: 65.00 [15:38:11]line НСП 1% : 0.57 [15:38:11]line НДС 12% : 6.90 [15:38:11]line Наличными: 65.00 [15:38:11]line Безнал.: 0.00 [15:38:11]line Место: АЗС № 5 "Партнер Нефть" [15:38:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:38:11]line СНО: Общий режим [15:38:11]line Чек 133 14.09.2024 15:38 [15:38:11]line Смена: 506 ФФД: 1.0 [15:38:11]line ЗНМ: 03000000022 [15:38:11]line РНМ: 0000000000091423 [15:38:11]line Версия ККМ: 001 [15:38:11]line ФМ: 0000000000874692 [15:38:11]line ФД: 92482 [15:38:11]line ФПД: 8147080117591 [15:38:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T153813&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92482&fm=8147080117591&tin=02508201610067®Number=0000000000091423&sum=6500 [15:38:12]OFD Sender: Processing packet 92482 [packets to send 63, broken 62] [15:38:12]ProducePacketName [15:38:12]name=ofd_packets/00092482 [15:38:12]OFD Sender: To server: pG, [15:38:12]CommunicateWithHost lk.salyk.kg:30040 [15:38:12]ConnectInit lk.salyk.kg [15:38:12]line 0 [15:38:12]written 0, free lines is 4095 [15:38:12]Connected sock=10 [15:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3D 01 00 00 F2 FF 35 01 50 8C 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 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 85 00 00 00 F4 03 04 00 E5 AD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 42 69 01 00 35 04 06 00 07 68 E3 D0 FD 57 E0 7C F5 B3 93 97 14 5A [15:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E6 32 47 00 8B C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 42 69 01 00 F4 03 04 00 60 56 E5 66 B6 04 01 00 00 74 74 C9 E3 35 A4 89 07 [15:38:12]CommunicateWithHost err = 0 [15:38:12]CheckOFDResponse [15:38:12]1017 (14) - 77093643461234 [15:38:12]1041 (16) - 0000000000874692 [15:38:12]1040 (4) - 92482 [15:38:12]1012 (4) - 14.09.2024 09:24 [15:38:12]1206 (1) - 0 [15:38:12]OFD Sender: Remove packet 92482 [15:38:12]ProducePacketName [15:38:12]name=ofd_packets/00092482 [15:38:12]NVStorageDeleteData [15:38:12]Write to MH i2c: 01 00 00 17 28 3F [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 07 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 07 00 17 28 00 00 00 00 00 0D 0D 60 [15:38:12]RasterBufferAndPrint [15:38:12]line [15:38:12]line [15:38:12]line [15:38:12]line [15:38:12]line [15:38:12]written 0, free lines is 3349 [15:38:12]MH_Cut [15:38:12]Write to MH i2c: D1 01 00 1E 28 01 18 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: D1 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: D1 01 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: D1 01 00 1E 28 00 17 [15:38:12]Write to MH i2c: 01 00 00 1F 28 47 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]OFD Sender: No OFD packet to send [15:38:13]*** Cut start [15:38:13]*** Purtial cut [15:38:13]*** Stage 1: CUTSNS_PIN = 1 [15:38:15]Read from MH i2c: 01 [15:38:15]MH_I2C_Read... [15:38:15]*** Stop cut motor [15:38:15]*** Cut end [15:38:15]Read from MH i2c: 01 07 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: 01 07 00 1F 28 00 00 00 00 00 FF 0F 5C [15:38:15]process_action close_receipt done [15:38:15]requested_data is exist [15:38:15]produce_requested_data [15:38:15]requested_item fm.sn is exist - process it [15:38:15]wFMCommunicate request_size=4 [15:38:15]MH_SAM_APDU [15:38:15]CAPDU: 80 11 00 00 [15:38:15]Write to MH i2c: E2 08 00 20 28 80 11 00 00 00 00 00 00 C2 [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:15]Read from MH i2c: E2 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 17 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 17 00 20 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 19 [15:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:38:15]wFMCommunicate OK [15:38:15]requested_item fd.num is exist - process it [15:38:15]SAM_PROTO_GetFieldsCounters [15:38:15]wFMCommunicate request_size=4 [15:38:15]MH_SAM_APDU [15:38:15]CAPDU: 80 13 00 00 [15:38:15]Write to MH i2c: E2 08 00 21 28 80 13 00 00 00 00 00 00 C5 [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:15]Read from MH i2c: E2 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 62 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 62 00 21 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 42 69 01 00 0E 04 04 00 FA 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 1A [15:38:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 42 69 01 00 0E 04 04 00 FA 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:38:15]wFMCommunicate OK [15:38:15]SAM_PROTO_GetFieldsCounters done [15:38:15]requested_item shift.num is exist - process it [15:38:15]requested_item shift.opened is exist - process it [15:38:15]req_shift_opened [15:38:15]FM_GetShiftState [15:38:15]SAM_PROTO_GetShiftState [15:38:15]wFMCommunicate request_size=4 [15:38:15]MH_SAM_APDU [15:38:15]CAPDU: 80 13 01 00 [15:38:15]Write to MH i2c: E2 08 00 22 28 80 13 01 00 00 00 00 00 C7 [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:15]Read from MH i2c: E2 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 0E 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: E2 0E 00 22 28 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 61 [15:38:15]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:38:15]wFMCommunicate OK [15:38:15]SAM_PROTO_GetShiftState done [15:38:15]FM_GetShiftState done [15:38:15]req_shift_opened done [15:38:15]requested_item shift.open_date is exist - process it [15:38:15]req_shift_open_date [15:38:15]req_shift_open_date done [15:38:15]produce_requested_data done [15:38:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92482,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:38:15]process_action_free close_receipt [15:38:15]json_value_free [15:38:15]json_value_free done [15:38:15]process_json_proto returns [15:38:15]Send response to host [15:38:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92482,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:38:15]free response buf [15:38:15]execute_script done [15:38:15]execute_script returns [15:38:15]free content buf [15:38:15]Sock 9.Close socket [15:38:15]Sock 9.Thread stoped [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [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]accept exits with 8 [15:44:43]New connection [15:44:43]New thread 3066801508 created [15:44:43]Thread 3066658148 joined [15:44:43]Waiting for new connection... [15:44:43] Sock 8.Parse request [15:44:43]Sock 8.Check first char [15:44:43]Sock 8.First char is OK [15:44:43]request: POST /json_proto HTTP/1.0 [15:44:43]Method: POST [15:44:43]URL: /json_proto [15:44:43]Method is POST - this is cgi request [15:44:43]url: /json_proto [15:44:43]query_string will be loaded in cgi processing [15:44:43]execute_cgi json_proto POST (null) [15:44:43]execute_cgi path=json_proto method=POST [15:44:43]POST find Content-Length [15:44:43]Host: 172.17.57.71:8080 [15:44:43]Content-Length: 1150 [15:44:43]Content-Type: application/json [15:44:43] [15:44:43]POST finish read [15:44:43]Found Content-Length = 1150 [15:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127388", "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" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 252.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:43]execute_script... [15: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)127388", "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" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 252.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:43]POST & json_proto [15:44:43]process_json_proto [15:44:43]json parsed OK: [15:44:43]protocol is kg_v1.0 [15:44:43]action value=close_receipt [15:44:43]process_action close_receipt [15:44:43]cmd_close_receipt [15:44:43]MH_GetDate [15:44:43]Write to MH i2c: F0 00 00 23 28 3A [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: F0 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: F0 09 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: F0 09 00 23 28 00 6F AF E5 66 33 3A A4 66 23 [15:44:43]GetLastDocTimeStamp 1726328293 [15:44:43]current date 1726328687 [15:44:43]FM_GetShiftState [15:44:43]SAM_PROTO_GetShiftState [15:44:43]wFMCommunicate request_size=4 [15:44:43]MH_SAM_APDU [15:44:43]CAPDU: 80 13 01 00 [15:44:43]Write to MH i2c: E2 08 00 24 28 80 13 01 00 00 00 00 00 C9 [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:43]Read from MH i2c: E2 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 0E 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 0E 00 24 28 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 63 [15:44:43]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:44:43]wFMCommunicate OK [15:44:43]SAM_PROTO_GetShiftState done [15:44:43]FM_GetShiftState done [15:44:43]opened in 1726273389 [15:44:43]opened+sec_in_day 1726359789 [15:44:43]quantity*price = 8200 [15:44:43]sum+1 = 8201 [15:44:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 252.00 НСП 1% : 2.23 НДС 12% : 26.76 Наличными: 0.00 Безнал.: 252.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 134 14.09.2024 15:44 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92483 ФПД: 148424170019656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T154447&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92483&fm=148424170019656&tin=02508201610067®Number=0000000000091423&sum=25200 0 [15:44:44]StoreToDocumentArchive [15:44:44]shift 506 fd 92483 [15:44:44]save to /storage/0506/doc_00092483 [15:44:44]save last doc name /storage/0506/doc_00092483 to /storage/kkm_last_doc_name [15:44:44]save OK [15:44:44]Clear old archive folders... [15:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=410 [15:44:44]tlvbuf is 0102B7D0 [15:44:44]SAM_PROTO_ClearQueue [15:44:44]wFMCommunicate request_size=4 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 09 00 00 [15:44:44]Write to MH i2c: E2 08 00 31 28 80 09 00 00 00 00 00 00 CB [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 31 28 00 90 00 CD [15:44:44]RAPDU: 90 00 [15:44:44]wFMCommunicate OK [15:44:44]SAM_PROTO_ClearQueue done [15:44:44]KKMCreateOFDPacket [15:44:44]OFDProtocolAddRootSTLVToBuf [15:44:44]FM_MakeSignedData [15:44:44]FM_MakeSignedData [15:44:44]SAM_PROTO_SignData [15:44:44]wFMCommunicate request_size=4 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 0D 01 02 [15:44:44]Write to MH i2c: E2 08 00 32 28 80 0D 01 02 00 00 00 00 D3 [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 32 28 00 90 00 CE [15:44:44]RAPDU: 90 00 [15:44:44]wFMCommunicate OK [15:44:44]wFMCommunicate request_size=255 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 0D 02 02 FA 03 00 9A 01 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 08 20 00 00 00 00 13 04 06 00 08 20 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 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [15:44:44]Write to MH i2c: E2 02 01 33 28 80 0D 02 02 FA 00 03 00 9A 01 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 08 20 00 00 00 00 13 04 06 00 08 20 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 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 D5 [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 33 28 00 90 00 CF [15:44:44]RAPDU: 90 00 [15:44:44]wFMCommunicate OK [15:44:44]wFMCommunicate request_size=169 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 0D 02 02 A4 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 6F AF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 69 01 00 35 04 06 00 86 FD B1 EE 1B 48 [15:44:44]Write to MH i2c: E2 AC 00 34 28 80 0D 02 02 A4 00 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 6F AF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 69 01 00 35 04 06 00 86 FD B1 EE 1B 48 00 00 7F [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 03 00 34 28 00 90 00 D0 [15:44:44]RAPDU: 90 00 [15:44:44]wFMCommunicate OK [15:44:44]wFMCommunicate request_size=4 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 0D 03 02 [15:44:44]Write to MH i2c: E2 08 00 35 28 80 0D 03 02 00 00 00 00 D8 [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:44]Read from MH i2c: E2 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 0B 00 [15:44:44]MH_I2C_Read... [15:44:44]Read from MH i2c: E2 0B 00 35 28 00 84 4A 23 F1 8C ED 6A A8 90 00 46 [15:44:44]RAPDU: 84 4A 23 F1 8C ED 6A A8 90 00 [15:44:44]wFMCommunicate OK [15:44:44]SAM_PROTO_SignData done [15:44:44]FM_MakeSignedData done [15:44:44]CreateOFDProtocolMessage [15:44:44]wFMCommunicate request_size=4 [15:44:44]MH_SAM_APDU [15:44:44]CAPDU: 80 11 00 00 [15:44:44]Write to MH i2c: E2 08 00 36 28 80 11 00 00 00 00 00 00 D8 [15:44:44]Write i2c OK [15:44:44]MH_I2C_Read... [15:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:45]Read from MH i2c: E2 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 17 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 17 00 36 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2F [15:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:44:45]wFMCommunicate OK [15:44:45]CreateOFDProtocolMessage done [15:44:45]OFDSenderStorePacket 92483 [15:44:45]StoreOFDPacket docnum=92483 [15:44:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AE 01 00 00 65 10 A6 01 82 1C 5A 03 01 00 03 00 9A 01 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 08 20 00 00 00 00 13 04 06 00 08 20 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 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 6F AF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 69 01 00 35 04 06 00 86 FD B1 EE 1B 48 84 4A 23 F1 8C ED 6A A8 [15:44:45]CheckFolder [15:44:45]dirname=/storage/ofd_packets [15:44:45]CheckFolder done [15:44:45]ProducePacketName [15:44:45]name=ofd_packets/00092483 [15:44:45]NVStorageSaveData ofd_packets/00092483 [15:44:45]File name is /storage/ofd_packets/00092483 [15:44:45]Write 460 bytes [15:44:45]NVStorageSaveData done [15:44:45]OFDSenderStorePacket done [15:44:45]KKMCreateOFDPacket done [15:44:45]NVStorageSaveData kkm_last_timestamp [15:44:45]File name is /storage/kkm_last_timestamp [15:44:45]Write 4 bytes [15:44:45]NVStorageSaveData done [15:44:45]ExternCall_PrintAddStr [15:44:45]wPrintStart [15:44:45]Write to MH i2c: 01 00 00 37 28 5F [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 37 28 00 00 00 00 00 FF 0F 74 [15:44:45]RasterBufferAndPrint [15:44:45]line Счет N : (3)127388 [15:44:45]line ИНН: 02508201610067 [15:44:45]line Контрольно-Кассовый Чек [15:44:45]line ПРОДАЖА [15:44:45]line Товар: 4700000480364 [15:44:45]line Напиток энерг Nitro экзотик 0.45 ж/б [15:44:45]line 1.000 * 82.00 [15:44:45]line = 82.00 [15:44:45]line НДС 12% НСП 1% [15:44:45]line > о реализуемом товаре [15:44:45]line Товар: 5449000000996 [15:44:45]line Напиток Кока-Кола 0,33л [15:44:45]line 2.000 * 85.00 [15:44:45]line = 170.00 [15:44:45]line НДС 12% НСП 1% [15:44:45]line > о реализуемом товаре [15:44:45]line ИТОГО: 252.00 [15:44:45]line НСП 1% : 2.23 [15:44:45]line НДС 12% : 26.76 [15:44:45]line Наличными: 0.00 [15:44:45]line Безнал.: 252.00 [15:44:45]line Место: АЗС № 5 "Партнер Нефть" [15:44:45]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:44:45]line СНО: Общий режим [15:44:45]line Чек 134 14.09.2024 15:44 [15:44:45]line Смена: 506 ФФД: 1.0 [15:44:45]line ЗНМ: 03000000022 [15:44:45]line РНМ: 0000000000091423 [15:44:45]line Версия ККМ: 001 [15:44:45]line Платежная система: Бакай Банк [15:44:45]line ФМ: 0000000000874692 [15:44:45]line ФД: 92483 [15:44:45]line ФПД: 148424170019656 [15:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T154447&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92483&fm=148424170019656&tin=02508201610067®Number=0000000000091423&sum=25200 [15:44:45]line 0 [15:44:45]written 0, free lines is 4095 [15:44:45]OFD Sender: Processing packet 92483 [packets to send 63, broken 62] [15:44:45]ProducePacketName [15:44:45]name=ofd_packets/00092483 [15:44:45]OFD Sender: To server: pG, [15:44:45]CommunicateWithHost lk.salyk.kg:30040 [15:44:45]ConnectInit lk.salyk.kg [15:44:45]Connected sock=10 [15: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 34 36 39 32 AE 01 00 00 65 10 A6 01 82 1C 5A 03 01 00 03 00 9A 01 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 08 20 00 00 00 00 13 04 06 00 08 20 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 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 6F AF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 69 01 00 35 04 06 00 86 FD B1 EE 1B 48 84 4A 23 F1 8C ED 6A A8 [15:44:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1A 46 47 00 AF 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 43 69 01 00 F4 03 04 00 EA 57 E5 66 B6 04 01 00 00 A2 FC 0F 13 8A 1A A3 5B [15:44:45]CommunicateWithHost err = 0 [15:44:45]CheckOFDResponse [15:44:45]1017 (14) - 77093643461234 [15:44:45]1041 (16) - 0000000000874692 [15:44:45]1040 (4) - 92483 [15:44:45]1012 (4) - 14.09.2024 09:31 [15:44:45]1206 (1) - 0 [15:44:45]OFD Sender: Remove packet 92483 [15:44:45]ProducePacketName [15:44:45]name=ofd_packets/00092483 [15:44:45]NVStorageDeleteData [15:44:45]Write to MH i2c: 01 00 00 68 28 90 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 68 28 00 00 00 00 00 B4 0C 57 [15:44:45]RasterBufferAndPrint [15:44:45]line [15:44:45]line [15:44:45]line [15:44:45]line [15:44:45]line [15:44:45]written 0, free lines is 3259 [15:44:45]MH_Cut [15:44:45]Write to MH i2c: D1 01 00 6F 28 01 69 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: D1 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: D1 01 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: D1 01 00 6F 28 00 68 [15:44:45]Write to MH i2c: 01 00 00 70 28 98 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:46]OFD Sender: No OFD packet to send [15:44:46]*** Cut start [15:44:46]*** Purtial cut [15:44:46]*** Stage 1: CUTSNS_PIN = 1 [15:44:48]Read from MH i2c: 01 [15:44:48]MH_I2C_Read... [15:44:48]*** Stop cut motor [15:44:48]*** Cut end [15:44:48]Read from MH i2c: 01 07 00 [15:44:48]MH_I2C_Read... [15:44:48]Read from MH i2c: 01 07 00 70 28 00 00 00 00 00 FF 0F AD [15:44:48]process_action close_receipt done [15:44:48]requested_data is exist [15:44:48]produce_requested_data [15:44:48]requested_item fm.sn is exist - process it [15:44:48]wFMCommunicate request_size=4 [15:44:48]MH_SAM_APDU [15:44:48]CAPDU: 80 11 00 00 [15:44:48]Write to MH i2c: E2 08 00 71 28 80 11 00 00 00 00 00 00 13 [15:44:48]Write i2c OK [15:44:48]MH_I2C_Read... [15:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:48]Read from MH i2c: E2 [15:44:48]MH_I2C_Read... [15:44:48]Read from MH i2c: E2 17 00 [15:44:48]MH_I2C_Read... [15:44:48]Read from MH i2c: E2 17 00 71 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6A [15:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:44:48]wFMCommunicate OK [15:44:48]requested_item fd.num is exist - process it [15:44:48]SAM_PROTO_GetFieldsCounters [15:44:48]wFMCommunicate request_size=4 [15:44:48]MH_SAM_APDU [15:44:48]CAPDU: 80 13 00 00 [15:44:48]Write to MH i2c: E2 08 00 72 28 80 13 00 00 00 00 00 00 16 [15:44:48]Write i2c OK [15:44:48]MH_I2C_Read... [15:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:48]Read from MH i2c: E2 [15:44:48]MH_I2C_Read... [15:44:48]Read from MH i2c: E2 62 00 [15:44:48]MH_I2C_Read... [15:44:48]Read from MH i2c: E2 62 00 72 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 43 69 01 00 0E 04 04 00 FA 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 6F [15:44:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 43 69 01 00 0E 04 04 00 FA 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:44:48]wFMCommunicate OK [15:44:48]SAM_PROTO_GetFieldsCounters done [15:44:48]requested_item shift.num is exist - process it [15:44:48]requested_item shift.opened is exist - process it [15:44:48]req_shift_opened [15:44:48]FM_GetShiftState [15:44:48]SAM_PROTO_GetShiftState [15:44:48]wFMCommunicate request_size=4 [15:44:48]MH_SAM_APDU [15:44:48]CAPDU: 80 13 01 00 [15:44:48]Write to MH i2c: E2 08 00 73 28 80 13 01 00 00 00 00 00 18 [15:44:48]Write i2c OK [15:44:48]MH_I2C_Read... [15:44:48]Read from MH i2c: E2 [15:44:48]MH_I2C_Read... [15:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:48]Read from MH i2c: E2 0E 00 [15:44:48]MH_I2C_Read... [15:44:48]Read from MH i2c: E2 0E 00 73 28 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B2 [15:44:48]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:44:48]wFMCommunicate OK [15:44:48]SAM_PROTO_GetShiftState done [15:44:48]FM_GetShiftState done [15:44:48]req_shift_opened done [15:44:48]requested_item shift.open_date is exist - process it [15:44:48]req_shift_open_date [15:44:48]req_shift_open_date done [15:44:48]produce_requested_data done [15:44:48]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92483,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:44:48]process_action_free close_receipt [15:44:48]json_value_free [15:44:48]json_value_free done [15:44:48]process_json_proto returns [15:44:48]Send response to host [15:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92483,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:44:48]free response buf [15:44:48]execute_script done [15:44:48]execute_script returns [15:44:48]free content buf [15:44:48]Sock 8.Close socket [15:44:48]Sock 8.Thread stoped [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:45:56]accept exits with 9 [15:45:56]New connection [15:45:56]New thread 3066658148 created [15:45:56]Thread 3066801508 joined [15:45:56]Waiting for new connection... [15:45:56] Sock 9.Parse request [15:45:56]Sock 9.Check first char [15:45:56]Sock 9.First char is OK [15:45:56]request: POST /json_proto HTTP/1.0 [15:45:56]Method: POST [15:45:56]URL: /json_proto [15:45:56]Method is POST - this is cgi request [15:45:56]url: /json_proto [15:45:56]query_string will be loaded in cgi processing [15:45:56]execute_cgi json_proto POST (null) [15:45:56]execute_cgi path=json_proto method=POST [15:45:56]POST find Content-Length [15:45:56]Host: 172.17.57.71:8080 [15:45:56]Content-Length: 1316 [15:45:56]Content-Type: application/json [15:45:56] [15:45:56]POST finish read [15:45:56]Found Content-Length = 1316 [15:45:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127389", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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 }]} ,{ "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" : 308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:56]execute_script... [15:45: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)127389", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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 }]} ,{ "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" : 308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:56]POST & json_proto [15:45:56]process_json_proto [15:45:56]json parsed OK: [15:45:56]protocol is kg_v1.0 [15:45:56]action value=close_receipt [15:45:56]process_action close_receipt [15:45:56]cmd_close_receipt [15:45:56]MH_GetDate [15:45:56]Write to MH i2c: F0 00 00 74 28 8B [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: F0 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: F0 09 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: F0 09 00 74 28 00 B8 AF E5 66 33 3A A4 66 BD [15:45:56]GetLastDocTimeStamp 1726328687 [15:45:56]current date 1726328760 [15:45:56]FM_GetShiftState [15:45:56]SAM_PROTO_GetShiftState [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 13 01 00 [15:45:56]Write to MH i2c: E2 08 00 75 28 80 13 01 00 00 00 00 00 1A [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 0E 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 0E 00 75 28 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B4 [15:45:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:45:56]wFMCommunicate OK [15:45:56]SAM_PROTO_GetShiftState done [15:45:56]FM_GetShiftState done [15:45:56]opened in 1726273389 [15:45:56]opened+sec_in_day 1726359789 [15:45:56]quantity*price = 15500 [15:45:56]sum+1 = 15501 [15:45:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 308.00 НСП 1% : 2.73 НДС 12% : 32.70 Наличными: 308.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 135 14.09.2024 15:46 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92484 ФПД: 207232762757824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T154600&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92484&fm=207232762757824&tin=02508201610067®Number=0000000000091423&sum=30800 0 [15:45:57]StoreToDocumentArchive [15:45:57]shift 506 fd 92484 [15:45:57]save to /storage/0506/doc_00092484 [15:45:57]save last doc name /storage/0506/doc_00092484 to /storage/kkm_last_doc_name [15:45:57]save OK [15:45:57]Clear old archive folders... [15:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=539 [15:45:57]tlvbuf is 01048C00 [15:45:57]SAM_PROTO_ClearQueue [15:45:57]wFMCommunicate request_size=4 [15:45:57]MH_SAM_APDU [15:45:57]CAPDU: 80 09 00 00 [15:45:57]Write to MH i2c: E2 08 00 82 28 80 09 00 00 00 00 00 00 1C [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:57]Read from MH i2c: E2 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 03 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 03 00 82 28 00 90 00 1E [15:45:57]RAPDU: 90 00 [15:45:57]wFMCommunicate OK [15:45:57]SAM_PROTO_ClearQueue done [15:45:57]KKMCreateOFDPacket [15:45:57]OFDProtocolAddRootSTLVToBuf [15:45:57]FM_MakeSignedData [15:45:57]FM_MakeSignedData [15:45:57]SAM_PROTO_SignData [15:45:57]wFMCommunicate request_size=4 [15:45:57]MH_SAM_APDU [15:45:57]CAPDU: 80 0D 01 02 [15:45:57]Write to MH i2c: E2 08 00 83 28 80 0D 01 02 00 00 00 00 24 [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:57]Read from MH i2c: E2 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 03 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 03 00 83 28 00 90 00 1F [15:45:57]RAPDU: 90 00 [15:45:57]wFMCommunicate OK [15:45:57]wFMCommunicate request_size=255 [15:45:57]MH_SAM_APDU [15:45:57]CAPDU: 80 0D 02 02 FA 03 00 1B 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [15:45:57]Write to MH i2c: E2 02 01 84 28 80 0D 02 02 FA 00 03 00 1B 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 98 [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 84 28 00 90 00 20 [15:45:58]RAPDU: 90 00 [15:45:58]wFMCommunicate OK [15:45:58]wFMCommunicate request_size=255 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 0D 02 02 FA 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 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 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 B8 AF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [15:45:58]Write to MH i2c: E2 02 01 85 28 80 0D 02 02 FA 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 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 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 B8 AF E5 66 0E 04 04 00 FA 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 49 [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 85 28 00 90 00 21 [15:45:58]RAPDU: 90 00 [15:45:58]wFMCommunicate OK [15:45:58]wFMCommunicate request_size=48 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 0D 02 02 2B 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 69 01 00 35 04 06 00 BC 7A 23 35 C2 C0 [15:45:58]Write to MH i2c: E2 33 00 86 28 80 0D 02 02 2B 00 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 69 01 00 35 04 06 00 BC 7A 23 35 C2 C0 00 00 DF [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 03 00 86 28 00 90 00 22 [15:45:58]RAPDU: 90 00 [15:45:58]wFMCommunicate OK [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 0D 03 02 [15:45:58]Write to MH i2c: E2 08 00 87 28 80 0D 03 02 00 00 00 00 2A [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 0B 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 0B 00 87 28 00 C0 7F A0 15 D8 72 18 DA 90 00 5B [15:45:58]RAPDU: C0 7F A0 15 D8 72 18 DA 90 00 [15:45:58]wFMCommunicate OK [15:45:58]SAM_PROTO_SignData done [15:45:58]FM_MakeSignedData done [15:45:58]CreateOFDProtocolMessage [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 11 00 00 [15:45:58]Write to MH i2c: E2 08 00 88 28 80 11 00 00 00 00 00 00 2A [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 17 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 17 00 88 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 81 [15:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:45:58]wFMCommunicate OK [15:45:58]CreateOFDProtocolMessage done [15:45:58]OFDSenderStorePacket 92484 [15:45:58]StoreOFDPacket docnum=92484 [15:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2F 02 00 00 D2 F4 27 02 73 2F 5A 03 01 00 03 00 1B 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 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 B8 AF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 69 01 00 35 04 06 00 BC 7A 23 35 C2 C0 C0 7F A0 15 D8 72 18 DA [15:45:58]CheckFolder [15:45:58]dirname=/storage/ofd_packets [15:45:58]CheckFolder done [15:45:58]ProducePacketName [15:45:58]name=ofd_packets/00092484 [15:45:58]NVStorageSaveData ofd_packets/00092484 [15:45:58]File name is /storage/ofd_packets/00092484 [15:45:58]Write 589 bytes [15:45:58]NVStorageSaveData done [15:45:58]OFDSenderStorePacket done [15:45:58]KKMCreateOFDPacket done [15:45:58]NVStorageSaveData kkm_last_timestamp [15:45:58]File name is /storage/kkm_last_timestamp [15:45:58]Write 4 bytes [15:45:58]NVStorageSaveData done [15:45:58]ExternCall_PrintAddStr [15:45:58]wPrintStart [15:45:58]Write to MH i2c: 01 00 00 89 28 B1 [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: 01 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: 01 07 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: 01 07 00 89 28 00 00 00 00 00 FF 0F C6 [15:45:58]RasterBufferAndPrint [15:45:58]line Счет N : (3)127389 [15:45:58]line ИНН: 02508201610067 [15:45:58]line Контрольно-Кассовый Чек [15:45:58]line ПРОДАЖА [15:45:58]line Товар: 5449000000439 [15:45:58]line Напиток Кока-Кола 1,5л [15:45:58]line 1.000 * 155.00 [15:45:58]line = 155.00 [15:45:58]line НДС 12% НСП 1% [15:45:58]line > о реализуемом товаре [15:45:58]line Товар: 4870202521254 [15:45:58]line Чай холодный MAXI черный со вкусом клубн [15:45:58]line 1.000 * 125.00 [15:45:58]line = 125.00 [15:45:58]line НДС 12% НСП 1% [15:45:58]line > о реализуемом товаре [15:45:58]line Товар: 2000053020015 [15:45:58]line Бумажные стаканы 250мл 1шт [15:45:58]line 4.000 * 7.00 [15:45:58]line = 28.00 [15:45:58]line НДС 12% НСП 1% [15:45:58]line > о реализуемом товаре [15:45:58]line ИТОГО: 308.00 [15:45:58]line НСП 1% : 2.73 [15:45:58]line НДС 12% : 32.70 [15:45:58]line Наличными: 308.00 [15:45:58]line Безнал.: 0.00 [15:45:58]line Место: АЗС № 5 "Партнер Нефть" [15:45:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:45:58]line СНО: Общий режим [15:45:58]line Чек 135 14.09.2024 15:46 [15:45:58]line Смена: 506 ФФД: 1.0 [15:45:58]line ЗНМ: 03000000022 [15:45:58]line РНМ: 0000000000091423 [15:45:58]line Версия ККМ: 001 [15:45:58]line ФМ: 0000000000874692 [15:45:58]line ФД: 92484 [15:45:58]line ФПД: 207232762757824 [15:45:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T154600&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92484&fm=207232762757824&tin=02508201610067®Number=0000000000091423&sum=30800 [15:45:59]line 0 [15:45:59]OFD Sender: Processing packet 92484 [packets to send 63, broken 62] [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00092484 [15:45:59]OFD Sender: To server: pG, [15:45:59]CommunicateWithHost lk.salyk.kg:30040 [15:45:59]ConnectInit lk.salyk.kg [15:45:59]written 0, free lines is 4095 [15:45:59]Connected sock=10 [15:45:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2F 02 00 00 D2 F4 27 02 73 2F 5A 03 01 00 03 00 1B 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 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 B8 AF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 69 01 00 35 04 06 00 BC 7A 23 35 C2 C0 C0 7F A0 15 D8 72 18 DA [15:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 02 B0 47 00 51 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 44 69 01 00 F4 03 04 00 33 58 E5 66 B6 04 01 00 00 00 3A 5A EE C8 22 A6 0B [15:45:59]CommunicateWithHost err = 0 [15:45:59]CheckOFDResponse [15:45:59]1017 (14) - 77093643461234 [15:45:59]1041 (16) - 0000000000874692 [15:45:59]1040 (4) - 92484 [15:45:59]1012 (4) - 14.09.2024 09:32 [15:45:59]1206 (1) - 0 [15:45:59]OFD Sender: Remove packet 92484 [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00092484 [15:45:59]NVStorageDeleteData [15:45:59]Write to MH i2c: 01 00 00 BF 28 E7 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 BF 28 00 00 00 00 00 8C 0C 86 [15:45:59]RasterBufferAndPrint [15:45:59]line [15:45:59]line [15:45:59]line [15:45:59]line [15:45:59]line [15:45:59]written 0, free lines is 3218 [15:45:59]MH_Cut [15:45:59]Write to MH i2c: D1 01 00 C6 28 01 C0 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: D1 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: D1 01 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: D1 01 00 C6 28 00 BF [15:45:59]Write to MH i2c: 01 00 00 C7 28 EF [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]OFD Sender: No OFD packet to send [15:46:00]*** Cut start [15:46:00]*** Purtial cut [15:46:00]*** Stage 1: CUTSNS_PIN = 1 [15:46:02]Read from MH i2c: 01 [15:46:02]MH_I2C_Read... [15:46:02]*** Stop cut motor [15:46:02]*** Cut end [15:46:02]Read from MH i2c: 01 07 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: 01 07 00 C7 28 00 00 00 00 00 FF 0F 04 [15:46:02]process_action close_receipt done [15:46:02]requested_data is exist [15:46:02]produce_requested_data [15:46:02]requested_item fm.sn is exist - process it [15:46:02]wFMCommunicate request_size=4 [15:46:02]MH_SAM_APDU [15:46:02]CAPDU: 80 11 00 00 [15:46:02]Write to MH i2c: E2 08 00 C8 28 80 11 00 00 00 00 00 00 6A [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:02]Read from MH i2c: E2 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 17 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 17 00 C8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C1 [15:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:46:02]wFMCommunicate OK [15:46:02]requested_item fd.num is exist - process it [15:46:02]SAM_PROTO_GetFieldsCounters [15:46:02]wFMCommunicate request_size=4 [15:46:02]MH_SAM_APDU [15:46:02]CAPDU: 80 13 00 00 [15:46:02]Write to MH i2c: E2 08 00 C9 28 80 13 00 00 00 00 00 00 6D [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:02]Read from MH i2c: E2 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 62 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 62 00 C9 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 44 69 01 00 0E 04 04 00 FA 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 CA [15:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 44 69 01 00 0E 04 04 00 FA 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:46:02]wFMCommunicate OK [15:46:02]SAM_PROTO_GetFieldsCounters done [15:46:02]requested_item shift.num is exist - process it [15:46:02]requested_item shift.opened is exist - process it [15:46:02]req_shift_opened [15:46:02]FM_GetShiftState [15:46:02]SAM_PROTO_GetShiftState [15:46:02]wFMCommunicate request_size=4 [15:46:02]MH_SAM_APDU [15:46:02]CAPDU: 80 13 01 00 [15:46:02]Write to MH i2c: E2 08 00 CA 28 80 13 01 00 00 00 00 00 6F [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:02]Read from MH i2c: E2 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 0E 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 0E 00 CA 28 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 09 [15:46:02]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:46:02]wFMCommunicate OK [15:46:02]SAM_PROTO_GetShiftState done [15:46:02]FM_GetShiftState done [15:46:02]req_shift_opened done [15:46:02]requested_item shift.open_date is exist - process it [15:46:02]req_shift_open_date [15:46:02]req_shift_open_date done [15:46:02]produce_requested_data done [15:46:02]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92484,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:46:02]process_action_free close_receipt [15:46:02]json_value_free [15:46:02]json_value_free done [15:46:02]process_json_proto returns [15:46:02]Send response to host [15:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92484,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:46:02]free response buf [15:46:02]execute_script done [15:46:02]execute_script returns [15:46:02]free content buf [15:46:02]Sock 9.Close socket [15:46:02]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]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]accept exits with 8 [15:53:35]New connection [15:53:35]New thread 3066801508 created [15:53:35]Thread 3066658148 joined [15:53:35]Waiting for new connection... [15:53:35] Sock 8.Parse request [15:53:35]Sock 8.Check first char [15:53:35]Sock 8.First char is OK [15:53:35]request: POST /json_proto HTTP/1.0 [15:53:35]Method: POST [15:53:35]URL: /json_proto [15:53:35]Method is POST - this is cgi request [15:53:35]url: /json_proto [15:53:35]query_string will be loaded in cgi processing [15:53:35]execute_cgi json_proto POST (null) [15:53:35]execute_cgi path=json_proto method=POST [15:53:35]POST find Content-Length [15:53:35]Host: 172.17.57.71:8080 [15:53:35]Content-Length: 944 [15:53:35]Content-Type: application/json [15:53:35] [15:53:35]POST finish read [15:53:35]Found Content-Length = 944 [15:53:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127390", "tax_sys" : 0, "items" : [ { "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \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": "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" ] } } [15:53:35]execute_script... [15:53: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)127390", "tax_sys" : 0, "items" : [ { "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \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": "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" ] } } [15:53:35]POST & json_proto [15:53:35]process_json_proto [15:53:35]json parsed OK: [15:53:35]protocol is kg_v1.0 [15:53:35]action value=close_receipt [15:53:35]process_action close_receipt [15:53:35]cmd_close_receipt [15:53:35]MH_GetDate [15:53:35]Write to MH i2c: F0 00 00 CB 28 E2 [15:53:35]Write i2c OK [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: F0 [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: F0 09 00 [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: F0 09 00 CB 28 00 83 B1 E5 66 33 3A A4 66 E1 [15:53:35]GetLastDocTimeStamp 1726328760 [15:53:35]current date 1726329219 [15:53:35]FM_GetShiftState [15:53:35]SAM_PROTO_GetShiftState [15:53:35]wFMCommunicate request_size=4 [15:53:35]MH_SAM_APDU [15:53:35]CAPDU: 80 13 01 00 [15:53:35]Write to MH i2c: E2 08 00 CC 28 80 13 01 00 00 00 00 00 71 [15:53:35]Write i2c OK [15:53:35]MH_I2C_Read... [15:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:35]Read from MH i2c: E2 [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: E2 0E 00 [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: E2 0E 00 CC 28 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0B [15:53:35]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:53:35]wFMCommunicate OK [15:53:35]SAM_PROTO_GetShiftState done [15:53:35]FM_GetShiftState done [15:53:35]opened in 1726273389 [15:53:35]opened+sec_in_day 1726359789 [15:53:35]quantity*price = 9500 [15:53:35]sum+1 = 9501 [15:53:35]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 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 136 14.09.2024 15:53 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92485 ФПД: 26086200527004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T155339&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92485&fm=26086200527004&tin=02508201610067®Number=0000000000091423&sum=28000 0 [15:53:36]StoreToDocumentArchive [15:53:36]shift 506 fd 92485 [15:53:36]save to /storage/0506/doc_00092485 [15:53:36]save last doc name /storage/0506/doc_00092485 to /storage/kkm_last_doc_name [15:53:36]save OK [15:53:36]Clear old archive folders... [15:53:36]ProcessDocumentItem done err = 0, tmpTLVsize=404 [15:53:36]tlvbuf is B6F334A0 [15:53:36]SAM_PROTO_ClearQueue [15:53:36]wFMCommunicate request_size=4 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 09 00 00 [15:53:36]Write to MH i2c: E2 08 00 D9 28 80 09 00 00 00 00 00 00 73 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 D9 28 00 90 00 75 [15:53:36]RAPDU: 90 00 [15:53:36]wFMCommunicate OK [15:53:36]SAM_PROTO_ClearQueue done [15:53:36]KKMCreateOFDPacket [15:53:36]OFDProtocolAddRootSTLVToBuf [15:53:36]FM_MakeSignedData [15:53:36]FM_MakeSignedData [15:53:36]SAM_PROTO_SignData [15:53:36]wFMCommunicate request_size=4 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 0D 01 02 [15:53:36]Write to MH i2c: E2 08 00 DA 28 80 0D 01 02 00 00 00 00 7B [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 DA 28 00 90 00 76 [15:53:36]RAPDU: 90 00 [15:53:36]wFMCommunicate OK [15:53:36]wFMCommunicate request_size=255 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 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 [15:53:36]Write to MH i2c: E2 02 01 DB 28 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 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 78 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 DB 28 00 90 00 77 [15:53:36]RAPDU: 90 00 [15:53:36]wFMCommunicate OK [15:53:36]wFMCommunicate request_size=163 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 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 88 00 00 00 F4 03 04 00 83 B1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 69 01 00 35 04 06 00 17 B9 AA B7 48 9C [15:53:36]Write to MH i2c: E2 A6 00 DC 28 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 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 88 00 00 00 F4 03 04 00 83 B1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 69 01 00 35 04 06 00 17 B9 AA B7 48 9C 00 00 29 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 DC 28 00 90 00 78 [15:53:36]RAPDU: 90 00 [15:53:36]wFMCommunicate OK [15:53:36]wFMCommunicate request_size=4 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 0D 03 02 [15:53:36]Write to MH i2c: E2 08 00 DD 28 80 0D 03 02 00 00 00 00 80 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 0B 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 0B 00 DD 28 00 0E F2 0E E0 BC 5C B0 C3 90 00 FA [15:53:36]RAPDU: 0E F2 0E E0 BC 5C B0 C3 90 00 [15:53:36]wFMCommunicate OK [15:53:36]SAM_PROTO_SignData done [15:53:36]FM_MakeSignedData done [15:53:36]CreateOFDProtocolMessage [15:53:36]wFMCommunicate request_size=4 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 11 00 00 [15:53:36]Write to MH i2c: E2 08 00 DE 28 80 11 00 00 00 00 00 00 80 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 17 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 17 00 DE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D7 [15:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:53:36]wFMCommunicate OK [15:53:36]CreateOFDProtocolMessage done [15:53:36]OFDSenderStorePacket 92485 [15:53:36]StoreOFDPacket docnum=92485 [15:53:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A8 01 00 00 BA 3F A0 01 8C 32 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 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 88 00 00 00 F4 03 04 00 83 B1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 69 01 00 35 04 06 00 17 B9 AA B7 48 9C 0E F2 0E E0 BC 5C B0 C3 [15:53:36]CheckFolder [15:53:36]dirname=/storage/ofd_packets [15:53:36]CheckFolder done [15:53:36]ProducePacketName [15:53:36]name=ofd_packets/00092485 [15:53:36]NVStorageSaveData ofd_packets/00092485 [15:53:36]File name is /storage/ofd_packets/00092485 [15:53:36]Write 454 bytes [15:53:36]NVStorageSaveData done [15:53:36]OFDSenderStorePacket done [15:53:36]KKMCreateOFDPacket done [15:53:36]NVStorageSaveData kkm_last_timestamp [15:53:36]File name is /storage/kkm_last_timestamp [15:53:36]Write 4 bytes [15:53:36]NVStorageSaveData done [15:53:36]ExternCall_PrintAddStr [15:53:36]wPrintStart [15:53:36]Write to MH i2c: 01 00 00 DF 28 07 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 FF 0F 1C [15:53:36]RasterBufferAndPrint [15:53:36]line Счет N : (3)127390 [15:53:36]line ИНН: 02508201610067 [15:53:36]line Контрольно-Кассовый Чек [15:53:36]line ПРОДАЖА [15:53:36]line Товар: 4700000482733 [15:53:36]line Напиток Nitro Fr газ класс ж/б 0,45л [15:53:37]line 1.000 * 95.00 [15:53:37]line = 95.00 [15:53:37]line НДС 12% НСП 1% [15:53:37]line > о реализуемом товаре [15:53:37]line Товар: 90162602 [15:53:37]line Энерг напиток Red bull 0,25л [15:53:37]line 1.000 * 185.00 [15:53:37]line = 185.00 [15:53:37]line НДС 12% НСП 1% [15:53:37]line > о реализуемом товаре [15:53:37]line ИТОГО: 280.00 [15:53:37]line НСП 1% : 2.48 [15:53:37]line НДС 12% : 29.74 [15:53:37]line Наличными: 280.00 [15:53:37]line Безнал.: 0.00 [15:53:37]line Место: АЗС № 5 "Партнер Нефть" [15:53:37]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:53:37]line СНО: Общий режим [15:53:37]line Чек 136 14.09.2024 15:53 [15:53:37]line Смена: 506 ФФД: 1.0 [15:53:37]line ЗНМ: 03000000022 [15:53:37]line РНМ: 0000000000091423 [15:53:37]line Версия ККМ: 001 [15:53:37]line ФМ: 0000000000874692 [15:53:37]line ФД: 92485 [15:53:37]line ФПД: 26086200527004 [15:53:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T155339&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92485&fm=26086200527004&tin=02508201610067®Number=0000000000091423&sum=28000 [15:53:37]line 0 [15:53:37]OFD Sender: Processing packet 92485 [packets to send 63, broken 62] [15:53:37]ProducePacketName [15:53:37]name=ofd_packets/00092485 [15:53:37]OFD Sender: To server: pG, [15:53:37]CommunicateWithHost lk.salyk.kg:30040 [15:53:37]ConnectInit lk.salyk.kg [15:53:37]written 0, free lines is 4095 [15:53:37]Connected sock=10 [15:53:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A8 01 00 00 BA 3F A0 01 8C 32 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 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 88 00 00 00 F4 03 04 00 83 B1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 69 01 00 35 04 06 00 17 B9 AA B7 48 9C 0E F2 0E E0 BC 5C B0 C3 [15:53:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FA 21 47 00 58 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 45 69 01 00 F4 03 04 00 FE 59 E5 66 B6 04 01 00 00 51 5F EB D3 3A F4 E1 D1 [15:53:37]CommunicateWithHost err = 0 [15:53:37]CheckOFDResponse [15:53:37]1017 (14) - 77093643461234 [15:53:37]1041 (16) - 0000000000874692 [15:53:37]1040 (4) - 92485 [15:53:37]1012 (4) - 14.09.2024 09:40 [15:53:37]1206 (1) - 0 [15:53:37]OFD Sender: Remove packet 92485 [15:53:37]ProducePacketName [15:53:37]name=ofd_packets/00092485 [15:53:37]NVStorageDeleteData [15:53:37]Write to MH i2c: 01 00 00 0E 29 37 [15:53:37]Write i2c OK [15:53:37]MH_I2C_Read... [15:53:37]Read from MH i2c: 01 [15:53:37]MH_I2C_Read... [15:53:37]Read from MH i2c: 01 07 00 [15:53:37]MH_I2C_Read... [15:53:37]Read from MH i2c: 01 07 00 0E 29 00 00 00 00 00 D2 0C 1C [15:53:37]RasterBufferAndPrint [15:53:37]line [15:53:37]line [15:53:37]line [15:53:37]line [15:53:37]line [15:53:37]written 0, free lines is 3292 [15:53:37]MH_Cut [15:53:37]Write to MH i2c: D1 01 00 15 29 01 10 [15:53:37]Write i2c OK [15:53:37]MH_I2C_Read... [15:53:37]Read from MH i2c: D1 [15:53:37]MH_I2C_Read... [15:53:37]Read from MH i2c: D1 01 00 [15:53:37]MH_I2C_Read... [15:53:37]Read from MH i2c: D1 01 00 15 29 00 0F [15:53:37]Write to MH i2c: 01 00 00 16 29 3F [15:53:37]Write i2c OK [15:53:37]MH_I2C_Read... [15:53:38]OFD Sender: No OFD packet to send [15:53:38]*** Cut start [15:53:38]*** Purtial cut [15:53:38]*** Stage 1: CUTSNS_PIN = 1 [15:53:40]Read from MH i2c: 01 [15:53:40]MH_I2C_Read... [15:53:40]*** Stop cut motor [15:53:40]*** Cut end [15:53:40]Read from MH i2c: 01 07 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: 01 07 00 16 29 00 00 00 00 00 FF 0F 54 [15:53:40]process_action close_receipt done [15:53:40]requested_data is exist [15:53:40]produce_requested_data [15:53:40]requested_item fm.sn is exist - process it [15:53:40]wFMCommunicate request_size=4 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 11 00 00 [15:53:40]Write to MH i2c: E2 08 00 17 29 80 11 00 00 00 00 00 00 BA [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 17 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 17 00 17 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 11 [15:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:53:40]wFMCommunicate OK [15:53:40]requested_item fd.num is exist - process it [15:53:40]SAM_PROTO_GetFieldsCounters [15:53:40]wFMCommunicate request_size=4 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 13 00 00 [15:53:40]Write to MH i2c: E2 08 00 18 29 80 13 00 00 00 00 00 00 BD [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 62 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 62 00 18 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 45 69 01 00 0E 04 04 00 FA 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 1E [15:53:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 45 69 01 00 0E 04 04 00 FA 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:53:40]wFMCommunicate OK [15:53:40]SAM_PROTO_GetFieldsCounters done [15:53:40]requested_item shift.num is exist - process it [15:53:40]requested_item shift.opened is exist - process it [15:53:40]req_shift_opened [15:53:40]FM_GetShiftState [15:53:40]SAM_PROTO_GetShiftState [15:53:40]wFMCommunicate request_size=4 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 13 01 00 [15:53:40]Write to MH i2c: E2 08 00 19 29 80 13 01 00 00 00 00 00 BF [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 0E 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 0E 00 19 29 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 59 [15:53:40]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:53:40]wFMCommunicate OK [15:53:40]SAM_PROTO_GetShiftState done [15:53:40]FM_GetShiftState done [15:53:40]req_shift_opened done [15:53:40]requested_item shift.open_date is exist - process it [15:53:40]req_shift_open_date [15:53:40]req_shift_open_date done [15:53:40]produce_requested_data done [15:53:40]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92485,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:53:40]process_action_free close_receipt [15:53:40]json_value_free [15:53:40]json_value_free done [15:53:40]process_json_proto returns [15:53:40]Send response to host [15:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92485,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:53:40]free response buf [15:53:40]execute_script done [15:53:40]execute_script returns [15:53:40]free content buf [15:53:40]Sock 8.Close socket [15:53:40]Sock 8.Thread stoped [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:39]accept exits with 9 [15:55:39]New connection [15:55:39]New thread 3066658148 created [15:55:39]Thread 3066801508 joined [15:55:39]Waiting for new connection... [15:55:39] Sock 9.Parse request [15:55:39]Sock 9.Check first char [15:55:39]Sock 9.First char is OK [15:55:39]request: POST /json_proto HTTP/1.0 [15:55:39]Method: POST [15:55:39]URL: /json_proto [15:55:39]Method is POST - this is cgi request [15:55:39]url: /json_proto [15:55:39]query_string will be loaded in cgi processing [15:55:39]execute_cgi json_proto POST (null) [15:55:39]execute_cgi path=json_proto method=POST [15:55:39]POST find Content-Length [15:55:39]Host: 172.17.57.71:8080 [15:55:39]Content-Length: 1064 [15:55:39]Content-Type: application/json [15:55:39] [15:55:39]POST finish read [15:55:39]Found Content-Length = 1064 [15:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127391", "tax_sys" : 0, "items" : [ { "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521186", "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" : 70.00, "quantity" : 1.000, "sum" : 70.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" ] } } [15:55:39]execute_script... [15:55: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)127391", "tax_sys" : 0, "items" : [ { "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521186", "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" : 70.00, "quantity" : 1.000, "sum" : 70.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" ] } } [15:55:39]POST & json_proto [15:55:39]process_json_proto [15:55:39]json parsed OK: [15:55:39]protocol is kg_v1.0 [15:55:39]action value=close_receipt [15:55:39]process_action close_receipt [15:55:39]cmd_close_receipt [15:55:39]MH_GetDate [15:55:39]Write to MH i2c: F0 00 00 1A 29 32 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: F0 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: F0 09 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: F0 09 00 1A 29 00 FF B1 E5 66 33 3A A4 66 AD [15:55:39]GetLastDocTimeStamp 1726329219 [15:55:39]current date 1726329343 [15:55:39]FM_GetShiftState [15:55:39]SAM_PROTO_GetShiftState [15:55:39]wFMCommunicate request_size=4 [15:55:39]MH_SAM_APDU [15:55:39]CAPDU: 80 13 01 00 [15:55:39]Write to MH i2c: E2 08 00 1B 29 80 13 01 00 00 00 00 00 C1 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:39]Read from MH i2c: E2 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 0E 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 0E 00 1B 29 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5B [15:55:39]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:55:39]wFMCommunicate OK [15:55:39]SAM_PROTO_GetShiftState done [15:55:39]FM_GetShiftState done [15:55:39]opened in 1726273389 [15:55:39]opened+sec_in_day 1726359789 [15:55:39]quantity*price = 7000 [15:55:39]sum+1 = 7001 [15:55:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521186 Чай холодный MAXI черный со вкусом клубн 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 137 14.09.2024 15:55 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92486 ФПД: 170555787427252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T155543&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92486&fm=170555787427252&tin=02508201610067®Number=0000000000091423&sum=14000 0 [15:55:40]StoreToDocumentArchive [15:55:40]shift 506 fd 92486 [15:55:40]save to /storage/0506/doc_00092486 [15:55:40]save last doc name /storage/0506/doc_00092486 to /storage/kkm_last_doc_name [15:55:40]save OK [15:55:40]Clear old archive folders... [15:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=442 [15:55:40]tlvbuf is 00F922B0 [15:55:40]SAM_PROTO_ClearQueue [15:55:40]wFMCommunicate request_size=4 [15:55:40]MH_SAM_APDU [15:55:40]CAPDU: 80 09 00 00 [15:55:40]Write to MH i2c: E2 08 00 28 29 80 09 00 00 00 00 00 00 C3 [15:55:40]Write i2c OK [15:55:40]MH_I2C_Read... [15:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:40]Read from MH i2c: E2 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: E2 03 00 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: E2 03 00 28 29 00 90 00 C5 [15:55:40]RAPDU: 90 00 [15:55:40]wFMCommunicate OK [15:55:40]SAM_PROTO_ClearQueue done [15:55:40]KKMCreateOFDPacket [15:55:40]OFDProtocolAddRootSTLVToBuf [15:55:40]FM_MakeSignedData [15:55:40]FM_MakeSignedData [15:55:40]SAM_PROTO_SignData [15:55:40]wFMCommunicate request_size=4 [15:55:40]MH_SAM_APDU [15:55:40]CAPDU: 80 0D 01 02 [15:55:40]Write to MH i2c: E2 08 00 29 29 80 0D 01 02 00 00 00 00 CB [15:55:40]Write i2c OK [15:55:40]MH_I2C_Read... [15:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:40]Read from MH i2c: E2 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: E2 03 00 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: E2 03 00 29 29 00 90 00 C6 [15:55:40]RAPDU: 90 00 [15:55:40]wFMCommunicate OK [15:55:40]wFMCommunicate request_size=255 [15:55:40]MH_SAM_APDU [15:55:40]CAPDU: 80 0D 02 02 FA 03 00 BA 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 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 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 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 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 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 [15:55:40]Write to MH i2c: E2 02 01 2A 29 80 0D 02 02 FA 00 03 00 BA 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 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 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 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 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 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 00 00 13 [15:55:40]Write i2c OK [15:55:40]MH_I2C_Read... [15:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:40]Read from MH i2c: E2 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: E2 03 00 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: E2 03 00 2A 29 00 90 00 C7 [15:55:40]RAPDU: 90 00 [15:55:40]wFMCommunicate OK [15:55:40]wFMCommunicate request_size=201 [15:55:40]MH_SAM_APDU [15:55:40]CAPDU: 80 0D 02 02 C4 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 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 CE 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 89 00 00 00 F4 03 04 00 FF B1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 69 01 00 35 04 06 00 9B 1E 9D 1F BD B4 [15:55:40]Write to MH i2c: E2 CC 00 2B 29 80 0D 02 02 C4 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 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 CE 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 89 00 00 00 F4 03 04 00 FF B1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 69 01 00 35 04 06 00 9B 1E 9D 1F BD B4 00 00 7D [15:55:40]Write i2c OK [15:55:40]MH_I2C_Read... [15:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:41]Read from MH i2c: E2 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 03 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 03 00 2B 29 00 90 00 C8 [15:55:41]RAPDU: 90 00 [15:55:41]wFMCommunicate OK [15:55:41]wFMCommunicate request_size=4 [15:55:41]MH_SAM_APDU [15:55:41]CAPDU: 80 0D 03 02 [15:55:41]Write to MH i2c: E2 08 00 2C 29 80 0D 03 02 00 00 00 00 D0 [15:55:41]Write i2c OK [15:55:41]MH_I2C_Read... [15:55:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:41]Read from MH i2c: E2 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 0B 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 0B 00 2C 29 00 D3 E3 2C 92 5A 68 F9 51 90 00 51 [15:55:41]RAPDU: D3 E3 2C 92 5A 68 F9 51 90 00 [15:55:41]wFMCommunicate OK [15:55:41]SAM_PROTO_SignData done [15:55:41]FM_MakeSignedData done [15:55:41]CreateOFDProtocolMessage [15:55:41]wFMCommunicate request_size=4 [15:55:41]MH_SAM_APDU [15:55:41]CAPDU: 80 11 00 00 [15:55:41]Write to MH i2c: E2 08 00 2D 29 80 11 00 00 00 00 00 00 D0 [15:55:41]Write i2c OK [15:55:41]MH_I2C_Read... [15:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:41]Read from MH i2c: E2 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 17 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 17 00 2D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 27 [15:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:55:41]wFMCommunicate OK [15:55:41]CreateOFDProtocolMessage done [15:55:41]OFDSenderStorePacket 92486 [15:55:41]StoreOFDPacket docnum=92486 [15:55:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 CE 01 00 00 04 35 C6 01 0D 3C 5A 03 01 00 03 00 BA 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 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 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 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 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 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 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 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 CE 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 89 00 00 00 F4 03 04 00 FF B1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 69 01 00 35 04 06 00 9B 1E 9D 1F BD B4 D3 E3 2C 92 5A 68 F9 51 [15:55:41]CheckFolder [15:55:41]dirname=/storage/ofd_packets [15:55:41]CheckFolder done [15:55:41]ProducePacketName [15:55:41]name=ofd_packets/00092486 [15:55:41]NVStorageSaveData ofd_packets/00092486 [15:55:41]File name is /storage/ofd_packets/00092486 [15:55:41]Write 492 bytes [15:55:41]NVStorageSaveData done [15:55:41]OFDSenderStorePacket done [15:55:41]KKMCreateOFDPacket done [15:55:41]NVStorageSaveData kkm_last_timestamp [15:55:41]File name is /storage/kkm_last_timestamp [15:55:41]Write 4 bytes [15:55:41]NVStorageSaveData done [15:55:41]ExternCall_PrintAddStr [15:55:41]wPrintStart [15:55:41]Write to MH i2c: 01 00 00 2E 29 57 [15:55:41]Write i2c OK [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: 01 [15:55:41]MH_I2C_Read... [15:55:41]OFD Sender: Processing packet 92486 [packets to send 63, broken 62] [15:55:41]ProducePacketName [15:55:41]name=ofd_packets/00092486 [15:55:41]OFD Sender: To server: pG, [15:55:41]CommunicateWithHost lk.salyk.kg:30040 [15:55:41]ConnectInit lk.salyk.kg [15:55:41]Read from MH i2c: 01 07 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: 01 07 00 2E 29 00 00 00 00 00 FF 0F 6C [15:55:41]RasterBufferAndPrint [15:55:41]line Счет N : (3)127391 [15:55:41]line ИНН: 02508201610067 [15:55:41]line Контрольно-Кассовый Чек [15:55:41]line ПРОДАЖА [15:55:41]line Товар: 4870202522695 [15:55:41]line Напиток Maxi Чай черный Малина 0,450 [15:55:41]line 1.000 * 70.00 [15:55:41]line = 70.00 [15:55:41]line НДС 12% НСП 1% [15:55:41]line > о реализуемом товаре [15:55:41]line Товар: 4870202521186 [15:55:41]line Чай холодный MAXI черный со вкусом клубн [15:55:41]line 1.000 * 70.00 [15:55:41]line = 70.00 [15:55:41]line НДС 12% НСП 1% [15:55:41]line > о реализуемом товаре [15:55:41]line ИТОГО: 140.00 [15:55:41]line НСП 1% : 1.24 [15:55:41]line НДС 12% : 14.86 [15:55:41]line Наличными: 140.00 [15:55:41]line Безнал.: 0.00 [15:55:41]line Место: АЗС № 5 "Партнер Нефть" [15:55:41]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [15:55:41]line СНО: Общий режим [15:55:41]line Чек 137 14.09.2024 15:55 [15:55:41]line Смена: 506 ФФД: 1.0 [15:55:41]line ЗНМ: 03000000022 [15:55:41]line РНМ: 0000000000091423 [15:55:41]line Версия ККМ: 001 [15:55:41]line ФМ: 0000000000874692 [15:55:41]line ФД: 92486 [15:55:41]line ФПД: 170555787427252 [15:55:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T155543&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92486&fm=170555787427252&tin=02508201610067®Number=0000000000091423&sum=14000 [15:55:41]line 0 [15:55:41]written 0, free lines is 4095 [15:55:41]Connected sock=10 [15:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 CE 01 00 00 04 35 C6 01 0D 3C 5A 03 01 00 03 00 BA 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 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 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 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 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 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 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 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 CE 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 89 00 00 00 F4 03 04 00 FF B1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 69 01 00 35 04 06 00 9B 1E 9D 1F BD B4 D3 E3 2C 92 5A 68 F9 51 [15:55:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 CA F9 47 00 A3 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 46 69 01 00 F4 03 04 00 7A 5A E5 66 B6 04 01 00 00 10 EA BB 40 A4 25 32 5A [15:55:41]CommunicateWithHost err = 0 [15:55:41]CheckOFDResponse [15:55:41]1017 (14) - 77093643461234 [15:55:41]1041 (16) - 0000000000874692 [15:55:41]1040 (4) - 92486 [15:55:41]1012 (4) - 14.09.2024 09:42 [15:55:41]1206 (1) - 0 [15:55:41]OFD Sender: Remove packet 92486 [15:55:41]ProducePacketName [15:55:41]name=ofd_packets/00092486 [15:55:41]NVStorageDeleteData [15:55:42]Write to MH i2c: 01 00 00 5E 29 87 [15:55:42]Write i2c OK [15:55:42]MH_I2C_Read... [15:55:42]Read from MH i2c: 01 [15:55:42]MH_I2C_Read... [15:55:42]Read from MH i2c: 01 07 00 [15:55:42]MH_I2C_Read... [15:55:42]Read from MH i2c: 01 07 00 5E 29 00 00 00 00 00 C7 0C 61 [15:55:42]RasterBufferAndPrint [15:55:42]line [15:55:42]line [15:55:42]line [15:55:42]line [15:55:42]line [15:55:42]written 0, free lines is 3279 [15:55:42]MH_Cut [15:55:42]Write to MH i2c: D1 01 00 65 29 01 60 [15:55:42]Write i2c OK [15:55:42]MH_I2C_Read... [15:55:42]Read from MH i2c: D1 [15:55:42]MH_I2C_Read... [15:55:42]Read from MH i2c: D1 01 00 [15:55:42]MH_I2C_Read... [15:55:42]Read from MH i2c: D1 01 00 65 29 00 5F [15:55:42]Write to MH i2c: 01 00 00 66 29 8F [15:55:42]Write i2c OK [15:55:42]MH_I2C_Read... [15:55:42]OFD Sender: No OFD packet to send [15:55:42]*** Cut start [15:55:42]*** Purtial cut [15:55:42]*** Stage 1: CUTSNS_PIN = 1 [15:55:44]Read from MH i2c: 01 [15:55:44]MH_I2C_Read... [15:55:44]*** Stop cut motor [15:55:44]*** Cut end [15:55:44]Read from MH i2c: 01 07 00 [15:55:44]MH_I2C_Read... [15:55:44]Read from MH i2c: 01 07 00 66 29 00 00 00 00 00 FF 0F A4 [15:55:44]process_action close_receipt done [15:55:44]requested_data is exist [15:55:44]produce_requested_data [15:55:44]requested_item fm.sn is exist - process it [15:55:44]wFMCommunicate request_size=4 [15:55:44]MH_SAM_APDU [15:55:44]CAPDU: 80 11 00 00 [15:55:44]Write to MH i2c: E2 08 00 67 29 80 11 00 00 00 00 00 00 0A [15:55:44]Write i2c OK [15:55:44]MH_I2C_Read... [15:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:44]Read from MH i2c: E2 [15:55:44]MH_I2C_Read... [15:55:44]Read from MH i2c: E2 17 00 [15:55:44]MH_I2C_Read... [15:55:44]Read from MH i2c: E2 17 00 67 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 61 [15:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [15:55:44]wFMCommunicate OK [15:55:44]requested_item fd.num is exist - process it [15:55:44]SAM_PROTO_GetFieldsCounters [15:55:44]wFMCommunicate request_size=4 [15:55:44]MH_SAM_APDU [15:55:44]CAPDU: 80 13 00 00 [15:55:44]Write to MH i2c: E2 08 00 68 29 80 13 00 00 00 00 00 00 0D [15:55:44]Write i2c OK [15:55:44]MH_I2C_Read... [15:55:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:44]Read from MH i2c: E2 [15:55:44]MH_I2C_Read... [15:55:44]Read from MH i2c: E2 62 00 [15:55:44]MH_I2C_Read... [15:55:44]Read from MH i2c: E2 62 00 68 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 46 69 01 00 0E 04 04 00 FA 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 72 [15:55:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 46 69 01 00 0E 04 04 00 FA 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:55:44]wFMCommunicate OK [15:55:44]SAM_PROTO_GetFieldsCounters done [15:55:44]requested_item shift.num is exist - process it [15:55:44]requested_item shift.opened is exist - process it [15:55:44]req_shift_opened [15:55:44]FM_GetShiftState [15:55:44]SAM_PROTO_GetShiftState [15:55:44]wFMCommunicate request_size=4 [15:55:44]MH_SAM_APDU [15:55:44]CAPDU: 80 13 01 00 [15:55:44]Write to MH i2c: E2 08 00 69 29 80 13 01 00 00 00 00 00 0F [15:55:44]Write i2c OK [15:55:44]MH_I2C_Read... [15:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:44]Read from MH i2c: E2 [15:55:44]MH_I2C_Read... [15:55:44]Read from MH i2c: E2 0E 00 [15:55:44]MH_I2C_Read... [15:55:44]Read from MH i2c: E2 0E 00 69 29 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A9 [15:55:44]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [15:55:44]wFMCommunicate OK [15:55:44]SAM_PROTO_GetShiftState done [15:55:44]FM_GetShiftState done [15:55:44]req_shift_opened done [15:55:44]requested_item shift.open_date is exist - process it [15:55:44]req_shift_open_date [15:55:44]req_shift_open_date done [15:55:44]produce_requested_data done [15:55:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92486,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [15:55:44]process_action_free close_receipt [15:55:44]json_value_free [15:55:44]json_value_free done [15:55:44]process_json_proto returns [15:55:44]Send response to host [15:55:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92486,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [15:55:44]free response buf [15:55:44]execute_script done [15:55:44]execute_script returns [15:55:44]free content buf [15:55:44]Sock 9.Close socket [15:55:44]Sock 9.Thread stoped [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:10]accept exits with 8 [16:02:10]New connection [16:02:10]New thread 3066801508 created [16:02:10]Thread 3066658148 joined [16:02:10]Waiting for new connection... [16:02:10] Sock 8.Parse request [16:02:10]Sock 8.Check first char [16:02:10]Sock 8.First char is OK [16:02:10]request: POST /json_proto HTTP/1.0 [16:02:10]Method: POST [16:02:10]URL: /json_proto [16:02:10]Method is POST - this is cgi request [16:02:10]url: /json_proto [16:02:10]query_string will be loaded in cgi processing [16:02:10]execute_cgi json_proto POST (null) [16:02:10]execute_cgi path=json_proto method=POST [16:02:10]POST find Content-Length [16:02:10]Host: 172.17.57.71:8080 [16:02:10]Content-Length: 690 [16:02:10]Content-Type: application/json [16:02:10] [16:02:10]POST finish read [16:02:10]Found Content-Length = 690 [16:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127392", "tax_sys" : 0, "items" : [ { "code": "4700027270290", "name": "\u041A\u0443\u0440\u043D\u0438\u043A DC \u043A\u0443\u0440\u0438\u0446\u0430 \u043A\u0430\u0440\u0442\u043E\u0448\u043A\u0430 110\u0433", "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:02:10]execute_script... [16:02: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)127392", "tax_sys" : 0, "items" : [ { "code": "4700027270290", "name": "\u041A\u0443\u0440\u043D\u0438\u043A DC \u043A\u0443\u0440\u0438\u0446\u0430 \u043A\u0430\u0440\u0442\u043E\u0448\u043A\u0430 110\u0433", "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:02:10]POST & json_proto [16:02:10]process_json_proto [16:02:10]json parsed OK: [16:02:10]protocol is kg_v1.0 [16:02:10]action value=close_receipt [16:02:10]process_action close_receipt [16:02:10]cmd_close_receipt [16:02:10]MH_GetDate [16:02:10]Write to MH i2c: F0 00 00 6A 29 82 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 6A 29 00 85 B3 E5 66 33 3A A4 66 85 [16:02:10]GetLastDocTimeStamp 1726329343 [16:02:10]current date 1726329733 [16:02:10]FM_GetShiftState [16:02:10]SAM_PROTO_GetShiftState [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 13 01 00 [16:02:10]Write to MH i2c: E2 08 00 6B 29 80 13 01 00 00 00 00 00 11 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 6B 29 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AB [16:02:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:02:10]wFMCommunicate OK [16:02:10]SAM_PROTO_GetShiftState done [16:02:10]FM_GetShiftState done [16:02:10]opened in 1726273389 [16:02:10]opened+sec_in_day 1726359789 [16:02:10]quantity*price = 5000 [16:02:10]sum+1 = 5001 [16:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 138 14.09.2024 16:02 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92487 ФПД: 194024237430366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T160213&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92487&fm=194024237430366&tin=02508201610067®Number=0000000000091423&sum=5000 0 [16:02:11]StoreToDocumentArchive [16:02:11]shift 506 fd 92487 [16:02:11]save to /storage/0506/doc_00092487 [16:02:11]save last doc name /storage/0506/doc_00092487 to /storage/kkm_last_doc_name [16:02:11]save OK [16:02:11]Clear old archive folders... [16:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:02:11]tlvbuf is 00F99690 [16:02:11]SAM_PROTO_ClearQueue [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 09 00 00 [16:02:11]Write to MH i2c: E2 08 00 78 29 80 09 00 00 00 00 00 00 13 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 78 29 00 90 00 15 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_ClearQueue done [16:02:11]KKMCreateOFDPacket [16:02:11]OFDProtocolAddRootSTLVToBuf [16:02:11]FM_MakeSignedData [16:02:11]FM_MakeSignedData [16:02:11]SAM_PROTO_SignData [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 01 02 [16:02:11]Write to MH i2c: E2 08 00 79 29 80 0D 01 02 00 00 00 00 1B [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 79 29 00 90 00 16 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=255 [16:02:11]MH_SAM_APDU [16:02:11]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 32 37 32 37 30 32 39 30 06 04 33 00 D0 9A D1 83 D1 80 D0 BD D0 B8 D0 BA 20 44 43 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 D0 BA D0 B0 D1 80 D1 82 D0 BE D1 88 D0 BA D0 B0 20 31 31 30 D0 B3 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 8A 00 00 00 F4 03 04 00 85 B3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:02:11]Write to MH i2c: E2 02 01 7A 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 37 30 30 30 32 37 32 37 30 32 39 30 06 04 33 00 D0 9A D1 83 D1 80 D0 BD D0 B8 D0 BA 20 44 43 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 D0 BA D0 B0 D1 80 D1 82 D0 BE D1 88 D0 BA D0 B0 20 31 31 30 D0 B3 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 8A 00 00 00 F4 03 04 00 85 B3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 00 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=52 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 69 01 00 35 04 06 00 B0 76 C9 BF F6 5E [16:02:11]Write to MH i2c: E2 37 00 7B 29 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 69 01 00 35 04 06 00 B0 76 C9 BF F6 5E 00 00 92 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 03 02 [16:02:11]Write to MH i2c: E2 08 00 7C 29 80 0D 03 02 00 00 00 00 20 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0B 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0B 00 7C 29 00 50 DF 8E 2F C2 74 8B DB 90 00 A9 [16:02:11]RAPDU: 50 DF 8E 2F C2 74 8B DB 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_SignData done [16:02:11]FM_MakeSignedData done [16:02:11]CreateOFDProtocolMessage [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 11 00 00 [16:02:11]Write to MH i2c: E2 08 00 7D 29 80 11 00 00 00 00 00 00 20 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 17 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 17 00 7D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 77 [16:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:02:11]wFMCommunicate OK [16:02:11]CreateOFDProtocolMessage done [16:02:11]OFDSenderStorePacket 92487 [16:02:11]StoreOFDPacket docnum=92487 [16:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 69 69 31 01 D2 CE 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 32 37 32 37 30 32 39 30 06 04 33 00 D0 9A D1 83 D1 80 D0 BD D0 B8 D0 BA 20 44 43 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 D0 BA D0 B0 D1 80 D1 82 D0 BE D1 88 D0 BA D0 B0 20 31 31 30 D0 B3 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 8A 00 00 00 F4 03 04 00 85 B3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 69 01 00 35 04 06 00 B0 76 C9 BF F6 5E 50 DF 8E 2F C2 74 8B DB [16:02:11]CheckFolder [16:02:11]dirname=/storage/ofd_packets [16:02:11]CheckFolder done [16:02:11]ProducePacketName [16:02:11]name=ofd_packets/00092487 [16:02:11]NVStorageSaveData ofd_packets/00092487 [16:02:11]File name is /storage/ofd_packets/00092487 [16:02:11]Write 343 bytes [16:02:11]NVStorageSaveData done [16:02:11]OFDSenderStorePacket done [16:02:11]KKMCreateOFDPacket done [16:02:11]NVStorageSaveData kkm_last_timestamp [16:02:11]File name is /storage/kkm_last_timestamp [16:02:11]Write 4 bytes [16:02:11]NVStorageSaveData done [16:02:11]ExternCall_PrintAddStr [16:02:11]wPrintStart [16:02:11]Write to MH i2c: 01 00 00 7E 29 A7 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 07 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 07 00 7E 29 00 00 00 00 00 FF 0F BC [16:02:11]RasterBufferAndPrint [16:02:11]line Счет N : (3)127392 [16:02:11]line ИНН: 02508201610067 [16:02:11]line Контрольно-Кассовый Чек [16:02:11]line ПРОДАЖА [16:02:11]line Товар: 4700027270290 [16:02:11]line Курник DC курица картошка 110г [16:02:11]line 1.000 * 50.00 [16:02:11]line = 50.00 [16:02:11]line НДС 12% НСП 1% [16:02:11]line > о реализуемом товаре [16:02:11]line ИТОГО: 50.00 [16:02:11]line НСП 1% : 0.44 [16:02:11]line НДС 12% : 5.31 [16:02:11]line Наличными: 50.00 [16:02:11]line Безнал.: 0.00 [16:02:11]line Место: АЗС № 5 "Партнер Нефть" [16:02:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:02:11]line СНО: Общий режим [16:02:11]line Чек 138 14.09.2024 16:02 [16:02:11]line Смена: 506 ФФД: 1.0 [16:02:11]line ЗНМ: 03000000022 [16:02:11]line РНМ: 0000000000091423 [16:02:11]line Версия ККМ: 001 [16:02:11]line ФМ: 0000000000874692 [16:02:11]line ФД: 92487 [16:02:11]line ФПД: 194024237430366 [16:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T160213&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92487&fm=194024237430366&tin=02508201610067®Number=0000000000091423&sum=5000 [16:02:11]line 0 [16:02:11]written 0, free lines is 4095 [16:02:11]OFD Sender: Processing packet 92487 [packets to send 63, broken 62] [16:02:11]ProducePacketName [16:02:11]name=ofd_packets/00092487 [16:02:11]OFD Sender: To server: pG, [16:02:11]CommunicateWithHost lk.salyk.kg:30040 [16:02:11]ConnectInit lk.salyk.kg [16:02:11]Connected sock=10 [16:02:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 69 69 31 01 D2 CE 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 32 37 32 37 30 32 39 30 06 04 33 00 D0 9A D1 83 D1 80 D0 BD D0 B8 D0 BA 20 44 43 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 D0 BA D0 B0 D1 80 D1 82 D0 BE D1 88 D0 BA D0 B0 20 31 31 30 D0 B3 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 8A 00 00 00 F4 03 04 00 85 B3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 69 01 00 35 04 06 00 B0 76 C9 BF F6 5E 50 DF 8E 2F C2 74 8B DB [16:02:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 EA 08 47 00 C3 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 47 69 01 00 F4 03 04 00 00 5C E5 66 B6 04 01 00 00 8F 93 8A F7 9F 5F 38 0B [16:02:12]CommunicateWithHost err = 0 [16:02:12]CheckOFDResponse [16:02:12]1017 (14) - 77093643461234 [16:02:12]1041 (16) - 0000000000874692 [16:02:12]1040 (4) - 92487 [16:02:12]1012 (4) - 14.09.2024 09:48 [16:02:12]1206 (1) - 0 [16:02:12]OFD Sender: Remove packet 92487 [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00092487 [16:02:12]NVStorageDeleteData [16:02:12]Write to MH i2c: 01 00 00 A7 29 D0 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 A7 29 00 00 00 00 00 15 0D F9 [16:02:12]RasterBufferAndPrint [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]written 0, free lines is 3357 [16:02:12]MH_Cut [16:02:12]Write to MH i2c: D1 01 00 AE 29 01 A9 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 01 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 01 00 AE 29 00 A8 [16:02:12]Write to MH i2c: 01 00 00 AF 29 D8 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]OFD Sender: No OFD packet to send [16:02:12]*** Cut start [16:02:12]*** Purtial cut [16:02:12]*** Stage 1: CUTSNS_PIN = 1 [16:02:14]Read from MH i2c: 01 [16:02:14]MH_I2C_Read... [16:02:14]*** Stop cut motor [16:02:14]*** Cut end [16:02:14]Read from MH i2c: 01 07 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: 01 07 00 AF 29 00 00 00 00 00 FF 0F ED [16:02:14]process_action close_receipt done [16:02:14]requested_data is exist [16:02:14]produce_requested_data [16:02:14]requested_item fm.sn is exist - process it [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 11 00 00 [16:02:14]Write to MH i2c: E2 08 00 B0 29 80 11 00 00 00 00 00 00 53 [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 17 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 17 00 B0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AA [16:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:02:14]wFMCommunicate OK [16:02:14]requested_item fd.num is exist - process it [16:02:14]SAM_PROTO_GetFieldsCounters [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 13 00 00 [16:02:14]Write to MH i2c: E2 08 00 B1 29 80 13 00 00 00 00 00 00 56 [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:15]Read from MH i2c: E2 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 62 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 62 00 B1 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 47 69 01 00 0E 04 04 00 FA 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 BF [16:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 47 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:15]wFMCommunicate OK [16:02:15]SAM_PROTO_GetFieldsCounters done [16:02:15]requested_item shift.num is exist - process it [16:02:15]requested_item shift.opened is exist - process it [16:02:15]req_shift_opened [16:02:15]FM_GetShiftState [16:02:15]SAM_PROTO_GetShiftState [16:02:15]wFMCommunicate request_size=4 [16:02:15]MH_SAM_APDU [16:02:15]CAPDU: 80 13 01 00 [16:02:15]Write to MH i2c: E2 08 00 B2 29 80 13 01 00 00 00 00 00 58 [16:02:15]Write i2c OK [16:02:15]MH_I2C_Read... [16:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:15]Read from MH i2c: E2 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 0E 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 0E 00 B2 29 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F2 [16:02:15]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:02:15]wFMCommunicate OK [16:02:15]SAM_PROTO_GetShiftState done [16:02:15]FM_GetShiftState done [16:02:15]req_shift_opened done [16:02:15]requested_item shift.open_date is exist - process it [16:02:15]req_shift_open_date [16:02:15]req_shift_open_date done [16:02:15]produce_requested_data done [16:02:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92487,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:02:15]process_action_free close_receipt [16:02:15]json_value_free [16:02:15]json_value_free done [16:02:15]process_json_proto returns [16:02:15]Send response to host [16:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92487,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:02:15]free response buf [16:02:15]execute_script done [16:02:15]execute_script returns [16:02:15]free content buf [16:02:15]Sock 8.Close socket [16:02:15]Sock 8.Thread stoped [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:32]accept exits with 9 [16:03:32]New connection [16:03:32]New thread 3066658148 created [16:03:32]Thread 3066801508 joined [16:03:32]Waiting for new connection... [16:03:32] Sock 9.Parse request [16:03:32]Sock 9.Check first char [16:03:32]Sock 9.First char is OK [16:03:32]request: POST /json_proto HTTP/1.0 [16:03:32]Method: POST [16:03:32]URL: /json_proto [16:03:32]Method is POST - this is cgi request [16:03:32]url: /json_proto [16:03:32]query_string will be loaded in cgi processing [16:03:32]execute_cgi json_proto POST (null) [16:03:32]execute_cgi path=json_proto method=POST [16:03:32]POST find Content-Length [16:03:32]Host: 172.17.57.71:8080 [16:03:32]Content-Length: 834 [16:03:32]Content-Type: application/json [16:03:32] [16:03:32]POST finish read [16:03:32]Found Content-Length = 834 [16:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127393", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:32]execute_script... [16:03:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127393", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:32]POST & json_proto [16:03:32]process_json_proto [16:03:32]json parsed OK: [16:03:32]protocol is kg_v1.0 [16:03:32]action value=close_receipt [16:03:32]process_action close_receipt [16:03:32]cmd_close_receipt [16:03:32]MH_GetDate [16:03:32]Write to MH i2c: F0 00 00 B3 29 CB [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: F0 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: F0 09 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: F0 09 00 B3 29 00 D8 B3 E5 66 33 3A A4 66 21 [16:03:32]GetLastDocTimeStamp 1726329733 [16:03:32]current date 1726329816 [16:03:32]FM_GetShiftState [16:03:32]SAM_PROTO_GetShiftState [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 13 01 00 [16:03:32]Write to MH i2c: E2 08 00 B4 29 80 13 01 00 00 00 00 00 5A [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:33]Read from MH i2c: E2 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: E2 0E 00 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: E2 0E 00 B4 29 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F4 [16:03:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:03:33]wFMCommunicate OK [16:03:33]SAM_PROTO_GetShiftState done [16:03:33]FM_GetShiftState done [16:03:33]opened in 1726273389 [16:03:33]opened+sec_in_day 1726359789 [16:03:33]quantity*price = 7500 [16:03:33]sum+1 = 7501 [16:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 139 14.09.2024 16:03 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92488 ФПД: 280398141310146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T160336&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92488&fm=280398141310146&tin=02508201610067®Number=0000000000091423&sum=7500 0 [16:03:34]StoreToDocumentArchive [16:03:34]shift 506 fd 92488 [16:03:34]save to /storage/0506/doc_00092488 [16:03:34]save last doc name /storage/0506/doc_00092488 to /storage/kkm_last_doc_name [16:03:34]save OK [16:03:34]Clear old archive folders... [16:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=287 [16:03:34]tlvbuf is 0107E3E0 [16:03:34]SAM_PROTO_ClearQueue [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 09 00 00 [16:03:34]Write to MH i2c: E2 08 00 C1 29 80 09 00 00 00 00 00 00 5C [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 03 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 03 00 C1 29 00 90 00 5E [16:03:34]RAPDU: 90 00 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_ClearQueue done [16:03:34]KKMCreateOFDPacket [16:03:34]OFDProtocolAddRootSTLVToBuf [16:03:34]FM_MakeSignedData [16:03:34]FM_MakeSignedData [16:03:34]SAM_PROTO_SignData [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 0D 01 02 [16:03:34]Write to MH i2c: E2 08 00 C2 29 80 0D 01 02 00 00 00 00 64 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 03 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 03 00 C2 29 00 90 00 5F [16:03:34]RAPDU: 90 00 [16:03:34]wFMCommunicate OK [16:03:34]wFMCommunicate request_size=255 [16:03:34]MH_SAM_APDU [16:03:34]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 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D8 B3 E5 66 0E 04 04 00 FA 01 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:03:34]Write to MH i2c: E2 02 01 C3 29 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 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D8 B3 E5 66 0E 04 04 00 FA 01 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 3D [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 03 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 03 00 C3 29 00 90 00 60 [16:03:34]RAPDU: 90 00 [16:03:34]wFMCommunicate OK [16:03:34]wFMCommunicate request_size=46 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 69 01 00 35 04 06 00 FF 05 47 9B C4 C2 [16:03:34]Write to MH i2c: E2 31 00 C4 29 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 69 01 00 35 04 06 00 FF 05 47 9B C4 C2 00 00 10 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 03 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 03 00 C4 29 00 90 00 61 [16:03:34]RAPDU: 90 00 [16:03:34]wFMCommunicate OK [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 0D 03 02 [16:03:34]Write to MH i2c: E2 08 00 C5 29 80 0D 03 02 00 00 00 00 69 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0B 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0B 00 C5 29 00 28 D4 85 EA 5D 52 2D F2 90 00 A3 [16:03:34]RAPDU: 28 D4 85 EA 5D 52 2D F2 90 00 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_SignData done [16:03:34]FM_MakeSignedData done [16:03:34]CreateOFDProtocolMessage [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 11 00 00 [16:03:34]Write to MH i2c: E2 08 00 C6 29 80 11 00 00 00 00 00 00 69 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 17 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 17 00 C6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C0 [16:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:03:34]wFMCommunicate OK [16:03:34]CreateOFDProtocolMessage done [16:03:34]OFDSenderStorePacket 92488 [16:03:34]StoreOFDPacket docnum=92488 [16:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 60 BE 2B 01 5B F0 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 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D8 B3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 69 01 00 35 04 06 00 FF 05 47 9B C4 C2 28 D4 85 EA 5D 52 2D F2 [16:03:34]CheckFolder [16:03:34]dirname=/storage/ofd_packets [16:03:34]CheckFolder done [16:03:34]ProducePacketName [16:03:34]name=ofd_packets/00092488 [16:03:34]NVStorageSaveData ofd_packets/00092488 [16:03:34]File name is /storage/ofd_packets/00092488 [16:03:34]Write 337 bytes [16:03:34]NVStorageSaveData done [16:03:34]OFDSenderStorePacket done [16:03:34]KKMCreateOFDPacket done [16:03:34]NVStorageSaveData kkm_last_timestamp [16:03:34]File name is /storage/kkm_last_timestamp [16:03:34]Write 4 bytes [16:03:34]NVStorageSaveData done [16:03:34]ExternCall_PrintAddStr [16:03:34]wPrintStart [16:03:34]Write to MH i2c: 01 00 00 C7 29 F0 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: 01 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: 01 07 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: 01 07 00 C7 29 00 00 00 00 00 FF 0F 05 [16:03:34]RasterBufferAndPrint [16:03:34]line Счет N : (3)127393 [16:03:34]line ИНН: 02508201610067 [16:03:34]line Контрольно-Кассовый Чек [16:03:34]line ПРОДАЖА [16:03:34]line Товар: 5449000189394 [16:03:34]line Холодный чай Fuse ягода 0,5л [16:03:34]line 1.000 * 75.00 [16:03:34]line = 75.00 [16:03:34]line НДС 12% НСП 1% [16:03:34]line > о реализуемом товаре [16:03:34]line ИТОГО: 75.00 [16:03:34]line НСП 1% : 0.66 [16:03:34]line НДС 12% : 7.96 [16:03:34]line Наличными: 0.00 [16:03:34]line Безнал.: 75.00 [16:03:34]line Место: АЗС № 5 "Партнер Нефть" [16:03:34]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:03:34]line СНО: Общий режим [16:03:34]line Чек 139 14.09.2024 16:03 [16:03:34]line Смена: 506 ФФД: 1.0 [16:03:34]line ЗНМ: 03000000022 [16:03:34]line РНМ: 0000000000091423 [16:03:34]line Версия ККМ: 001 [16:03:34]line Платежная система: О! деньги [16:03:35]line ФМ: 0000000000874692 [16:03:35]line ФД: 92488 [16:03:35]line ФПД: 280398141310146 [16:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T160336&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92488&fm=280398141310146&tin=02508201610067®Number=0000000000091423&sum=7500 [16:03:35]line 0 [16:03:35]OFD Sender: Processing packet 92488 [packets to send 63, broken 62] [16:03:35]ProducePacketName [16:03:35]name=ofd_packets/00092488 [16:03:35]OFD Sender: To server: pG, [16:03:35]CommunicateWithHost lk.salyk.kg:30040 [16:03:35]ConnectInit lk.salyk.kg [16:03:35]written 0, free lines is 4095 [16:03:35]Connected sock=10 [16: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 34 36 39 32 33 01 00 00 60 BE 2B 01 5B F0 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 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D8 B3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 69 01 00 35 04 06 00 FF 05 47 9B C4 C2 28 D4 85 EA 5D 52 2D F2 [16:03:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DB ED 47 00 39 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 48 69 01 00 F4 03 04 00 53 5C E5 66 B6 04 01 00 00 AD 47 DE FE 0F CA 9C 79 [16:03:35]CommunicateWithHost err = 0 [16:03:35]CheckOFDResponse [16:03:35]1017 (14) - 77093643461234 [16:03:35]1041 (16) - 0000000000874692 [16:03:35]1040 (4) - 92488 [16:03:35]1012 (4) - 14.09.2024 09:50 [16:03:35]1206 (1) - 0 [16:03:35]OFD Sender: Remove packet 92488 [16:03:35]ProducePacketName [16:03:35]name=ofd_packets/00092488 [16:03:35]NVStorageDeleteData [16:03:35]Write to MH i2c: 01 00 00 F1 29 1A [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: 01 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: 01 07 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: 01 07 00 F1 29 00 00 00 00 00 0C 0D 3A [16:03:35]RasterBufferAndPrint [16:03:35]line [16:03:35]line [16:03:35]line [16:03:35]line [16:03:35]line [16:03:35]written 0, free lines is 3347 [16:03:35]MH_Cut [16:03:35]Write to MH i2c: D1 01 00 F8 29 01 F3 [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: D1 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: D1 01 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: D1 01 00 F8 29 00 F2 [16:03:35]Write to MH i2c: 01 00 00 F9 29 22 [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]OFD Sender: No OFD packet to send [16:03:36]*** Cut start [16:03:36]*** Purtial cut [16:03:36]*** Stage 1: CUTSNS_PIN = 1 [16:03:38]Read from MH i2c: 01 [16:03:38]MH_I2C_Read... [16:03:38]*** Stop cut motor [16:03:38]*** Cut end [16:03:38]Read from MH i2c: 01 07 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: 01 07 00 F9 29 00 00 00 00 00 FF 0F 37 [16:03:38]process_action close_receipt done [16:03:38]requested_data is exist [16:03:38]produce_requested_data [16:03:38]requested_item fm.sn is exist - process it [16:03:38]wFMCommunicate request_size=4 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 11 00 00 [16:03:38]Write to MH i2c: E2 08 00 FA 29 80 11 00 00 00 00 00 00 9D [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:38]Read from MH i2c: E2 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 17 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 17 00 FA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F4 [16:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:03:38]wFMCommunicate OK [16:03:38]requested_item fd.num is exist - process it [16:03:38]SAM_PROTO_GetFieldsCounters [16:03:38]wFMCommunicate request_size=4 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 13 00 00 [16:03:38]Write to MH i2c: E2 08 00 FB 29 80 13 00 00 00 00 00 00 A0 [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:38]Read from MH i2c: E2 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 62 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 62 00 FB 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 48 69 01 00 0E 04 04 00 FA 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 0D [16:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 48 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:38]wFMCommunicate OK [16:03:38]SAM_PROTO_GetFieldsCounters done [16:03:38]requested_item shift.num is exist - process it [16:03:38]requested_item shift.opened is exist - process it [16:03:38]req_shift_opened [16:03:38]FM_GetShiftState [16:03:38]SAM_PROTO_GetShiftState [16:03:38]wFMCommunicate request_size=4 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 13 01 00 [16:03:38]Write to MH i2c: E2 08 00 FC 29 80 13 01 00 00 00 00 00 A2 [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:38]Read from MH i2c: E2 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 0E 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 0E 00 FC 29 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3C [16:03:38]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:03:38]wFMCommunicate OK [16:03:38]SAM_PROTO_GetShiftState done [16:03:38]FM_GetShiftState done [16:03:38]req_shift_opened done [16:03:38]requested_item shift.open_date is exist - process it [16:03:38]req_shift_open_date [16:03:38]req_shift_open_date done [16:03:38]produce_requested_data done [16:03:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92488,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:03:38]process_action_free close_receipt [16:03:38]json_value_free [16:03:38]json_value_free done [16:03:38]process_json_proto returns [16:03:38]Send response to host [16:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92488,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:03:38]free response buf [16:03:38]execute_script done [16:03:38]execute_script returns [16:03:38]free content buf [16:03:38]Sock 9.Close socket [16:03:38]Sock 9.Thread stoped [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:34]accept exits with 8 [16:07:34]New connection [16:07:34]New thread 3066801508 created [16:07:34]Thread 3066658148 joined [16:07:34]Waiting for new connection... [16:07:34] Sock 8.Parse request [16:07:34]Sock 8.Check first char [16:07:34]Sock 8.First char is OK [16:07:34]request: POST /json_proto HTTP/1.0 [16:07:34]Method: POST [16:07:34]URL: /json_proto [16:07:34]Method is POST - this is cgi request [16:07:34]url: /json_proto [16:07:34]query_string will be loaded in cgi processing [16:07:34]execute_cgi json_proto POST (null) [16:07:34]execute_cgi path=json_proto method=POST [16:07:34]POST find Content-Length [16:07:34]Host: 172.17.57.71:8080 [16:07:34]Content-Length: 1067 [16:07:34]Content-Type: application/json [16:07:34] [16:07:34]POST finish read [16:07:34]Found Content-Length = 1067 [16:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127394", "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" : 3.000, "sum" : 120.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 }]} ], "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" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:34]execute_script... [16:07:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127394", "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" : 3.000, "sum" : 120.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 }]} ], "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" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:34]POST & json_proto [16:07:34]process_json_proto [16:07:34]json parsed OK: [16:07:34]protocol is kg_v1.0 [16:07:34]action value=close_receipt [16:07:34]process_action close_receipt [16:07:34]cmd_close_receipt [16:07:34]MH_GetDate [16:07:34]Write to MH i2c: F0 00 00 FD 29 15 [16:07:34]Write i2c OK [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: F0 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: F0 09 00 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: F0 09 00 FD 29 00 C9 B4 E5 66 33 3A A4 66 5D [16:07:34]GetLastDocTimeStamp 1726329816 [16:07:34]current date 1726330057 [16:07:34]FM_GetShiftState [16:07:34]SAM_PROTO_GetShiftState [16:07:34]wFMCommunicate request_size=4 [16:07:34]MH_SAM_APDU [16:07:34]CAPDU: 80 13 01 00 [16:07:34]Write to MH i2c: E2 08 00 FE 29 80 13 01 00 00 00 00 00 A4 [16:07:34]Write i2c OK [16:07:34]MH_I2C_Read... [16:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:34]Read from MH i2c: E2 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: E2 0E 00 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: E2 0E 00 FE 29 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3E [16:07:34]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:07:34]wFMCommunicate OK [16:07:34]SAM_PROTO_GetShiftState done [16:07:34]FM_GetShiftState done [16:07:34]opened in 1726273389 [16:07:34]opened+sec_in_day 1726359789 [16:07:34]quantity*price = 12000 [16:07:34]sum+1 = 12001 [16:07:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160044 Вода Ыссык Ата 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.41 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 140 14.09.2024 16:07 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92489 ФПД: 35350187603158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T160738&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92489&fm=35350187603158&tin=02508201610067®Number=0000000000091423&sum=16000 0 [16:07:35]StoreToDocumentArchive [16:07:35]shift 506 fd 92489 [16:07:35]save to /storage/0506/doc_00092489 [16:07:35]save last doc name /storage/0506/doc_00092489 to /storage/kkm_last_doc_name [16:07:35]save OK [16:07:35]Clear old archive folders... [16:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=375 [16:07:35]tlvbuf is 01014200 [16:07:35]SAM_PROTO_ClearQueue [16:07:35]wFMCommunicate request_size=4 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 09 00 00 [16:07:35]Write to MH i2c: E2 08 00 0B 2A 80 09 00 00 00 00 00 00 A7 [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 0B 2A 00 90 00 A9 [16:07:35]RAPDU: 90 00 [16:07:35]wFMCommunicate OK [16:07:35]SAM_PROTO_ClearQueue done [16:07:35]KKMCreateOFDPacket [16:07:35]OFDProtocolAddRootSTLVToBuf [16:07:35]FM_MakeSignedData [16:07:35]FM_MakeSignedData [16:07:35]SAM_PROTO_SignData [16:07:35]wFMCommunicate request_size=4 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 0D 01 02 [16:07:35]Write to MH i2c: E2 08 00 0C 2A 80 0D 01 02 00 00 00 00 AF [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 0C 2A 00 90 00 AA [16:07:35]RAPDU: 90 00 [16:07:35]wFMCommunicate OK [16:07:35]wFMCommunicate request_size=255 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F [16:07:35]Write to MH i2c: E2 02 01 0D 2A 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 00 D7 [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 0D 2A 00 90 00 AB [16:07:35]RAPDU: 90 00 [16:07:35]wFMCommunicate OK [16:07:35]wFMCommunicate request_size=134 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 CA B4 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 69 01 00 35 04 06 00 20 26 9B 5F F4 D6 [16:07:35]Write to MH i2c: E2 89 00 0E 2A 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 CA B4 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 69 01 00 35 04 06 00 20 26 9B 5F F4 D6 00 00 53 [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 03 00 0E 2A 00 90 00 AC [16:07:35]RAPDU: 90 00 [16:07:35]wFMCommunicate OK [16:07:35]wFMCommunicate request_size=4 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 0D 03 02 [16:07:35]Write to MH i2c: E2 08 00 0F 2A 80 0D 03 02 00 00 00 00 B4 [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 0B 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 0B 00 0F 2A 00 66 DE 4F 7A 8C 73 29 C9 90 00 B3 [16:07:35]RAPDU: 66 DE 4F 7A 8C 73 29 C9 90 00 [16:07:35]wFMCommunicate OK [16:07:35]SAM_PROTO_SignData done [16:07:35]FM_MakeSignedData done [16:07:35]CreateOFDProtocolMessage [16:07:35]wFMCommunicate request_size=4 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 11 00 00 [16:07:35]Write to MH i2c: E2 08 00 10 2A 80 11 00 00 00 00 00 00 B4 [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 17 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 17 00 10 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0B [16:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:07:35]wFMCommunicate OK [16:07:35]CreateOFDProtocolMessage done [16:07:35]OFDSenderStorePacket 92489 [16:07:35]StoreOFDPacket docnum=92489 [16:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8B 01 00 00 AF 0C 83 01 F8 D9 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 CA B4 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 69 01 00 35 04 06 00 20 26 9B 5F F4 D6 66 DE 4F 7A 8C 73 29 C9 [16:07:35]CheckFolder [16:07:35]dirname=/storage/ofd_packets [16:07:35]CheckFolder done [16:07:35]ProducePacketName [16:07:35]name=ofd_packets/00092489 [16:07:35]NVStorageSaveData ofd_packets/00092489 [16:07:35]File name is /storage/ofd_packets/00092489 [16:07:35]Write 425 bytes [16:07:35]NVStorageSaveData done [16:07:35]OFDSenderStorePacket done [16:07:35]KKMCreateOFDPacket done [16:07:35]NVStorageSaveData kkm_last_timestamp [16:07:35]File name is /storage/kkm_last_timestamp [16:07:35]Write 4 bytes [16:07:35]NVStorageSaveData done [16:07:35]ExternCall_PrintAddStr [16:07:35]wPrintStart [16:07:35]Write to MH i2c: 01 00 00 11 2A 3B [16:07:36]OFD Sender: Processing packet 92489 [packets to send 63, broken 62] [16:07:36]ProducePacketName [16:07:36]name=ofd_packets/00092489 [16:07:36]OFD Sender: To server: pG, [16:07:36]CommunicateWithHost lk.salyk.kg:30040 [16:07:36]ConnectInit lk.salyk.kg [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 11 2A 00 00 00 00 00 FF 0F 50 [16:07:36]RasterBufferAndPrint [16:07:36]line Счет N : (3)127394 [16:07:36]line ИНН: 02508201610067 [16:07:36]line Контрольно-Кассовый Чек [16:07:36]line ПРОДАЖА [16:07:36]line Товар: 4700000160211 [16:07:36]line Вода Легенда 0,5л [16:07:36]line 3.000 * 40.00 [16:07:36]line = 120.00 [16:07:36]line НДС 12% НСП 1% [16:07:36]line > о реализуемом товаре [16:07:36]line Товар: 4700000160044 [16:07:36]line Вода Ыссык Ата 0,5л [16:07:36]line 1.000 * 40.00 [16:07:36]line = 40.00 [16:07:36]line НДС 12% НСП 1% [16:07:36]line > о реализуемом товаре [16:07:36]line ИТОГО: 160.00 [16:07:36]line НСП 1% : 1.41 [16:07:36]line НДС 12% : 16.99 [16:07:36]line Наличными: 0.00 [16:07:36]line Безнал.: 160.00 [16:07:36]line Место: АЗС № 5 "Партнер Нефть" [16:07:36]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:07:36]line СНО: Общий режим [16:07:36]line Чек 140 14.09.2024 16:07 [16:07:36]line Смена: 506 ФФД: 1.0 [16:07:36]line ЗНМ: 03000000022 [16:07:36]line РНМ: 0000000000091423 [16:07:36]line Версия ККМ: 001 [16:07:36]line Платежная система: Бакай Банк [16:07:36]line ФМ: 0000000000874692 [16:07:36]line ФД: 92489 [16:07:36]line ФПД: 35350187603158 [16:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T160738&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92489&fm=35350187603158&tin=02508201610067®Number=0000000000091423&sum=16000 [16:07:36]line 0 [16:07:36]written 0, free lines is 4095 [16:07:36]Connected sock=10 [16:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8B 01 00 00 AF 0C 83 01 F8 D9 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 CA B4 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 69 01 00 35 04 06 00 20 26 9B 5F F4 D6 66 DE 4F 7A 8C 73 29 C9 [16:07:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 20 C2 47 00 47 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 49 69 01 00 F4 03 04 00 44 5D E5 66 B6 04 01 00 00 74 5D 90 91 29 1A 9B EA [16:07:36]CommunicateWithHost err = 0 [16:07:36]CheckOFDResponse [16:07:36]1017 (14) - 77093643461234 [16:07:36]1041 (16) - 0000000000874692 [16:07:36]1040 (4) - 92489 [16:07:36]1012 (4) - 14.09.2024 09:54 [16:07:36]1206 (1) - 0 [16:07:36]OFD Sender: Remove packet 92489 [16:07:36]ProducePacketName [16:07:36]name=ofd_packets/00092489 [16:07:36]NVStorageDeleteData [16:07:36]Write to MH i2c: 01 00 00 41 2A 6B [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 41 2A 00 00 00 00 00 B2 0C 30 [16:07:36]RasterBufferAndPrint [16:07:36]line [16:07:36]line [16:07:36]line [16:07:36]line [16:07:36]line [16:07:36]written 0, free lines is 3256 [16:07:36]MH_Cut [16:07:36]Write to MH i2c: D1 01 00 48 2A 01 44 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: D1 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: D1 01 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: D1 01 00 48 2A 00 43 [16:07:36]Write to MH i2c: 01 00 00 49 2A 73 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]OFD Sender: No OFD packet to send [16:07:37]*** Cut start [16:07:37]*** Purtial cut [16:07:37]*** Stage 1: CUTSNS_PIN = 1 [16:07:39]Read from MH i2c: 01 [16:07:39]MH_I2C_Read... [16:07:39]*** Stop cut motor [16:07:39]*** Cut end [16:07:39]Read from MH i2c: 01 07 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: 01 07 00 49 2A 00 00 00 00 00 FF 0F 88 [16:07:39]process_action close_receipt done [16:07:39]requested_data is exist [16:07:39]produce_requested_data [16:07:39]requested_item fm.sn is exist - process it [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 11 00 00 [16:07:39]Write to MH i2c: E2 08 00 4A 2A 80 11 00 00 00 00 00 00 EE [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 17 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 17 00 4A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 45 [16:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:07:39]wFMCommunicate OK [16:07:39]requested_item fd.num is exist - process it [16:07:39]SAM_PROTO_GetFieldsCounters [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 13 00 00 [16:07:39]Write to MH i2c: E2 08 00 4B 2A 80 13 00 00 00 00 00 00 F1 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 62 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 62 00 4B 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 49 69 01 00 0E 04 04 00 FA 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 62 [16:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 49 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_GetFieldsCounters done [16:07:39]requested_item shift.num is exist - process it [16:07:39]requested_item shift.opened is exist - process it [16:07:39]req_shift_opened [16:07:39]FM_GetShiftState [16:07:39]SAM_PROTO_GetShiftState [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 13 01 00 [16:07:39]Write to MH i2c: E2 08 00 4C 2A 80 13 01 00 00 00 00 00 F3 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 4C 2A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8D [16:07:39]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_GetShiftState done [16:07:39]FM_GetShiftState done [16:07:39]req_shift_opened done [16:07:39]requested_item shift.open_date is exist - process it [16:07:39]req_shift_open_date [16:07:39]req_shift_open_date done [16:07:39]produce_requested_data done [16:07:39]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92489,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:07:39]process_action_free close_receipt [16:07:39]json_value_free [16:07:39]json_value_free done [16:07:39]process_json_proto returns [16:07:39]Send response to host [16:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92489,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:07:39]free response buf [16:07:39]execute_script done [16:07:39]execute_script returns [16:07:39]free content buf [16:07:39]Sock 8.Close socket [16:07:39]Sock 8.Thread stoped [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:22]accept exits with 9 [16:17:22]New connection [16:17:22]New thread 3066658148 created [16:17:22]Thread 3066801508 joined [16:17:22]Waiting for new connection... [16:17:22] Sock 9.Parse request [16:17:22]Sock 9.Check first char [16:17:22]Sock 9.First char is OK [16:17:22]request: POST /json_proto HTTP/1.0 [16:17:22]Method: POST [16:17:22]URL: /json_proto [16:17:22]Method is POST - this is cgi request [16:17:22]url: /json_proto [16:17:22]query_string will be loaded in cgi processing [16:17:22]execute_cgi json_proto POST (null) [16:17:22]execute_cgi path=json_proto method=POST [16:17:22]POST find Content-Length [16:17:22]Host: 172.17.57.71:8080 [16:17:22]Content-Length: 644 [16:17:22]Content-Type: application/json [16:17:22] [16:17:22]POST finish read [16:17:22]Found Content-Length = 644 [16:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127395", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:22]execute_script... [16:17: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 : (3)127395", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:22]POST & json_proto [16:17:22]process_json_proto [16:17:22]json parsed OK: [16:17:22]protocol is kg_v1.0 [16:17:22]action value=close_receipt [16:17:22]process_action close_receipt [16:17:22]cmd_close_receipt [16:17:22]MH_GetDate [16:17:22]Write to MH i2c: F0 00 00 4D 2A 66 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: F0 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: F0 09 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: F0 09 00 4D 2A 00 16 B7 E5 66 33 3A A4 66 FE [16:17:22]GetLastDocTimeStamp 1726330058 [16:17:22]current date 1726330646 [16:17:22]FM_GetShiftState [16:17:22]SAM_PROTO_GetShiftState [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 13 01 00 [16:17:22]Write to MH i2c: E2 08 00 4E 2A 80 13 01 00 00 00 00 00 F5 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 0E 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 0E 00 4E 2A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8F [16:17:22]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:17:22]wFMCommunicate OK [16:17:22]SAM_PROTO_GetShiftState done [16:17:22]FM_GetShiftState done [16:17:22]opened in 1726273389 [16:17:22]opened+sec_in_day 1726359789 [16:17:22]quantity*price = 11800 [16:17:22]sum+1 = 11801 [16:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 118.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 141 14.09.2024 16:17 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92490 ФПД: 71024568553089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T161726&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92490&fm=71024568553089&tin=02508201610067®Number=0000000000091423&sum=11800 0 [16:17:23]StoreToDocumentArchive [16:17:23]shift 506 fd 92490 [16:17:23]save to /storage/0506/doc_00092490 [16:17:23]save last doc name /storage/0506/doc_00092490 to /storage/kkm_last_doc_name [16:17:23]save OK [16:17:23]Clear old archive folders... [16:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=281 [16:17:24]tlvbuf is 00FEB2C0 [16:17:24]SAM_PROTO_ClearQueue [16:17:24]wFMCommunicate request_size=4 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 09 00 00 [16:17:24]Write to MH i2c: E2 08 00 5B 2A 80 09 00 00 00 00 00 00 F7 [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 03 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [16:17:24]RAPDU: 90 00 [16:17:24]wFMCommunicate OK [16:17:24]SAM_PROTO_ClearQueue done [16:17:24]KKMCreateOFDPacket [16:17:24]OFDProtocolAddRootSTLVToBuf [16:17:24]FM_MakeSignedData [16:17:24]FM_MakeSignedData [16:17:24]SAM_PROTO_SignData [16:17:24]wFMCommunicate request_size=4 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 0D 01 02 [16:17:24]Write to MH i2c: E2 08 00 5C 2A 80 0D 01 02 00 00 00 00 FF [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 03 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [16:17:24]RAPDU: 90 00 [16:17:24]wFMCommunicate OK [16:17:24]wFMCommunicate request_size=255 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 16 B7 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 [16:17:24]Write to MH i2c: E2 02 01 5D 2A 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 16 B7 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 24 [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 03 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [16:17:24]RAPDU: 90 00 [16:17:24]wFMCommunicate OK [16:17:24]wFMCommunicate request_size=40 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 69 01 00 35 04 06 00 40 98 B2 2D CE 81 [16:17:24]Write to MH i2c: E2 2B 00 5E 2A 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 69 01 00 35 04 06 00 40 98 B2 2D CE 81 00 00 7D [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 03 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [16:17:24]RAPDU: 90 00 [16:17:24]wFMCommunicate OK [16:17:24]wFMCommunicate request_size=4 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 0D 03 02 [16:17:24]Write to MH i2c: E2 08 00 5F 2A 80 0D 03 02 00 00 00 00 04 [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 0B 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 0B 00 5F 2A 00 F0 61 C5 D6 81 0A CB 65 90 00 AC [16:17:24]RAPDU: F0 61 C5 D6 81 0A CB 65 90 00 [16:17:24]wFMCommunicate OK [16:17:24]SAM_PROTO_SignData done [16:17:24]FM_MakeSignedData done [16:17:24]CreateOFDProtocolMessage [16:17:24]wFMCommunicate request_size=4 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 11 00 00 [16:17:24]Write to MH i2c: E2 08 00 60 2A 80 11 00 00 00 00 00 00 04 [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 17 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 17 00 60 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5B [16:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:17:24]wFMCommunicate OK [16:17:24]CreateOFDProtocolMessage done [16:17:24]OFDSenderStorePacket 92490 [16:17:24]StoreOFDPacket docnum=92490 [16:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 E2 42 25 01 A7 5E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 16 B7 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 69 01 00 35 04 06 00 40 98 B2 2D CE 81 F0 61 C5 D6 81 0A CB 65 [16:17:24]CheckFolder [16:17:24]dirname=/storage/ofd_packets [16:17:24]CheckFolder done [16:17:24]ProducePacketName [16:17:24]name=ofd_packets/00092490 [16:17:24]NVStorageSaveData ofd_packets/00092490 [16:17:24]File name is /storage/ofd_packets/00092490 [16:17:24]Write 331 bytes [16:17:24]NVStorageSaveData done [16:17:24]OFDSenderStorePacket done [16:17:24]KKMCreateOFDPacket done [16:17:24]NVStorageSaveData kkm_last_timestamp [16:17:24]File name is /storage/kkm_last_timestamp [16:17:24]Write 4 bytes [16:17:24]NVStorageSaveData done [16:17:24]ExternCall_PrintAddStr [16:17:24]wPrintStart [16:17:24]Write to MH i2c: 01 00 00 61 2A 8B [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: 01 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: 01 07 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: 01 07 00 61 2A 00 00 00 00 00 FF 0F A0 [16:17:24]RasterBufferAndPrint [16:17:24]line Счет N : (3)127395 [16:17:24]line ИНН: 02508201610067 [16:17:24]line Контрольно-Кассовый Чек [16:17:24]line ПРОДАЖА [16:17:24]line Товар: 4607065001445 [16:17:24]line Шок батончик Snickers 50,5г [16:17:24]line 2.000 * 59.00 [16:17:24]line = 118.00 [16:17:24]line НДС 12% НСП 1% [16:17:24]line > о реализуемом товаре [16:17:24]line ИТОГО: 118.00 [16:17:24]line НСП 1% : 1.04 [16:17:24]line НДС 12% : 12.53 [16:17:24]line Наличными: 118.00 [16:17:24]line Безнал.: 0.00 [16:17:24]line Место: АЗС № 5 "Партнер Нефть" [16:17:24]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:17:24]line СНО: Общий режим [16:17:24]line Чек 141 14.09.2024 16:17 [16:17:24]line Смена: 506 ФФД: 1.0 [16:17:24]line ЗНМ: 03000000022 [16:17:24]line РНМ: 0000000000091423 [16:17:24]line Версия ККМ: 001 [16:17:24]line ФМ: 0000000000874692 [16:17:24]line ФД: 92490 [16:17:24]line ФПД: 71024568553089 [16:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T161726&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92490&fm=71024568553089&tin=02508201610067®Number=0000000000091423&sum=11800 [16:17:24]line 0 [16:17:24]OFD Sender: Processing packet 92490 [packets to send 63, broken 62] [16:17:24]ProducePacketName [16:17:24]name=ofd_packets/00092490 [16:17:24]OFD Sender: To server: pG, [16:17:24]CommunicateWithHost lk.salyk.kg:30040 [16:17:24]ConnectInit lk.salyk.kg [16:17:24]written 0, free lines is 4095 [16:17:25]Connected sock=10 [16:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 E2 42 25 01 A7 5E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 16 B7 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 69 01 00 35 04 06 00 40 98 B2 2D CE 81 F0 61 C5 D6 81 0A CB 65 [16:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 22 87 47 00 0C E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4A 69 01 00 F4 03 04 00 91 5F E5 66 B6 04 01 00 00 21 75 3A D0 DB 39 90 E8 [16:17:25]CommunicateWithHost err = 0 [16:17:25]CheckOFDResponse [16:17:25]1017 (14) - 77093643461234 [16:17:25]1041 (16) - 0000000000874692 [16:17:25]1040 (4) - 92490 [16:17:25]1012 (4) - 14.09.2024 10:04 [16:17:25]1206 (1) - 0 [16:17:25]OFD Sender: Remove packet 92490 [16:17:25]ProducePacketName [16:17:25]name=ofd_packets/00092490 [16:17:25]NVStorageDeleteData [16:17:25]Write to MH i2c: 01 00 00 89 2A B3 [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: 01 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: 01 07 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: 01 07 00 89 2A 00 00 00 00 00 2D 0D F4 [16:17:25]RasterBufferAndPrint [16:17:25]line [16:17:25]line [16:17:25]line [16:17:25]line [16:17:25]line [16:17:25]written 0, free lines is 3382 [16:17:25]MH_Cut [16:17:25]Write to MH i2c: D1 01 00 90 2A 01 8C [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: D1 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: D1 01 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: D1 01 00 90 2A 00 8B [16:17:25]Write to MH i2c: 01 00 00 91 2A BB [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]OFD Sender: No OFD packet to send [16:17:25]*** Cut start [16:17:25]*** Purtial cut [16:17:25]*** Stage 1: CUTSNS_PIN = 1 [16:17:27]Read from MH i2c: 01 [16:17:27]MH_I2C_Read... [16:17:27]*** Stop cut motor [16:17:27]*** Cut end [16:17:27]Read from MH i2c: 01 07 00 [16:17:27]MH_I2C_Read... [16:17:27]Read from MH i2c: 01 07 00 91 2A 00 00 00 00 00 FF 0F D0 [16:17:27]process_action close_receipt done [16:17:27]requested_data is exist [16:17:27]produce_requested_data [16:17:27]requested_item fm.sn is exist - process it [16:17:27]wFMCommunicate request_size=4 [16:17:27]MH_SAM_APDU [16:17:27]CAPDU: 80 11 00 00 [16:17:27]Write to MH i2c: E2 08 00 92 2A 80 11 00 00 00 00 00 00 36 [16:17:27]Write i2c OK [16:17:27]MH_I2C_Read... [16:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:28]Read from MH i2c: E2 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 17 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 17 00 92 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8D [16:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:17:28]wFMCommunicate OK [16:17:28]requested_item fd.num is exist - process it [16:17:28]SAM_PROTO_GetFieldsCounters [16:17:28]wFMCommunicate request_size=4 [16:17:28]MH_SAM_APDU [16:17:28]CAPDU: 80 13 00 00 [16:17:28]Write to MH i2c: E2 08 00 93 2A 80 13 00 00 00 00 00 00 39 [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:28]Read from MH i2c: E2 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 62 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 62 00 93 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4A 69 01 00 0E 04 04 00 FA 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 AE [16:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4A 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:28]wFMCommunicate OK [16:17:28]SAM_PROTO_GetFieldsCounters done [16:17:28]requested_item shift.num is exist - process it [16:17:28]requested_item shift.opened is exist - process it [16:17:28]req_shift_opened [16:17:28]FM_GetShiftState [16:17:28]SAM_PROTO_GetShiftState [16:17:28]wFMCommunicate request_size=4 [16:17:28]MH_SAM_APDU [16:17:28]CAPDU: 80 13 01 00 [16:17:28]Write to MH i2c: E2 08 00 94 2A 80 13 01 00 00 00 00 00 3B [16:17:28]Write i2c OK [16:17:28]MH_I2C_Read... [16:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:28]Read from MH i2c: E2 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 0E 00 [16:17:28]MH_I2C_Read... [16:17:28]Read from MH i2c: E2 0E 00 94 2A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D5 [16:17:28]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:17:28]wFMCommunicate OK [16:17:28]SAM_PROTO_GetShiftState done [16:17:28]FM_GetShiftState done [16:17:28]req_shift_opened done [16:17:28]requested_item shift.open_date is exist - process it [16:17:28]req_shift_open_date [16:17:28]req_shift_open_date done [16:17:28]produce_requested_data done [16:17:28]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92490,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:17:28]process_action_free close_receipt [16:17:28]json_value_free [16:17:28]json_value_free done [16:17:28]process_json_proto returns [16:17:28]Send response to host [16:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92490,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:17:28]free response buf [16:17:28]execute_script done [16:17:28]execute_script returns [16:17:28]free content buf [16:17:28]Sock 9.Close socket [16:17:28]Sock 9.Thread stoped [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:16]accept exits with 8 [16:18:16]New connection [16:18:16]New thread 3066801508 created [16:18:16]Thread 3066658148 joined [16:18:16]Waiting for new connection... [16:18:16] Sock 8.Parse request [16:18:16]Sock 8.Check first char [16:18:16]Sock 8.First char is OK [16:18:16]request: POST /json_proto HTTP/1.0 [16:18:16]Method: POST [16:18:16]URL: /json_proto [16:18:16]Method is POST - this is cgi request [16:18:16]url: /json_proto [16:18:16]query_string will be loaded in cgi processing [16:18:16]execute_cgi json_proto POST (null) [16:18:16]execute_cgi path=json_proto method=POST [16:18:16]POST find Content-Length [16:18:16]Host: 172.17.57.71:8080 [16:18:16]Content-Length: 1254 [16:18:16]Content-Type: application/json [16:18:16] [16:18:16]POST finish read [16:18:16]Found Content-Length = 1254 [16:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127396", "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" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 314.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:16]execute_script... [16:18:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127396", "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" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 314.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:16]POST & json_proto [16:18:16]process_json_proto [16:18:16]json parsed OK: [16:18:16]protocol is kg_v1.0 [16:18:16]action value=close_receipt [16:18:16]process_action close_receipt [16:18:16]cmd_close_receipt [16:18:16]MH_GetDate [16:18:16]Write to MH i2c: F0 00 00 95 2A AE [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: F0 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: F0 09 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: F0 09 00 95 2A 00 4C B7 E5 66 33 3A A4 66 7C [16:18:16]GetLastDocTimeStamp 1726330646 [16:18:16]current date 1726330700 [16:18:16]FM_GetShiftState [16:18:16]SAM_PROTO_GetShiftState [16:18:16]wFMCommunicate request_size=4 [16:18:16]MH_SAM_APDU [16:18:16]CAPDU: 80 13 01 00 [16:18:16]Write to MH i2c: E2 08 00 96 2A 80 13 01 00 00 00 00 00 3D [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:16]Read from MH i2c: E2 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 0E 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 0E 00 96 2A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D7 [16:18:16]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:18:16]wFMCommunicate OK [16:18:16]SAM_PROTO_GetShiftState done [16:18:16]FM_GetShiftState done [16:18:16]opened in 1726273389 [16:18:16]opened+sec_in_day 1726359789 [16:18:16]quantity*price = 18000 [16:18:16]sum+1 = 18001 [16:18:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 314.00 НСП 1% : 2.77 НДС 12% : 33.33 Наличными: 314.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 142 14.09.2024 16:18 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92491 ФПД: 39489277185678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T161820&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92491&fm=39489277185678&tin=02508201610067®Number=0000000000091423&sum=31400 0 [16:18:17]StoreToDocumentArchive [16:18:17]shift 506 fd 92491 [16:18:17]save to /storage/0506/doc_00092491 [16:18:17]save last doc name /storage/0506/doc_00092491 to /storage/kkm_last_doc_name [16:18:17]save OK [16:18:17]Clear old archive folders... [16:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=527 [16:18:17]tlvbuf is 00FCB680 [16:18:17]SAM_PROTO_ClearQueue [16:18:17]wFMCommunicate request_size=4 [16:18:17]MH_SAM_APDU [16:18:17]CAPDU: 80 09 00 00 [16:18:17]Write to MH i2c: E2 08 00 A3 2A 80 09 00 00 00 00 00 00 3F [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:17]Read from MH i2c: E2 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 A3 2A 00 90 00 41 [16:18:17]RAPDU: 90 00 [16:18:17]wFMCommunicate OK [16:18:17]SAM_PROTO_ClearQueue done [16:18:17]KKMCreateOFDPacket [16:18:17]OFDProtocolAddRootSTLVToBuf [16:18:17]FM_MakeSignedData [16:18:17]FM_MakeSignedData [16:18:17]SAM_PROTO_SignData [16:18:17]wFMCommunicate request_size=4 [16:18:17]MH_SAM_APDU [16:18:17]CAPDU: 80 0D 01 02 [16:18:17]Write to MH i2c: E2 08 00 A4 2A 80 0D 01 02 00 00 00 00 47 [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:17]Read from MH i2c: E2 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [16:18:17]RAPDU: 90 00 [16:18:17]wFMCommunicate OK [16:18:17]wFMCommunicate request_size=255 [16:18:17]MH_SAM_APDU [16:18:17]CAPDU: 80 0D 02 02 FA 03 00 0F 02 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 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [16:18:17]Write to MH i2c: E2 02 01 A5 2A 80 0D 02 02 FA 00 03 00 0F 02 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 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 DB [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:18]Read from MH i2c: E2 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 03 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 03 00 A5 2A 00 90 00 43 [16:18:18]RAPDU: 90 00 [16:18:18]wFMCommunicate OK [16:18:18]wFMCommunicate request_size=255 [16:18:18]MH_SAM_APDU [16:18:18]CAPDU: 80 0D 02 02 FA 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0D 00 00 00 00 07 04 06 00 A8 7A 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 4C B7 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 [16:18:18]Write to MH i2c: E2 02 01 A6 2A 80 0D 02 02 FA 00 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0D 00 00 00 00 07 04 06 00 A8 7A 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 4C B7 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 00 00 58 [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:18]Read from MH i2c: E2 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 03 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 03 00 A6 2A 00 90 00 44 [16:18:18]RAPDU: 90 00 [16:18:18]wFMCommunicate OK [16:18:18]wFMCommunicate request_size=36 [16:18:18]MH_SAM_APDU [16:18:18]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4B 69 01 00 35 04 06 00 23 EA 50 56 CE 8E [16:18:18]Write to MH i2c: E2 27 00 A7 2A 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4B 69 01 00 35 04 06 00 23 EA 50 56 CE 8E 00 00 38 [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:18]Read from MH i2c: E2 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 03 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 03 00 A7 2A 00 90 00 45 [16:18:18]RAPDU: 90 00 [16:18:18]wFMCommunicate OK [16:18:18]wFMCommunicate request_size=4 [16:18:18]MH_SAM_APDU [16:18:18]CAPDU: 80 0D 03 02 [16:18:18]Write to MH i2c: E2 08 00 A8 2A 80 0D 03 02 00 00 00 00 4D [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:18]Read from MH i2c: E2 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 0B 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 0B 00 A8 2A 00 5C DE 9B 8B B2 9D AA 05 90 00 AC [16:18:18]RAPDU: 5C DE 9B 8B B2 9D AA 05 90 00 [16:18:18]wFMCommunicate OK [16:18:18]SAM_PROTO_SignData done [16:18:18]FM_MakeSignedData done [16:18:18]CreateOFDProtocolMessage [16:18:18]wFMCommunicate request_size=4 [16:18:18]MH_SAM_APDU [16:18:18]CAPDU: 80 11 00 00 [16:18:18]Write to MH i2c: E2 08 00 A9 2A 80 11 00 00 00 00 00 00 4D [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:18]Read from MH i2c: E2 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 17 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 17 00 A9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A4 [16:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:18:18]wFMCommunicate OK [16:18:18]CreateOFDProtocolMessage done [16:18:18]OFDSenderStorePacket 92491 [16:18:18]StoreOFDPacket docnum=92491 [16:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 02 00 00 F4 24 1B 02 68 87 5A 03 01 00 03 00 0F 02 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 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0D 00 00 00 00 07 04 06 00 A8 7A 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 4C B7 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4B 69 01 00 35 04 06 00 23 EA 50 56 CE 8E 5C DE 9B 8B B2 9D AA 05 [16:18:18]CheckFolder [16:18:18]dirname=/storage/ofd_packets [16:18:18]CheckFolder done [16:18:18]ProducePacketName [16:18:18]name=ofd_packets/00092491 [16:18:18]NVStorageSaveData ofd_packets/00092491 [16:18:18]File name is /storage/ofd_packets/00092491 [16:18:18]Write 577 bytes [16:18:18]NVStorageSaveData done [16:18:18]OFDSenderStorePacket done [16:18:18]KKMCreateOFDPacket done [16:18:18]NVStorageSaveData kkm_last_timestamp [16:18:18]File name is /storage/kkm_last_timestamp [16:18:18]Write 4 bytes [16:18:18]NVStorageSaveData done [16:18:18]OFD Sender: Processing packet 92491 [packets to send 63, broken 62] [16:18:18]ProducePacketName [16:18:18]name=ofd_packets/00092491 [16:18:18]OFD Sender: To server: pG, [16:18:18]CommunicateWithHost lk.salyk.kg:30040 [16:18:18]ConnectInit lk.salyk.kg [16:18:18]ExternCall_PrintAddStr [16:18:18]wPrintStart [16:18:18]Write to MH i2c: 01 00 00 AA 2A D4 [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 07 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: 01 07 00 AA 2A 00 00 00 00 00 FF 0F E9 [16:18:18]RasterBufferAndPrint [16:18:18]line Счет N : (3)127396 [16:18:18]line ИНН: 02508201610067 [16:18:18]line Контрольно-Кассовый Чек [16:18:18]line ПРОДАЖА [16:18:18]line Товар: 4870002325113 [16:18:18]line Напиток PEPSI газированный ст 0,25л [16:18:18]line 2.000 * 90.00 [16:18:18]line = 180.00 [16:18:18]line НДС 12% НСП 1% [16:18:18]line > о реализуемом товаре [16:18:18]line Товар: 4870112002775 [16:18:18]line Шок батончик ALBENI BITES 80гр [16:18:18]line 1.000 * 75.00 [16:18:18]line = 75.00 [16:18:18]line НДС 12% НСП 1% [16:18:18]line > о реализуемом товаре [16:18:18]line Товар: 4011100977624 [16:18:18]line Шок Батончик Баунти 55г [16:18:18]line 1.000 * 59.00 [16:18:18]line = 59.00 [16:18:18]line НДС 12% НСП 1% [16:18:18]line > о реализуемом товаре [16:18:18]line ИТОГО: 314.00 [16:18:18]line НСП 1% : 2.77 [16:18:18]line НДС 12% : 33.33 [16:18:18]line Наличными: 314.00 [16:18:18]line Безнал.: 0.00 [16:18:18]line Место: АЗС № 5 "Партнер Нефть" [16:18:18]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:18:18]line СНО: Общий режим [16:18:18]line Чек 142 14.09.2024 16:18 [16:18:18]line Смена: 506 ФФД: 1.0 [16:18:18]line ЗНМ: 03000000022 [16:18:18]line РНМ: 0000000000091423 [16:18:18]line Версия ККМ: 001 [16:18:18]line ФМ: 0000000000874692 [16:18:18]line ФД: 92491 [16:18:18]line ФПД: 39489277185678 [16:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T161820&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92491&fm=39489277185678&tin=02508201610067®Number=0000000000091423&sum=31400 [16:18:19]line 0 [16:18:19]Connected sock=11 [16:18:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 23 02 00 00 F4 24 1B 02 68 87 5A 03 01 00 03 00 0F 02 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 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 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 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0D 00 00 00 00 07 04 06 00 A8 7A 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 4C B7 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4B 69 01 00 35 04 06 00 23 EA 50 56 CE 8E 5C DE 9B 8B B2 9D AA 05 [16:18:19]written 0, free lines is 4095 [16:18:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 86 58 47 00 78 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4B 69 01 00 F4 03 04 00 C7 5F E5 66 B6 04 01 00 00 9A E8 60 77 67 84 3A 6D [16:18:19]CommunicateWithHost err = 0 [16:18:19]CheckOFDResponse [16:18:19]1017 (14) - 77093643461234 [16:18:19]1041 (16) - 0000000000874692 [16:18:19]1040 (4) - 92491 [16:18:19]1012 (4) - 14.09.2024 10:04 [16:18:19]1206 (1) - 0 [16:18:19]OFD Sender: Remove packet 92491 [16:18:19]ProducePacketName [16:18:19]name=ofd_packets/00092491 [16:18:19]NVStorageDeleteData [16:18:19]Write to MH i2c: 01 00 00 E0 2A 0A [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 07 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 07 00 E0 2A 00 00 00 00 00 6F 0C 8C [16:18:19]RasterBufferAndPrint [16:18:19]line [16:18:19]line [16:18:19]line [16:18:19]line [16:18:19]line [16:18:19]written 0, free lines is 3192 [16:18:19]MH_Cut [16:18:19]Write to MH i2c: D1 01 00 E7 2A 01 E3 [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: D1 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: D1 01 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: D1 01 00 E7 2A 00 E2 [16:18:19]Write to MH i2c: 01 00 00 E8 2A 12 [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]OFD Sender: No OFD packet to send [16:18:20]*** Cut start [16:18:20]*** Purtial cut [16:18:20]*** Stage 1: CUTSNS_PIN = 1 [16:18:22]Read from MH i2c: 01 [16:18:22]MH_I2C_Read... [16:18:22]*** Stop cut motor [16:18:22]*** Cut end [16:18:22]Read from MH i2c: 01 07 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: 01 07 00 E8 2A 00 00 00 00 00 FF 0F 27 [16:18:22]process_action close_receipt done [16:18:22]requested_data is exist [16:18:22]produce_requested_data [16:18:22]requested_item fm.sn is exist - process it [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 11 00 00 [16:18:22]Write to MH i2c: E2 08 00 E9 2A 80 11 00 00 00 00 00 00 8D [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 17 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 17 00 E9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E4 [16:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:18:22]wFMCommunicate OK [16:18:22]requested_item fd.num is exist - process it [16:18:22]SAM_PROTO_GetFieldsCounters [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 13 00 00 [16:18:22]Write to MH i2c: E2 08 00 EA 2A 80 13 00 00 00 00 00 00 90 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 62 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 62 00 EA 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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4B 69 01 00 0E 04 04 00 FA 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 09 [16:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4B 69 01 00 0E 04 04 00 FA 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:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_GetFieldsCounters done [16:18:22]requested_item shift.num is exist - process it [16:18:22]requested_item shift.opened is exist - process it [16:18:22]req_shift_opened [16:18:22]FM_GetShiftState [16:18:22]SAM_PROTO_GetShiftState [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 13 01 00 [16:18:22]Write to MH i2c: E2 08 00 EB 2A 80 13 01 00 00 00 00 00 92 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0E 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0E 00 EB 2A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2C [16:18:22]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_GetShiftState done [16:18:22]FM_GetShiftState done [16:18:22]req_shift_opened done [16:18:22]requested_item shift.open_date is exist - process it [16:18:22]req_shift_open_date [16:18:22]req_shift_open_date done [16:18:22]produce_requested_data done [16:18:22]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92491,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:18:22]process_action_free close_receipt [16:18:22]json_value_free [16:18:22]json_value_free done [16:18:22]process_json_proto returns [16:18:22]Send response to host [16:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92491,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:18:22]free response buf [16:18:22]execute_script done [16:18:22]execute_script returns [16:18:22]free content buf [16:18:22]Sock 8.Close socket [16:18:22]Sock 8.Thread stoped [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:42]accept exits with 9 [16:22:42]New connection [16:22:42]New thread 3066658148 created [16:22:42]Thread 3066801508 joined [16:22:42]Waiting for new connection... [16:22:42] Sock 9.Parse request [16:22:42]Sock 9.Check first char [16:22:42]Sock 9.First char is OK [16:22:42]request: POST /json_proto HTTP/1.0 [16:22:42]Method: POST [16:22:42]URL: /json_proto [16:22:42]Method is POST - this is cgi request [16:22:42]url: /json_proto [16:22:42]query_string will be loaded in cgi processing [16:22:42]execute_cgi json_proto POST (null) [16:22:42]execute_cgi path=json_proto method=POST [16:22:42]POST find Content-Length [16:22:42]Host: 172.17.57.71:8080 [16:22:42]Content-Length: 728 [16:22:42]Content-Type: application/json [16:22:42] [16:22:42]POST finish read [16:22:42]Found Content-Length = 728 [16:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127397", "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" ] } } [16:22:42]execute_script... [16:22:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127397", "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" ] } } [16:22:42]POST & json_proto [16:22:42]process_json_proto [16:22:42]json parsed OK: [16:22:42]protocol is kg_v1.0 [16:22:42]action value=close_receipt [16:22:42]process_action close_receipt [16:22:42]cmd_close_receipt [16:22:42]MH_GetDate [16:22:42]Write to MH i2c: F0 00 00 EC 2A 05 [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: F0 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: F0 09 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: F0 09 00 EC 2A 00 56 B8 E5 66 33 3A A4 66 DE [16:22:42]GetLastDocTimeStamp 1726330700 [16:22:42]current date 1726330966 [16:22:42]FM_GetShiftState [16:22:42]SAM_PROTO_GetShiftState [16:22:42]wFMCommunicate request_size=4 [16:22:42]MH_SAM_APDU [16:22:42]CAPDU: 80 13 01 00 [16:22:42]Write to MH i2c: E2 08 00 ED 2A 80 13 01 00 00 00 00 00 94 [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:42]Read from MH i2c: E2 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 0E 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 0E 00 ED 2A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2E [16:22:42]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:22:43]wFMCommunicate OK [16:22:43]SAM_PROTO_GetShiftState done [16:22:43]FM_GetShiftState done [16:22:43]opened in 1726273389 [16:22:43]opened+sec_in_day 1726359789 [16:22:43]quantity*price = 10500 [16:22:43]sum+1 = 10501 [16:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 143 14.09.2024 16:22 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92492 ФПД: 182958563292350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T162246&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92492&fm=182958563292350&tin=02508201610067®Number=0000000000091423&sum=10500 0 [16:22:44]StoreToDocumentArchive [16:22:44]shift 506 fd 92492 [16:22:44]save to /storage/0506/doc_00092492 [16:22:44]save last doc name /storage/0506/doc_00092492 to /storage/kkm_last_doc_name [16:22:44]save OK [16:22:44]Clear old archive folders... [16:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=308 [16:22:44]tlvbuf is 00FF6B80 [16:22:44]SAM_PROTO_ClearQueue [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 09 00 00 [16:22:44]Write to MH i2c: E2 08 00 FA 2A 80 09 00 00 00 00 00 00 96 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 FA 2A 00 90 00 98 [16:22:44]RAPDU: 90 00 [16:22:44]wFMCommunicate OK [16:22:44]SAM_PROTO_ClearQueue done [16:22:44]KKMCreateOFDPacket [16:22:44]OFDProtocolAddRootSTLVToBuf [16:22:44]FM_MakeSignedData [16:22:44]FM_MakeSignedData [16:22:44]SAM_PROTO_SignData [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 0D 01 02 [16:22:44]Write to MH i2c: E2 08 00 FB 2A 80 0D 01 02 00 00 00 00 9E [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 FB 2A 00 90 00 99 [16:22:44]RAPDU: 90 00 [16:22:44]wFMCommunicate OK [16:22:44]wFMCommunicate request_size=255 [16:22:44]MH_SAM_APDU [16:22:44]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 8F 00 00 00 F4 03 04 00 56 B8 E5 66 0E 04 04 00 FA 01 00 00 B9 [16:22:44]Write to MH i2c: E2 02 01 FC 2A 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 8F 00 00 00 F4 03 04 00 56 B8 E5 66 0E 04 04 00 FA 01 00 00 B9 00 00 81 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 FC 2A 00 90 00 9A [16:22:44]RAPDU: 90 00 [16:22:44]wFMCommunicate OK [16:22:44]wFMCommunicate request_size=67 [16:22:44]MH_SAM_APDU [16:22:44]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 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 69 01 00 35 04 06 00 A6 66 5C 2C 74 BE [16:22:44]Write to MH i2c: E2 46 00 FD 2A 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 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 69 01 00 35 04 06 00 A6 66 5C 2C 74 BE 00 00 73 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 03 00 FD 2A 00 90 00 9B [16:22:44]RAPDU: 90 00 [16:22:44]wFMCommunicate OK [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 0D 03 02 [16:22:44]Write to MH i2c: E2 08 00 FE 2A 80 0D 03 02 00 00 00 00 A3 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 0B 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 0B 00 FE 2A 00 7F 5C 54 53 D0 E1 1C 5F 90 00 52 [16:22:44]RAPDU: 7F 5C 54 53 D0 E1 1C 5F 90 00 [16:22:44]wFMCommunicate OK [16:22:44]SAM_PROTO_SignData done [16:22:44]FM_MakeSignedData done [16:22:44]CreateOFDProtocolMessage [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 11 00 00 [16:22:44]Write to MH i2c: E2 08 00 FF 2A 80 11 00 00 00 00 00 00 A3 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 17 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 17 00 FF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FA [16:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:22:44]wFMCommunicate OK [16:22:44]CreateOFDProtocolMessage done [16:22:44]OFDSenderStorePacket 92492 [16:22:44]StoreOFDPacket docnum=92492 [16:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 48 01 00 00 D2 FF 40 01 08 51 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 8F 00 00 00 F4 03 04 00 56 B8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 69 01 00 35 04 06 00 A6 66 5C 2C 74 BE 7F 5C 54 53 D0 E1 1C 5F [16:22:44]CheckFolder [16:22:44]dirname=/storage/ofd_packets [16:22:44]CheckFolder done [16:22:44]ProducePacketName [16:22:44]name=ofd_packets/00092492 [16:22:44]NVStorageSaveData ofd_packets/00092492 [16:22:44]File name is /storage/ofd_packets/00092492 [16:22:44]Write 358 bytes [16:22:44]NVStorageSaveData done [16:22:44]OFDSenderStorePacket done [16:22:44]KKMCreateOFDPacket done [16:22:44]NVStorageSaveData kkm_last_timestamp [16:22:44]File name is /storage/kkm_last_timestamp [16:22:44]Write 4 bytes [16:22:44]NVStorageSaveData done [16:22:44]ExternCall_PrintAddStr [16:22:44]wPrintStart [16:22:44]Write to MH i2c: 01 00 00 00 2B 2B [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 07 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 07 00 00 2B 00 00 00 00 00 FF 0F 40 [16:22:44]RasterBufferAndPrint [16:22:44]line Счет N : (3)127397 [16:22:44]line ИНН: 02508201610067 [16:22:44]line Контрольно-Кассовый Чек [16:22:44]line ПРОДАЖА [16:22:44]line Товар: 5449000027474 [16:22:44]line Напиток FuzeTea зел чай манго,ромашка 1л [16:22:44]line 1.000 * 105.00 [16:22:44]line = 105.00 [16:22:44]line НДС 12% НСП 1% [16:22:44]line > о реализуемом товаре [16:22:44]line ИТОГО: 105.00 [16:22:44]line НСП 1% : 0.93 [16:22:44]line НДС 12% : 11.15 [16:22:44]line Наличными: 105.00 [16:22:44]line Безнал.: 0.00 [16:22:44]line Место: АЗС № 5 "Партнер Нефть" [16:22:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:22:44]line СНО: Общий режим [16:22:44]line Чек 143 14.09.2024 16:22 [16:22:44]line Смена: 506 ФФД: 1.0 [16:22:44]line ЗНМ: 03000000022 [16:22:44]line РНМ: 0000000000091423 [16:22:44]line Версия ККМ: 001 [16:22:44]line ФМ: 0000000000874692 [16:22:44]line ФД: 92492 [16:22:44]line ФПД: 182958563292350 [16:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T162246&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92492&fm=182958563292350&tin=02508201610067®Number=0000000000091423&sum=10500 [16:22:44]line 0 [16:22:44]OFD Sender: Processing packet 92492 [packets to send 63, broken 62] [16:22:44]ProducePacketName [16:22:44]name=ofd_packets/00092492 [16:22:44]OFD Sender: To server: pG, [16:22:44]CommunicateWithHost lk.salyk.kg:30040 [16:22:44]ConnectInit lk.salyk.kg [16:22:44]written 0, free lines is 4095 [16:22:45]Connected sock=10 [16:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 48 01 00 00 D2 FF 40 01 08 51 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 8F 00 00 00 F4 03 04 00 56 B8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 69 01 00 35 04 06 00 A6 66 5C 2C 74 BE 7F 5C 54 53 D0 E1 1C 5F [16:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 21 6A 47 00 3B 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4C 69 01 00 F4 03 04 00 D1 60 E5 66 B6 04 01 00 00 CE C5 2C 5C 66 E1 13 33 [16:22:45]CommunicateWithHost err = 0 [16:22:45]CheckOFDResponse [16:22:45]1017 (14) - 77093643461234 [16:22:45]1041 (16) - 0000000000874692 [16:22:45]1040 (4) - 92492 [16:22:45]1012 (4) - 14.09.2024 10:09 [16:22:45]1206 (1) - 0 [16:22:45]OFD Sender: Remove packet 92492 [16:22:45]ProducePacketName [16:22:45]name=ofd_packets/00092492 [16:22:45]NVStorageDeleteData [16:22:45]Write to MH i2c: 01 00 00 29 2B 54 [16:22:45]Write i2c OK [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: 01 [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: 01 07 00 [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: 01 07 00 29 2B 00 00 00 00 00 0E 0D 76 [16:22:45]RasterBufferAndPrint [16:22:45]line [16:22:45]line [16:22:45]line [16:22:45]line [16:22:45]line [16:22:45]written 0, free lines is 3347 [16:22:45]MH_Cut [16:22:45]Write to MH i2c: D1 01 00 30 2B 01 2D [16:22:45]Write i2c OK [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: D1 [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: D1 01 00 [16:22:45]MH_I2C_Read... [16:22:45]Read from MH i2c: D1 01 00 30 2B 00 2C [16:22:45]Write to MH i2c: 01 00 00 31 2B 5C [16:22:45]Write i2c OK [16:22:45]MH_I2C_Read... [16:22:45]OFD Sender: No OFD packet to send [16:22:46]*** Cut start [16:22:46]*** Purtial cut [16:22:46]*** Stage 1: CUTSNS_PIN = 1 [16:22:48]Read from MH i2c: 01 [16:22:48]MH_I2C_Read... [16:22:48]*** Stop cut motor [16:22:48]*** Cut end [16:22:48]Read from MH i2c: 01 07 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: 01 07 00 31 2B 00 00 00 00 00 FF 0F 71 [16:22:48]process_action close_receipt done [16:22:48]requested_data is exist [16:22:48]produce_requested_data [16:22:48]requested_item fm.sn is exist - process it [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 11 00 00 [16:22:48]Write to MH i2c: E2 08 00 32 2B 80 11 00 00 00 00 00 00 D7 [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 17 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 17 00 32 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2E [16:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:22:48]wFMCommunicate OK [16:22:48]requested_item fd.num is exist - process it [16:22:48]SAM_PROTO_GetFieldsCounters [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 13 00 00 [16:22:48]Write to MH i2c: E2 08 00 33 2B 80 13 00 00 00 00 00 00 DA [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 62 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 62 00 33 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4C 69 01 00 0E 04 04 00 FA 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 57 [16:22:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4C 69 01 00 0E 04 04 00 FA 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:22:48]wFMCommunicate OK [16:22:48]SAM_PROTO_GetFieldsCounters done [16:22:48]requested_item shift.num is exist - process it [16:22:48]requested_item shift.opened is exist - process it [16:22:48]req_shift_opened [16:22:48]FM_GetShiftState [16:22:48]SAM_PROTO_GetShiftState [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 13 01 00 [16:22:48]Write to MH i2c: E2 08 00 34 2B 80 13 01 00 00 00 00 00 DC [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 0E 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 0E 00 34 2B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 76 [16:22:48]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:22:48]wFMCommunicate OK [16:22:48]SAM_PROTO_GetShiftState done [16:22:48]FM_GetShiftState done [16:22:48]req_shift_opened done [16:22:48]requested_item shift.open_date is exist - process it [16:22:48]req_shift_open_date [16:22:48]req_shift_open_date done [16:22:48]produce_requested_data done [16:22:48]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92492,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:22:48]process_action_free close_receipt [16:22:48]json_value_free [16:22:48]json_value_free done [16:22:48]process_json_proto returns [16:22:48]Send response to host [16:22:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92492,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:22:48]free response buf [16:22:48]execute_script done [16:22:48]execute_script returns [16:22:48]free content buf [16:22:48]Sock 9.Close socket [16:22:48]Sock 9.Thread stoped [16:22:50]OFD Sender: No OFD packet to send [16:22:51]accept exits with 8 [16:22:51]New connection [16:22:51]New thread 3066801508 created [16:22:51]Thread 3066658148 joined [16:22:51]Waiting for new connection... [16:22:51] Sock 8.Parse request [16:22:51]Sock 8.Check first char [16:22:51]Sock 8.First char is OK [16:22:51]request: POST /json_proto HTTP/1.0 [16:22:51]Method: POST [16:22:51]URL: /json_proto [16:22:51]Method is POST - this is cgi request [16:22:51]url: /json_proto [16:22:51]query_string will be loaded in cgi processing [16:22:51]execute_cgi json_proto POST (null) [16:22:51]execute_cgi path=json_proto method=POST [16:22:51]POST find Content-Length [16:22:51]Host: 172.17.57.71:8080 [16:22:51]Content-Length: 674 [16:22:51]Content-Type: application/json [16:22:51] [16:22:51]POST finish read [16:22:51]Found Content-Length = 674 [16:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 2.530, "sum" : 188.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 188.00, "total" : 188.00, "payments": [ { "type": 0, "sum" : 188.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:51]execute_script... [16:22:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 2.530, "sum" : 188.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 188.00, "total" : 188.00, "payments": [ { "type": 0, "sum" : 188.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:51]POST & json_proto [16:22:51]process_json_proto [16:22:51]json parsed OK: [16:22:51]protocol is kg_v1.0 [16:22:51]action value=close_receipt [16:22:51]process_action close_receipt [16:22:51]cmd_close_receipt [16:22:51]MH_GetDate [16:22:51]Write to MH i2c: F0 00 00 35 2B 4F [16:22:51]Write i2c OK [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: F0 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: F0 09 00 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: F0 09 00 35 2B 00 5F B8 E5 66 33 3A A4 66 31 [16:22:51]GetLastDocTimeStamp 1726330966 [16:22:51]current date 1726330975 [16:22:51]FM_GetShiftState [16:22:51]SAM_PROTO_GetShiftState [16:22:51]wFMCommunicate request_size=4 [16:22:51]MH_SAM_APDU [16:22:51]CAPDU: 80 13 01 00 [16:22:51]Write to MH i2c: E2 08 00 36 2B 80 13 01 00 00 00 00 00 DE [16:22:51]Write i2c OK [16:22:51]MH_I2C_Read... [16:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:51]Read from MH i2c: E2 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 0E 00 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 0E 00 36 2B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 78 [16:22:51]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:22:51]wFMCommunicate OK [16:22:51]SAM_PROTO_GetShiftState done [16:22:51]FM_GetShiftState done [16:22:51]opened in 1726273389 [16:22:51]opened+sec_in_day 1726359789 [16:22:51]quantity*price = 18823 [16:22:51]sum+1 = 18824 [16:22:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 188.00 Внесено: 188.00 СДАЧА: 0.00 НСП 1% : 1.67 НДС 12% : 19.99 Наличными: 188.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 144 14.09.2024 16:22 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92493 ФПД: 119248744180578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T162255&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92493&fm=119248744180578&tin=02508201610067®Number=0000000000091423&sum=18800 [16:22:52]StoreToDocumentArchive [16:22:52]shift 506 fd 92493 [16:22:52]save to /storage/0506/doc_00092493 [16:22:52]save last doc name /storage/0506/doc_00092493 to /storage/kkm_last_doc_name [16:22:52]save OK [16:22:52]Clear old archive folders... [16:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:22:52]tlvbuf is 01048780 [16:22:52]SAM_PROTO_ClearQueue [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 09 00 00 [16:22:52]Write to MH i2c: E2 08 00 43 2B 80 09 00 00 00 00 00 00 E0 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 43 2B 00 90 00 E2 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_ClearQueue done [16:22:52]KKMCreateOFDPacket [16:22:52]OFDProtocolAddRootSTLVToBuf [16:22:52]FM_MakeSignedData [16:22:52]FM_MakeSignedData [16:22:52]SAM_PROTO_SignData [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 01 02 [16:22:52]Write to MH i2c: E2 08 00 44 2B 80 0D 01 02 00 00 00 00 E8 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 44 2B 00 90 00 E3 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=255 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 09 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 87 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 CF 07 00 00 00 00 07 04 06 00 70 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 90 00 00 00 F4 03 04 00 5F B8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4D 69 01 00 35 04 06 00 6C 74 C3 09 [16:22:52]Write to MH i2c: E2 02 01 45 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 09 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 87 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 CF 07 00 00 00 00 07 04 06 00 70 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 90 00 00 00 F4 03 04 00 5F B8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4D 69 01 00 35 04 06 00 6C 74 C3 09 00 00 6A [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 45 2B 00 90 00 E4 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=7 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 02 02 02 6B 62 [16:22:52]Write to MH i2c: E2 0A 00 46 2B 80 0D 02 02 02 00 6B 62 00 00 BC [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 46 2B 00 90 00 E5 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 03 02 [16:22:52]Write to MH i2c: E2 08 00 47 2B 80 0D 03 02 00 00 00 00 ED [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0B 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0B 00 47 2B 00 2B 24 4F C9 55 38 02 65 90 00 49 [16:22:52]RAPDU: 2B 24 4F C9 55 38 02 65 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_SignData done [16:22:52]FM_MakeSignedData done [16:22:52]CreateOFDProtocolMessage [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 11 00 00 [16:22:52]Write to MH i2c: E2 08 00 48 2B 80 11 00 00 00 00 00 00 ED [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 48 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 44 [16:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:22:52]wFMCommunicate OK [16:22:52]CreateOFDProtocolMessage done [16:22:52]OFDSenderStorePacket 92493 [16:22:52]StoreOFDPacket docnum=92493 [16:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 07 91 04 01 20 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 09 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 87 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 CF 07 00 00 00 00 07 04 06 00 70 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 90 00 00 00 F4 03 04 00 5F B8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4D 69 01 00 35 04 06 00 6C 74 C3 09 6B 62 2B 24 4F C9 55 38 02 65 [16:22:52]CheckFolder [16:22:52]dirname=/storage/ofd_packets [16:22:52]CheckFolder done [16:22:52]ProducePacketName [16:22:52]name=ofd_packets/00092493 [16:22:52]NVStorageSaveData ofd_packets/00092493 [16:22:52]File name is /storage/ofd_packets/00092493 [16:22:52]Write 298 bytes [16:22:52]NVStorageSaveData done [16:22:52]OFDSenderStorePacket done [16:22:52]KKMCreateOFDPacket done [16:22:52]NVStorageSaveData kkm_last_timestamp [16:22:52]File name is /storage/kkm_last_timestamp [16:22:52]Write 4 bytes [16:22:52]NVStorageSaveData done [16:22:52]ExternCall_PrintAddStr [16:22:52]wPrintStart [16:22:52]Write to MH i2c: 01 00 00 49 2B 74 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 07 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 07 00 49 2B 00 00 00 00 00 FF 0F 89 [16:22:52]RasterBufferAndPrint [16:22:52]line Счет N : (1)647753 [16:22:52]line ИНН: 02508201610067 [16:22:52]line Контрольно-Кассовый Чек [16:22:52]line ПРОДАЖА [16:22:52]line ТРК (МРК, ГНК) : 54 [16:22:52]line Товар: 2710194210 [16:22:52]line ДТ-К-5 [16:22:52]line 2.530 * 74.40 [16:22:52]line = 188.23 [16:22:52]line НДС 12% НСП 1% [16:22:52]line > о реализуемом товаре [16:22:52]line ОКРУГЛЕНИЕ: -0.23 [16:22:52]line ИТОГО: 188.00 [16:22:52]line Внесено: 188.00 [16:22:52]line СДАЧА: 0.00 [16:22:52]line НСП 1% : 1.67 [16:22:52]line НДС 12% : 19.99 [16:22:52]line Наличными: 188.00 [16:22:52]line Безнал.: 0.00 [16:22:52]line Место: АЗС № 5 "Партнер Нефть" [16:22:52]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:22:52]line СНО: Общий режим [16:22:52]line Чек 144 14.09.2024 16:22 [16:22:52]line Смена: 506 ФФД: 1.0 [16:22:52]line ЗНМ: 03000000022 [16:22:52]line РНМ: 0000000000091423 [16:22:52]line Версия ККМ: 001 [16:22:52]line ФМ: 0000000000874692 [16:22:52]line ФД: 92493 [16:22:52]line ФПД: 119248744180578 [16:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T162255&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92493&fm=119248744180578&tin=02508201610067®Number=0000000000091423&sum=18800 [16:22:52]written 0, free lines is 4095 [16:22:52]OFD Sender: Processing packet 92493 [packets to send 63, broken 62] [16:22:52]ProducePacketName [16:22:52]name=ofd_packets/00092493 [16:22:52]OFD Sender: To server: pG, [16:22:52]CommunicateWithHost lk.salyk.kg:30040 [16:22:52]ConnectInit lk.salyk.kg [16:22:53]Connected sock=10 [16:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 07 91 04 01 20 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 09 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 87 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 CF 07 00 00 00 00 07 04 06 00 70 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 90 00 00 00 F4 03 04 00 5F B8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4D 69 01 00 35 04 06 00 6C 74 C3 09 6B 62 2B 24 4F C9 55 38 02 65 [16:22:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DE 2D 47 00 65 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4D 69 01 00 F4 03 04 00 D9 60 E5 66 B6 04 01 00 00 2D 17 35 26 FD 79 A0 65 [16:22:53]CommunicateWithHost err = 0 [16:22:53]CheckOFDResponse [16:22:53]1017 (14) - 77093643461234 [16:22:53]1041 (16) - 0000000000874692 [16:22:53]1040 (4) - 92493 [16:22:53]1012 (4) - 14.09.2024 10:09 [16:22:53]1206 (1) - 0 [16:22:53]OFD Sender: Remove packet 92493 [16:22:53]ProducePacketName [16:22:53]name=ofd_packets/00092493 [16:22:53]NVStorageDeleteData [16:22:53]Write to MH i2c: 01 00 00 74 2B 9F [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 07 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 07 00 74 2B 00 00 00 00 00 EF 0C A1 [16:22:53]RasterBufferAndPrint [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]written 0, free lines is 3321 [16:22:53]MH_Cut [16:22:53]Write to MH i2c: D1 01 00 7B 2B 01 78 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 01 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 01 00 7B 2B 00 77 [16:22:53]Write to MH i2c: 01 00 00 7C 2B A7 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]OFD Sender: No OFD packet to send [16:22:53]*** Cut start [16:22:53]*** Purtial cut [16:22:53]*** Stage 1: CUTSNS_PIN = 1 [16:22:55]Read from MH i2c: 01 [16:22:55]MH_I2C_Read... [16:22:55]*** Stop cut motor [16:22:55]*** Cut end [16:22:55]Read from MH i2c: 01 07 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: 01 07 00 7C 2B 00 00 00 00 00 FF 0F BC [16:22:55]process_action close_receipt done [16:22:55]requested_data is exist [16:22:55]produce_requested_data [16:22:55]requested_item fm.sn is exist - process it [16:22:55]wFMCommunicate request_size=4 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 11 00 00 [16:22:55]Write to MH i2c: E2 08 00 7D 2B 80 11 00 00 00 00 00 00 22 [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:56]Read from MH i2c: E2 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: E2 17 00 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: E2 17 00 7D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 79 [16:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:22:56]wFMCommunicate OK [16:22:56]requested_item fd.num is exist - process it [16:22:56]SAM_PROTO_GetFieldsCounters [16:22:56]wFMCommunicate request_size=4 [16:22:56]MH_SAM_APDU [16:22:56]CAPDU: 80 13 00 00 [16:22:56]Write to MH i2c: E2 08 00 7E 2B 80 13 00 00 00 00 00 00 25 [16:22:56]Write i2c OK [16:22:56]MH_I2C_Read... [16:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:56]Read from MH i2c: E2 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: E2 62 00 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: E2 62 00 7E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4D 69 01 00 0E 04 04 00 FA 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 A6 [16:22:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4D 69 01 00 0E 04 04 00 FA 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:22:56]wFMCommunicate OK [16:22:56]SAM_PROTO_GetFieldsCounters done [16:22:56]requested_item shift.num is exist - process it [16:22:56]requested_item shift.opened is exist - process it [16:22:56]req_shift_opened [16:22:56]FM_GetShiftState [16:22:56]SAM_PROTO_GetShiftState [16:22:56]wFMCommunicate request_size=4 [16:22:56]MH_SAM_APDU [16:22:56]CAPDU: 80 13 01 00 [16:22:56]Write to MH i2c: E2 08 00 7F 2B 80 13 01 00 00 00 00 00 27 [16:22:56]Write i2c OK [16:22:56]MH_I2C_Read... [16:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:56]Read from MH i2c: E2 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: E2 0E 00 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: E2 0E 00 7F 2B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C1 [16:22:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:22:56]wFMCommunicate OK [16:22:56]SAM_PROTO_GetShiftState done [16:22:56]FM_GetShiftState done [16:22:56]req_shift_opened done [16:22:56]requested_item shift.open_date is exist - process it [16:22:56]req_shift_open_date [16:22:56]req_shift_open_date done [16:22:56]produce_requested_data done [16:22:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92493,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:22:56]process_action_free close_receipt [16:22:56]json_value_free [16:22:56]json_value_free done [16:22:56]process_json_proto returns [16:22:56]Send response to host [16:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92493,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:22:56]free response buf [16:22:56]execute_script done [16:22:56]execute_script returns [16:22:56]free content buf [16:22:56]Sock 8.Close socket [16:22:56]Sock 8.Thread stoped [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31: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:10]accept exits with 9 [16:33:10]New connection [16:33:10]New thread 3066658148 created [16:33:10]Thread 3066801508 joined [16:33:10]Waiting for new connection... [16:33:10] Sock 9.Parse request [16:33:10]Sock 9.Check first char [16:33:10]Sock 9.First char is OK [16:33:10]request: POST /json_proto HTTP/1.0 [16:33:10]Method: POST [16:33:10]URL: /json_proto [16:33:10]Method is POST - this is cgi request [16:33:10]url: /json_proto [16:33:10]query_string will be loaded in cgi processing [16:33:10]execute_cgi json_proto POST (null) [16:33:10]execute_cgi path=json_proto method=POST [16:33:10]POST find Content-Length [16:33:10]Host: 172.17.57.71:8080 [16:33:10]Content-Length: 655 [16:33:10]Content-Type: application/json [16:33:10] [16:33:10]POST finish read [16:33:10]Found Content-Length = 655 [16:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127398", "tax_sys" : 0, "items" : [ { "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\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" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:10]execute_script... [16:33: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)127398", "tax_sys" : 0, "items" : [ { "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\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" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:10]POST & json_proto [16:33:10]process_json_proto [16:33:10]json parsed OK: [16:33:10]protocol is kg_v1.0 [16:33:10]action value=close_receipt [16:33:10]process_action close_receipt [16:33:10]cmd_close_receipt [16:33:10]MH_GetDate [16:33:10]Write to MH i2c: F0 00 00 80 2B 9A [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: F0 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: F0 09 00 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: F0 09 00 80 2B 00 CA BA E5 66 33 3A A4 66 E9 [16:33:10]GetLastDocTimeStamp 1726330975 [16:33:10]current date 1726331594 [16:33:10]FM_GetShiftState [16:33:10]SAM_PROTO_GetShiftState [16:33:10]wFMCommunicate request_size=4 [16:33:10]MH_SAM_APDU [16:33:10]CAPDU: 80 13 01 00 [16:33:10]Write to MH i2c: E2 08 00 81 2B 80 13 01 00 00 00 00 00 29 [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:10]Read from MH i2c: E2 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: E2 0E 00 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: E2 0E 00 81 2B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C3 [16:33:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:33:10]wFMCommunicate OK [16:33:10]SAM_PROTO_GetShiftState done [16:33:10]FM_GetShiftState done [16:33:10]opened in 1726273389 [16:33:10]opened+sec_in_day 1726359789 [16:33:10]quantity*price = 7000 [16:33:10]sum+1 = 7001 [16:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 145 14.09.2024 16:33 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92494 ФПД: 236263543033101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T163314&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92494&fm=236263543033101&tin=02508201610067®Number=0000000000091423&sum=7000 0 [16:33:11]StoreToDocumentArchive [16:33:11]shift 506 fd 92494 [16:33:11]save to /storage/0506/doc_00092494 [16:33:11]save last doc name /storage/0506/doc_00092494 to /storage/kkm_last_doc_name [16:33:11]save OK [16:33:11]Clear old archive folders... [16:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=281 [16:33:11]tlvbuf is 010882F0 [16:33:11]SAM_PROTO_ClearQueue [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 09 00 00 [16:33:11]Write to MH i2c: E2 08 00 8E 2B 80 09 00 00 00 00 00 00 2B [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [16:33:11]RAPDU: 90 00 [16:33:11]wFMCommunicate OK [16:33:11]SAM_PROTO_ClearQueue done [16:33:11]KKMCreateOFDPacket [16:33:11]OFDProtocolAddRootSTLVToBuf [16:33:11]FM_MakeSignedData [16:33:11]FM_MakeSignedData [16:33:11]SAM_PROTO_SignData [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 0D 01 02 [16:33:11]Write to MH i2c: E2 08 00 8F 2B 80 0D 01 02 00 00 00 00 33 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 8F 2B 00 90 00 2E [16:33:11]RAPDU: 90 00 [16:33:11]wFMCommunicate OK [16:33:11]wFMCommunicate request_size=255 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 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 91 00 00 00 F4 03 04 00 CA BA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 [16:33:11]Write to MH i2c: E2 02 01 90 2B 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 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 91 00 00 00 F4 03 04 00 CA BA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 11 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 90 2B 00 90 00 2F [16:33:11]RAPDU: 90 00 [16:33:11]wFMCommunicate OK [16:33:11]wFMCommunicate request_size=40 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 69 01 00 35 04 06 00 D6 E1 64 8E 4D 0D [16:33:11]Write to MH i2c: E2 2B 00 91 2B 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 69 01 00 35 04 06 00 D6 E1 64 8E 4D 0D 00 00 B2 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 91 2B 00 90 00 30 [16:33:11]RAPDU: 90 00 [16:33:11]wFMCommunicate OK [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 0D 03 02 [16:33:11]Write to MH i2c: E2 08 00 92 2B 80 0D 03 02 00 00 00 00 38 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 0B 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 0B 00 92 2B 00 B3 63 98 E2 33 1D 85 30 90 00 CE [16:33:11]RAPDU: B3 63 98 E2 33 1D 85 30 90 00 [16:33:11]wFMCommunicate OK [16:33:11]SAM_PROTO_SignData done [16:33:11]FM_MakeSignedData done [16:33:11]CreateOFDProtocolMessage [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 11 00 00 [16:33:11]Write to MH i2c: E2 08 00 93 2B 80 11 00 00 00 00 00 00 38 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 17 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 17 00 93 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8F [16:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:33:11]wFMCommunicate OK [16:33:11]CreateOFDProtocolMessage done [16:33:11]OFDSenderStorePacket 92494 [16:33:11]StoreOFDPacket docnum=92494 [16:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 BB 78 25 01 BA 56 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 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 91 00 00 00 F4 03 04 00 CA BA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 69 01 00 35 04 06 00 D6 E1 64 8E 4D 0D B3 63 98 E2 33 1D 85 30 [16:33:11]CheckFolder [16:33:11]dirname=/storage/ofd_packets [16:33:11]CheckFolder done [16:33:11]ProducePacketName [16:33:11]name=ofd_packets/00092494 [16:33:11]NVStorageSaveData ofd_packets/00092494 [16:33:11]File name is /storage/ofd_packets/00092494 [16:33:11]Write 331 bytes [16:33:11]NVStorageSaveData done [16:33:11]OFDSenderStorePacket done [16:33:11]KKMCreateOFDPacket done [16:33:11]NVStorageSaveData kkm_last_timestamp [16:33:11]File name is /storage/kkm_last_timestamp [16:33:11]Write 4 bytes [16:33:11]NVStorageSaveData done [16:33:11]ExternCall_PrintAddStr [16:33:11]wPrintStart [16:33:11]Write to MH i2c: 01 00 00 94 2B BF [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 94 2B 00 00 00 00 00 FF 0F D4 [16:33:11]RasterBufferAndPrint [16:33:11]line Счет N : (3)127398 [16:33:11]line ИНН: 02508201610067 [16:33:11]line Контрольно-Кассовый Чек [16:33:11]line ПРОДАЖА [16:33:11]line Товар: 4607065000868 [16:33:11]line Шок M&M`s с шоколадом 45г [16:33:11]line 1.000 * 70.00 [16:33:11]line = 70.00 [16:33:11]line НДС 12% НСП 1% [16:33:11]line > о реализуемом товаре [16:33:11]line ИТОГО: 70.00 [16:33:11]line НСП 1% : 0.62 [16:33:11]line НДС 12% : 7.43 [16:33:11]line Наличными: 70.00 [16:33:11]line Безнал.: 0.00 [16:33:11]line Место: АЗС № 5 "Партнер Нефть" [16:33:11]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:33:11]line СНО: Общий режим [16:33:11]line Чек 145 14.09.2024 16:33 [16:33:11]line Смена: 506 ФФД: 1.0 [16:33:11]line ЗНМ: 03000000022 [16:33:11]line РНМ: 0000000000091423 [16:33:11]line Версия ККМ: 001 [16:33:11]line ФМ: 0000000000874692 [16:33:11]line ФД: 92494 [16:33:11]line ФПД: 236263543033101 [16:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T163314&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92494&fm=236263543033101&tin=02508201610067®Number=0000000000091423&sum=7000 [16:33:12]OFD Sender: Processing packet 92494 [packets to send 63, broken 62] [16:33:12]ProducePacketName [16:33:12]name=ofd_packets/00092494 [16:33:12]OFD Sender: To server: pG, [16:33:12]CommunicateWithHost lk.salyk.kg:30040 [16:33:12]ConnectInit lk.salyk.kg [16:33:12]line 0 [16:33:12]written 0, free lines is 4095 [16:33:12]Connected sock=10 [16:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 BB 78 25 01 BA 56 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 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 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 91 00 00 00 F4 03 04 00 CA BA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 69 01 00 35 04 06 00 D6 E1 64 8E 4D 0D B3 63 98 E2 33 1D 85 30 [16:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 68 43 47 00 1D 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4E 69 01 00 F4 03 04 00 44 63 E5 66 B6 04 01 00 00 CD D4 DC A8 98 E7 EA 94 [16:33:12]CommunicateWithHost err = 0 [16:33:12]CheckOFDResponse [16:33:12]1017 (14) - 77093643461234 [16:33:12]1041 (16) - 0000000000874692 [16:33:12]1040 (4) - 92494 [16:33:12]1012 (4) - 14.09.2024 10:19 [16:33:12]1206 (1) - 0 [16:33:12]OFD Sender: Remove packet 92494 [16:33:12]ProducePacketName [16:33:12]name=ofd_packets/00092494 [16:33:12]NVStorageDeleteData [16:33:12]Write to MH i2c: 01 00 00 BC 2B E7 [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: 01 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: 01 07 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 21 0D 1C [16:33:12]RasterBufferAndPrint [16:33:12]line [16:33:12]line [16:33:12]line [16:33:12]line [16:33:12]line [16:33:12]written 0, free lines is 3366 [16:33:12]MH_Cut [16:33:12]Write to MH i2c: D1 01 00 C3 2B 01 C0 [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: D1 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: D1 01 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: D1 01 00 C3 2B 00 BF [16:33:12]Write to MH i2c: 01 00 00 C4 2B EF [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]OFD Sender: No OFD packet to send [16:33:13]*** Cut start [16:33:13]*** Purtial cut [16:33:13]*** Stage 1: CUTSNS_PIN = 1 [16:33:15]Read from MH i2c: 01 [16:33:15]MH_I2C_Read... [16:33:15]*** Stop cut motor [16:33:15]*** Cut end [16:33:15]Read from MH i2c: 01 07 00 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 FF 0F 04 [16:33:15]process_action close_receipt done [16:33:15]requested_data is exist [16:33:15]produce_requested_data [16:33:15]requested_item fm.sn is exist - process it [16:33:15]wFMCommunicate request_size=4 [16:33:15]MH_SAM_APDU [16:33:15]CAPDU: 80 11 00 00 [16:33:15]Write to MH i2c: E2 08 00 C5 2B 80 11 00 00 00 00 00 00 6A [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:15]Read from MH i2c: E2 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: E2 17 00 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: E2 17 00 C5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C1 [16:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:33:15]wFMCommunicate OK [16:33:15]requested_item fd.num is exist - process it [16:33:15]SAM_PROTO_GetFieldsCounters [16:33:15]wFMCommunicate request_size=4 [16:33:15]MH_SAM_APDU [16:33:15]CAPDU: 80 13 00 00 [16:33:15]Write to MH i2c: E2 08 00 C6 2B 80 13 00 00 00 00 00 00 6D [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:15]Read from MH i2c: E2 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: E2 62 00 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: E2 62 00 C6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4E 69 01 00 0E 04 04 00 FA 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 F2 [16:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4E 69 01 00 0E 04 04 00 FA 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:33:15]wFMCommunicate OK [16:33:15]SAM_PROTO_GetFieldsCounters done [16:33:15]requested_item shift.num is exist - process it [16:33:15]requested_item shift.opened is exist - process it [16:33:15]req_shift_opened [16:33:15]FM_GetShiftState [16:33:15]SAM_PROTO_GetShiftState [16:33:15]wFMCommunicate request_size=4 [16:33:15]MH_SAM_APDU [16:33:15]CAPDU: 80 13 01 00 [16:33:15]Write to MH i2c: E2 08 00 C7 2B 80 13 01 00 00 00 00 00 6F [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:15]Read from MH i2c: E2 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: E2 0E 00 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: E2 0E 00 C7 2B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 09 [16:33:15]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:33:15]wFMCommunicate OK [16:33:15]SAM_PROTO_GetShiftState done [16:33:15]FM_GetShiftState done [16:33:15]req_shift_opened done [16:33:15]requested_item shift.open_date is exist - process it [16:33:15]req_shift_open_date [16:33:15]req_shift_open_date done [16:33:15]produce_requested_data done [16:33:15]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92494,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:33:15]process_action_free close_receipt [16:33:15]json_value_free [16:33:15]json_value_free done [16:33:15]process_json_proto returns [16:33:15]Send response to host [16:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92494,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:33:15]free response buf [16:33:15]execute_script done [16:33:15]execute_script returns [16:33:15]free content buf [16:33:15]Sock 9.Close socket [16:33:15]Sock 9.Thread stoped [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:26]accept exits with 8 [16:34:26]New connection [16:34:26]New thread 3066801508 created [16:34:26]Thread 3066658148 joined [16:34:26]Waiting for new connection... [16:34:26] Sock 8.Parse request [16:34:26]Sock 8.Check first char [16:34:26]Sock 8.First char is OK [16:34:26]request: POST /json_proto HTTP/1.0 [16:34:26]Method: POST [16:34:26]URL: /json_proto [16:34:26]Method is POST - this is cgi request [16:34:26]url: /json_proto [16:34:26]query_string will be loaded in cgi processing [16:34:26]execute_cgi json_proto POST (null) [16:34:26]execute_cgi path=json_proto method=POST [16:34:26]POST find Content-Length [16:34:26]Host: 172.17.57.71:8080 [16:34:26]Content-Length: 632 [16:34:26]Content-Type: application/json [16:34:26] [16:34:26]POST finish read [16:34:26]Found Content-Length = 632 [16:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127399", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "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" ] } } [16:34:26]execute_script... [16:34: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)127399", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "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" ] } } [16:34:26]POST & json_proto [16:34:26]process_json_proto [16:34:26]json parsed OK: [16:34:26]protocol is kg_v1.0 [16:34:26]action value=close_receipt [16:34:26]process_action close_receipt [16:34:26]cmd_close_receipt [16:34:26]MH_GetDate [16:34:26]Write to MH i2c: F0 00 00 C8 2B E2 [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: F0 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: F0 09 00 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: F0 09 00 C8 2B 00 16 BB E5 66 33 3A A4 66 7E [16:34:26]GetLastDocTimeStamp 1726331594 [16:34:26]current date 1726331670 [16:34:26]FM_GetShiftState [16:34:26]SAM_PROTO_GetShiftState [16:34:26]wFMCommunicate request_size=4 [16:34:26]MH_SAM_APDU [16:34:26]CAPDU: 80 13 01 00 [16:34:26]Write to MH i2c: E2 08 00 C9 2B 80 13 01 00 00 00 00 00 71 [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:26]Read from MH i2c: E2 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: E2 0E 00 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: E2 0E 00 C9 2B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0B [16:34:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:34:26]wFMCommunicate OK [16:34:26]SAM_PROTO_GetShiftState done [16:34:26]FM_GetShiftState done [16:34:26]opened in 1726273389 [16:34:26]opened+sec_in_day 1726359789 [16:34:26]quantity*price = 4000 [16:34:26]sum+1 = 4001 [16:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 146 14.09.2024 16:34 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92495 ФПД: 72218392724871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T163431&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92495&fm=72218392724871&tin=02508201610067®Number=0000000000091423&sum=4000 0 [16:34:28]StoreToDocumentArchive [16:34:28]shift 506 fd 92495 [16:34:28]save to /storage/0506/doc_00092495 [16:34:28]save last doc name /storage/0506/doc_00092495 to /storage/kkm_last_doc_name [16:34:28]save OK [16:34:28]Clear old archive folders... [16:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:34:28]tlvbuf is 00F9FB60 [16:34:28]SAM_PROTO_ClearQueue [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 09 00 00 [16:34:28]Write to MH i2c: E2 08 00 D6 2B 80 09 00 00 00 00 00 00 73 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 03 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 03 00 D6 2B 00 90 00 75 [16:34:28]RAPDU: 90 00 [16:34:28]wFMCommunicate OK [16:34:28]SAM_PROTO_ClearQueue done [16:34:28]KKMCreateOFDPacket [16:34:28]OFDProtocolAddRootSTLVToBuf [16:34:28]FM_MakeSignedData [16:34:28]FM_MakeSignedData [16:34:28]SAM_PROTO_SignData [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 0D 01 02 [16:34:28]Write to MH i2c: E2 08 00 D7 2B 80 0D 01 02 00 00 00 00 7B [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 03 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 03 00 D7 2B 00 90 00 76 [16:34:28]RAPDU: 90 00 [16:34:28]wFMCommunicate OK [16:34:28]wFMCommunicate request_size=255 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 92 00 00 00 F4 03 04 00 17 BB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [16:34:28]Write to MH i2c: E2 02 01 D8 2B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 92 00 00 00 F4 03 04 00 17 BB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 15 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 03 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [16:34:28]RAPDU: 90 00 [16:34:28]wFMCommunicate OK [16:34:28]wFMCommunicate request_size=34 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 69 01 00 35 04 06 00 41 AE A7 A5 05 87 [16:34:28]Write to MH i2c: E2 25 00 D9 2B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 69 01 00 35 04 06 00 41 AE A7 A5 05 87 00 00 C3 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 03 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [16:34:28]RAPDU: 90 00 [16:34:28]wFMCommunicate OK [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 0D 03 02 [16:34:28]Write to MH i2c: E2 08 00 DA 2B 80 0D 03 02 00 00 00 00 80 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 0B 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 0B 00 DA 2B 00 B1 AD F0 2F 9E 9A CD E7 90 00 EA [16:34:28]RAPDU: B1 AD F0 2F 9E 9A CD E7 90 00 [16:34:28]wFMCommunicate OK [16:34:28]SAM_PROTO_SignData done [16:34:28]FM_MakeSignedData done [16:34:28]CreateOFDProtocolMessage [16:34:28]wFMCommunicate request_size=4 [16:34:28]MH_SAM_APDU [16:34:28]CAPDU: 80 11 00 00 [16:34:28]Write to MH i2c: E2 08 00 DB 2B 80 11 00 00 00 00 00 00 80 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:28]Read from MH i2c: E2 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 17 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: E2 17 00 DB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D7 [16:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:34:28]wFMCommunicate OK [16:34:28]CreateOFDProtocolMessage done [16:34:28]OFDSenderStorePacket 92495 [16:34:28]StoreOFDPacket docnum=92495 [16:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 35 56 1F 01 99 1E 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 92 00 00 00 F4 03 04 00 17 BB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 69 01 00 35 04 06 00 41 AE A7 A5 05 87 B1 AD F0 2F 9E 9A CD E7 [16:34:28]CheckFolder [16:34:28]dirname=/storage/ofd_packets [16:34:28]CheckFolder done [16:34:28]ProducePacketName [16:34:28]name=ofd_packets/00092495 [16:34:28]NVStorageSaveData ofd_packets/00092495 [16:34:28]File name is /storage/ofd_packets/00092495 [16:34:28]Write 325 bytes [16:34:28]NVStorageSaveData done [16:34:28]OFDSenderStorePacket done [16:34:28]KKMCreateOFDPacket done [16:34:28]NVStorageSaveData kkm_last_timestamp [16:34:28]File name is /storage/kkm_last_timestamp [16:34:28]Write 4 bytes [16:34:28]NVStorageSaveData done [16:34:28]ExternCall_PrintAddStr [16:34:28]wPrintStart [16:34:28]Write to MH i2c: 01 00 00 DC 2B 07 [16:34:28]Write i2c OK [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: 01 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: 01 07 00 [16:34:28]MH_I2C_Read... [16:34:28]Read from MH i2c: 01 07 00 DC 2B 00 00 00 00 00 FF 0F 1C [16:34:28]RasterBufferAndPrint [16:34:28]line Счет N : (3)127399 [16:34:28]line ИНН: 02508201610067 [16:34:28]line Контрольно-Кассовый Чек [16:34:28]line ПРОДАЖА [16:34:28]line Товар: 50173372 [16:34:28]line Жев Orbit для детей Classic [16:34:28]line 1.000 * 40.00 [16:34:28]line = 40.00 [16:34:28]line НДС 12% НСП 1% [16:34:28]line > о реализуемом товаре [16:34:28]line ИТОГО: 40.00 [16:34:28]line НСП 1% : 0.35 [16:34:28]line НДС 12% : 4.25 [16:34:28]line Наличными: 40.00 [16:34:28]line Безнал.: 0.00 [16:34:28]line Место: АЗС № 5 "Партнер Нефть" [16:34:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [16:34:28]line СНО: Общий режим [16:34:28]line Чек 146 14.09.2024 16:34 [16:34:28]line Смена: 506 ФФД: 1.0 [16:34:28]line ЗНМ: 03000000022 [16:34:28]line РНМ: 0000000000091423 [16:34:28]line Версия ККМ: 001 [16:34:28]line ФМ: 0000000000874692 [16:34:28]line ФД: 92495 [16:34:28]line ФПД: 72218392724871 [16:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T163431&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92495&fm=72218392724871&tin=02508201610067®Number=0000000000091423&sum=4000 [16:34:28]line 0 [16:34:28]OFD Sender: Processing packet 92495 [packets to send 63, broken 62] [16:34:28]ProducePacketName [16:34:28]name=ofd_packets/00092495 [16:34:28]OFD Sender: To server: pG, [16:34:28]CommunicateWithHost lk.salyk.kg:30040 [16:34:28]ConnectInit lk.salyk.kg [16:34:28]written 0, free lines is 4095 [16:34:28]Connected sock=10 [16:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 35 56 1F 01 99 1E 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 92 00 00 00 F4 03 04 00 17 BB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 69 01 00 35 04 06 00 41 AE A7 A5 05 87 B1 AD F0 2F 9E 9A CD E7 [16:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0E 23 47 00 13 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 4F 69 01 00 F4 03 04 00 91 63 E5 66 B6 04 01 00 00 3F 26 C6 CB 68 3B 12 E6 [16:34:28]CommunicateWithHost err = 0 [16:34:28]CheckOFDResponse [16:34:28]1017 (14) - 77093643461234 [16:34:28]1041 (16) - 0000000000874692 [16:34:28]1040 (4) - 92495 [16:34:28]1012 (4) - 14.09.2024 10:21 [16:34:28]1206 (1) - 0 [16:34:28]OFD Sender: Remove packet 92495 [16:34:28]ProducePacketName [16:34:28]name=ofd_packets/00092495 [16:34:28]NVStorageDeleteData [16:34:29]Write to MH i2c: 01 00 00 04 2C 30 [16:34:29]Write i2c OK [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: 01 [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: 01 07 00 [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: 01 07 00 04 2C 00 00 00 00 00 1D 0D 61 [16:34:29]RasterBufferAndPrint [16:34:29]line [16:34:29]line [16:34:29]line [16:34:29]line [16:34:29]line [16:34:29]written 0, free lines is 3364 [16:34:29]MH_Cut [16:34:29]Write to MH i2c: D1 01 00 0B 2C 01 09 [16:34:29]Write i2c OK [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: D1 [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: D1 01 00 [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: D1 01 00 0B 2C 00 08 [16:34:29]Write to MH i2c: 01 00 00 0C 2C 38 [16:34:29]Write i2c OK [16:34:29]MH_I2C_Read... [16:34:29]OFD Sender: No OFD packet to send [16:34:29]*** Cut start [16:34:29]*** Purtial cut [16:34:29]*** Stage 1: CUTSNS_PIN = 1 [16:34:31]Read from MH i2c: 01 [16:34:31]MH_I2C_Read... [16:34:31]*** Stop cut motor [16:34:31]*** Cut end [16:34:31]Read from MH i2c: 01 07 00 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: 01 07 00 0C 2C 00 00 00 00 00 FF 0F 4D [16:34:31]process_action close_receipt done [16:34:31]requested_data is exist [16:34:31]produce_requested_data [16:34:31]requested_item fm.sn is exist - process it [16:34:31]wFMCommunicate request_size=4 [16:34:31]MH_SAM_APDU [16:34:31]CAPDU: 80 11 00 00 [16:34:31]Write to MH i2c: E2 08 00 0D 2C 80 11 00 00 00 00 00 00 B3 [16:34:31]Write i2c OK [16:34:31]MH_I2C_Read... [16:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:31]Read from MH i2c: E2 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: E2 17 00 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: E2 17 00 0D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0A [16:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [16:34:31]wFMCommunicate OK [16:34:31]requested_item fd.num is exist - process it [16:34:31]SAM_PROTO_GetFieldsCounters [16:34:31]wFMCommunicate request_size=4 [16:34:31]MH_SAM_APDU [16:34:31]CAPDU: 80 13 00 00 [16:34:31]Write to MH i2c: E2 08 00 0E 2C 80 13 00 00 00 00 00 00 B6 [16:34:31]Write i2c OK [16:34:31]MH_I2C_Read... [16:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:31]Read from MH i2c: E2 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: E2 62 00 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: E2 62 00 0E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4F 69 01 00 0E 04 04 00 FA 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 3F [16:34:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 4F 69 01 00 0E 04 04 00 FA 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:34:31]wFMCommunicate OK [16:34:31]SAM_PROTO_GetFieldsCounters done [16:34:31]requested_item shift.num is exist - process it [16:34:31]requested_item shift.opened is exist - process it [16:34:31]req_shift_opened [16:34:31]FM_GetShiftState [16:34:31]SAM_PROTO_GetShiftState [16:34:31]wFMCommunicate request_size=4 [16:34:31]MH_SAM_APDU [16:34:31]CAPDU: 80 13 01 00 [16:34:31]Write to MH i2c: E2 08 00 0F 2C 80 13 01 00 00 00 00 00 B8 [16:34:31]Write i2c OK [16:34:31]MH_I2C_Read... [16:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:32]Read from MH i2c: E2 [16:34:32]MH_I2C_Read... [16:34:32]Read from MH i2c: E2 0E 00 [16:34:32]MH_I2C_Read... [16:34:32]Read from MH i2c: E2 0E 00 0F 2C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 52 [16:34:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [16:34:32]wFMCommunicate OK [16:34:32]SAM_PROTO_GetShiftState done [16:34:32]FM_GetShiftState done [16:34:32]req_shift_opened done [16:34:32]requested_item shift.open_date is exist - process it [16:34:32]req_shift_open_date [16:34:32]req_shift_open_date done [16:34:32]produce_requested_data done [16:34:32]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92495,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [16:34:32]process_action_free close_receipt [16:34:32]json_value_free [16:34:32]json_value_free done [16:34:32]process_json_proto returns [16:34:32]Send response to host [16:34:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92495,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [16:34:32]free response buf [16:34:32]execute_script done [16:34:32]execute_script returns [16:34:32]free content buf [16:34:32]Sock 8.Close socket [16:34:32]Sock 8.Thread stoped [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:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38: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:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]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:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:05]accept exits with 9 [17:03:05]New connection [17:03:05]New thread 3066658148 created [17:03:05]Thread 3066801508 joined [17:03:05]Waiting for new connection... [17:03:05] Sock 9.Parse request [17:03:05]Sock 9.Check first char [17:03:05]Sock 9.First char is OK [17:03:05]request: POST /json_proto HTTP/1.0 [17:03:05]Method: POST [17:03:05]URL: /json_proto [17:03:05]Method is POST - this is cgi request [17:03:05]url: /json_proto [17:03:05]query_string will be loaded in cgi processing [17:03:05]execute_cgi json_proto POST (null) [17:03:05]execute_cgi path=json_proto method=POST [17:03:05]POST find Content-Length [17:03:05]Host: 172.17.57.71:8080 [17:03:05]Content-Length: 956 [17:03:05]Content-Type: application/json [17:03:05] [17:03:05]POST finish read [17:03:05]Found Content-Length = 956 [17:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127400", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:05]execute_script... [17:03: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)127400", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:05]POST & json_proto [17:03:05]process_json_proto [17:03:05]json parsed OK: [17:03:05]protocol is kg_v1.0 [17:03:05]action value=close_receipt [17:03:05]process_action close_receipt [17:03:05]cmd_close_receipt [17:03:05]MH_GetDate [17:03:05]Write to MH i2c: F0 00 00 10 2C 2B [17:03:05]Write i2c OK [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: F0 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: F0 09 00 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: F0 09 00 10 2C 00 CD C1 E5 66 33 3A A4 66 84 [17:03:05]GetLastDocTimeStamp 1726331671 [17:03:05]current date 1726333389 [17:03:05]FM_GetShiftState [17:03:05]SAM_PROTO_GetShiftState [17:03:05]wFMCommunicate request_size=4 [17:03:05]MH_SAM_APDU [17:03:05]CAPDU: 80 13 01 00 [17:03:05]Write to MH i2c: E2 08 00 11 2C 80 13 01 00 00 00 00 00 BA [17:03:05]Write i2c OK [17:03:05]MH_I2C_Read... [17:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:05]Read from MH i2c: E2 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 0E 00 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 0E 00 11 2C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 54 [17:03:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:03:05]wFMCommunicate OK [17:03:05]SAM_PROTO_GetShiftState done [17:03:05]FM_GetShiftState done [17:03:05]opened in 1726273389 [17:03:05]opened+sec_in_day 1726359789 [17:03:05]quantity*price = 13000 [17:03:05]sum+1 = 13001 [17:03:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000483334 Напиток Nitro Fresh Дикие ягоды 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 147 14.09.2024 17:03 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92496 ФПД: 141627446068808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T170309&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92496&fm=141627446068808&tin=02508201610067®Number=0000000000091423&sum=22500 0 [17:03:06]StoreToDocumentArchive [17:03:06]shift 506 fd 92496 [17:03:06]save to /storage/0506/doc_00092496 [17:03:06]save last doc name /storage/0506/doc_00092496 to /storage/kkm_last_doc_name [17:03:06]save OK [17:03:06]Clear old archive folders... [17:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=416 [17:03:06]tlvbuf is 00F99C40 [17:03:06]SAM_PROTO_ClearQueue [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 09 00 00 [17:03:06]Write to MH i2c: E2 08 00 1E 2C 80 09 00 00 00 00 00 00 BC [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 1E 2C 00 90 00 BE [17:03:06]RAPDU: 90 00 [17:03:06]wFMCommunicate OK [17:03:06]SAM_PROTO_ClearQueue done [17:03:06]KKMCreateOFDPacket [17:03:06]OFDProtocolAddRootSTLVToBuf [17:03:06]FM_MakeSignedData [17:03:06]FM_MakeSignedData [17:03:06]SAM_PROTO_SignData [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 0D 01 02 [17:03:06]Write to MH i2c: E2 08 00 1F 2C 80 0D 01 02 00 00 00 00 C4 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 1F 2C 00 90 00 BF [17:03:06]RAPDU: 90 00 [17:03:06]wFMCommunicate OK [17:03:06]wFMCommunicate request_size=255 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 0D 02 02 FA 03 00 A0 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 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 [17:03:06]Write to MH i2c: E2 02 01 20 2C 80 0D 02 02 FA 00 03 00 A0 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 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 00 00 8A [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 20 2C 00 90 00 C0 [17:03:06]RAPDU: 90 00 [17:03:06]wFMCommunicate OK [17:03:06]wFMCommunicate request_size=175 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 0D 02 02 AA 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 93 00 00 00 F4 03 04 00 CD C1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 69 01 00 35 04 06 00 80 CF 35 9D 06 48 [17:03:06]Write to MH i2c: E2 B2 00 21 2C 80 0D 02 02 AA 00 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 93 00 00 00 F4 03 04 00 CD C1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 69 01 00 35 04 06 00 80 CF 35 9D 06 48 00 00 48 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 21 2C 00 90 00 C1 [17:03:06]RAPDU: 90 00 [17:03:06]wFMCommunicate OK [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 0D 03 02 [17:03:06]Write to MH i2c: E2 08 00 22 2C 80 0D 03 02 00 00 00 00 C9 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 0B 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 0B 00 22 2C 00 19 DC 9B 44 F4 0B 12 2F 90 00 DE [17:03:06]RAPDU: 19 DC 9B 44 F4 0B 12 2F 90 00 [17:03:06]wFMCommunicate OK [17:03:06]SAM_PROTO_SignData done [17:03:06]FM_MakeSignedData done [17:03:06]CreateOFDProtocolMessage [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 11 00 00 [17:03:06]Write to MH i2c: E2 08 00 23 2C 80 11 00 00 00 00 00 00 C9 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 17 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 17 00 23 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 20 [17:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:03:06]wFMCommunicate OK [17:03:06]CreateOFDProtocolMessage done [17:03:06]OFDSenderStorePacket 92496 [17:03:06]StoreOFDPacket docnum=92496 [17:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B4 01 00 00 2C 58 AC 01 67 6B 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 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 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 93 00 00 00 F4 03 04 00 CD C1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 69 01 00 35 04 06 00 80 CF 35 9D 06 48 19 DC 9B 44 F4 0B 12 2F [17:03:06]CheckFolder [17:03:06]dirname=/storage/ofd_packets [17:03:06]CheckFolder done [17:03:06]ProducePacketName [17:03:06]name=ofd_packets/00092496 [17:03:06]NVStorageSaveData ofd_packets/00092496 [17:03:06]File name is /storage/ofd_packets/00092496 [17:03:06]Write 466 bytes [17:03:06]NVStorageSaveData done [17:03:06]OFDSenderStorePacket done [17:03:06]KKMCreateOFDPacket done [17:03:06]NVStorageSaveData kkm_last_timestamp [17:03:06]File name is /storage/kkm_last_timestamp [17:03:06]Write 4 bytes [17:03:06]NVStorageSaveData done [17:03:06]ExternCall_PrintAddStr [17:03:06]wPrintStart [17:03:06]Write to MH i2c: 01 00 00 24 2C 50 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: 01 [17:03:07]MH_I2C_Read... [17:03:07]OFD Sender: Processing packet 92496 [packets to send 63, broken 62] [17:03:07]Read from MH i2c: ProducePacketName [17:03:07]01 name=ofd_packets/00092496 [17:03:07]07 00 [17:03:07]MH_I2C_Read... [17:03:07]OFD Sender: To server: pG, [17:03:07]CommunicateWithHost lk.salyk.kg:30040 [17:03:07]ConnectInit lk.salyk.kg [17:03:07]Read from MH i2c: 01 07 00 24 2C 00 00 00 00 00 FF 0F 65 [17:03:07]RasterBufferAndPrint [17:03:07]line Счет N : (3)127400 [17:03:07]line ИНН: 02508201610067 [17:03:07]line Контрольно-Кассовый Чек [17:03:07]line ПРОДАЖА [17:03:07]line Товар: 4870002329951 [17:03:07]line Напиток Lipton IceTea 1л зел чай Regular [17:03:07]line 1.000 * 130.00 [17:03:07]line = 130.00 [17:03:07]line НДС 12% НСП 1% [17:03:07]line > о реализуемом товаре [17:03:07]line Товар: 4700000483334 [17:03:07]line Напиток Nitro Fresh Дикие ягоды [17:03:07]line 1.000 * 95.00 [17:03:07]line = 95.00 [17:03:07]line НДС 12% НСП 1% [17:03:07]line > о реализуемом товаре [17:03:07]line ИТОГО: 225.00 [17:03:07]line НСП 1% : 1.99 [17:03:07]line НДС 12% : 23.89 [17:03:07]line Наличными: 225.00 [17:03:07]line Безнал.: 0.00 [17:03:07]line Место: АЗС № 5 "Партнер Нефть" [17:03:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:03:07]line СНО: Общий режим [17:03:07]line Чек 147 14.09.2024 17:03 [17:03:07]line Смена: 506 ФФД: 1.0 [17:03:07]line ЗНМ: 03000000022 [17:03:07]line РНМ: 0000000000091423 [17:03:07]line Версия ККМ: 001 [17:03:07]line ФМ: 0000000000874692 [17:03:07]line ФД: 92496 [17:03:07]line ФПД: 141627446068808 [17:03:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T170309&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92496&fm=141627446068808&tin=02508201610067®Number=0000000000091423&sum=22500 [17:03:07]line 0 [17:03:07]written 0, free lines is 4095 [17:03:07]Connected sock=10 [17:03:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B4 01 00 00 2C 58 AC 01 67 6B 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 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 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 93 00 00 00 F4 03 04 00 CD C1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 69 01 00 35 04 06 00 80 CF 35 9D 06 48 19 DC 9B 44 F4 0B 12 2F [17:03:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 25 3D 47 00 FD EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 50 69 01 00 F4 03 04 00 48 6A E5 66 B6 04 01 00 00 14 6F 00 BC 60 76 E1 D7 [17:03:07]CommunicateWithHost err = 0 [17:03:07]CheckOFDResponse [17:03:07]1017 (14) - 77093643461234 [17:03:07]1041 (16) - 0000000000874692 [17:03:07]1040 (4) - 92496 [17:03:07]1012 (4) - 14.09.2024 10:49 [17:03:07]1206 (1) - 0 [17:03:07]OFD Sender: Remove packet 92496 [17:03:07]ProducePacketName [17:03:07]name=ofd_packets/00092496 [17:03:07]NVStorageDeleteData [17:03:07]Write to MH i2c: 01 00 00 54 2C 80 [17:03:07]Write i2c OK [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 07 00 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 07 00 54 2C 00 00 00 00 00 CE 0C 61 [17:03:07]RasterBufferAndPrint [17:03:07]line [17:03:07]line [17:03:07]line [17:03:07]line [17:03:07]line [17:03:07]written 0, free lines is 3285 [17:03:07]MH_Cut [17:03:07]Write to MH i2c: D1 01 00 5B 2C 01 59 [17:03:07]Write i2c OK [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: D1 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: D1 01 00 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: D1 01 00 5B 2C 00 58 [17:03:07]Write to MH i2c: 01 00 00 5C 2C 88 [17:03:07]Write i2c OK [17:03:07]MH_I2C_Read... [17:03:08]OFD Sender: No OFD packet to send [17:03:08]*** Cut start [17:03:08]*** Purtial cut [17:03:08]*** Stage 1: CUTSNS_PIN = 1 [17:03:10]Read from MH i2c: 01 [17:03:10]MH_I2C_Read... [17:03:10]*** Stop cut motor [17:03:10]*** Cut end [17:03:10]Read from MH i2c: 01 07 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 07 00 5C 2C 00 00 00 00 00 FF 0F 9D [17:03:10]process_action close_receipt done [17:03:10]requested_data is exist [17:03:10]produce_requested_data [17:03:10]requested_item fm.sn is exist - process it [17:03:10]wFMCommunicate request_size=4 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 11 00 00 [17:03:10]Write to MH i2c: E2 08 00 5D 2C 80 11 00 00 00 00 00 00 03 [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 17 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 17 00 5D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5A [17:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:03:10]wFMCommunicate OK [17:03:10]requested_item fd.num is exist - process it [17:03:10]SAM_PROTO_GetFieldsCounters [17:03:10]wFMCommunicate request_size=4 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 13 00 00 [17:03:10]Write to MH i2c: E2 08 00 5E 2C 80 13 00 00 00 00 00 00 06 [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 62 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 62 00 5E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 50 69 01 00 0E 04 04 00 FA 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 93 [17:03:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 50 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:10]wFMCommunicate OK [17:03:10]SAM_PROTO_GetFieldsCounters done [17:03:10]requested_item shift.num is exist - process it [17:03:10]requested_item shift.opened is exist - process it [17:03:10]req_shift_opened [17:03:10]FM_GetShiftState [17:03:10]SAM_PROTO_GetShiftState [17:03:10]wFMCommunicate request_size=4 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 13 01 00 [17:03:10]Write to MH i2c: E2 08 00 5F 2C 80 13 01 00 00 00 00 00 08 [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:10]Read from MH i2c: E2 0E 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 0E 00 5F 2C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A2 [17:03:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:03:10]wFMCommunicate OK [17:03:10]SAM_PROTO_GetShiftState done [17:03:10]FM_GetShiftState done [17:03:10]req_shift_opened done [17:03:10]requested_item shift.open_date is exist - process it [17:03:10]req_shift_open_date [17:03:10]req_shift_open_date done [17:03:10]produce_requested_data done [17:03:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92496,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:03:10]process_action_free close_receipt [17:03:10]json_value_free [17:03:10]json_value_free done [17:03:10]process_json_proto returns [17:03:10]Send response to host [17:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92496,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:03:10]free response buf [17:03:10]execute_script done [17:03:10]execute_script returns [17:03:10]free content buf [17:03:10]Sock 9.Close socket [17:03:10]Sock 9.Thread stoped [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:35]accept exits with 8 [17:04:35]New connection [17:04:35]New thread 3066801508 created [17:04:35]Thread 3066658148 joined [17:04:35]Waiting for new connection... [17:04:35] Sock 8.Parse request [17:04:35]Sock 8.Check first char [17:04:35]Sock 8.First char is OK [17:04:35]request: POST /json_proto HTTP/1.0 [17:04:35]Method: POST [17:04:35]URL: /json_proto [17:04:35]Method is POST - this is cgi request [17:04:35]url: /json_proto [17:04:35]query_string will be loaded in cgi processing [17:04:35]execute_cgi json_proto POST (null) [17:04:35]execute_cgi path=json_proto method=POST [17:04:35]POST find Content-Length [17:04:35]Host: 172.17.57.71:8080 [17:04:35]Content-Length: 837 [17:04:35]Content-Type: application/json [17:04:35] [17:04:35]POST finish read [17:04:35]Found Content-Length = 837 [17:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127402", "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 }]} ], "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" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:35]execute_script... [17:04:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127402", "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 }]} ], "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" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:35]POST & json_proto [17:04:35]process_json_proto [17:04:35]json parsed OK: [17:04:35]protocol is kg_v1.0 [17:04:35]action value=close_receipt [17:04:35]process_action close_receipt [17:04:35]cmd_close_receipt [17:04:35]MH_GetDate [17:04:35]Write to MH i2c: F0 00 00 60 2C 7B [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: F0 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: F0 09 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: F0 09 00 60 2C 00 28 C2 E5 66 33 3A A4 66 30 [17:04:35]GetLastDocTimeStamp 1726333389 [17:04:35]current date 1726333480 [17:04:35]FM_GetShiftState [17:04:35]SAM_PROTO_GetShiftState [17:04:35]wFMCommunicate request_size=4 [17:04:35]MH_SAM_APDU [17:04:35]CAPDU: 80 13 01 00 [17:04:35]Write to MH i2c: E2 08 00 61 2C 80 13 01 00 00 00 00 00 0A [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:35]Read from MH i2c: E2 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 0E 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 0E 00 61 2C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A4 [17:04:35]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:04:35]wFMCommunicate OK [17:04:35]SAM_PROTO_GetShiftState done [17:04:35]FM_GetShiftState done [17:04:35]opened in 1726273389 [17:04:35]opened+sec_in_day 1726359789 [17:04:35]quantity*price = 5500 [17:04:35]sum+1 = 5501 [17:04:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 0.00 Безнал.: 55.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 148 14.09.2024 17:04 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92497 ФПД: 172275739341886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T170440&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92497&fm=172275739341886&tin=02508201610067®Number=0000000000091423&sum=5500 0 [17:04:37]StoreToDocumentArchive [17:04:37]shift 506 fd 92497 [17:04:37]save to /storage/0506/doc_00092497 [17:04:37]save last doc name /storage/0506/doc_00092497 to /storage/kkm_last_doc_name [17:04:37]save OK [17:04:37]Clear old archive folders... [17:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=295 [17:04:37]tlvbuf is 01038710 [17:04:37]SAM_PROTO_ClearQueue [17:04:37]wFMCommunicate request_size=4 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 09 00 00 [17:04:37]Write to MH i2c: E2 08 00 6E 2C 80 09 00 00 00 00 00 00 0C [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 6E 2C 00 90 00 0E [17:04:37]RAPDU: 90 00 [17:04:37]wFMCommunicate OK [17:04:37]SAM_PROTO_ClearQueue done [17:04:37]KKMCreateOFDPacket [17:04:37]OFDProtocolAddRootSTLVToBuf [17:04:37]FM_MakeSignedData [17:04:37]FM_MakeSignedData [17:04:37]SAM_PROTO_SignData [17:04:37]wFMCommunicate request_size=4 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 0D 01 02 [17:04:37]Write to MH i2c: E2 08 00 6F 2C 80 0D 01 02 00 00 00 00 14 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 6F 2C 00 90 00 0F [17:04:37]RAPDU: 90 00 [17:04:37]wFMCommunicate OK [17:04:37]wFMCommunicate request_size=255 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 0D 02 02 FA 03 00 27 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 28 C2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [17:04:37]Write to MH i2c: E2 02 01 70 2C 80 0D 02 02 FA 00 03 00 27 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 28 C2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 43 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 70 2C 00 90 00 10 [17:04:37]RAPDU: 90 00 [17:04:37]wFMCommunicate OK [17:04:37]wFMCommunicate request_size=54 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 51 69 01 00 35 04 06 00 9C AF 12 3F 34 3E [17:04:37]Write to MH i2c: E2 39 00 71 2C 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 51 69 01 00 35 04 06 00 9C AF 12 3F 34 3E 00 00 05 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 71 2C 00 90 00 11 [17:04:37]RAPDU: 90 00 [17:04:37]wFMCommunicate OK [17:04:37]wFMCommunicate request_size=4 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 0D 03 02 [17:04:37]Write to MH i2c: E2 08 00 72 2C 80 0D 03 02 00 00 00 00 19 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 0B 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 0B 00 72 2C 00 32 DC CD C5 AB A8 B7 B0 90 00 74 [17:04:37]RAPDU: 32 DC CD C5 AB A8 B7 B0 90 00 [17:04:37]wFMCommunicate OK [17:04:37]SAM_PROTO_SignData done [17:04:37]FM_MakeSignedData done [17:04:37]CreateOFDProtocolMessage [17:04:37]wFMCommunicate request_size=4 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 11 00 00 [17:04:37]Write to MH i2c: E2 08 00 73 2C 80 11 00 00 00 00 00 00 19 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 17 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 17 00 73 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 70 [17:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:04:37]wFMCommunicate OK [17:04:37]CreateOFDProtocolMessage done [17:04:37]OFDSenderStorePacket 92497 [17:04:37]StoreOFDPacket docnum=92497 [17:04:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 88 FD 33 01 D0 BF 5A 03 01 00 03 00 27 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 28 C2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 51 69 01 00 35 04 06 00 9C AF 12 3F 34 3E 32 DC CD C5 AB A8 B7 B0 [17:04:37]CheckFolder [17:04:37]dirname=/storage/ofd_packets [17:04:37]CheckFolder done [17:04:37]ProducePacketName [17:04:37]name=ofd_packets/00092497 [17:04:37]NVStorageSaveData ofd_packets/00092497 [17:04:37]File name is /storage/ofd_packets/00092497 [17:04:37]Write 345 bytes [17:04:37]NVStorageSaveData done [17:04:37]OFDSenderStorePacket done [17:04:37]KKMCreateOFDPacket done [17:04:37]NVStorageSaveData kkm_last_timestamp [17:04:37]File name is /storage/kkm_last_timestamp [17:04:37]Write 4 bytes [17:04:37]NVStorageSaveData done [17:04:37]ExternCall_PrintAddStr [17:04:37]wPrintStart [17:04:37]Write to MH i2c: 01 00 00 74 2C A0 [17:04:37]OFD Sender: Processing packet 92497 [packets to send 63, broken 62] [17:04:37]ProducePacketName [17:04:37]name=ofd_packets/00092497 [17:04:37]OFD Sender: To server: pG, [17:04:37]CommunicateWithHost lk.salyk.kg:30040 [17:04:37]ConnectInit lk.salyk.kg [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: 01 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: 01 07 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: 01 07 00 74 2C 00 00 00 00 00 FF 0F B5 [17:04:37]RasterBufferAndPrint [17:04:37]line Счет N : (3)127402 [17:04:37]line ИНН: 02508201610067 [17:04:37]line Контрольно-Кассовый Чек [17:04:37]line ПРОДАЖА [17:04:37]line Товар: 4620016307540 [17:04:37]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [17:04:37]line 1.000 * 55.00 [17:04:37]line = 55.00 [17:04:37]line НДС 12% НСП 1% [17:04:37]line > о реализуемом товаре [17:04:37]line ИТОГО: 55.00 [17:04:37]line НСП 1% : 0.49 [17:04:37]line НДС 12% : 5.84 [17:04:37]line Наличными: 0.00 [17:04:37]line Безнал.: 55.00 [17:04:37]line Место: АЗС № 5 "Партнер Нефть" [17:04:37]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:04:37]line СНО: Общий режим [17:04:37]line Чек 148 14.09.2024 17:04 [17:04:37]line Смена: 506 ФФД: 1.0 [17:04:37]line ЗНМ: 03000000022 [17:04:37]line РНМ: 0000000000091423 [17:04:37]line Версия ККМ: 001 [17:04:37]line Платежная система: Бакай Банк [17:04:37]line ФМ: 0000000000874692 [17:04:37]line ФД: 92497 [17:04:37]line ФПД: 172275739341886 [17:04:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T170440&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92497&fm=172275739341886&tin=02508201610067®Number=0000000000091423&sum=5500 [17:04:38]Connected sock=10 [17:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 88 FD 33 01 D0 BF 5A 03 01 00 03 00 27 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 28 C2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 51 69 01 00 35 04 06 00 9C AF 12 3F 34 3E 32 DC CD C5 AB A8 B7 B0 [17:04:38]line 0 [17:04:38]written 0, free lines is 4095 [17:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 51 3E 47 00 EF 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 51 69 01 00 F4 03 04 00 A2 6A E5 66 B6 04 01 00 00 0A 65 4F E9 B9 CB BB 72 [17:04:38]CommunicateWithHost err = 0 [17:04:38]CheckOFDResponse [17:04:38]1017 (14) - 77093643461234 [17:04:38]1041 (16) - 0000000000874692 [17:04:38]1040 (4) - 92497 [17:04:38]1012 (4) - 14.09.2024 10:51 [17:04:38]1206 (1) - 0 [17:04:38]OFD Sender: Remove packet 92497 [17:04:38]ProducePacketName [17:04:38]name=ofd_packets/00092497 [17:04:38]NVStorageDeleteData [17:04:38]Write to MH i2c: 01 00 00 9F 2C CB [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 07 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 07 00 9F 2C 00 00 00 00 00 F7 0C D5 [17:04:38]RasterBufferAndPrint [17:04:38]line [17:04:38]line [17:04:38]line [17:04:38]line [17:04:38]line [17:04:38]written 0, free lines is 3328 [17:04:38]MH_Cut [17:04:38]Write to MH i2c: D1 01 00 A6 2C 01 A4 [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: D1 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: D1 01 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: D1 01 00 A6 2C 00 A3 [17:04:38]Write to MH i2c: 01 00 00 A7 2C D3 [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]OFD Sender: No OFD packet to send [17:04:39]*** Cut start [17:04:39]*** Purtial cut [17:04:39]*** Stage 1: CUTSNS_PIN = 1 [17:04:41]Read from MH i2c: 01 [17:04:41]MH_I2C_Read... [17:04:41]*** Stop cut motor [17:04:41]*** Cut end [17:04:41]Read from MH i2c: 01 07 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: 01 07 00 A7 2C 00 00 00 00 00 FF 0F E8 [17:04:41]process_action close_receipt done [17:04:41]requested_data is exist [17:04:41]produce_requested_data [17:04:41]requested_item fm.sn is exist - process it [17:04:41]wFMCommunicate request_size=4 [17:04:41]MH_SAM_APDU [17:04:41]CAPDU: 80 11 00 00 [17:04:41]Write to MH i2c: E2 08 00 A8 2C 80 11 00 00 00 00 00 00 4E [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:41]Read from MH i2c: E2 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 17 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 17 00 A8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A5 [17:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:04:41]wFMCommunicate OK [17:04:41]requested_item fd.num is exist - process it [17:04:41]SAM_PROTO_GetFieldsCounters [17:04:41]wFMCommunicate request_size=4 [17:04:41]MH_SAM_APDU [17:04:41]CAPDU: 80 13 00 00 [17:04:41]Write to MH i2c: E2 08 00 A9 2C 80 13 00 00 00 00 00 00 51 [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:41]Read from MH i2c: E2 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 62 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 62 00 A9 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 51 69 01 00 0E 04 04 00 FA 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 E2 [17:04:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 51 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:41]wFMCommunicate OK [17:04:41]SAM_PROTO_GetFieldsCounters done [17:04:41]requested_item shift.num is exist - process it [17:04:41]requested_item shift.opened is exist - process it [17:04:41]req_shift_opened [17:04:41]FM_GetShiftState [17:04:41]SAM_PROTO_GetShiftState [17:04:41]wFMCommunicate request_size=4 [17:04:41]MH_SAM_APDU [17:04:41]CAPDU: 80 13 01 00 [17:04:41]Write to MH i2c: E2 08 00 AA 2C 80 13 01 00 00 00 00 00 53 [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:41]Read from MH i2c: E2 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 0E 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 0E 00 AA 2C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 ED [17:04:41]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:04:41]wFMCommunicate OK [17:04:41]SAM_PROTO_GetShiftState done [17:04:41]FM_GetShiftState done [17:04:41]req_shift_opened done [17:04:41]requested_item shift.open_date is exist - process it [17:04:41]req_shift_open_date [17:04:41]req_shift_open_date done [17:04:41]produce_requested_data done [17:04:41]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92497,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:04:41]process_action_free close_receipt [17:04:41]json_value_free [17:04:41]json_value_free done [17:04:41]process_json_proto returns [17:04:41]Send response to host [17:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92497,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:04:41]free response buf [17:04:41]execute_script done [17:04:41]execute_script returns [17:04:41]free content buf [17:04:41]Sock 8.Close socket [17:04:41]Sock 8.Thread stoped [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:07]accept exits with 9 [17:08:07]New connection [17:08:07]New thread 3066658148 created [17:08:07]Thread 3066801508 joined [17:08:07]Waiting for new connection... [17:08:07] Sock 9.Parse request [17:08:07]Sock 9.Check first char [17:08:07]Sock 9.First char is OK [17:08:07]request: POST /json_proto HTTP/1.0 [17:08:07]Method: POST [17:08:07]URL: /json_proto [17:08:07]Method is POST - this is cgi request [17:08:07]url: /json_proto [17:08:07]query_string will be loaded in cgi processing [17:08:07]execute_cgi json_proto POST (null) [17:08:07]execute_cgi path=json_proto method=POST [17:08:07]POST find Content-Length [17:08:07]Host: 172.17.57.71:8080 [17:08:07]Content-Length: 1146 [17:08:07]Content-Type: application/json [17:08:07] [17:08:07]POST finish read [17:08:07]Found Content-Length = 1146 [17:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127403", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:07]execute_script... [17:08:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127403", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:07]POST & json_proto [17:08:07]process_json_proto [17:08:07]json parsed OK: [17:08:07]protocol is kg_v1.0 [17:08:07]action value=close_receipt [17:08:07]process_action close_receipt [17:08:07]cmd_close_receipt [17:08:07]MH_GetDate [17:08:07]Write to MH i2c: F0 00 00 AB 2C C6 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: F0 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: F0 09 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: F0 09 00 AB 2C 00 FB C2 E5 66 33 3A A4 66 4E [17:08:07]GetLastDocTimeStamp 1726333480 [17:08:07]current date 1726333691 [17:08:07]FM_GetShiftState [17:08:07]SAM_PROTO_GetShiftState [17:08:07]wFMCommunicate request_size=4 [17:08:07]MH_SAM_APDU [17:08:07]CAPDU: 80 13 01 00 [17:08:07]Write to MH i2c: E2 08 00 AC 2C 80 13 01 00 00 00 00 00 55 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:07]Read from MH i2c: E2 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 0E 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 0E 00 AC 2C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EF [17:08:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:08:07]wFMCommunicate OK [17:08:07]SAM_PROTO_GetShiftState done [17:08:07]FM_GetShiftState done [17:08:07]opened in 1726273389 [17:08:07]opened+sec_in_day 1726359789 [17:08:07]quantity*price = 10500 [17:08:07]sum+1 = 10501 [17:08:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 0.00 Безнал.: 210.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 149 14.09.2024 17:08 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92498 ФПД: 146269674371553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T170811&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92498&fm=146269674371553&tin=02508201610067®Number=0000000000091423&sum=21000 0 [17:08:08]StoreToDocumentArchive [17:08:08]shift 506 fd 92498 [17:08:08]save to /storage/0506/doc_00092498 [17:08:08]save last doc name /storage/0506/doc_00092498 to /storage/kkm_last_doc_name [17:08:08]save OK [17:08:08]Clear old archive folders... [17:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=406 [17:08:08]tlvbuf is 010147E0 [17:08:08]SAM_PROTO_ClearQueue [17:08:08]wFMCommunicate request_size=4 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 09 00 00 [17:08:08]Write to MH i2c: E2 08 00 B9 2C 80 09 00 00 00 00 00 00 57 [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 03 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 03 00 B9 2C 00 90 00 59 [17:08:08]RAPDU: 90 00 [17:08:08]wFMCommunicate OK [17:08:08]SAM_PROTO_ClearQueue done [17:08:08]KKMCreateOFDPacket [17:08:08]OFDProtocolAddRootSTLVToBuf [17:08:08]FM_MakeSignedData [17:08:08]FM_MakeSignedData [17:08:08]SAM_PROTO_SignData [17:08:08]wFMCommunicate request_size=4 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 0D 01 02 [17:08:08]Write to MH i2c: E2 08 00 BA 2C 80 0D 01 02 00 00 00 00 5F [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 03 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 03 00 BA 2C 00 90 00 5A [17:08:08]RAPDU: 90 00 [17:08:08]wFMCommunicate OK [17:08:08]wFMCommunicate request_size=255 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 FC 03 06 00 08 [17:08:08]Write to MH i2c: E2 02 01 BB 2C 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 FC 03 06 00 08 00 00 96 [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 03 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 03 00 BB 2C 00 90 00 5B [17:08:08]RAPDU: 90 00 [17:08:08]wFMCommunicate OK [17:08:08]wFMCommunicate request_size=165 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 0D 02 02 A0 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 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FB C2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 69 01 00 35 04 06 00 85 08 0F FB 79 E1 [17:08:08]Write to MH i2c: E2 A8 00 BC 2C 80 0D 02 02 A0 00 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 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FB C2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 69 01 00 35 04 06 00 85 08 0F FB 79 E1 00 00 46 [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 03 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 03 00 BC 2C 00 90 00 5C [17:08:08]RAPDU: 90 00 [17:08:08]wFMCommunicate OK [17:08:08]wFMCommunicate request_size=4 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 0D 03 02 [17:08:08]Write to MH i2c: E2 08 00 BD 2C 80 0D 03 02 00 00 00 00 64 [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 0B 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 0B 00 BD 2C 00 3D 57 A8 4C 13 C4 10 EE 90 00 C2 [17:08:08]RAPDU: 3D 57 A8 4C 13 C4 10 EE 90 00 [17:08:08]wFMCommunicate OK [17:08:08]SAM_PROTO_SignData done [17:08:08]FM_MakeSignedData done [17:08:08]CreateOFDProtocolMessage [17:08:08]wFMCommunicate request_size=4 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 11 00 00 [17:08:08]Write to MH i2c: E2 08 00 BE 2C 80 11 00 00 00 00 00 00 64 [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 17 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 17 00 BE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BB [17:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:08:08]wFMCommunicate OK [17:08:08]CreateOFDProtocolMessage done [17:08:08]OFDSenderStorePacket 92498 [17:08:08]StoreOFDPacket docnum=92498 [17:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AA 01 00 00 97 25 A2 01 53 8F 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FB C2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 69 01 00 35 04 06 00 85 08 0F FB 79 E1 3D 57 A8 4C 13 C4 10 EE [17:08:08]CheckFolder [17:08:08]dirname=/storage/ofd_packets [17:08:08]CheckFolder done [17:08:08]ProducePacketName [17:08:08]name=ofd_packets/00092498 [17:08:08]NVStorageSaveData ofd_packets/00092498 [17:08:08]File name is /storage/ofd_packets/00092498 [17:08:08]Write 456 bytes [17:08:08]NVStorageSaveData done [17:08:08]OFDSenderStorePacket done [17:08:09]KKMCreateOFDPacket done [17:08:09]NVStorageSaveData kkm_last_timestamp [17:08:09]File name is /storage/kkm_last_timestamp [17:08:09]Write 4 bytes [17:08:09]NVStorageSaveData done [17:08:09]ExternCall_PrintAddStr [17:08:09]wPrintStart [17:08:09]Write to MH i2c: 01 00 00 BF 2C EB [17:08:09]OFD Sender: Processing packet 92498 [packets to send 63, broken 62] [17:08:09]ProducePacketName [17:08:09]name=ofd_packets/00092498 [17:08:09]Write i2c OK [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: 01 [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: 01 07 00 [17:08:09]MH_I2C_Read... [17:08:09]OFD Sender: To server: pG, [17:08:09]CommunicateWithHost lk.salyk.kg:30040 [17:08:09]ConnectInit lk.salyk.kg [17:08:09]Read from MH i2c: 01 07 00 BF 2C 00 00 00 00 00 FF 0F 00 [17:08:09]RasterBufferAndPrint [17:08:09]line Счет N : (3)127403 [17:08:09]line ИНН: 02508201610067 [17:08:09]line Контрольно-Кассовый Чек [17:08:09]line ПРОДАЖА [17:08:09]line Товар: 5449000189356 [17:08:09]line Холодный чай Fuse манго ананас 1л [17:08:09]line 1.000 * 105.00 [17:08:09]line = 105.00 [17:08:09]line НДС 12% НСП 1% [17:08:09]line > о реализуемом товаре [17:08:09]line Товар: 5449000054227 [17:08:09]line Напиток Кока-Кола 1л [17:08:09]line 1.000 * 105.00 [17:08:09]line = 105.00 [17:08:09]line НДС 12% НСП 1% [17:08:09]line > о реализуемом товаре [17:08:09]line ИТОГО: 210.00 [17:08:09]line НСП 1% : 1.86 [17:08:09]line НДС 12% : 22.30 [17:08:09]line Наличными: 0.00 [17:08:09]line Безнал.: 210.00 [17:08:09]line Место: АЗС № 5 "Партнер Нефть" [17:08:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:08:09]line СНО: Общий режим [17:08:09]line Чек 149 14.09.2024 17:08 [17:08:09]line Смена: 506 ФФД: 1.0 [17:08:09]line ЗНМ: 03000000022 [17:08:09]line РНМ: 0000000000091423 [17:08:09]line Версия ККМ: 001 [17:08:09]line Платежная система: О! деньги [17:08:09]line ФМ: 0000000000874692 [17:08:09]line ФД: 92498 [17:08:09]line ФПД: 146269674371553 [17:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T170811&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92498&fm=146269674371553&tin=02508201610067®Number=0000000000091423&sum=21000 [17:08:09]line 0 [17:08:09]written 0, free lines is 4095 [17:08:09]Connected sock=10 [17:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AA 01 00 00 97 25 A2 01 53 8F 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FB C2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 69 01 00 35 04 06 00 85 08 0F FB 79 E1 3D 57 A8 4C 13 C4 10 EE [17:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 56 71 47 00 FD 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 52 69 01 00 F4 03 04 00 76 6B E5 66 B6 04 01 00 00 6E 78 9A 7E E2 36 ED A1 [17:08:09]CommunicateWithHost err = 0 [17:08:09]CheckOFDResponse [17:08:09]1017 (14) - 77093643461234 [17:08:09]1041 (16) - 0000000000874692 [17:08:09]1040 (4) - 92498 [17:08:09]1012 (4) - 14.09.2024 10:54 [17:08:09]1206 (1) - 0 [17:08:09]OFD Sender: Remove packet 92498 [17:08:09]ProducePacketName [17:08:09]name=ofd_packets/00092498 [17:08:09]NVStorageDeleteData [17:08:09]Write to MH i2c: 01 00 00 F0 2C 1C [17:08:09]Write i2c OK [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: 01 [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: 01 07 00 [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: 01 07 00 F0 2C 00 00 00 00 00 B4 0C E3 [17:08:09]RasterBufferAndPrint [17:08:09]line [17:08:09]line [17:08:09]line [17:08:09]line [17:08:09]line [17:08:09]written 0, free lines is 3260 [17:08:09]MH_Cut [17:08:09]Write to MH i2c: D1 01 00 F7 2C 01 F5 [17:08:09]Write i2c OK [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: D1 [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: D1 01 00 [17:08:09]MH_I2C_Read... [17:08:09]Read from MH i2c: D1 01 00 F7 2C 00 F4 [17:08:09]Write to MH i2c: 01 00 00 F8 2C 24 [17:08:09]Write i2c OK [17:08:09]MH_I2C_Read... [17:08:10]OFD Sender: No OFD packet to send [17:08:10]*** Cut start [17:08:10]*** Purtial cut [17:08:10]*** Stage 1: CUTSNS_PIN = 1 [17:08:12]Read from MH i2c: 01 [17:08:12]MH_I2C_Read... [17:08:12]*** Stop cut motor [17:08:12]*** Cut end [17:08:12]Read from MH i2c: 01 07 00 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: 01 07 00 F8 2C 00 00 00 00 00 FF 0F 39 [17:08:12]process_action close_receipt done [17:08:12]requested_data is exist [17:08:12]produce_requested_data [17:08:12]requested_item fm.sn is exist - process it [17:08:12]wFMCommunicate request_size=4 [17:08:12]MH_SAM_APDU [17:08:12]CAPDU: 80 11 00 00 [17:08:12]Write to MH i2c: E2 08 00 F9 2C 80 11 00 00 00 00 00 00 9F [17:08:12]Write i2c OK [17:08:12]MH_I2C_Read... [17:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:12]Read from MH i2c: E2 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 17 00 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 17 00 F9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F6 [17:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:08:12]wFMCommunicate OK [17:08:12]requested_item fd.num is exist - process it [17:08:12]SAM_PROTO_GetFieldsCounters [17:08:12]wFMCommunicate request_size=4 [17:08:12]MH_SAM_APDU [17:08:12]CAPDU: 80 13 00 00 [17:08:12]Write to MH i2c: E2 08 00 FA 2C 80 13 00 00 00 00 00 00 A2 [17:08:12]Write i2c OK [17:08:12]MH_I2C_Read... [17:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:12]Read from MH i2c: E2 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 62 00 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 62 00 FA 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 52 69 01 00 0E 04 04 00 FA 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 37 [17:08:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 52 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:12]wFMCommunicate OK [17:08:12]SAM_PROTO_GetFieldsCounters done [17:08:12]requested_item shift.num is exist - process it [17:08:12]requested_item shift.opened is exist - process it [17:08:12]req_shift_opened [17:08:12]FM_GetShiftState [17:08:12]SAM_PROTO_GetShiftState [17:08:12]wFMCommunicate request_size=4 [17:08:12]MH_SAM_APDU [17:08:12]CAPDU: 80 13 01 00 [17:08:12]Write to MH i2c: E2 08 00 FB 2C 80 13 01 00 00 00 00 00 A4 [17:08:12]Write i2c OK [17:08:12]MH_I2C_Read... [17:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:12]Read from MH i2c: E2 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 0E 00 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 0E 00 FB 2C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3E [17:08:12]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:08:12]wFMCommunicate OK [17:08:12]SAM_PROTO_GetShiftState done [17:08:12]FM_GetShiftState done [17:08:12]req_shift_opened done [17:08:12]requested_item shift.open_date is exist - process it [17:08:12]req_shift_open_date [17:08:12]req_shift_open_date done [17:08:12]produce_requested_data done [17:08:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92498,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:08:12]process_action_free close_receipt [17:08:12]json_value_free [17:08:12]json_value_free done [17:08:12]process_json_proto returns [17:08:12]Send response to host [17:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92498,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:08:12]free response buf [17:08:12]execute_script done [17:08:12]execute_script returns [17:08:12]free content buf [17:08:12]Sock 9.Close socket [17:08:12]Sock 9.Thread stoped [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:27]accept exits with 8 [17:11:27]New connection [17:11:27]New thread 3066801508 created [17:11:27]Thread 3066658148 joined [17:11:27]Waiting for new connection... [17:11:27] Sock 8.Parse request [17:11:27]Sock 8.Check first char [17:11:27]Sock 8.First char is OK [17:11:27]request: POST /json_proto HTTP/1.0 [17:11:27]Method: POST [17:11:27]URL: /json_proto [17:11:27]Method is POST - this is cgi request [17:11:27]url: /json_proto [17:11:27]query_string will be loaded in cgi processing [17:11:27]execute_cgi json_proto POST (null) [17:11:27]execute_cgi path=json_proto method=POST [17:11:27]POST find Content-Length [17:11:27]Host: 172.17.57.71:8080 [17:11:27]Content-Length: 846 [17:11:27]Content-Type: application/json [17:11:27] [17:11:27]POST finish read [17:11:27]Found Content-Length = 846 [17:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127404", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:27]execute_script... [17:11: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)127404", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:27]POST & json_proto [17:11:27]process_json_proto [17:11:27]json parsed OK: [17:11:27]protocol is kg_v1.0 [17:11:27]action value=close_receipt [17:11:27]process_action close_receipt [17:11:27]cmd_close_receipt [17:11:27]MH_GetDate [17:11:27]Write to MH i2c: F0 00 00 FC 2C 17 [17:11:27]Write i2c OK [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: F0 [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: F0 09 00 [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: F0 09 00 FC 2C 00 C3 C3 E5 66 33 3A A4 66 68 [17:11:27]GetLastDocTimeStamp 1726333691 [17:11:27]current date 1726333891 [17:11:27]FM_GetShiftState [17:11:27]SAM_PROTO_GetShiftState [17:11:27]wFMCommunicate request_size=4 [17:11:27]MH_SAM_APDU [17:11:27]CAPDU: 80 13 01 00 [17:11:27]Write to MH i2c: E2 08 00 FD 2C 80 13 01 00 00 00 00 00 A6 [17:11:27]Write i2c OK [17:11:27]MH_I2C_Read... [17:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:27]Read from MH i2c: E2 [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: E2 0E 00 [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: E2 0E 00 FD 2C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 40 [17:11:27]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:11:27]wFMCommunicate OK [17:11:27]SAM_PROTO_GetShiftState done [17:11:27]FM_GetShiftState done [17:11:27]opened in 1726273389 [17:11:27]opened+sec_in_day 1726359789 [17:11:27]quantity*price = 5500 [17:11:27]sum+1 = 5501 [17:11:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 0.00 Безнал.: 55.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 150 14.09.2024 17:11 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92499 ФПД: 255329345004412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T171132&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92499&fm=255329345004412&tin=02508201610067®Number=0000000000091423&sum=5500 0 [17:11:28]StoreToDocumentArchive [17:11:28]shift 506 fd 92499 [17:11:28]save to /storage/0506/doc_00092499 [17:11:28]save last doc name /storage/0506/doc_00092499 to /storage/kkm_last_doc_name [17:11:28]save OK [17:11:28]Clear old archive folders... [17:11:28]ProcessDocumentItem done err = 0, tmpTLVsize=299 [17:11:28]tlvbuf is 00F9FAD0 [17:11:28]SAM_PROTO_ClearQueue [17:11:28]wFMCommunicate request_size=4 [17:11:28]MH_SAM_APDU [17:11:28]CAPDU: 80 09 00 00 [17:11:28]Write to MH i2c: E2 08 00 0A 2D 80 09 00 00 00 00 00 00 A9 [17:11:28]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 0A 2D 00 90 00 AB [17:11:29]RAPDU: 90 00 [17:11:29]wFMCommunicate OK [17:11:29]SAM_PROTO_ClearQueue done [17:11:29]KKMCreateOFDPacket [17:11:29]OFDProtocolAddRootSTLVToBuf [17:11:29]FM_MakeSignedData [17:11:29]FM_MakeSignedData [17:11:29]SAM_PROTO_SignData [17:11:29]wFMCommunicate request_size=4 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 0D 01 02 [17:11:29]Write to MH i2c: E2 08 00 0B 2D 80 0D 01 02 00 00 00 00 B1 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 0B 2D 00 90 00 AC [17:11:29]RAPDU: 90 00 [17:11:29]wFMCommunicate OK [17:11:29]wFMCommunicate request_size=255 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 0D 02 02 FA 03 00 2B 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C4 C3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [17:11:29]Write to MH i2c: E2 02 01 0C 2D 80 0D 02 02 FA 00 03 00 2B 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C4 C3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 D3 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 0C 2D 00 90 00 AD [17:11:29]RAPDU: 90 00 [17:11:29]wFMCommunicate OK [17:11:29]wFMCommunicate request_size=58 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 69 01 00 35 04 06 00 E8 38 7E E8 E3 7C [17:11:29]Write to MH i2c: E2 3D 00 0D 2D 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 69 01 00 35 04 06 00 E8 38 7E E8 E3 7C 00 00 43 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 0D 2D 00 90 00 AE [17:11:29]RAPDU: 90 00 [17:11:29]wFMCommunicate OK [17:11:29]wFMCommunicate request_size=4 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 0D 03 02 [17:11:29]Write to MH i2c: E2 08 00 0E 2D 80 0D 03 02 00 00 00 00 B6 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 0B 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 0B 00 0E 2D 00 8D F0 27 C6 15 15 7D 1D 90 00 E5 [17:11:29]RAPDU: 8D F0 27 C6 15 15 7D 1D 90 00 [17:11:29]wFMCommunicate OK [17:11:29]SAM_PROTO_SignData done [17:11:29]FM_MakeSignedData done [17:11:29]CreateOFDProtocolMessage [17:11:29]wFMCommunicate request_size=4 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 11 00 00 [17:11:29]Write to MH i2c: E2 08 00 0F 2D 80 11 00 00 00 00 00 00 B6 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 17 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 17 00 0F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0D [17:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:11:29]wFMCommunicate OK [17:11:29]CreateOFDProtocolMessage done [17:11:29]OFDSenderStorePacket 92499 [17:11:29]StoreOFDPacket docnum=92499 [17:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3F 01 00 00 92 16 37 01 6B 1C 5A 03 01 00 03 00 2B 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C4 C3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 69 01 00 35 04 06 00 E8 38 7E E8 E3 7C 8D F0 27 C6 15 15 7D 1D [17:11:29]CheckFolder [17:11:29]dirname=/storage/ofd_packets [17:11:29]CheckFolder done [17:11:29]ProducePacketName [17:11:29]name=ofd_packets/00092499 [17:11:29]NVStorageSaveData ofd_packets/00092499 [17:11:29]File name is /storage/ofd_packets/00092499 [17:11:29]Write 349 bytes [17:11:29]NVStorageSaveData done [17:11:29]OFDSenderStorePacket done [17:11:29]KKMCreateOFDPacket done [17:11:29]NVStorageSaveData kkm_last_timestamp [17:11:29]File name is /storage/kkm_last_timestamp [17:11:29]Write 4 bytes [17:11:29]NVStorageSaveData done [17:11:29]ExternCall_PrintAddStr [17:11:29]wPrintStart [17:11:29]Write to MH i2c: 01 00 00 10 2D 3D [17:11:29]OFD Sender: Processing packet 92499 [packets to send 63, broken 62] [17:11:29]ProducePacketName [17:11:29]name=ofd_packets/00092499 [17:11:29]OFD Sender: To server: pG, [17:11:29]CommunicateWithHost lk.salyk.kg:30040 [17:11:29]ConnectInit lk.salyk.kg [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: 01 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: 01 07 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: 01 07 00 10 2D 00 00 00 00 00 FF 0F 52 [17:11:29]RasterBufferAndPrint [17:11:29]line Счет N : (3)127404 [17:11:29]line ИНН: 02508201610067 [17:11:29]line Контрольно-Кассовый Чек [17:11:29]line ПРОДАЖА [17:11:29]line Товар: 4620016300305 [17:11:29]line Салфетки Absolut classic вл а/бакт 20 шт [17:11:29]line 1.000 * 55.00 [17:11:29]line = 55.00 [17:11:29]line НДС 12% НСП 1% [17:11:29]line > о реализуемом товаре [17:11:29]line ИТОГО: 55.00 [17:11:29]line НСП 1% : 0.49 [17:11:29]line НДС 12% : 5.84 [17:11:29]line Наличными: 0.00 [17:11:29]line Безнал.: 55.00 [17:11:29]line Место: АЗС № 5 "Партнер Нефть" [17:11:29]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:11:29]line СНО: Общий режим [17:11:29]line Чек 150 14.09.2024 17:11 [17:11:29]line Смена: 506 ФФД: 1.0 [17:11:29]line ЗНМ: 03000000022 [17:11:29]line РНМ: 0000000000091423 [17:11:29]line Версия ККМ: 001 [17:11:29]line Платежная система: О! деньги [17:11:29]line ФМ: 0000000000874692 [17:11:29]line ФД: 92499 [17:11:29]line ФПД: 255329345004412 [17:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T171132&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92499&fm=255329345004412&tin=02508201610067®Number=0000000000091423&sum=5500 [17:11:29]line 0 [17:11:29]Connected sock=10 [17:11:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3F 01 00 00 92 16 37 01 6B 1C 5A 03 01 00 03 00 2B 01 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C4 C3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 69 01 00 35 04 06 00 E8 38 7E E8 E3 7C 8D F0 27 C6 15 15 7D 1D [17:11:29]written 0, free lines is 4095 [17:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AC EE 47 00 AC 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 53 69 01 00 F4 03 04 00 3E 6C E5 66 B6 04 01 00 00 9B D5 15 08 83 91 25 AE [17:11:30]CommunicateWithHost err = 0 [17:11:30]CheckOFDResponse [17:11:30]1017 (14) - 77093643461234 [17:11:30]1041 (16) - 0000000000874692 [17:11:30]1040 (4) - 92499 [17:11:30]1012 (4) - 14.09.2024 10:58 [17:11:30]1206 (1) - 0 [17:11:30]OFD Sender: Remove packet 92499 [17:11:30]ProducePacketName [17:11:30]name=ofd_packets/00092499 [17:11:30]NVStorageDeleteData [17:11:30]Write to MH i2c: 01 00 00 3B 2D 68 [17:11:30]Write i2c OK [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: 01 [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: 01 07 00 [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: 01 07 00 3B 2D 00 00 00 00 00 F9 0C 74 [17:11:30]RasterBufferAndPrint [17:11:30]line [17:11:30]line [17:11:30]line [17:11:30]line [17:11:30]line [17:11:30]written 0, free lines is 3329 [17:11:30]MH_Cut [17:11:30]Write to MH i2c: D1 01 00 42 2D 01 41 [17:11:30]Write i2c OK [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: D1 [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: D1 01 00 [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: D1 01 00 42 2D 00 40 [17:11:30]Write to MH i2c: 01 00 00 43 2D 70 [17:11:30]Write i2c OK [17:11:30]MH_I2C_Read... [17:11:30]OFD Sender: No OFD packet to send [17:11:31]*** Cut start [17:11:31]*** Purtial cut [17:11:31]*** Stage 1: CUTSNS_PIN = 1 [17:11:33]Read from MH i2c: 01 [17:11:33]MH_I2C_Read... [17:11:33]*** Stop cut motor [17:11:33]*** Cut end [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 43 2D 00 00 00 00 00 FF 0F 85 [17:11:33]process_action close_receipt done [17:11:33]requested_data is exist [17:11:33]produce_requested_data [17:11:33]requested_item fm.sn is exist - process it [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 44 2D 80 11 00 00 00 00 00 00 EB [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 44 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 42 [17:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:11:33]wFMCommunicate OK [17:11:33]requested_item fd.num is exist - process it [17:11:33]SAM_PROTO_GetFieldsCounters [17:11:33]wFMCommunicate request_size=4 [17:11:33]MH_SAM_APDU [17:11:33]CAPDU: 80 13 00 00 [17:11:33]Write to MH i2c: E2 08 00 45 2D 80 13 00 00 00 00 00 00 EE [17:11:33]Write i2c OK [17:11:33]MH_I2C_Read... [17:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:33]Read from MH i2c: E2 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 62 00 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 62 00 45 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 53 69 01 00 0E 04 04 00 FA 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 87 [17:11:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 53 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:33]wFMCommunicate OK [17:11:33]SAM_PROTO_GetFieldsCounters done [17:11:33]requested_item shift.num is exist - process it [17:11:33]requested_item shift.opened is exist - process it [17:11:33]req_shift_opened [17:11:33]FM_GetShiftState [17:11:33]SAM_PROTO_GetShiftState [17:11:33]wFMCommunicate request_size=4 [17:11:33]MH_SAM_APDU [17:11:33]CAPDU: 80 13 01 00 [17:11:33]Write to MH i2c: E2 08 00 46 2D 80 13 01 00 00 00 00 00 F0 [17:11:33]Write i2c OK [17:11:33]MH_I2C_Read... [17:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:33]Read from MH i2c: E2 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 0E 00 [17:11:33]MH_I2C_Read... [17:11:33]Read from MH i2c: E2 0E 00 46 2D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8A [17:11:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:11:33]wFMCommunicate OK [17:11:33]SAM_PROTO_GetShiftState done [17:11:33]FM_GetShiftState done [17:11:33]req_shift_opened done [17:11:33]requested_item shift.open_date is exist - process it [17:11:33]req_shift_open_date [17:11:33]req_shift_open_date done [17:11:33]produce_requested_data done [17:11:33]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92499,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:11:33]process_action_free close_receipt [17:11:33]json_value_free [17:11:33]json_value_free done [17:11:33]process_json_proto returns [17:11:33]Send response to host [17:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92499,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:11:33]free response buf [17:11:33]execute_script done [17:11:33]execute_script returns [17:11:33]free content buf [17:11:33]Sock 8.Close socket [17:11:33]Sock 8.Thread stoped [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:34]int [17:18:34]Write to MH i2c: 01 00 00 47 2D 74 [17:18:34]*** FLAG_PRN_PAP1 set [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 47 2D 00 01 00 00 00 FF 0F 8A [17:18:34]state=0 [17:18:34]No paper [17:18:34]int [17:18:34]Write to MH i2c: 01 00 00 48 2D 75 [17:18:34]*** FLAG_PRN_PAP2 set [17:18:34]Write i2c OK [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 [17:18:34]MH_I2C_Read... [17:18:34]Read from MH i2c: 01 07 00 48 2D 00 03 00 00 00 FF 0F 8D [17:18:34]state=0 [17:18:34]No paper [17:18:34]Cover opened [17:18:36]OFD Sender: No OFD packet to send [17:18:39]Write to MH i2c: 01 00 00 49 2D 76 [17:18:39]Write i2c OK [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: 01 [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: 01 07 00 [17:18:39]MH_I2C_Read... [17:18:39]Read from MH i2c: 01 07 00 49 2D 00 03 00 00 00 FF 0F 8E [17:18:39]state=3 [17:18:39]No paper [17:18:39]Cover opened [17:18:41]OFD Sender: No OFD packet to send [17:18:44]Write to MH i2c: 01 00 00 4A 2D 77 [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: 01 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: 01 07 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: 01 07 00 4A 2D 00 03 00 00 00 FF 0F 8F [17:18:44]state=3 [17:18:44]No paper [17:18:44]Cover opened [17:18:46]OFD Sender: No OFD packet to send [17:18:48]int [17:18:48]Write to MH i2c: 01 00 00 4B 2D 78 [17:18:48]*** FLAG_PRN_PAP2 reset [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 4B 2D 00 01 00 00 00 FF 0F 8E [17:18:48]state=3 [17:18:48]No paper [17:18:48]Cover closed [17:18:48]int [17:18:48]Write to MH i2c: 01 00 00 4C 2D 79 [17:18:48]*** FLAG_PRN_PAP2 set [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 4C 2D 00 03 00 00 00 FF 0F 91 [17:18:48]state=0 [17:18:48]No paper [17:18:48]Cover opened [17:18:49]int [17:18:49]Write to MH i2c: 01 00 00 4D 2D 7A [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: 01 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: 01 07 00 [17:18:49]MH_I2C_Read... [17:18:49]*** FLAG_PRN_PAP2 reset [17:18:49]*** FLAG_PRN_PAP1 reset [17:18:49]Read from MH i2c: 01 07 00 4D 2D 00 00 00 00 00 FF 0F 8F [17:18:49]state=3 [17:18:49]Cover closed [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:26]accept exits with 9 [17:19:26]New connection [17:19:26]New thread 3066658148 created [17:19:26]Thread 3066801508 joined [17:19:26]Waiting for new connection... [17:19:26] Sock 9.Parse request [17:19:26]Sock 9.Check first char [17:19:26]Sock 9.First char is OK [17:19:26]request: POST /json_proto HTTP/1.0 [17:19:26]Method: POST [17:19:26]URL: /json_proto [17:19:26]Method is POST - this is cgi request [17:19:26]url: /json_proto [17:19:26]query_string will be loaded in cgi processing [17:19:26]execute_cgi json_proto POST (null) [17:19:26]execute_cgi path=json_proto method=POST [17:19:26]POST find Content-Length [17:19:26]Host: 172.17.57.71:8080 [17:19:26]Content-Length: 630 [17:19:26]Content-Type: application/json [17:19:26] [17:19:26]POST finish read [17:19:26]Found Content-Length = 630 [17:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127405", "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" ] } } [17:19:26]execute_script... [17:19:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127405", "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" ] } } [17:19:26]POST & json_proto [17:19:26]process_json_proto [17:19:26]json parsed OK: [17:19:26]protocol is kg_v1.0 [17:19:26]action value=close_receipt [17:19:26]process_action close_receipt [17:19:26]cmd_close_receipt [17:19:26]MH_GetDate [17:19:26]Write to MH i2c: F0 00 00 4E 2D 6A [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: F0 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: F0 09 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: F0 09 00 4E 2D 00 A2 C5 E5 66 33 3A A4 66 9C [17:19:26]GetLastDocTimeStamp 1726333892 [17:19:26]current date 1726334370 [17:19:26]FM_GetShiftState [17:19:26]SAM_PROTO_GetShiftState [17:19:26]wFMCommunicate request_size=4 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 13 01 00 [17:19:26]Write to MH i2c: E2 08 00 4F 2D 80 13 01 00 00 00 00 00 F9 [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 0E 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 0E 00 4F 2D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 93 [17:19:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:19:26]wFMCommunicate OK [17:19:26]SAM_PROTO_GetShiftState done [17:19:26]FM_GetShiftState done [17:19:26]opened in 1726273389 [17:19:26]opened+sec_in_day 1726359789 [17:19:26]quantity*price = 5000 [17:19:26]sum+1 = 5001 [17:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 151 14.09.2024 17:19 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92500 ФПД: 280593598766101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T171931&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92500&fm=280593598766101&tin=02508201610067®Number=0000000000091423&sum=5000 0 [17:19:27]StoreToDocumentArchive [17:19:27]shift 506 fd 92500 [17:19:27]save to /storage/0506/doc_00092500 [17:19:27]save last doc name /storage/0506/doc_00092500 to /storage/kkm_last_doc_name [17:19:27]save OK [17:19:27]Clear old archive folders... [17:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:19:27]tlvbuf is 00F922B0 [17:19:27]SAM_PROTO_ClearQueue [17:19:27]wFMCommunicate request_size=4 [17:19:27]MH_SAM_APDU [17:19:27]CAPDU: 80 09 00 00 [17:19:27]Write to MH i2c: E2 08 00 5C 2D 80 09 00 00 00 00 00 00 FB [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 5C 2D 00 90 00 FD [17:19:28]RAPDU: 90 00 [17:19:28]wFMCommunicate OK [17:19:28]SAM_PROTO_ClearQueue done [17:19:28]KKMCreateOFDPacket [17:19:28]OFDProtocolAddRootSTLVToBuf [17:19:28]FM_MakeSignedData [17:19:28]FM_MakeSignedData [17:19:28]SAM_PROTO_SignData [17:19:28]wFMCommunicate request_size=4 [17:19:28]MH_SAM_APDU [17:19:28]CAPDU: 80 0D 01 02 [17:19:28]Write to MH i2c: E2 08 00 5D 2D 80 0D 01 02 00 00 00 00 03 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 5D 2D 00 90 00 FE [17:19:28]RAPDU: 90 00 [17:19:28]wFMCommunicate OK [17:19:28]wFMCommunicate request_size=255 [17:19:28]MH_SAM_APDU [17:19:28]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 97 00 00 00 F4 03 04 00 A3 C5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [17:19:28]Write to MH i2c: E2 02 01 5E 2D 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 97 00 00 00 F4 03 04 00 A3 C5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 59 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 5E 2D 00 90 00 FF [17:19:28]RAPDU: 90 00 [17:19:28]wFMCommunicate OK [17:19:28]wFMCommunicate request_size=28 [17:19:28]MH_SAM_APDU [17:19:28]CAPDU: 80 0D 02 02 17 37 34 36 39 32 10 04 04 00 54 69 01 00 35 04 06 00 FF 32 C9 C7 DC 15 [17:19:28]Write to MH i2c: E2 1F 00 5F 2D 80 0D 02 02 17 00 37 34 36 39 32 10 04 04 00 54 69 01 00 35 04 06 00 FF 32 C9 C7 DC 15 00 00 07 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 5F 2D 00 90 00 00 [17:19:28]RAPDU: 90 00 [17:19:28]wFMCommunicate OK [17:19:28]wFMCommunicate request_size=4 [17:19:28]MH_SAM_APDU [17:19:28]CAPDU: 80 0D 03 02 [17:19:28]Write to MH i2c: E2 08 00 60 2D 80 0D 03 02 00 00 00 00 08 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 0B 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 0B 00 60 2D 00 CA 12 E9 53 19 A5 4E 4B 90 00 78 [17:19:28]RAPDU: CA 12 E9 53 19 A5 4E 4B 90 00 [17:19:28]wFMCommunicate OK [17:19:28]SAM_PROTO_SignData done [17:19:28]FM_MakeSignedData done [17:19:28]CreateOFDProtocolMessage [17:19:28]wFMCommunicate request_size=4 [17:19:28]MH_SAM_APDU [17:19:28]CAPDU: 80 11 00 00 [17:19:28]Write to MH i2c: E2 08 00 61 2D 80 11 00 00 00 00 00 00 08 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 17 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 17 00 61 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5F [17:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:19:28]wFMCommunicate OK [17:19:28]CreateOFDProtocolMessage done [17:19:28]OFDSenderStorePacket 92500 [17:19:28]StoreOFDPacket docnum=92500 [17:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 2F 9B 19 01 C1 A2 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 97 00 00 00 F4 03 04 00 A3 C5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 54 69 01 00 35 04 06 00 FF 32 C9 C7 DC 15 CA 12 E9 53 19 A5 4E 4B [17:19:28]CheckFolder [17:19:28]dirname=/storage/ofd_packets [17:19:28]CheckFolder done [17:19:28]ProducePacketName [17:19:28]name=ofd_packets/00092500 [17:19:28]NVStorageSaveData ofd_packets/00092500 [17:19:28]File name is /storage/ofd_packets/00092500 [17:19:28]Write 319 bytes [17:19:28]NVStorageSaveData done [17:19:28]OFDSenderStorePacket done [17:19:28]KKMCreateOFDPacket done [17:19:28]NVStorageSaveData kkm_last_timestamp [17:19:28]File name is /storage/kkm_last_timestamp [17:19:28]Write 4 bytes [17:19:28]OFD Sender: Processing packet 92500 [packets to send 63, broken 62] [17:19:28]ProducePacketName [17:19:28]name=ofd_packets/00092500 [17:19:28]OFD Sender: To server: pG, [17:19:28]CommunicateWithHost lk.salyk.kg:30040 [17:19:28]ConnectInit lk.salyk.kg [17:19:28]NVStorageSaveData done [17:19:28]ExternCall_PrintAddStr [17:19:28]wPrintStart [17:19:28]Write to MH i2c: 01 00 00 62 2D 8F [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 07 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 07 00 62 2D 00 00 00 00 00 FF 0F A4 [17:19:28]RasterBufferAndPrint [17:19:28]line Счет N : (3)127405 [17:19:28]line ИНН: 02508201610067 [17:19:28]line Контрольно-Кассовый Чек [17:19:28]line ПРОДАЖА [17:19:28]line Товар: 4700000160358 [17:19:28]line Вода Легенда 1л [17:19:28]line 1.000 * 50.00 [17:19:28]line = 50.00 [17:19:28]line НДС 12% НСП 1% [17:19:28]line > о реализуемом товаре [17:19:28]line ИТОГО: 50.00 [17:19:28]line НСП 1% : 0.44 [17:19:28]line НДС 12% : 5.31 [17:19:28]line Наличными: 50.00 [17:19:28]line Безнал.: 0.00 [17:19:28]line Место: АЗС № 5 "Партнер Нефть" [17:19:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:19:28]line СНО: Общий режим [17:19:28]line Чек 151 14.09.2024 17:19 [17:19:28]line Смена: 506 ФФД: 1.0 [17:19:28]line ЗНМ: 03000000022 [17:19:28]line РНМ: 0000000000091423 [17:19:28]line Версия ККМ: 001 [17:19:28]line ФМ: 0000000000874692 [17:19:28]line ФД: 92500 [17:19:28]line ФПД: 280593598766101 [17:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T171931&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92500&fm=280593598766101&tin=02508201610067®Number=0000000000091423&sum=5000 [17:19:28]line 0 [17:19:28]written 0, free lines is 4095 [17:19:28]Connected sock=11 [17:19:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 21 01 00 00 2F 9B 19 01 C1 A2 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 97 00 00 00 F4 03 04 00 A3 C5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 54 69 01 00 35 04 06 00 FF 32 C9 C7 DC 15 CA 12 E9 53 19 A5 4E 4B [17:19:28]Write to MH i2c: 01 00 00 8A 2D B7 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 07 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 07 00 8A 2D 00 00 00 00 00 1A 0D E5 [17:19:28]RasterBufferAndPrint [17:19:28]line [17:19:28]line [17:19:28]line [17:19:28]line [17:19:28]line [17:19:28]written 0, free lines is 3362 [17:19:28]MH_Cut [17:19:28]Write to MH i2c: D1 01 00 91 2D 01 90 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: D1 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: D1 01 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: D1 01 00 91 2D 00 8F [17:19:28]Write to MH i2c: 01 00 00 92 2D BF [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 67 80 47 00 2A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 54 69 01 00 F4 03 04 00 1D 6E E5 66 B6 04 01 00 00 88 DB 17 DF 62 2F 44 8E [17:19:29]CommunicateWithHost err = 0 [17:19:29]CheckOFDResponse [17:19:29]1017 (14) - 77093643461234 [17:19:29]1041 (16) - 0000000000874692 [17:19:29]1040 (4) - 92500 [17:19:29]1012 (4) - 14.09.2024 11:06 [17:19:29]1206 (1) - 0 [17:19:29]OFD Sender: Remove packet 92500 [17:19:29]ProducePacketName [17:19:29]name=ofd_packets/00092500 [17:19:29]NVStorageDeleteData [17:19:29]*** Cut start [17:19:29]*** Purtial cut [17:19:29]*** Stage 1: CUTSNS_PIN = 1 [17:19:29]OFD Sender: No OFD packet to send [17:19:31]Read from MH i2c: 01 [17:19:31]MH_I2C_Read... [17:19:31]*** Stop cut motor [17:19:31]*** Cut end [17:19:31]Read from MH i2c: 01 07 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: 01 07 00 92 2D 00 00 00 00 00 FF 0F D4 [17:19:31]process_action close_receipt done [17:19:31]requested_data is exist [17:19:31]produce_requested_data [17:19:31]requested_item fm.sn is exist - process it [17:19:31]wFMCommunicate request_size=4 [17:19:31]MH_SAM_APDU [17:19:31]CAPDU: 80 11 00 00 [17:19:31]Write to MH i2c: E2 08 00 93 2D 80 11 00 00 00 00 00 00 3A [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:31]Read from MH i2c: E2 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 17 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 17 00 93 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 91 [17:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:19:31]wFMCommunicate OK [17:19:31]requested_item fd.num is exist - process it [17:19:31]SAM_PROTO_GetFieldsCounters [17:19:31]wFMCommunicate request_size=4 [17:19:31]MH_SAM_APDU [17:19:31]CAPDU: 80 13 00 00 [17:19:31]Write to MH i2c: E2 08 00 94 2D 80 13 00 00 00 00 00 00 3D [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:31]Read from MH i2c: E2 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 62 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 62 00 94 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 54 69 01 00 0E 04 04 00 FA 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 DA [17:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 54 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:31]wFMCommunicate OK [17:19:31]SAM_PROTO_GetFieldsCounters done [17:19:31]requested_item shift.num is exist - process it [17:19:31]requested_item shift.opened is exist - process it [17:19:31]req_shift_opened [17:19:31]FM_GetShiftState [17:19:31]SAM_PROTO_GetShiftState [17:19:31]wFMCommunicate request_size=4 [17:19:31]MH_SAM_APDU [17:19:31]CAPDU: 80 13 01 00 [17:19:31]Write to MH i2c: E2 08 00 95 2D 80 13 01 00 00 00 00 00 3F [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:31]Read from MH i2c: E2 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 0E 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 0E 00 95 2D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D9 [17:19:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:19:31]wFMCommunicate OK [17:19:31]SAM_PROTO_GetShiftState done [17:19:31]FM_GetShiftState done [17:19:31]req_shift_opened done [17:19:31]requested_item shift.open_date is exist - process it [17:19:31]req_shift_open_date [17:19:31]req_shift_open_date done [17:19:31]produce_requested_data done [17:19:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92500,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:19:31]process_action_free close_receipt [17:19:31]json_value_free [17:19:31]json_value_free done [17:19:31]process_json_proto returns [17:19:31]Send response to host [17:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92500,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:19:31]free response buf [17:19:31]execute_script done [17:19:31]execute_script returns [17:19:31]free content buf [17:19:31]Sock 9.Close socket [17:19:31]Sock 9.Thread stoped [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:00]accept exits with 8 [17:20:00]New connection [17:20:00]New thread 3066801508 created [17:20:00]Thread 3066658148 joined [17:20:00]Waiting for new connection... [17:20:00] Sock 8.Parse request [17:20:00]Sock 8.Check first char [17:20:00]Sock 8.First char is OK [17:20:00]request: POST /json_proto HTTP/1.0 [17:20:00]Method: POST [17:20:00]URL: /json_proto [17:20:00]Method is POST - this is cgi request [17:20:00]url: /json_proto [17:20:00]query_string will be loaded in cgi processing [17:20:00]execute_cgi json_proto POST (null) [17:20:00]execute_cgi path=json_proto method=POST [17:20:00]POST find Content-Length [17:20:00]Host: 172.17.57.71:8080 [17:20:00]Content-Length: 1209 [17:20:00]Content-Type: application/json [17:20:00] [17:20:00]POST finish read [17:20:00]Found Content-Length = 1209 [17:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127406", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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:20:00]execute_script... [17:20:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127406", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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:20:00]POST & json_proto [17:20:00]process_json_proto [17:20:00]json parsed OK: [17:20:00]protocol is kg_v1.0 [17:20:00]action value=close_receipt [17:20:00]process_action close_receipt [17:20:00]cmd_close_receipt [17:20:00]MH_GetDate [17:20:00]Write to MH i2c: F0 00 00 96 2D B2 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: F0 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: F0 09 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: F0 09 00 96 2D 00 C4 C5 E5 66 33 3A A4 66 06 [17:20:00]GetLastDocTimeStamp 1726334371 [17:20:00]current date 1726334404 [17:20:00]FM_GetShiftState [17:20:00]SAM_PROTO_GetShiftState [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 13 01 00 [17:20:00]Write to MH i2c: E2 08 00 97 2D 80 13 01 00 00 00 00 00 41 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 0E 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 0E 00 97 2D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DB [17:20:00]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:20:00]wFMCommunicate OK [17:20:00]SAM_PROTO_GetShiftState done [17:20:00]FM_GetShiftState done [17:20:00]opened in 1726273389 [17:20:00]opened+sec_in_day 1726359789 [17:20:00]quantity*price = 4000 [17:20:00]sum+1 = 4001 [17:20:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522695 Напиток Maxi Чай черный Малина 0,450 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173372 Жев Orbit для детей Classic 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.32 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 152 14.09.2024 17:20 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92501 ФПД: 263922179504881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T172004&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92501&fm=263922179504881&tin=02508201610067®Number=0000000000091423&sum=15000 0 [17:20:01]StoreToDocumentArchive [17:20:01]shift 506 fd 92501 [17:20:01]save to /storage/0506/doc_00092501 [17:20:01]save last doc name /storage/0506/doc_00092501 to /storage/kkm_last_doc_name [17:20:01]save OK [17:20:01]Clear old archive folders... [17:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=507 [17:20:01]tlvbuf is 0102BDD0 [17:20:01]SAM_PROTO_ClearQueue [17:20:01]wFMCommunicate request_size=4 [17:20:01]MH_SAM_APDU [17:20:01]CAPDU: 80 09 00 00 [17:20:01]Write to MH i2c: E2 08 00 A4 2D 80 09 00 00 00 00 00 00 43 [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 03 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 03 00 A4 2D 00 90 00 45 [17:20:01]RAPDU: 90 00 [17:20:01]wFMCommunicate OK [17:20:01]SAM_PROTO_ClearQueue done [17:20:01]KKMCreateOFDPacket [17:20:01]OFDProtocolAddRootSTLVToBuf [17:20:01]FM_MakeSignedData [17:20:01]FM_MakeSignedData [17:20:01]SAM_PROTO_SignData [17:20:01]wFMCommunicate request_size=4 [17:20:01]MH_SAM_APDU [17:20:01]CAPDU: 80 0D 01 02 [17:20:01]Write to MH i2c: E2 08 00 A5 2D 80 0D 01 02 00 00 00 00 4B [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 03 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 03 00 A5 2D 00 90 00 46 [17:20:01]RAPDU: 90 00 [17:20:01]wFMCommunicate OK [17:20:01]wFMCommunicate request_size=255 [17:20:01]MH_SAM_APDU [17:20:01]CAPDU: 80 0D 02 02 FA 03 00 FB 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 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 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 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 65 00 8A 04 08 00 35 [17:20:01]Write to MH i2c: E2 02 01 A6 2D 80 0D 02 02 FA 00 03 00 FB 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 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 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 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 65 00 8A 04 08 00 35 00 00 0E [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 A6 2D 00 90 00 47 [17:20:02]RAPDU: 90 00 [17:20:02]wFMCommunicate OK [17:20:02]wFMCommunicate request_size=255 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 0D 02 02 FA 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 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 98 00 00 00 F4 03 04 00 C4 C5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 55 69 01 [17:20:02]Write to MH i2c: E2 02 01 A7 2D 80 0D 02 02 FA 00 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 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 98 00 00 00 F4 03 04 00 C4 C5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 55 69 01 00 00 58 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 A7 2D 00 90 00 48 [17:20:02]RAPDU: 90 00 [17:20:02]wFMCommunicate OK [17:20:02]wFMCommunicate request_size=16 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F0 09 2B C1 FA F1 [17:20:02]Write to MH i2c: E2 13 00 A8 2D 80 0D 02 02 0B 00 00 35 04 06 00 F0 09 2B C1 FA F1 00 00 74 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 A8 2D 00 90 00 49 [17:20:02]RAPDU: 90 00 [17:20:02]wFMCommunicate OK [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 0D 03 02 [17:20:02]Write to MH i2c: E2 08 00 A9 2D 80 0D 03 02 00 00 00 00 51 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 0B 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 0B 00 A9 2D 00 3B C7 3D 88 87 D8 4C C6 90 00 8A [17:20:02]RAPDU: 3B C7 3D 88 87 D8 4C C6 90 00 [17:20:02]wFMCommunicate OK [17:20:02]SAM_PROTO_SignData done [17:20:02]FM_MakeSignedData done [17:20:02]CreateOFDProtocolMessage [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 11 00 00 [17:20:02]Write to MH i2c: E2 08 00 AA 2D 80 11 00 00 00 00 00 00 51 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 17 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 17 00 AA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [17:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:20:02]wFMCommunicate OK [17:20:02]CreateOFDProtocolMessage done [17:20:02]OFDSenderStorePacket 92501 [17:20:02]StoreOFDPacket docnum=92501 [17:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 02 00 00 16 92 07 02 63 BF 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 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 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 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 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 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 98 00 00 00 F4 03 04 00 C4 C5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 55 69 01 00 35 04 06 00 F0 09 2B C1 FA F1 3B C7 3D 88 87 D8 4C C6 [17:20:02]CheckFolder [17:20:02]dirname=/storage/ofd_packets [17:20:02]CheckFolder done [17:20:02]ProducePacketName [17:20:02]name=ofd_packets/00092501 [17:20:02]NVStorageSaveData ofd_packets/00092501 [17:20:02]File name is /storage/ofd_packets/00092501 [17:20:02]Write 557 bytes [17:20:02]NVStorageSaveData done [17:20:02]OFDSenderStorePacket done [17:20:02]KKMCreateOFDPacket done [17:20:02]NVStorageSaveData kkm_last_timestamp [17:20:02]File name is /storage/kkm_last_timestamp [17:20:02]Write 4 bytes [17:20:02]NVStorageSaveData done [17:20:02]ExternCall_PrintAddStr [17:20:02]wPrintStart [17:20:02]Write to MH i2c: 01 00 00 AB 2D D8 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: 01 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: 01 07 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: 01 07 00 AB 2D 00 00 00 00 00 FF 0F ED [17:20:02]RasterBufferAndPrint [17:20:02]line Счет N : (3)127406 [17:20:02]line ИНН: 02508201610067 [17:20:02]line Контрольно-Кассовый Чек [17:20:02]line ПРОДАЖА [17:20:02]line Товар: 40822426 [17:20:02]line Вода Бонаква 0,5л б/г [17:20:02]line 1.000 * 40.00 [17:20:02]line = 40.00 [17:20:02]line НДС 12% НСП 1% [17:20:02]line > о реализуемом товаре [17:20:02]line Товар: 4870202522695 [17:20:02]line Напиток Maxi Чай черный Малина 0,450 [17:20:02]line 1.000 * 70.00 [17:20:02]line = 70.00 [17:20:02]line НДС 12% НСП 1% [17:20:02]line > о реализуемом товаре [17:20:02]line Товар: 50173372 [17:20:02]line Жев Orbit для детей Classic [17:20:02]line 1.000 * 40.00 [17:20:02]line = 40.00 [17:20:02]line НДС 12% НСП 1% [17:20:02]line > о реализуемом товаре [17:20:02]line ИТОГО: 150.00 [17:20:02]line НСП 1% : 1.32 [17:20:02]line НДС 12% : 15.93 [17:20:02]line Наличными: 150.00 [17:20:02]line Безнал.: 0.00 [17:20:02]line Место: АЗС № 5 "Партнер Нефть" [17:20:02]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:20:02]line СНО: Общий режим [17:20:02]line Чек 152 14.09.2024 17:20 [17:20:02]line Смена: 506 ФФД: 1.0 [17:20:02]line ЗНМ: 03000000022 [17:20:02]line РНМ: 0000000000091423 [17:20:02]line Версия ККМ: 001 [17:20:02]line ФМ: 0000000000874692 [17:20:02]line ФД: 92501 [17:20:02]line ФПД: 263922179504881 [17:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T172004&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92501&fm=263922179504881&tin=02508201610067®Number=0000000000091423&sum=15000 [17:20:02]line 0 [17:20:02]OFD Sender: Processing packet 92501 [packets to send 63, broken 62] [17:20:02]ProducePacketName [17:20:02]name=ofd_packets/00092501 [17:20:02]OFD Sender: To server: pG, [17:20:02]CommunicateWithHost lk.salyk.kg:30040 [17:20:02]ConnectInit lk.salyk.kg [17:20:02]written 0, free lines is 4095 [17:20:02]Connected sock=10 [17:20:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 02 00 00 16 92 07 02 63 BF 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 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 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 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 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 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 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 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 98 00 00 00 F4 03 04 00 C4 C5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 55 69 01 00 35 04 06 00 F0 09 2B C1 FA F1 3B C7 3D 88 87 D8 4C C6 [17:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 84 2D 47 00 5F 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 34 36 39 32 10 04 04 00 55 69 01 00 F4 03 04 00 3F 6E E5 66 B6 04 01 00 00 6C D1 58 B6 87 2D 5B 28 [17:20:03]CommunicateWithHost err = 0 [17:20:03]CheckOFDResponse [17:20:03]1017 (14) - 77093643461234 [17:20:03]1041 (16) - 0000000000874692 [17:20:03]1040 (4) - 92501 [17:20:03]1012 (4) - 14.09.2024 11:06 [17:20:03]1206 (1) - 0 [17:20:03]OFD Sender: Remove packet 92501 [17:20:03]ProducePacketName [17:20:03]name=ofd_packets/00092501 [17:20:03]NVStorageDeleteData [17:20:03]Write to MH i2c: 01 00 00 E0 2D 0D [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 E0 2D 00 00 00 00 00 90 0C B0 [17:20:03]RasterBufferAndPrint [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]written 0, free lines is 3224 [17:20:03]MH_Cut [17:20:03]Write to MH i2c: D1 01 00 E7 2D 01 E6 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 01 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 01 00 E7 2D 00 E5 [17:20:03]Write to MH i2c: 01 00 00 E8 2D 15 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]OFD Sender: No OFD packet to send [17:20:04]*** Cut start [17:20:04]*** Purtial cut [17:20:04]*** Stage 1: CUTSNS_PIN = 1 [17:20:06]Read from MH i2c: 01 [17:20:06]MH_I2C_Read... [17:20:06]*** Stop cut motor [17:20:06]*** Cut end [17:20:06]Read from MH i2c: 01 07 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: 01 07 00 E8 2D 00 00 00 00 00 FF 0F 2A [17:20:06]process_action close_receipt done [17:20:06]requested_data is exist [17:20:06]produce_requested_data [17:20:06]requested_item fm.sn is exist - process it [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 11 00 00 [17:20:06]Write to MH i2c: E2 08 00 E9 2D 80 11 00 00 00 00 00 00 90 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 17 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 17 00 E9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E7 [17:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:20:06]wFMCommunicate OK [17:20:06]requested_item fd.num is exist - process it [17:20:06]SAM_PROTO_GetFieldsCounters [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 13 00 00 [17:20:06]Write to MH i2c: E2 08 00 EA 2D 80 13 00 00 00 00 00 00 93 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 62 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 62 00 EA 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 55 69 01 00 0E 04 04 00 FA 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 34 [17:20:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 55 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:06]wFMCommunicate OK [17:20:06]SAM_PROTO_GetFieldsCounters done [17:20:06]requested_item shift.num is exist - process it [17:20:06]requested_item shift.opened is exist - process it [17:20:06]req_shift_opened [17:20:06]FM_GetShiftState [17:20:06]SAM_PROTO_GetShiftState [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 13 01 00 [17:20:06]Write to MH i2c: E2 08 00 EB 2D 80 13 01 00 00 00 00 00 95 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 0E 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 0E 00 EB 2D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 2F [17:20:06]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:20:06]wFMCommunicate OK [17:20:06]SAM_PROTO_GetShiftState done [17:20:06]FM_GetShiftState done [17:20:06]req_shift_opened done [17:20:06]requested_item shift.open_date is exist - process it [17:20:06]req_shift_open_date [17:20:06]req_shift_open_date done [17:20:06]produce_requested_data done [17:20:06]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92501,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:20:06]process_action_free close_receipt [17:20:06]json_value_free [17:20:06]json_value_free done [17:20:06]process_json_proto returns [17:20:06]Send response to host [17:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92501,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:20:06]free response buf [17:20:06]execute_script done [17:20:06]execute_script returns [17:20:06]free content buf [17:20:06]Sock 8.Close socket [17:20:06]Sock 8.Thread stoped [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:25]accept exits with 9 [17:31:25]New connection [17:31:25]New thread 3066658148 created [17:31:25]Thread 3066801508 joined [17:31:25]Waiting for new connection... [17:31:25] Sock 9.Parse request [17:31:25]Sock 9.Check first char [17:31:25]Sock 9.First char is OK [17:31:25]request: POST /json_proto HTTP/1.0 [17:31:25]Method: POST [17:31:25]URL: /json_proto [17:31:25]Method is POST - this is cgi request [17:31:25]url: /json_proto [17:31:25]query_string will be loaded in cgi processing [17:31:25]execute_cgi json_proto POST (null) [17:31:25]execute_cgi path=json_proto method=POST [17:31:25]POST find Content-Length [17:31:25]Host: 172.17.57.71:8080 [17:31:25]Content-Length: 654 [17:31:25]Content-Type: application/json [17:31:25] [17:31:25]POST finish read [17:31:25]Found Content-Length = 654 [17:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127407", "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" ] } } [17:31:25]execute_script... [17:31: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)127407", "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" ] } } [17:31:25]POST & json_proto [17:31:25]process_json_proto [17:31:25]json parsed OK: [17:31:25]protocol is kg_v1.0 [17:31:25]action value=close_receipt [17:31:25]process_action close_receipt [17:31:25]cmd_close_receipt [17:31:25]MH_GetDate [17:31:25]Write to MH i2c: F0 00 00 EC 2D 08 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 09 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 09 00 EC 2D 00 72 C8 E5 66 33 3A A4 66 0D [17:31:25]GetLastDocTimeStamp 1726334404 [17:31:25]current date 1726335090 [17:31:25]FM_GetShiftState [17:31:25]SAM_PROTO_GetShiftState [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 13 01 00 [17:31:25]Write to MH i2c: E2 08 00 ED 2D 80 13 01 00 00 00 00 00 97 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0E 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0E 00 ED 2D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 31 [17:31:25]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_GetShiftState done [17:31:25]FM_GetShiftState done [17:31:25]opened in 1726273389 [17:31:25]opened+sec_in_day 1726359789 [17:31:25]quantity*price = 7700 [17:31:25]sum+1 = 7701 [17:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 153 14.09.2024 17:31 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92502 ФПД: 88632791335227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173130&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92502&fm=88632791335227&tin=02508201610067®Number=0000000000091423&sum=7700 0 [17:31:26]StoreToDocumentArchive [17:31:26]shift 506 fd 92502 [17:31:26]save to /storage/0506/doc_00092502 [17:31:26]save last doc name /storage/0506/doc_00092502 to /storage/kkm_last_doc_name [17:31:26]save OK [17:31:26]Clear old archive folders... [17:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=293 [17:31:26]tlvbuf is B6F33720 [17:31:26]SAM_PROTO_ClearQueue [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 09 00 00 [17:31:26]Write to MH i2c: E2 08 00 FA 2D 80 09 00 00 00 00 00 00 99 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 FA 2D 00 90 00 9B [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_ClearQueue done [17:31:27]KKMCreateOFDPacket [17:31:27]OFDProtocolAddRootSTLVToBuf [17:31:27]FM_MakeSignedData [17:31:27]FM_MakeSignedData [17:31:27]SAM_PROTO_SignData [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 01 02 [17:31:27]Write to MH i2c: E2 08 00 FB 2D 80 0D 01 02 00 00 00 00 A1 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 FB 2D 00 90 00 9C [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=255 [17:31:27]MH_SAM_APDU [17:31:27]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 99 00 00 00 F4 03 04 00 72 C8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:31:27]Write to MH i2c: E2 02 01 FC 2D 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 99 00 00 00 F4 03 04 00 72 C8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 4F [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 FC 2D 00 90 00 9D [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=52 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 56 69 01 00 35 04 06 00 50 9C 6E 0B 01 3B [17:31:27]Write to MH i2c: E2 37 00 FD 2D 80 0D 02 02 2F 00 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 56 69 01 00 35 04 06 00 50 9C 6E 0B 01 3B 00 00 C6 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 FD 2D 00 90 00 9E [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 03 02 [17:31:27]Write to MH i2c: E2 08 00 FE 2D 80 0D 03 02 00 00 00 00 A6 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0B 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0B 00 FE 2D 00 81 75 D0 CE 32 36 84 BF 90 00 E6 [17:31:27]RAPDU: 81 75 D0 CE 32 36 84 BF 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_SignData done [17:31:27]FM_MakeSignedData done [17:31:27]CreateOFDProtocolMessage [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 11 00 00 [17:31:27]Write to MH i2c: E2 08 00 FF 2D 80 11 00 00 00 00 00 00 A6 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 FF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FD [17:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:31:27]wFMCommunicate OK [17:31:27]CreateOFDProtocolMessage done [17:31:27]OFDSenderStorePacket 92502 [17:31:27]StoreOFDPacket docnum=92502 [17:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 2D 90 31 01 6D 68 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 99 00 00 00 F4 03 04 00 72 C8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 56 69 01 00 35 04 06 00 50 9C 6E 0B 01 3B 81 75 D0 CE 32 36 84 BF [17:31:27]CheckFolder [17:31:27]dirname=/storage/ofd_packets [17:31:27]CheckFolder done [17:31:27]ProducePacketName [17:31:27]name=ofd_packets/00092502 [17:31:27]NVStorageSaveData ofd_packets/00092502 [17:31:27]File name is /storage/ofd_packets/00092502 [17:31:27]Write 343 bytes [17:31:27]NVStorageSaveData done [17:31:27]OFDSenderStorePacket done [17:31:27]KKMCreateOFDPacket done [17:31:27]NVStorageSaveData kkm_last_timestamp [17:31:27]File name is /storage/kkm_last_timestamp [17:31:27]Write 4 bytes [17:31:27]NVStorageSaveData done [17:31:27]OFD Sender: Processing packet 92502 [packets to send 63, broken 62] [17:31:27]ProducePacketName [17:31:27]name=ofd_packets/00092502 [17:31:27]OFD Sender: To server: pG, [17:31:27]CommunicateWithHost lk.salyk.kg:30040 [17:31:27]ConnectInit lk.salyk.kg [17:31:27]ExternCall_PrintAddStr [17:31:27]wPrintStart [17:31:27]Write to MH i2c: 01 00 00 00 2E 2E [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 07 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 07 00 00 2E 00 00 00 00 00 FF 0F 43 [17:31:27]RasterBufferAndPrint [17:31:27]line Счет N : (3)127407 [17:31:27]line ИНН: 02508201610067 [17:31:27]line Контрольно-Кассовый Чек [17:31:27]line ПРОДАЖА [17:31:27]line Товар: 4700000480050 [17:31:27]line Напиток Nitro Energy эн green ж/б 0,45л [17:31:27]line 1.000 * 77.00 [17:31:27]line = 77.00 [17:31:27]line НДС 12% НСП 1% [17:31:27]line > о реализуемом товаре [17:31:27]line ИТОГО: 77.00 [17:31:27]line НСП 1% : 0.68 [17:31:27]line НДС 12% : 8.18 [17:31:27]line Наличными: 77.00 [17:31:27]line Безнал.: 0.00 [17:31:27]line Место: АЗС № 5 "Партнер Нефть" [17:31:27]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:31:27]line СНО: Общий режим [17:31:27]line Чек 153 14.09.2024 17:31 [17:31:27]line Смена: 506 ФФД: 1.0 [17:31:27]line ЗНМ: 03000000022 [17:31:27]line РНМ: 0000000000091423 [17:31:27]line Версия ККМ: 001 [17:31:27]line ФМ: 0000000000874692 [17:31:27]line ФД: 92502 [17:31:27]line ФПД: 88632791335227 [17:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173130&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92502&fm=88632791335227&tin=02508201610067®Number=0000000000091423&sum=7700 [17:31:27]line 0 [17:31:27]Connected sock=11 [17:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 39 01 00 00 2D 90 31 01 6D 68 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 99 00 00 00 F4 03 04 00 72 C8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 56 69 01 00 35 04 06 00 50 9C 6E 0B 01 3B 81 75 D0 CE 32 36 84 BF [17:31:27]written 0, free lines is 4095 [17:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4F 37 47 00 6A 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 56 69 01 00 F4 03 04 00 EC 70 E5 66 B6 04 01 00 00 48 0E FD 48 29 B8 F4 E2 [17:31:28]CommunicateWithHost err = 0 [17:31:28]CheckOFDResponse [17:31:28]1017 (14) - 77093643461234 [17:31:28]1041 (16) - 0000000000874692 [17:31:28]1040 (4) - 92502 [17:31:28]1012 (4) - 14.09.2024 11:18 [17:31:28]1206 (1) - 0 [17:31:28]OFD Sender: Remove packet 92502 [17:31:28]ProducePacketName [17:31:28]name=ofd_packets/00092502 [17:31:28]NVStorageDeleteData [17:31:28]Write to MH i2c: 01 00 00 29 2E 57 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 29 2E 00 00 00 00 00 09 0D 74 [17:31:28]RasterBufferAndPrint [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]written 0, free lines is 3344 [17:31:28]MH_Cut [17:31:28]Write to MH i2c: D1 01 00 30 2E 01 30 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 01 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 01 00 30 2E 00 2F [17:31:28]Write to MH i2c: 01 00 00 31 2E 5F [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]OFD Sender: No OFD packet to send [17:31:28]*** Cut start [17:31:28]*** Purtial cut [17:31:28]*** Stage 1: CUTSNS_PIN = 1 [17:31:30]Read from MH i2c: 01 [17:31:30]MH_I2C_Read... [17:31:30]*** Stop cut motor [17:31:31]*** Cut end [17:31:31]Read from MH i2c: 01 07 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 31 2E 00 00 00 00 00 FF 0F 74 [17:31:31]process_action close_receipt done [17:31:31]requested_data is exist [17:31:31]produce_requested_data [17:31:31]requested_item fm.sn is exist - process it [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 11 00 00 [17:31:31]Write to MH i2c: E2 08 00 32 2E 80 11 00 00 00 00 00 00 DA [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 17 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 17 00 32 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 31 [17:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:31:31]wFMCommunicate OK [17:31:31]requested_item fd.num is exist - process it [17:31:31]SAM_PROTO_GetFieldsCounters [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 13 00 00 [17:31:31]Write to MH i2c: E2 08 00 33 2E 80 13 00 00 00 00 00 00 DD [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 62 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 62 00 33 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 56 69 01 00 0E 04 04 00 FA 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 82 [17:31:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 56 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:31]wFMCommunicate OK [17:31:31]SAM_PROTO_GetFieldsCounters done [17:31:31]requested_item shift.num is exist - process it [17:31:31]requested_item shift.opened is exist - process it [17:31:31]req_shift_opened [17:31:31]FM_GetShiftState [17:31:31]SAM_PROTO_GetShiftState [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 13 01 00 [17:31:31]Write to MH i2c: E2 08 00 34 2E 80 13 01 00 00 00 00 00 DF [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 0E 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 0E 00 34 2E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 79 [17:31:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:31:31]wFMCommunicate OK [17:31:31]SAM_PROTO_GetShiftState done [17:31:31]FM_GetShiftState done [17:31:31]req_shift_opened done [17:31:31]requested_item shift.open_date is exist - process it [17:31:31]req_shift_open_date [17:31:31]req_shift_open_date done [17:31:31]produce_requested_data done [17:31:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92502,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:31:31]process_action_free close_receipt [17:31:31]json_value_free [17:31:31]json_value_free done [17:31:31]process_json_proto returns [17:31:31]Send response to host [17:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92502,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:31:31]free response buf [17:31:31]execute_script done [17:31:31]execute_script returns [17:31:31]free content buf [17:31:31]Sock 9.Close socket [17:31:31]Sock 9.Thread stoped [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]accept exits with 8 [17:36:28]New connection [17:36:28]New thread 3066801508 created [17:36:28]Thread 3066658148 joined [17:36:28]Waiting for new connection... [17:36:28] Sock 8.Parse request [17:36:28]Sock 8.Check first char [17:36:28]Sock 8.First char is OK [17:36:28]request: POST /json_proto HTTP/1.0 [17:36:28]Method: POST [17:36:28]URL: /json_proto [17:36:28]Method is POST - this is cgi request [17:36:28]url: /json_proto [17:36:28]query_string will be loaded in cgi processing [17:36:28]execute_cgi json_proto POST (null) [17:36:28]execute_cgi path=json_proto method=POST [17:36:28]POST find Content-Length [17:36:28]Host: 172.17.57.71:8080 [17:36:28]Content-Length: 678 [17:36:28]Content-Type: application/json [17:36:28] [17:36:28]POST finish read [17:36:28]Found Content-Length = 678 [17:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:28]execute_script... [17:36: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)647819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:28]POST & json_proto [17:36:28]process_json_proto [17:36:28]json parsed OK: [17:36:28]protocol is kg_v1.0 [17:36:28]action value=close_receipt [17:36:28]process_action close_receipt [17:36:28]cmd_close_receipt [17:36:28]MH_GetDate [17:36:28]Write to MH i2c: F0 00 00 35 2E 52 [17:36:28]Write i2c OK [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: F0 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: F0 09 00 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: F0 09 00 35 2E 00 A0 C9 E5 66 33 3A A4 66 86 [17:36:28]GetLastDocTimeStamp 1726335090 [17:36:28]current date 1726335392 [17:36:28]FM_GetShiftState [17:36:28]SAM_PROTO_GetShiftState [17:36:28]wFMCommunicate request_size=4 [17:36:28]MH_SAM_APDU [17:36:28]CAPDU: 80 13 01 00 [17:36:28]Write to MH i2c: E2 08 00 36 2E 80 13 01 00 00 00 00 00 E1 [17:36:28]Write i2c OK [17:36:28]MH_I2C_Read... [17:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:28]Read from MH i2c: E2 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: E2 0E 00 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: E2 0E 00 36 2E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7B [17:36:28]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:36:28]wFMCommunicate OK [17:36:28]SAM_PROTO_GetShiftState done [17:36:28]FM_GetShiftState done [17:36:28]opened in 1726273389 [17:36:28]opened+sec_in_day 1726359789 [17:36:28]quantity*price = 67033 [17:36:28]sum+1 = 67035 [17:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 154 14.09.2024 17:36 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92503 ФПД: 187650426384084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173632&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92503&fm=187650426384084&tin=02508201610067®Number=0000000000091423&sum=67000 [17:36:29]StoreToDocumentArchive [17:36:29]shift 506 fd 92503 [17:36:29]save to /storage/0506/doc_00092503 [17:36:29]save last doc name /storage/0506/doc_00092503 to /storage/kkm_last_doc_name [17:36:29]save OK [17:36:29]Clear old archive folders... [17:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:29]tlvbuf is 0102B780 [17:36:29]SAM_PROTO_ClearQueue [17:36:29]wFMCommunicate request_size=4 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 09 00 00 [17:36:29]Write to MH i2c: E2 08 00 43 2E 80 09 00 00 00 00 00 00 E3 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 03 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 03 00 43 2E 00 90 00 E5 [17:36:29]RAPDU: 90 00 [17:36:29]wFMCommunicate OK [17:36:29]SAM_PROTO_ClearQueue done [17:36:29]KKMCreateOFDPacket [17:36:29]OFDProtocolAddRootSTLVToBuf [17:36:29]FM_MakeSignedData [17:36:29]FM_MakeSignedData [17:36:29]SAM_PROTO_SignData [17:36:29]wFMCommunicate request_size=4 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 0D 01 02 [17:36:29]Write to MH i2c: E2 08 00 44 2E 80 0D 01 02 00 00 00 00 EB [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 03 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 03 00 44 2E 00 90 00 E6 [17:36:29]RAPDU: 90 00 [17:36:29]wFMCommunicate OK [17:36:29]wFMCommunicate request_size=255 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 A0 C9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 57 69 01 00 35 04 06 00 AA [17:36:29]Write to MH i2c: E2 02 01 45 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 A0 C9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 57 69 01 00 35 04 06 00 AA 00 00 C7 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 03 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 03 00 45 2E 00 90 00 E7 [17:36:29]RAPDU: 90 00 [17:36:29]wFMCommunicate OK [17:36:29]wFMCommunicate request_size=10 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 0D 02 02 05 AA C5 01 AE D4 [17:36:29]Write to MH i2c: E2 0D 00 46 2E 80 0D 02 02 05 00 AA C5 01 AE D4 00 00 EA [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 03 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 03 00 46 2E 00 90 00 E8 [17:36:29]RAPDU: 90 00 [17:36:29]wFMCommunicate OK [17:36:29]wFMCommunicate request_size=4 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 0D 03 02 [17:36:29]Write to MH i2c: E2 08 00 47 2E 80 0D 03 02 00 00 00 00 F0 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 0B 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 0B 00 47 2E 00 70 6E FD 34 F3 30 EA 9B 90 00 A8 [17:36:30]RAPDU: 70 6E FD 34 F3 30 EA 9B 90 00 [17:36:30]wFMCommunicate OK [17:36:30]SAM_PROTO_SignData done [17:36:30]FM_MakeSignedData done [17:36:30]CreateOFDProtocolMessage [17:36:30]wFMCommunicate request_size=4 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 11 00 00 [17:36:30]Write to MH i2c: E2 08 00 48 2E 80 11 00 00 00 00 00 00 F0 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 17 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 17 00 48 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 47 [17:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:36:30]wFMCommunicate OK [17:36:30]CreateOFDProtocolMessage done [17:36:30]OFDSenderStorePacket 92503 [17:36:30]StoreOFDPacket docnum=92503 [17:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 DE BE 07 01 60 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 A0 C9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 57 69 01 00 35 04 06 00 AA AA C5 01 AE D4 70 6E FD 34 F3 30 EA 9B [17:36:30]CheckFolder [17:36:30]dirname=/storage/ofd_packets [17:36:30]CheckFolder done [17:36:30]ProducePacketName [17:36:30]name=ofd_packets/00092503 [17:36:30]NVStorageSaveData ofd_packets/00092503 [17:36:30]File name is /storage/ofd_packets/00092503 [17:36:30]Write 301 bytes [17:36:30]NVStorageSaveData done [17:36:30]OFDSenderStorePacket done [17:36:30]KKMCreateOFDPacket done [17:36:30]NVStorageSaveData kkm_last_timestamp [17:36:30]File name is /storage/kkm_last_timestamp [17:36:30]Write 4 bytes [17:36:30]NVStorageSaveData done [17:36:30]ExternCall_PrintAddStr [17:36:30]wPrintStart [17:36:30]Write to MH i2c: 01 00 00 49 2E 77 [17:36:30]OFD Sender: Processing packet 92503 [packets to send 63, broken 62] [17:36:30]ProducePacketName [17:36:30]name=ofd_packets/00092503 [17:36:30]OFD Sender: To server: pG, [17:36:30]CommunicateWithHost lk.salyk.kg:30040 [17:36:30]ConnectInit lk.salyk.kg [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: 01 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: 01 07 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: 01 07 00 49 2E 00 00 00 00 00 FF 0F 8C [17:36:30]RasterBufferAndPrint [17:36:30]line Счет N : (1)647819 [17:36:30]line ИНН: 02508201610067 [17:36:30]line Контрольно-Кассовый Чек [17:36:30]line ПРОДАЖА [17:36:30]line ТРК (МРК, ГНК) : 13 [17:36:30]line Товар: 2710124130 [17:36:30]line Аи-92-К-5 [17:36:30]line 10.020 * 66.90 [17:36:30]line = 670.34 [17:36:30]line НДС 12% НСП 1% [17:36:30]line > о реализуемом товаре [17:36:30]line ОКРУГЛЕНИЕ: -0.34 [17:36:30]line ИТОГО: 670.00 [17:36:30]line Внесено: 670.00 [17:36:30]line СДАЧА: 0.00 [17:36:30]line НСП 1% : 5.93 [17:36:30]line НДС 12% : 71.19 [17:36:30]line Наличными: 670.00 [17:36:30]line Безнал.: 0.00 [17:36:30]line Место: АЗС № 5 "Партнер Нефть" [17:36:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:36:30]line СНО: Общий режим [17:36:30]line Чек 154 14.09.2024 17:36 [17:36:30]line Смена: 506 ФФД: 1.0 [17:36:30]line ЗНМ: 03000000022 [17:36:30]line РНМ: 0000000000091423 [17:36:30]line Версия ККМ: 001 [17:36:30]line ФМ: 0000000000874692 [17:36:30]line ФД: 92503 [17:36:30]line ФПД: 187650426384084 [17:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173632&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92503&fm=187650426384084&tin=02508201610067®Number=0000000000091423&sum=67000 [17:36:30]Connected sock=10 [17:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 DE BE 07 01 60 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 A0 C9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 57 69 01 00 35 04 06 00 AA AA C5 01 AE D4 70 6E FD 34 F3 30 EA 9B [17:36:30]written 0, free lines is 4095 [17:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4B F9 47 00 8C 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 34 36 39 32 10 04 04 00 57 69 01 00 F4 03 04 00 1B 72 E5 66 B6 04 01 00 00 04 D5 03 8C 4E 60 67 65 [17:36:30]CommunicateWithHost err = 0 [17:36:30]CheckOFDResponse [17:36:30]1017 (14) - 77093643461234 [17:36:30]1041 (16) - 0000000000874692 [17:36:30]1040 (4) - 92503 [17:36:30]1012 (4) - 14.09.2024 11:23 [17:36:30]1206 (1) - 0 [17:36:30]OFD Sender: Remove packet 92503 [17:36:30]ProducePacketName [17:36:30]name=ofd_packets/00092503 [17:36:30]NVStorageDeleteData [17:36:30]Write to MH i2c: 01 00 00 74 2E A2 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: 01 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: 01 07 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: 01 07 00 74 2E 00 00 00 00 00 F4 0C A9 [17:36:30]RasterBufferAndPrint [17:36:30]line [17:36:30]line [17:36:30]line [17:36:30]line [17:36:30]line [17:36:30]written 0, free lines is 3323 [17:36:30]MH_Cut [17:36:30]Write to MH i2c: D1 01 00 7B 2E 01 7B [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: D1 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: D1 01 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: D1 01 00 7B 2E 00 7A [17:36:30]Write to MH i2c: 01 00 00 7C 2E AA [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:31]OFD Sender: No OFD packet to send [17:36:31]*** Cut start [17:36:31]*** Purtial cut [17:36:31]*** Stage 1: CUTSNS_PIN = 1 [17:36:33]Read from MH i2c: 01 [17:36:33]MH_I2C_Read... [17:36:33]*** Stop cut motor [17:36:33]*** Cut end [17:36:33]Read from MH i2c: 01 07 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: 01 07 00 7C 2E 00 00 00 00 00 FF 0F BF [17:36:33]process_action close_receipt done [17:36:33]requested_data is exist [17:36:33]produce_requested_data [17:36:33]requested_item fm.sn is exist - process it [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 11 00 00 [17:36:33]Write to MH i2c: E2 08 00 7D 2E 80 11 00 00 00 00 00 00 25 [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 17 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 17 00 7D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7C [17:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:36:33]wFMCommunicate OK [17:36:33]requested_item fd.num is exist - process it [17:36:33]SAM_PROTO_GetFieldsCounters [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 00 00 [17:36:33]Write to MH i2c: E2 08 00 7E 2E 80 13 00 00 00 00 00 00 28 [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 62 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 62 00 7E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 57 69 01 00 0E 04 04 00 FA 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 D1 [17:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 57 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:33]wFMCommunicate OK [17:36:33]SAM_PROTO_GetFieldsCounters done [17:36:33]requested_item shift.num is exist - process it [17:36:33]requested_item shift.opened is exist - process it [17:36:33]req_shift_opened [17:36:33]FM_GetShiftState [17:36:33]SAM_PROTO_GetShiftState [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 01 00 [17:36:33]Write to MH i2c: E2 08 00 7F 2E 80 13 01 00 00 00 00 00 2A [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0E 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0E 00 7F 2E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C4 [17:36:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:36:33]wFMCommunicate OK [17:36:33]SAM_PROTO_GetShiftState done [17:36:33]FM_GetShiftState done [17:36:33]req_shift_opened done [17:36:33]requested_item shift.open_date is exist - process it [17:36:33]req_shift_open_date [17:36:33]req_shift_open_date done [17:36:33]produce_requested_data done [17:36:33]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92503,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:36:33]process_action_free close_receipt [17:36:33]json_value_free [17:36:33]json_value_free done [17:36:33]process_json_proto returns [17:36:33]Send response to host [17:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92503,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:36:33]free response buf [17:36:33]execute_script done [17:36:33]execute_script returns [17:36:33]free content buf [17:36:33]Sock 8.Close socket [17:36:33]Sock 8.Thread stoped [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:29]accept exits with 9 [17:37:29]New connection [17:37:29]New thread 3066658148 created [17:37:29]Thread 3066801508 joined [17:37:29]Waiting for new connection... [17:37:29] Sock 9.Parse request [17:37:29]Sock 9.Check first char [17:37:29]Sock 9.First char is OK [17:37:29]request: POST /json_proto HTTP/1.0 [17:37:29]Method: POST [17:37:29]URL: /json_proto [17:37:29]Method is POST - this is cgi request [17:37:29]url: /json_proto [17:37:29]query_string will be loaded in cgi processing [17:37:29]execute_cgi json_proto POST (null) [17:37:29]execute_cgi path=json_proto method=POST [17:37:29]POST find Content-Length [17:37:29]Host: 172.17.57.71:8080 [17:37:29]Content-Length: 824 [17:37:29]Content-Type: application/json [17:37:29] [17:37:29]POST finish read [17:37:29]Found Content-Length = 824 [17:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127408", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:29]execute_script... [17:37: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)127408", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:29]POST & json_proto [17:37:29]process_json_proto [17:37:29]json parsed OK: [17:37:29]protocol is kg_v1.0 [17:37:29]action value=close_receipt [17:37:29]process_action close_receipt [17:37:29]cmd_close_receipt [17:37:29]MH_GetDate [17:37:29]Write to MH i2c: F0 00 00 80 2E 9D [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 09 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 09 00 80 2E 00 DD C9 E5 66 33 3A A4 66 0E [17:37:29]GetLastDocTimeStamp 1726335392 [17:37:29]current date 1726335453 [17:37:29]FM_GetShiftState [17:37:29]SAM_PROTO_GetShiftState [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 13 01 00 [17:37:29]Write to MH i2c: E2 08 00 81 2E 80 13 01 00 00 00 00 00 2C [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 0E 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 0E 00 81 2E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C6 [17:37:29]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_GetShiftState done [17:37:29]FM_GetShiftState done [17:37:29]opened in 1726273389 [17:37:29]opened+sec_in_day 1726359789 [17:37:29]quantity*price = 10500 [17:37:29]sum+1 = 10501 [17:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 155 14.09.2024 17:37 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92504 ФПД: 248716227345474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173734&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92504&fm=248716227345474&tin=02508201610067®Number=0000000000091423&sum=10500 0 [17:37:30]StoreToDocumentArchive [17:37:30]shift 506 fd 92504 [17:37:30]save to /storage/0506/doc_00092504 [17:37:30]save last doc name /storage/0506/doc_00092504 to /storage/kkm_last_doc_name [17:37:30]save OK [17:37:30]Clear old archive folders... [17:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=278 [17:37:30]tlvbuf is B6F30990 [17:37:30]SAM_PROTO_ClearQueue [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 09 00 00 [17:37:30]Write to MH i2c: E2 08 00 8E 2E 80 09 00 00 00 00 00 00 2E [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 8E 2E 00 90 00 30 [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]SAM_PROTO_ClearQueue done [17:37:30]KKMCreateOFDPacket [17:37:30]OFDProtocolAddRootSTLVToBuf [17:37:30]FM_MakeSignedData [17:37:30]FM_MakeSignedData [17:37:30]SAM_PROTO_SignData [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 01 02 [17:37:30]Write to MH i2c: E2 08 00 8F 2E 80 0D 01 02 00 00 00 00 36 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 8F 2E 00 90 00 31 [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]wFMCommunicate request_size=255 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 02 02 FA 03 00 16 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 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 9B 00 00 00 F4 03 04 00 DE C9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 [17:37:30]Write to MH i2c: E2 02 01 90 2E 80 0D 02 02 FA 00 03 00 16 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 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 9B 00 00 00 F4 03 04 00 DE C9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 00 00 21 [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]OFD Sender: No OFD packet to send [17:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 03 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 03 00 90 2E 00 90 00 32 [17:37:31]RAPDU: 90 00 [17:37:31]wFMCommunicate OK [17:37:31]wFMCommunicate request_size=37 [17:37:31]MH_SAM_APDU [17:37:31]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 69 01 00 35 04 06 00 E2 34 C2 61 7C 42 [17:37:31]Write to MH i2c: E2 28 00 91 2E 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 69 01 00 35 04 06 00 E2 34 C2 61 7C 42 00 00 4D [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 03 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 03 00 91 2E 00 90 00 33 [17:37:31]RAPDU: 90 00 [17:37:31]wFMCommunicate OK [17:37:31]wFMCommunicate request_size=4 [17:37:31]MH_SAM_APDU [17:37:31]CAPDU: 80 0D 03 02 [17:37:31]Write to MH i2c: E2 08 00 92 2E 80 0D 03 02 00 00 00 00 3B [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 0B 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 0B 00 92 2E 00 64 68 02 98 0D 9A 1B F1 90 00 55 [17:37:31]RAPDU: 64 68 02 98 0D 9A 1B F1 90 00 [17:37:31]wFMCommunicate OK [17:37:31]SAM_PROTO_SignData done [17:37:31]FM_MakeSignedData done [17:37:31]CreateOFDProtocolMessage [17:37:31]wFMCommunicate request_size=4 [17:37:31]MH_SAM_APDU [17:37:31]CAPDU: 80 11 00 00 [17:37:31]Write to MH i2c: E2 08 00 93 2E 80 11 00 00 00 00 00 00 3B [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 17 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 17 00 93 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 92 [17:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:37:31]wFMCommunicate OK [17:37:31]CreateOFDProtocolMessage done [17:37:31]OFDSenderStorePacket 92504 [17:37:31]StoreOFDPacket docnum=92504 [17:37:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 FF 29 22 01 1D 1A 5A 03 01 00 03 00 16 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 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 9B 00 00 00 F4 03 04 00 DE C9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 69 01 00 35 04 06 00 E2 34 C2 61 7C 42 64 68 02 98 0D 9A 1B F1 [17:37:31]CheckFolder [17:37:31]dirname=/storage/ofd_packets [17:37:31]CheckFolder done [17:37:31]ProducePacketName [17:37:31]name=ofd_packets/00092504 [17:37:31]NVStorageSaveData ofd_packets/00092504 [17:37:31]File name is /storage/ofd_packets/00092504 [17:37:31]Write 328 bytes [17:37:31]NVStorageSaveData done [17:37:31]OFDSenderStorePacket done [17:37:31]KKMCreateOFDPacket done [17:37:31]NVStorageSaveData kkm_last_timestamp [17:37:31]File name is /storage/kkm_last_timestamp [17:37:31]Write 4 bytes [17:37:31]NVStorageSaveData done [17:37:31]ExternCall_PrintAddStr [17:37:31]wPrintStart [17:37:31]Write to MH i2c: 01 00 00 94 2E C2 [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 07 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 07 00 94 2E 00 00 00 00 00 FF 0F D7 [17:37:31]RasterBufferAndPrint [17:37:31]line Счет N : (3)127408 [17:37:31]line ИНН: 02508201610067 [17:37:31]line Контрольно-Кассовый Чек [17:37:31]line ПРОДАЖА [17:37:31]line Товар: 5449000054227 [17:37:31]line Напиток Кока-Кола 1л [17:37:31]line 1.000 * 105.00 [17:37:31]line = 105.00 [17:37:31]line НДС 12% НСП 1% [17:37:31]line > о реализуемом товаре [17:37:31]line ИТОГО: 105.00 [17:37:31]line НСП 1% : 0.93 [17:37:31]line НДС 12% : 11.15 [17:37:31]line Наличными: 0.00 [17:37:31]line Безнал.: 105.00 [17:37:31]line Место: АЗС № 5 "Партнер Нефть" [17:37:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:37:31]line СНО: Общий режим [17:37:31]line Чек 155 14.09.2024 17:37 [17:37:31]line Смена: 506 ФФД: 1.0 [17:37:31]line ЗНМ: 03000000022 [17:37:31]line РНМ: 0000000000091423 [17:37:31]line Версия ККМ: 001 [17:37:31]line Платежная система: О! деньги [17:37:31]line ФМ: 0000000000874692 [17:37:31]line ФД: 92504 [17:37:31]line ФПД: 248716227345474 [17:37:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173734&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92504&fm=248716227345474&tin=02508201610067®Number=0000000000091423&sum=10500 [17:37:31]line 0 [17:37:31]OFD Sender: Processing packet 92504 [packets to send 63, broken 62] [17:37:31]ProducePacketName [17:37:31]name=ofd_packets/00092504 [17:37:31]OFD Sender: To server: pG, [17:37:31]CommunicateWithHost lk.salyk.kg:30040 [17:37:31]ConnectInit lk.salyk.kg [17:37:31]written 0, free lines is 4095 [17:37:31]Connected sock=10 [17:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2A 01 00 00 FF 29 22 01 1D 1A 5A 03 01 00 03 00 16 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 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 9B 00 00 00 F4 03 04 00 DE C9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 69 01 00 35 04 06 00 E2 34 C2 61 7C 42 64 68 02 98 0D 9A 1B F1 [17:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 24 60 47 00 62 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 58 69 01 00 F4 03 04 00 58 72 E5 66 B6 04 01 00 00 69 A2 D8 56 15 24 AC C8 [17:37:32]CommunicateWithHost err = 0 [17:37:32]CheckOFDResponse [17:37:32]1017 (14) - 77093643461234 [17:37:32]1041 (16) - 0000000000874692 [17:37:32]1040 (4) - 92504 [17:37:32]1012 (4) - 14.09.2024 11:24 [17:37:32]1206 (1) - 0 [17:37:32]OFD Sender: Remove packet 92504 [17:37:32]ProducePacketName [17:37:32]name=ofd_packets/00092504 [17:37:32]NVStorageDeleteData [17:37:32]Write to MH i2c: 01 00 00 BE 2E EC [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 BE 2E 00 00 00 00 00 08 0D 08 [17:37:32]RasterBufferAndPrint [17:37:32]line [17:37:32]line [17:37:32]line [17:37:32]line [17:37:32]line [17:37:32]written 0, free lines is 3343 [17:37:32]MH_Cut [17:37:32]Write to MH i2c: D1 01 00 C5 2E 01 C5 [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: D1 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: D1 01 00 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: D1 01 00 C5 2E 00 C4 [17:37:32]Write to MH i2c: 01 00 00 C6 2E F4 [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]OFD Sender: No OFD packet to send [17:37:32]*** Cut start [17:37:32]*** Purtial cut [17:37:32]*** Stage 1: CUTSNS_PIN = 1 [17:37:34]Read from MH i2c: 01 [17:37:34]MH_I2C_Read... [17:37:34]*** Stop cut motor [17:37:34]*** Cut end [17:37:34]Read from MH i2c: 01 07 00 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: 01 07 00 C6 2E 00 00 00 00 00 FF 0F 09 [17:37:34]process_action close_receipt done [17:37:34]requested_data is exist [17:37:34]produce_requested_data [17:37:34]requested_item fm.sn is exist - process it [17:37:34]wFMCommunicate request_size=4 [17:37:34]MH_SAM_APDU [17:37:34]CAPDU: 80 11 00 00 [17:37:34]Write to MH i2c: E2 08 00 C7 2E 80 11 00 00 00 00 00 00 6F [17:37:34]Write i2c OK [17:37:34]MH_I2C_Read... [17:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:34]Read from MH i2c: E2 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: E2 17 00 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: E2 17 00 C7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C6 [17:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:37:34]wFMCommunicate OK [17:37:34]requested_item fd.num is exist - process it [17:37:34]SAM_PROTO_GetFieldsCounters [17:37:34]wFMCommunicate request_size=4 [17:37:34]MH_SAM_APDU [17:37:34]CAPDU: 80 13 00 00 [17:37:34]Write to MH i2c: E2 08 00 C8 2E 80 13 00 00 00 00 00 00 72 [17:37:34]Write i2c OK [17:37:34]MH_I2C_Read... [17:37:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:35]Read from MH i2c: E2 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 62 00 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 62 00 C8 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 58 69 01 00 0E 04 04 00 FA 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 1F [17:37:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 58 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:35]wFMCommunicate OK [17:37:35]SAM_PROTO_GetFieldsCounters done [17:37:35]requested_item shift.num is exist - process it [17:37:35]requested_item shift.opened is exist - process it [17:37:35]req_shift_opened [17:37:35]FM_GetShiftState [17:37:35]SAM_PROTO_GetShiftState [17:37:35]wFMCommunicate request_size=4 [17:37:35]MH_SAM_APDU [17:37:35]CAPDU: 80 13 01 00 [17:37:35]Write to MH i2c: E2 08 00 C9 2E 80 13 01 00 00 00 00 00 74 [17:37:35]Write i2c OK [17:37:35]MH_I2C_Read... [17:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:35]Read from MH i2c: E2 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 0E 00 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 0E 00 C9 2E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0E [17:37:35]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:37:35]wFMCommunicate OK [17:37:35]SAM_PROTO_GetShiftState done [17:37:35]FM_GetShiftState done [17:37:35]req_shift_opened done [17:37:35]requested_item shift.open_date is exist - process it [17:37:35]req_shift_open_date [17:37:35]req_shift_open_date done [17:37:35]produce_requested_data done [17:37:35]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92504,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:37:35]process_action_free close_receipt [17:37:35]json_value_free [17:37:35]json_value_free done [17:37:35]process_json_proto returns [17:37:35]Send response to host [17:37:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92504,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:37:35]free response buf [17:37:35]execute_script done [17:37:35]execute_script returns [17:37:35]free content buf [17:37:35]Sock 9.Close socket [17:37:35]Sock 9.Thread stoped [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]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:05]accept exits with 8 [17:38:05]New connection [17:38:05]New thread 3066801508 created [17:38:05]Thread 3066658148 joined [17:38:05]Waiting for new connection... [17:38:05] Sock 8.Parse request [17:38:05]Sock 8.Check first char [17:38:05]Sock 8.First char is OK [17:38:05]request: POST /json_proto HTTP/1.0 [17:38:05]Method: POST [17:38:05]URL: /json_proto [17:38:05]Method is POST - this is cgi request [17:38:05]url: /json_proto [17:38:05]query_string will be loaded in cgi processing [17:38:05]execute_cgi json_proto POST (null) [17:38:05]execute_cgi path=json_proto method=POST [17:38:05]POST find Content-Length [17:38:05]Host: 172.17.57.71:8080 [17:38:05]Content-Length: 802 [17:38:05]Content-Type: application/json [17:38:05] [17:38:05]POST finish read [17:38:05]Found Content-Length = 802 [17:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:05]execute_script... [17:38:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:05]POST & json_proto [17:38:05]process_json_proto [17:38:05]json parsed OK: [17:38:05]protocol is kg_v1.0 [17:38:05]action value=close_receipt [17:38:05]process_action close_receipt [17:38:05]cmd_close_receipt [17:38:05]MH_GetDate [17:38:05]Write to MH i2c: F0 00 00 CA 2E E7 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: F0 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: F0 09 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: F0 09 00 CA 2E 00 02 CA E5 66 33 3A A4 66 7E [17:38:05]GetLastDocTimeStamp 1726335454 [17:38:05]current date 1726335490 [17:38:05]FM_GetShiftState [17:38:05]SAM_PROTO_GetShiftState [17:38:05]wFMCommunicate request_size=4 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 13 01 00 [17:38:05]Write to MH i2c: E2 08 00 CB 2E 80 13 01 00 00 00 00 00 76 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 0E 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 0E 00 CB 2E 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 10 [17:38:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:38:05]wFMCommunicate OK [17:38:05]SAM_PROTO_GetShiftState done [17:38:05]FM_GetShiftState done [17:38:05]opened in 1726273389 [17:38:05]opened+sec_in_day 1726359789 [17:38:05]quantity*price = 50071 [17:38:05]sum+1 = 50072 [17:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.71 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.71 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 156 14.09.2024 17:38 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92505 ФПД: 25843710197232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173810&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92505&fm=25843710197232&tin=02508201610067®Number=0000000000091423&sum=50071 [17:38:06]StoreToDocumentArchive [17:38:06]shift 506 fd 92505 [17:38:06]save to /storage/0506/doc_00092505 [17:38:06]save last doc name /storage/0506/doc_00092505 to /storage/kkm_last_doc_name [17:38:06]save OK [17:38:06]Clear old archive folders... [17:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:38:06]tlvbuf is 010A9120 [17:38:06]SAM_PROTO_ClearQueue [17:38:06]wFMCommunicate request_size=4 [17:38:06]MH_SAM_APDU [17:38:06]CAPDU: 80 09 00 00 [17:38:06]Write to MH i2c: E2 08 00 D8 2E 80 09 00 00 00 00 00 00 78 [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:06]Read from MH i2c: E2 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 03 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 03 00 D8 2E 00 90 00 7A [17:38:06]RAPDU: 90 00 [17:38:06]wFMCommunicate OK [17:38:06]SAM_PROTO_ClearQueue done [17:38:06]KKMCreateOFDPacket [17:38:06]OFDProtocolAddRootSTLVToBuf [17:38:06]FM_MakeSignedData [17:38:06]FM_MakeSignedData [17:38:06]SAM_PROTO_SignData [17:38:06]wFMCommunicate request_size=4 [17:38:06]MH_SAM_APDU [17:38:06]CAPDU: 80 0D 01 02 [17:38:06]Write to MH i2c: E2 08 00 D9 2E 80 0D 01 02 00 00 00 00 80 [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:07]Read from MH i2c: E2 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 03 00 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 03 00 D9 2E 00 90 00 7B [17:38:07]RAPDU: 90 00 [17:38:07]wFMCommunicate OK [17:38:07]wFMCommunicate request_size=255 [17:38:07]MH_SAM_APDU [17:38:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 02 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 59 69 01 00 35 04 06 00 17 81 35 2A [17:38:07]Write to MH i2c: E2 02 01 DA 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 02 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 59 69 01 00 35 04 06 00 17 81 35 2A 00 00 77 [17:38:07]Write i2c OK [17:38:07]MH_I2C_Read... [17:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:07]Read from MH i2c: E2 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 03 00 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 03 00 DA 2E 00 90 00 7C [17:38:07]RAPDU: 90 00 [17:38:07]wFMCommunicate OK [17:38:07]wFMCommunicate request_size=7 [17:38:07]MH_SAM_APDU [17:38:07]CAPDU: 80 0D 02 02 02 7D F0 [17:38:07]Write to MH i2c: E2 0A 00 DB 2E 80 0D 02 02 02 00 7D F0 00 00 F4 [17:38:07]Write i2c OK [17:38:07]MH_I2C_Read... [17:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:07]Read from MH i2c: E2 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 03 00 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 03 00 DB 2E 00 90 00 7D [17:38:07]RAPDU: 90 00 [17:38:07]wFMCommunicate OK [17:38:07]wFMCommunicate request_size=4 [17:38:07]MH_SAM_APDU [17:38:07]CAPDU: 80 0D 03 02 [17:38:07]Write to MH i2c: E2 08 00 DC 2E 80 0D 03 02 00 00 00 00 85 [17:38:07]Write i2c OK [17:38:07]MH_I2C_Read... [17:38:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:07]Read from MH i2c: E2 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 0B 00 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 0B 00 DC 2E 00 BE 82 A9 87 BD 15 7A 89 90 00 CB [17:38:07]RAPDU: BE 82 A9 87 BD 15 7A 89 90 00 [17:38:07]wFMCommunicate OK [17:38:07]SAM_PROTO_SignData done [17:38:07]FM_MakeSignedData done [17:38:07]CreateOFDProtocolMessage [17:38:07]wFMCommunicate request_size=4 [17:38:07]MH_SAM_APDU [17:38:07]CAPDU: 80 11 00 00 [17:38:07]Write to MH i2c: E2 08 00 DD 2E 80 11 00 00 00 00 00 00 85 [17:38:07]Write i2c OK [17:38:07]MH_I2C_Read... [17:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:07]Read from MH i2c: E2 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 17 00 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 17 00 DD 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DC [17:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:38:07]wFMCommunicate OK [17:38:07]CreateOFDProtocolMessage done [17:38:07]OFDSenderStorePacket 92505 [17:38:07]StoreOFDPacket docnum=92505 [17:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 EB F0 04 01 9C FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 02 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 59 69 01 00 35 04 06 00 17 81 35 2A 7D F0 BE 82 A9 87 BD 15 7A 89 [17:38:07]CheckFolder [17:38:07]dirname=/storage/ofd_packets [17:38:07]CheckFolder done [17:38:07]ProducePacketName [17:38:07]name=ofd_packets/00092505 [17:38:07]NVStorageSaveData ofd_packets/00092505 [17:38:07]File name is /storage/ofd_packets/00092505 [17:38:07]Write 298 bytes [17:38:07]NVStorageSaveData done [17:38:07]OFDSenderStorePacket done [17:38:07]KKMCreateOFDPacket done [17:38:07]NVStorageSaveData kkm_last_timestamp [17:38:07]File name is /storage/kkm_last_timestamp [17:38:07]Write 4 bytes [17:38:07]NVStorageSaveData done [17:38:07]ExternCall_PrintAddStr [17:38:07]wPrintStart [17:38:07]Write to MH i2c: 01 00 00 DE 2E 0C [17:38:07]Write i2c OK [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: 01 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: 01 07 00 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: 01 07 00 DE 2E 00 00 00 00 00 FF 0F 21 [17:38:07]RasterBufferAndPrint [17:38:07]line Счет N : (1)647821 [17:38:07]line ИНН: 02508201610067 [17:38:07]line Контрольно-Кассовый Чек [17:38:07]line ПРОДАЖА [17:38:07]line ТРК (МРК, ГНК) : 34 [17:38:07]line Товар: 2710194210 [17:38:07]line ДТ-К-5 [17:38:07]line 6.730 * 74.40 [17:38:07]line = 500.71 [17:38:07]line НДС 12% НСП 1% [17:38:07]line > о реализуемом товаре [17:38:07]line ИТОГО: 500.71 [17:38:07]line НСП 1% : 4.43 [17:38:07]line НДС 12% : 53.17 [17:38:07]line Наличными: 0.00 [17:38:07]line Безнал.: 500.71 [17:38:07]line Место: АЗС № 5 "Партнер Нефть" [17:38:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:38:07]line СНО: Общий режим [17:38:07]line Чек 156 14.09.2024 17:38 [17:38:07]line Смена: 506 ФФД: 1.0 [17:38:07]line ЗНМ: 03000000022 [17:38:07]line РНМ: 0000000000091423 [17:38:07]line Версия ККМ: 001 [17:38:07]line Платежная система: О! деньги [17:38:07]line ФМ: 0000000000874692 [17:38:07]line ФД: 92505 [17:38:07]line ФПД: 25843710197232 [17:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173810&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92505&fm=25843710197232&tin=02508201610067®Number=0000000000091423&sum=50071 [17:38:07]OFD Sender: Processing packet 92505 [packets to send 63, broken 62] [17:38:07]ProducePacketName [17:38:07]name=ofd_packets/00092505 [17:38:07]OFD Sender: To server: pG, [17:38:07]CommunicateWithHost lk.salyk.kg:30040 [17:38:07]ConnectInit lk.salyk.kg [17:38:07]written 0, free lines is 4095 [17:38:07]Connected sock=11 [17:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0C 01 00 00 EB F0 04 01 9C FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 02 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 59 69 01 00 35 04 06 00 17 81 35 2A 7D F0 BE 82 A9 87 BD 15 7A 89 [17:38:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 05 05 47 00 6C 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 34 36 39 32 10 04 04 00 59 69 01 00 F4 03 04 00 7C 72 E5 66 B6 04 01 00 00 1E CC 52 C6 2E 59 A9 00 [17:38:08]CommunicateWithHost err = 0 [17:38:08]CheckOFDResponse [17:38:08]1017 (14) - 77093643461234 [17:38:08]1041 (16) - 0000000000874692 [17:38:08]1040 (4) - 92505 [17:38:08]1012 (4) - 14.09.2024 11:24 [17:38:08]1206 (1) - 0 [17:38:08]OFD Sender: Remove packet 92505 [17:38:08]ProducePacketName [17:38:08]name=ofd_packets/00092505 [17:38:08]NVStorageDeleteData [17:38:08]Write to MH i2c: 01 00 00 08 2F 37 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: 01 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: 01 07 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: 01 07 00 08 2F 00 00 00 00 00 FB 0C 45 [17:38:08]RasterBufferAndPrint [17:38:08]line [17:38:08]line [17:38:08]line [17:38:08]line [17:38:08]line [17:38:08]written 0, free lines is 3329 [17:38:08]MH_Cut [17:38:08]Write to MH i2c: D1 01 00 0F 2F 01 10 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: D1 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: D1 01 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: D1 01 00 0F 2F 00 0F [17:38:08]Write to MH i2c: 01 00 00 10 2F 3F [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]OFD Sender: No OFD packet to send [17:38:08]*** Cut start [17:38:08]*** Purtial cut [17:38:08]*** Stage 1: CUTSNS_PIN = 1 [17:38:10]Read from MH i2c: 01 [17:38:10]MH_I2C_Read... [17:38:10]*** Stop cut motor [17:38:10]*** Cut end [17:38:10]Read from MH i2c: 01 07 00 [17:38:10]MH_I2C_Read... [17:38:10]Read from MH i2c: 01 07 00 10 2F 00 00 00 00 00 FF 0F 54 [17:38:10]process_action close_receipt done [17:38:10]requested_data is exist [17:38:10]produce_requested_data [17:38:10]requested_item fm.sn is exist - process it [17:38:10]wFMCommunicate request_size=4 [17:38:10]MH_SAM_APDU [17:38:10]CAPDU: 80 11 00 00 [17:38:10]Write to MH i2c: E2 08 00 11 2F 80 11 00 00 00 00 00 00 BA [17:38:10]Write i2c OK [17:38:10]MH_I2C_Read... [17:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:10]Read from MH i2c: E2 [17:38:10]MH_I2C_Read... [17:38:10]Read from MH i2c: E2 17 00 [17:38:10]MH_I2C_Read... [17:38:10]Read from MH i2c: E2 17 00 11 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 11 [17:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:38:10]wFMCommunicate OK [17:38:10]requested_item fd.num is exist - process it [17:38:10]SAM_PROTO_GetFieldsCounters [17:38:10]wFMCommunicate request_size=4 [17:38:10]MH_SAM_APDU [17:38:10]CAPDU: 80 13 00 00 [17:38:10]Write to MH i2c: E2 08 00 12 2F 80 13 00 00 00 00 00 00 BD [17:38:10]Write i2c OK [17:38:10]MH_I2C_Read... [17:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:11]Read from MH i2c: E2 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 62 00 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 62 00 12 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 59 69 01 00 0E 04 04 00 FA 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 6E [17:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 59 69 01 00 0E 04 04 00 FA 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 [17:38:11]wFMCommunicate OK [17:38:11]SAM_PROTO_GetFieldsCounters done [17:38:11]requested_item shift.num is exist - process it [17:38:11]requested_item shift.opened is exist - process it [17:38:11]req_shift_opened [17:38:11]FM_GetShiftState [17:38:11]SAM_PROTO_GetShiftState [17:38:11]wFMCommunicate request_size=4 [17:38:11]MH_SAM_APDU [17:38:11]CAPDU: 80 13 01 00 [17:38:11]Write to MH i2c: E2 08 00 13 2F 80 13 01 00 00 00 00 00 BF [17:38:11]Write i2c OK [17:38:11]MH_I2C_Read... [17:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:11]Read from MH i2c: E2 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 0E 00 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 0E 00 13 2F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 59 [17:38:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:38:11]wFMCommunicate OK [17:38:11]SAM_PROTO_GetShiftState done [17:38:11]FM_GetShiftState done [17:38:11]req_shift_opened done [17:38:11]requested_item shift.open_date is exist - process it [17:38:11]req_shift_open_date [17:38:11]req_shift_open_date done [17:38:11]produce_requested_data done [17:38:11]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92505,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:38:11]process_action_free close_receipt [17:38:11]json_value_free [17:38:11]json_value_free done [17:38:11]process_json_proto returns [17:38:11]Send response to host [17:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92505,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:38:11]free response buf [17:38:11]execute_script done [17:38:11]execute_script returns [17:38:11]free content buf [17:38:11]Sock 8.Close socket [17:38:11]Sock 8.Thread stoped [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:23]accept exits with 9 [17:39:23]New connection [17:39:23]New thread 3066658148 created [17:39:23]Thread 3066801508 joined [17:39:23]Waiting for new connection... [17:39:23] Sock 9.Parse request [17:39:23]Sock 9.Check first char [17:39:23]Sock 9.First char is OK [17:39:23]request: POST /json_proto HTTP/1.0 [17:39:23]Method: POST [17:39:23]URL: /json_proto [17:39:23]Method is POST - this is cgi request [17:39:23]url: /json_proto [17:39:23]query_string will be loaded in cgi processing [17:39:23]execute_cgi json_proto POST (null) [17:39:23]execute_cgi path=json_proto method=POST [17:39:23]POST find Content-Length [17:39:23]Host: 172.17.57.71:8080 [17:39:23]Content-Length: 808 [17:39:23]Content-Type: application/json [17:39:23] [17:39:23]POST finish read [17:39:23]Found Content-Length = 808 [17:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647822", "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" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:23]execute_script... [17:39:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647822", "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" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:23]POST & json_proto [17:39:23]process_json_proto [17:39:23]json parsed OK: [17:39:23]protocol is kg_v1.0 [17:39:23]action value=close_receipt [17:39:23]process_action close_receipt [17:39:23]cmd_close_receipt [17:39:23]MH_GetDate [17:39:23]Write to MH i2c: F0 00 00 14 2F 32 [17:39:23]Write i2c OK [17:39:23]MH_I2C_Read... [17:39:23]Read from MH i2c: F0 [17:39:23]MH_I2C_Read... [17:39:23]Read from MH i2c: F0 09 00 [17:39:23]MH_I2C_Read... [17:39:23]Read from MH i2c: F0 09 00 14 2F 00 50 CA E5 66 33 3A A4 66 17 [17:39:23]GetLastDocTimeStamp 1726335490 [17:39:23]current date 1726335568 [17:39:23]FM_GetShiftState [17:39:23]SAM_PROTO_GetShiftState [17:39:23]wFMCommunicate request_size=4 [17:39:23]MH_SAM_APDU [17:39:23]CAPDU: 80 13 01 00 [17:39:23]Write to MH i2c: E2 08 00 15 2F 80 13 01 00 00 00 00 00 C1 [17:39:23]Write i2c OK [17:39:23]MH_I2C_Read... [17:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:23]Read from MH i2c: E2 [17:39:23]MH_I2C_Read... [17:39:23]Read from MH i2c: E2 0E 00 [17:39:23]MH_I2C_Read... [17:39:23]Read from MH i2c: E2 0E 00 15 2F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5B [17:39:23]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:39:23]wFMCommunicate OK [17:39:23]SAM_PROTO_GetShiftState done [17:39:23]FM_GetShiftState done [17:39:23]opened in 1726273389 [17:39:23]opened+sec_in_day 1726359789 [17:39:23]quantity*price = 150017 [17:39:23]sum+1 = 150018 [17:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.17 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 0.00 Безнал.: 1500.17 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 157 14.09.2024 17:39 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92506 ФПД: 159935260517084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173928&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92506&fm=159935260517084&tin=02508201610067®Number=0000000000091423&sum=150017 [17:39:24]StoreToDocumentArchive [17:39:24]shift 506 fd 92506 [17:39:24]save to /storage/0506/doc_00092506 [17:39:24]save last doc name /storage/0506/doc_00092506 to /storage/kkm_last_doc_name [17:39:24]save OK [17:39:24]Clear old archive folders... [17:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:24]tlvbuf is 00F99930 [17:39:24]SAM_PROTO_ClearQueue [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 09 00 00 [17:39:24]Write to MH i2c: E2 08 00 22 2F 80 09 00 00 00 00 00 00 C3 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 22 2F 00 90 00 C5 [17:39:24]RAPDU: 90 00 [17:39:24]wFMCommunicate OK [17:39:24]SAM_PROTO_ClearQueue done [17:39:24]KKMCreateOFDPacket [17:39:24]OFDProtocolAddRootSTLVToBuf [17:39:24]FM_MakeSignedData [17:39:24]FM_MakeSignedData [17:39:24]SAM_PROTO_SignData [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 0D 01 02 [17:39:24]Write to MH i2c: E2 08 00 23 2F 80 0D 01 02 00 00 00 00 CB [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 23 2F 00 90 00 C6 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=255 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 50 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 69 01 00 35 04 06 00 91 [17:39:25]Write to MH i2c: E2 02 01 24 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 50 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 69 01 00 35 04 06 00 91 00 00 53 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 24 2F 00 90 00 C7 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=10 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 02 02 05 75 D4 63 E2 DC [17:39:25]Write to MH i2c: E2 0D 00 25 2F 80 0D 02 02 05 00 75 D4 63 E2 DC 00 00 42 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 25 2F 00 90 00 C8 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 03 02 [17:39:25]Write to MH i2c: E2 08 00 26 2F 80 0D 03 02 00 00 00 00 D0 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 0B 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 0B 00 26 2F 00 A2 45 7E 8A D4 BF 48 51 90 00 EC [17:39:25]RAPDU: A2 45 7E 8A D4 BF 48 51 90 00 [17:39:25]wFMCommunicate OK [17:39:25]SAM_PROTO_SignData done [17:39:25]FM_MakeSignedData done [17:39:25]CreateOFDProtocolMessage [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 11 00 00 [17:39:25]Write to MH i2c: E2 08 00 27 2F 80 11 00 00 00 00 00 00 D0 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 17 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 17 00 27 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 27 [17:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:39:25]wFMCommunicate OK [17:39:25]CreateOFDProtocolMessage done [17:39:25]OFDSenderStorePacket 92506 [17:39:25]StoreOFDPacket docnum=92506 [17:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 F9 33 07 01 D3 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 50 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 69 01 00 35 04 06 00 91 75 D4 63 E2 DC A2 45 7E 8A D4 BF 48 51 [17:39:25]CheckFolder [17:39:25]dirname=/storage/ofd_packets [17:39:25]CheckFolder done [17:39:25]ProducePacketName [17:39:25]name=ofd_packets/00092506 [17:39:25]NVStorageSaveData ofd_packets/00092506 [17:39:25]File name is /storage/ofd_packets/00092506 [17:39:25]Write 301 bytes [17:39:25]NVStorageSaveData done [17:39:25]OFDSenderStorePacket done [17:39:25]KKMCreateOFDPacket done [17:39:25]NVStorageSaveData kkm_last_timestamp [17:39:25]File name is /storage/kkm_last_timestamp [17:39:25]Write 4 bytes [17:39:25]NVStorageSaveData done [17:39:25]ExternCall_PrintAddStr [17:39:25]wPrintStart [17:39:25]Write to MH i2c: 01 00 00 28 2F 57 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 07 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 07 00 28 2F 00 00 00 00 00 FF 0F 6C [17:39:25]RasterBufferAndPrint [17:39:25]line Счет N : (1)647822 [17:39:25]line ИНН: 02508201610067 [17:39:25]line Контрольно-Кассовый Чек [17:39:25]line ПРОДАЖА [17:39:25]line ТРК (МРК, ГНК) : 42 [17:39:25]line Товар: 2710124500 [17:39:25]line Аи-95-К-5 [17:39:25]line 20.300 * 73.90 [17:39:25]line = 1500.17 [17:39:25]line НДС 12% НСП 1% [17:39:25]line > о реализуемом товаре [17:39:25]line ИТОГО: 1500.17 [17:39:25]line НСП 1% : 13.28 [17:39:25]line НДС 12% : 159.31 [17:39:25]line Наличными: 0.00 [17:39:25]line Безнал.: 1500.17 [17:39:25]line Место: АЗС № 5 "Партнер Нефть" [17:39:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:39:25]line СНО: Общий режим [17:39:25]line Чек 157 14.09.2024 17:39 [17:39:25]line Смена: 506 ФФД: 1.0 [17:39:25]line ЗНМ: 03000000022 [17:39:25]line РНМ: 0000000000091423 [17:39:25]line Версия ККМ: 001 [17:39:25]line Платежная система: О! деньги [17:39:25]line ФМ: 0000000000874692 [17:39:25]line ФД: 92506 [17:39:25]line ФПД: 159935260517084 [17:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173928&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92506&fm=159935260517084&tin=02508201610067®Number=0000000000091423&sum=150017 [17:39:25]written 0, free lines is 4095 [17:39:25]OFD Sender: Processing packet 92506 [packets to send 63, broken 62] [17:39:25]ProducePacketName [17:39:25]name=ofd_packets/00092506 [17:39:25]OFD Sender: To server: pG, [17:39:25]CommunicateWithHost lk.salyk.kg:30040 [17:39:25]ConnectInit lk.salyk.kg [17:39:25]Connected sock=10 [17:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 F9 33 07 01 D3 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 50 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 69 01 00 35 04 06 00 91 75 D4 63 E2 DC A2 45 7E 8A D4 BF 48 51 [17:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 21 39 47 00 3D CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5A 69 01 00 F4 03 04 00 CA 72 E5 66 B6 04 01 00 00 3C 64 14 A1 99 AE 57 4B [17:39:26]CommunicateWithHost err = 0 [17:39:26]CheckOFDResponse [17:39:26]1017 (14) - 77093643461234 [17:39:26]1041 (16) - 0000000000874692 [17:39:26]1040 (4) - 92506 [17:39:26]1012 (4) - 14.09.2024 11:26 [17:39:26]1206 (1) - 0 [17:39:26]OFD Sender: Remove packet 92506 [17:39:26]ProducePacketName [17:39:26]name=ofd_packets/00092506 [17:39:26]NVStorageDeleteData [17:39:26]Write to MH i2c: 01 00 00 52 2F 81 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 52 2F 00 00 00 00 00 0B 0D A0 [17:39:26]RasterBufferAndPrint [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]written 0, free lines is 3345 [17:39:26]MH_Cut [17:39:26]Write to MH i2c: D1 01 00 59 2F 01 5A [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 01 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 01 00 59 2F 00 59 [17:39:26]Write to MH i2c: 01 00 00 5A 2F 89 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]OFD Sender: No OFD packet to send [17:39:26]*** Cut start [17:39:26]*** Purtial cut [17:39:26]*** Stage 1: CUTSNS_PIN = 1 [17:39:28]Read from MH i2c: 01 [17:39:28]MH_I2C_Read... [17:39:28]*** Stop cut motor [17:39:28]*** Cut end [17:39:28]Read from MH i2c: 01 07 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: 01 07 00 5A 2F 00 00 00 00 00 FF 0F 9E [17:39:28]process_action close_receipt done [17:39:28]requested_data is exist [17:39:28]produce_requested_data [17:39:28]requested_item fm.sn is exist - process it [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 11 00 00 [17:39:28]Write to MH i2c: E2 08 00 5B 2F 80 11 00 00 00 00 00 00 04 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 17 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 17 00 5B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5B [17:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:39:28]wFMCommunicate OK [17:39:28]requested_item fd.num is exist - process it [17:39:28]SAM_PROTO_GetFieldsCounters [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 00 00 [17:39:28]Write to MH i2c: E2 08 00 5C 2F 80 13 00 00 00 00 00 00 07 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 62 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 62 00 5C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5A 69 01 00 0E 04 04 00 FA 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 BC [17:39:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5A 69 01 00 0E 04 04 00 FA 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 [17:39:29]wFMCommunicate OK [17:39:29]SAM_PROTO_GetFieldsCounters done [17:39:29]requested_item shift.num is exist - process it [17:39:29]requested_item shift.opened is exist - process it [17:39:29]req_shift_opened [17:39:29]FM_GetShiftState [17:39:29]SAM_PROTO_GetShiftState [17:39:29]wFMCommunicate request_size=4 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 13 01 00 [17:39:29]Write to MH i2c: E2 08 00 5D 2F 80 13 01 00 00 00 00 00 09 [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0E 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0E 00 5D 2F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A3 [17:39:29]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:39:29]wFMCommunicate OK [17:39:29]SAM_PROTO_GetShiftState done [17:39:29]FM_GetShiftState done [17:39:29]req_shift_opened done [17:39:29]requested_item shift.open_date is exist - process it [17:39:29]req_shift_open_date [17:39:29]req_shift_open_date done [17:39:29]produce_requested_data done [17:39:29]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92506,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:39:29]process_action_free close_receipt [17:39:29]json_value_free [17:39:29]json_value_free done [17:39:29]process_json_proto returns [17:39:29]Send response to host [17:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92506,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:39:29]free response buf [17:39:29]execute_script done [17:39:29]execute_script returns [17:39:29]free content buf [17:39:29]Sock 9.Close socket [17:39:29]Sock 9.Thread stoped [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:48]accept exits with 8 [17:39:48]New connection [17:39:48]New thread 3066801508 created [17:39:48]Thread 3066658148 joined [17:39:48]Waiting for new connection... [17:39:48] Sock 8.Parse request [17:39:48]Sock 8.Check first char [17:39:48]Sock 8.First char is OK [17:39:48]request: POST /json_proto HTTP/1.0 [17:39:48]Method: POST [17:39:48]URL: /json_proto [17:39:48]Method is POST - this is cgi request [17:39:48]url: /json_proto [17:39:48]query_string will be loaded in cgi processing [17:39:48]execute_cgi json_proto POST (null) [17:39:48]execute_cgi path=json_proto method=POST [17:39:48]POST find Content-Length [17:39:48]Host: 172.17.57.71:8080 [17:39:48]Content-Length: 645 [17:39:48]Content-Type: application/json [17:39:48] [17:39:48]POST finish read [17:39:48]Found Content-Length = 645 [17:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127409", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:48]execute_script... [17:39: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)127409", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:48]POST & json_proto [17:39:48]process_json_proto [17:39:48]json parsed OK: [17:39:48]protocol is kg_v1.0 [17:39:48]action value=close_receipt [17:39:48]process_action close_receipt [17:39:48]cmd_close_receipt [17:39:48]MH_GetDate [17:39:48]Write to MH i2c: F0 00 00 5E 2F 7C [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: F0 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: F0 09 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: F0 09 00 5E 2F 00 69 CA E5 66 33 3A A4 66 7A [17:39:48]GetLastDocTimeStamp 1726335568 [17:39:48]current date 1726335593 [17:39:48]FM_GetShiftState [17:39:48]SAM_PROTO_GetShiftState [17:39:48]wFMCommunicate request_size=4 [17:39:48]MH_SAM_APDU [17:39:48]CAPDU: 80 13 01 00 [17:39:48]Write to MH i2c: E2 08 00 5F 2F 80 13 01 00 00 00 00 00 0B [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:48]Read from MH i2c: E2 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: E2 0E 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: E2 0E 00 5F 2F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A5 [17:39:48]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:39:48]wFMCommunicate OK [17:39:48]SAM_PROTO_GetShiftState done [17:39:48]FM_GetShiftState done [17:39:48]opened in 1726273389 [17:39:48]opened+sec_in_day 1726359789 [17:39:48]quantity*price = 6000 [17:39:48]sum+1 = 6001 [17:39:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 158 14.09.2024 17:39 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92507 ФПД: 196303824336580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173953&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92507&fm=196303824336580&tin=02508201610067®Number=0000000000091423&sum=6000 0 [17:39:49]StoreToDocumentArchive [17:39:49]shift 506 fd 92507 [17:39:49]save to /storage/0506/doc_00092507 [17:39:49]save last doc name /storage/0506/doc_00092507 to /storage/kkm_last_doc_name [17:39:49]save OK [17:39:49]Clear old archive folders... [17:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:39:49]tlvbuf is 00F922B0 [17:39:49]SAM_PROTO_ClearQueue [17:39:49]wFMCommunicate request_size=4 [17:39:49]MH_SAM_APDU [17:39:49]CAPDU: 80 09 00 00 [17:39:49]Write to MH i2c: E2 08 00 6C 2F 80 09 00 00 00 00 00 00 0D [17:39:49]Write i2c OK [17:39:49]MH_I2C_Read... [17:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:49]Read from MH i2c: E2 [17:39:49]MH_I2C_Read... [17:39:49]Read from MH i2c: E2 03 00 [17:39:49]MH_I2C_Read... [17:39:49]Read from MH i2c: E2 03 00 6C 2F 00 90 00 0F [17:39:49]RAPDU: 90 00 [17:39:49]wFMCommunicate OK [17:39:49]SAM_PROTO_ClearQueue done [17:39:49]KKMCreateOFDPacket [17:39:49]OFDProtocolAddRootSTLVToBuf [17:39:49]FM_MakeSignedData [17:39:49]FM_MakeSignedData [17:39:49]SAM_PROTO_SignData [17:39:49]wFMCommunicate request_size=4 [17:39:49]MH_SAM_APDU [17:39:49]CAPDU: 80 0D 01 02 [17:39:49]Write to MH i2c: E2 08 00 6D 2F 80 0D 01 02 00 00 00 00 15 [17:39:49]Write i2c OK [17:39:49]MH_I2C_Read... [17:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:50]Read from MH i2c: E2 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 03 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 03 00 6D 2F 00 90 00 10 [17:39:50]RAPDU: 90 00 [17:39:50]wFMCommunicate OK [17:39:50]wFMCommunicate request_size=255 [17:39:50]MH_SAM_APDU [17:39:50]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 69 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [17:39:50]Write to MH i2c: E2 02 01 6E 2F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 69 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 61 [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:50]Read from MH i2c: E2 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 03 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 03 00 6E 2F 00 90 00 11 [17:39:50]RAPDU: 90 00 [17:39:50]wFMCommunicate OK [17:39:50]wFMCommunicate request_size=35 [17:39:50]MH_SAM_APDU [17:39:50]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 69 01 00 35 04 06 00 B2 89 8B B7 B6 C4 [17:39:50]Write to MH i2c: E2 26 00 6F 2F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 69 01 00 35 04 06 00 B2 89 8B B7 B6 C4 00 00 CB [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:50]Read from MH i2c: E2 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 03 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 03 00 6F 2F 00 90 00 12 [17:39:50]RAPDU: 90 00 [17:39:50]wFMCommunicate OK [17:39:50]wFMCommunicate request_size=4 [17:39:50]MH_SAM_APDU [17:39:50]CAPDU: 80 0D 03 02 [17:39:50]Write to MH i2c: E2 08 00 70 2F 80 0D 03 02 00 00 00 00 1A [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:50]Read from MH i2c: E2 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 0B 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 0B 00 70 2F 00 5F C0 00 65 8D 49 FB 4D 90 00 BD [17:39:50]RAPDU: 5F C0 00 65 8D 49 FB 4D 90 00 [17:39:50]wFMCommunicate OK [17:39:50]SAM_PROTO_SignData done [17:39:50]FM_MakeSignedData done [17:39:50]CreateOFDProtocolMessage [17:39:50]wFMCommunicate request_size=4 [17:39:50]MH_SAM_APDU [17:39:50]CAPDU: 80 11 00 00 [17:39:50]Write to MH i2c: E2 08 00 71 2F 80 11 00 00 00 00 00 00 1A [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:50]Read from MH i2c: E2 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 17 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: E2 17 00 71 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 71 [17:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:39:50]wFMCommunicate OK [17:39:50]CreateOFDProtocolMessage done [17:39:50]OFDSenderStorePacket 92507 [17:39:50]StoreOFDPacket docnum=92507 [17:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 1B 4E 20 01 C6 A8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 69 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 69 01 00 35 04 06 00 B2 89 8B B7 B6 C4 5F C0 00 65 8D 49 FB 4D [17:39:50]CheckFolder [17:39:50]dirname=/storage/ofd_packets [17:39:50]CheckFolder done [17:39:50]ProducePacketName [17:39:50]name=ofd_packets/00092507 [17:39:50]NVStorageSaveData ofd_packets/00092507 [17:39:50]File name is /storage/ofd_packets/00092507 [17:39:50]Write 326 bytes [17:39:50]NVStorageSaveData done [17:39:50]OFDSenderStorePacket done [17:39:50]KKMCreateOFDPacket done [17:39:50]NVStorageSaveData kkm_last_timestamp [17:39:50]File name is /storage/kkm_last_timestamp [17:39:50]Write 4 bytes [17:39:50]NVStorageSaveData done [17:39:50]ExternCall_PrintAddStr [17:39:50]wPrintStart [17:39:50]Write to MH i2c: 01 00 00 72 2F A1 [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: 01 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: 01 07 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: 01 07 00 72 2F 00 00 00 00 00 FF 0F B6 [17:39:50]RasterBufferAndPrint [17:39:50]line Счет N : (3)127409 [17:39:50]line ИНН: 02508201610067 [17:39:50]line Контрольно-Кассовый Чек [17:39:50]line ПРОДАЖА [17:39:50]line Товар: 4700000310043 [17:39:50]line Вода Жалалабат 27 1л [17:39:50]line 1.000 * 60.00 [17:39:50]line = 60.00 [17:39:50]line НДС 12% НСП 1% [17:39:50]line > о реализуемом товаре [17:39:50]line ИТОГО: 60.00 [17:39:50]line НСП 1% : 0.53 [17:39:50]line НДС 12% : 6.37 [17:39:50]line Наличными: 60.00 [17:39:50]line Безнал.: 0.00 [17:39:50]line Место: АЗС № 5 "Партнер Нефть" [17:39:50]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [17:39:50]line СНО: Общий режим [17:39:50]line Чек 158 14.09.2024 17:39 [17:39:50]line Смена: 506 ФФД: 1.0 [17:39:50]line ЗНМ: 03000000022 [17:39:50]line РНМ: 0000000000091423 [17:39:50]line Версия ККМ: 001 [17:39:50]line ФМ: 0000000000874692 [17:39:50]line ФД: 92507 [17:39:50]line ФПД: 196303824336580 [17:39:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T173953&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92507&fm=196303824336580&tin=02508201610067®Number=0000000000091423&sum=6000 [17:39:50]line 0 [17:39:50]OFD Sender: Processing packet 92507 [packets to send 63, broken 62] [17:39:50]ProducePacketName [17:39:50]name=ofd_packets/00092507 [17:39:50]OFD Sender: To server: pG, [17:39:50]CommunicateWithHost lk.salyk.kg:30040 [17:39:50]ConnectInit lk.salyk.kg [17:39:50]written 0, free lines is 4095 [17:39:50]Connected sock=10 [17:39:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 1B 4E 20 01 C6 A8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 69 CA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 69 01 00 35 04 06 00 B2 89 8B B7 B6 C4 5F C0 00 65 8D 49 FB 4D [17:39:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7C 02 47 00 C3 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5B 69 01 00 F4 03 04 00 E3 72 E5 66 B6 04 01 00 00 15 09 25 51 94 98 D3 EF [17:39:50]CommunicateWithHost err = 0 [17:39:50]CheckOFDResponse [17:39:50]1017 (14) - 77093643461234 [17:39:50]1041 (16) - 0000000000874692 [17:39:50]1040 (4) - 92507 [17:39:50]1012 (4) - 14.09.2024 11:26 [17:39:50]1206 (1) - 0 [17:39:50]OFD Sender: Remove packet 92507 [17:39:50]ProducePacketName [17:39:50]name=ofd_packets/00092507 [17:39:50]NVStorageDeleteData [17:39:50]Write to MH i2c: 01 00 00 9A 2F C9 [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: 01 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: 01 07 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: 01 07 00 9A 2F 00 00 00 00 00 26 0D 03 [17:39:50]RasterBufferAndPrint [17:39:50]line [17:39:50]line [17:39:50]line [17:39:50]line [17:39:50]line [17:39:50]written 0, free lines is 3374 [17:39:51]MH_Cut [17:39:51]Write to MH i2c: D1 01 00 A1 2F 01 A2 [17:39:51]Write i2c OK [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: D1 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: D1 01 00 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: D1 01 00 A1 2F 00 A1 [17:39:51]Write to MH i2c: 01 00 00 A2 2F D1 [17:39:51]Write i2c OK [17:39:51]MH_I2C_Read... [17:39:51]OFD Sender: No OFD packet to send [17:39:51]*** Cut start [17:39:51]*** Purtial cut [17:39:51]*** Stage 1: CUTSNS_PIN = 1 [17:39:53]Read from MH i2c: 01 [17:39:53]MH_I2C_Read... [17:39:53]*** Stop cut motor [17:39:53]*** Cut end [17:39:53]Read from MH i2c: 01 07 00 [17:39:53]MH_I2C_Read... [17:39:53]Read from MH i2c: 01 07 00 A2 2F 00 00 00 00 00 FF 0F E6 [17:39:53]process_action close_receipt done [17:39:53]requested_data is exist [17:39:53]produce_requested_data [17:39:53]requested_item fm.sn is exist - process it [17:39:53]wFMCommunicate request_size=4 [17:39:53]MH_SAM_APDU [17:39:53]CAPDU: 80 11 00 00 [17:39:53]Write to MH i2c: E2 08 00 A3 2F 80 11 00 00 00 00 00 00 4C [17:39:53]Write i2c OK [17:39:53]MH_I2C_Read... [17:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:53]Read from MH i2c: E2 [17:39:53]MH_I2C_Read... [17:39:53]Read from MH i2c: E2 17 00 [17:39:53]MH_I2C_Read... [17:39:53]Read from MH i2c: E2 17 00 A3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A3 [17:39:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [17:39:53]wFMCommunicate OK [17:39:53]requested_item fd.num is exist - process it [17:39:53]SAM_PROTO_GetFieldsCounters [17:39:53]wFMCommunicate request_size=4 [17:39:53]MH_SAM_APDU [17:39:53]CAPDU: 80 13 00 00 [17:39:53]Write to MH i2c: E2 08 00 A4 2F 80 13 00 00 00 00 00 00 4F [17:39:53]Write i2c OK [17:39:53]MH_I2C_Read... [17:39:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:53]Read from MH i2c: E2 [17:39:53]MH_I2C_Read... [17:39:53]Read from MH i2c: E2 62 00 [17:39:53]MH_I2C_Read... [17:39:53]Read from MH i2c: E2 62 00 A4 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5B 69 01 00 0E 04 04 00 FA 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 08 [17:39:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5B 69 01 00 0E 04 04 00 FA 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 [17:39:53]wFMCommunicate OK [17:39:53]SAM_PROTO_GetFieldsCounters done [17:39:53]requested_item shift.num is exist - process it [17:39:53]requested_item shift.opened is exist - process it [17:39:53]req_shift_opened [17:39:53]FM_GetShiftState [17:39:53]SAM_PROTO_GetShiftState [17:39:53]wFMCommunicate request_size=4 [17:39:53]MH_SAM_APDU [17:39:53]CAPDU: 80 13 01 00 [17:39:53]Write to MH i2c: E2 08 00 A5 2F 80 13 01 00 00 00 00 00 51 [17:39:53]Write i2c OK [17:39:53]MH_I2C_Read... [17:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:53]Read from MH i2c: E2 [17:39:53]MH_I2C_Read... [17:39:53]Read from MH i2c: E2 0E 00 [17:39:53]MH_I2C_Read... [17:39:53]Read from MH i2c: E2 0E 00 A5 2F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EB [17:39:53]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [17:39:53]wFMCommunicate OK [17:39:53]SAM_PROTO_GetShiftState done [17:39:53]FM_GetShiftState done [17:39:53]req_shift_opened done [17:39:53]requested_item shift.open_date is exist - process it [17:39:53]req_shift_open_date [17:39:53]req_shift_open_date done [17:39:53]produce_requested_data done [17:39:53]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92507,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [17:39:53]process_action_free close_receipt [17:39:53]json_value_free [17:39:53]json_value_free done [17:39:53]process_json_proto returns [17:39:53]Send response to host [17:39:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92507,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [17:39:53]free response buf [17:39:53]execute_script done [17:39:53]execute_script returns [17:39:53]free content buf [17:39:53]Sock 8.Close socket [17:39:53]Sock 8.Thread stoped [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:02:58]accept exits with 9 [18:02:58]New connection [18:02:58]New thread 3066658148 created [18:02:58]Thread 3066801508 joined [18:02:58]Waiting for new connection... [18:02:58] Sock 9.Parse request [18:02:58]Sock 9.Check first char [18:02:58]Sock 9.First char is OK [18:02:58]request: POST /json_proto HTTP/1.0 [18:02:58]Method: POST [18:02:58]URL: /json_proto [18:02:58]Method is POST - this is cgi request [18:02:58]url: /json_proto [18:02:58]query_string will be loaded in cgi processing [18:02:58]execute_cgi json_proto POST (null) [18:02:58]execute_cgi path=json_proto method=POST [18:02:58]POST find Content-Length [18:02:58]Host: 172.17.57.71:8080 [18:02:58]Content-Length: 605 [18:02:58]Content-Type: application/json [18:02:58] [18:02:58]POST finish read [18:02:58]Found Content-Length = 605 [18:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127410", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:58]execute_script... [18:02: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)127410", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:58]POST & json_proto [18:02:58]process_json_proto [18:02:58]json parsed OK: [18:02:58]protocol is kg_v1.0 [18:02:58]action value=close_receipt [18:02:58]process_action close_receipt [18:02:58]cmd_close_receipt [18:02:58]MH_GetDate [18:02:58]Write to MH i2c: F0 00 00 A6 2F C4 [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 09 00 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 09 00 A6 2F 00 D7 CF E5 66 33 3A A4 66 35 [18:02:58]GetLastDocTimeStamp 1726335593 [18:02:58]current date 1726336983 [18:02:58]FM_GetShiftState [18:02:58]SAM_PROTO_GetShiftState [18:02:58]wFMCommunicate request_size=4 [18:02:58]MH_SAM_APDU [18:02:58]CAPDU: 80 13 01 00 [18:02:58]Write to MH i2c: E2 08 00 A7 2F 80 13 01 00 00 00 00 00 53 [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:58]Read from MH i2c: E2 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: E2 0E 00 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: E2 0E 00 A7 2F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 ED [18:02:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:02:58]wFMCommunicate OK [18:02:58]SAM_PROTO_GetShiftState done [18:02:58]FM_GetShiftState done [18:02:58]opened in 1726273389 [18:02:58]opened+sec_in_day 1726359789 [18:02:58]quantity*price = 4500 [18:02:58]sum+1 = 4501 [18:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 159 14.09.2024 18:03 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92508 ФПД: 86464385511683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T180303&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92508&fm=86464385511683&tin=02508201610067®Number=0000000000091423&sum=4500 0 [18:02:59]StoreToDocumentArchive [18:02:59]shift 506 fd 92508 [18:02:59]save to /storage/0506/doc_00092508 [18:02:59]save last doc name /storage/0506/doc_00092508 to /storage/kkm_last_doc_name [18:02:59]save OK [18:02:59]Clear old archive folders... [18:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=260 [18:02:59]tlvbuf is 00F65EF0 [18:02:59]SAM_PROTO_ClearQueue [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 09 00 00 [18:02:59]Write to MH i2c: E2 08 00 B4 2F 80 09 00 00 00 00 00 00 55 [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 B4 2F 00 90 00 57 [18:02:59]RAPDU: 90 00 [18:02:59]wFMCommunicate OK [18:02:59]SAM_PROTO_ClearQueue done [18:02:59]KKMCreateOFDPacket [18:02:59]OFDProtocolAddRootSTLVToBuf [18:02:59]FM_MakeSignedData [18:02:59]FM_MakeSignedData [18:02:59]SAM_PROTO_SignData [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 0D 01 02 [18:02:59]Write to MH i2c: E2 08 00 B5 2F 80 0D 01 02 00 00 00 00 5D [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 03 00 B5 2F 00 90 00 58 [18:02:59]RAPDU: 90 00 [18:02:59]wFMCommunicate OK [18:02:59]wFMCommunicate request_size=255 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D7 CF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 [18:02:59]Write to MH i2c: E2 02 01 B6 2F 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D7 CF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 00 00 53 [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 B6 2F 00 90 00 59 [18:03:00]RAPDU: 90 00 [18:03:00]wFMCommunicate OK [18:03:00]wFMCommunicate request_size=19 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 0D 02 02 0E 5C 69 01 00 35 04 06 00 4E A3 8E FB F1 03 [18:03:00]Write to MH i2c: E2 16 00 B7 2F 80 0D 02 02 0E 00 5C 69 01 00 35 04 06 00 4E A3 8E FB F1 03 00 00 EF [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 03 00 B7 2F 00 90 00 5A [18:03:00]RAPDU: 90 00 [18:03:00]wFMCommunicate OK [18:03:00]wFMCommunicate request_size=4 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 0D 03 02 [18:03:00]Write to MH i2c: E2 08 00 B8 2F 80 0D 03 02 00 00 00 00 62 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 0B 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 0B 00 B8 2F 00 03 D1 93 3A 0E 3B E4 FE 90 00 2F [18:03:00]RAPDU: 03 D1 93 3A 0E 3B E4 FE 90 00 [18:03:00]wFMCommunicate OK [18:03:00]SAM_PROTO_SignData done [18:03:00]FM_MakeSignedData done [18:03:00]CreateOFDProtocolMessage [18:03:00]wFMCommunicate request_size=4 [18:03:00]MH_SAM_APDU [18:03:00]CAPDU: 80 11 00 00 [18:03:00]Write to MH i2c: E2 08 00 B9 2F 80 11 00 00 00 00 00 00 62 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 17 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 17 00 B9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B9 [18:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:03:00]wFMCommunicate OK [18:03:00]CreateOFDProtocolMessage done [18:03:00]OFDSenderStorePacket 92508 [18:03:00]StoreOFDPacket docnum=92508 [18:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 18 01 00 00 34 CB 10 01 AB 50 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D7 CF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5C 69 01 00 35 04 06 00 4E A3 8E FB F1 03 03 D1 93 3A 0E 3B E4 FE [18:03:00]CheckFolder [18:03:00]dirname=/storage/ofd_packets [18:03:00]CheckFolder done [18:03:00]ProducePacketName [18:03:00]name=ofd_packets/00092508 [18:03:00]NVStorageSaveData ofd_packets/00092508 [18:03:00]File name is /storage/ofd_packets/00092508 [18:03:00]Write 310 bytes [18:03:00]NVStorageSaveData done [18:03:00]OFDSenderStorePacket done [18:03:00]KKMCreateOFDPacket done [18:03:00]NVStorageSaveData kkm_last_timestamp [18:03:00]File name is /storage/kkm_last_timestamp [18:03:00]Write 4 bytes [18:03:00]NVStorageSaveData done [18:03:00]ExternCall_PrintAddStr [18:03:00]wPrintStart [18:03:00]Write to MH i2c: 01 00 00 BA 2F E9 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 07 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 07 00 BA 2F 00 00 00 00 00 FF 0F FE [18:03:00]RasterBufferAndPrint [18:03:00]line Счет N : (3)127410 [18:03:00]line ИНН: 02508201610067 [18:03:00]line Контрольно-Кассовый Чек [18:03:00]line ПРОДАЖА [18:03:00]line Товар: 42113270 [18:03:00]line Жев Orbit арбуз [18:03:00]line 1.000 * 45.00 [18:03:00]line = 45.00 [18:03:00]line НДС 12% НСП 1% [18:03:00]line > о реализуемом товаре [18:03:00]line ИТОГО: 45.00 [18:03:00]line НСП 1% : 0.40 [18:03:00]line НДС 12% : 4.78 [18:03:00]line Наличными: 45.00 [18:03:00]line Безнал.: 0.00 [18:03:00]line Место: АЗС № 5 "Партнер Нефть" [18:03:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:03:00]line СНО: Общий режим [18:03:00]line Чек 159 14.09.2024 18:03 [18:03:00]line Смена: 506 ФФД: 1.0 [18:03:00]line ЗНМ: 03000000022 [18:03:00]line РНМ: 0000000000091423 [18:03:00]line Версия ККМ: 001 [18:03:00]line ФМ: 0000000000874692 [18:03:00]line ФД: 92508 [18:03:00]line ФПД: 86464385511683 [18:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T180303&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92508&fm=86464385511683&tin=02508201610067®Number=0000000000091423&sum=4500 [18:03:00]line 0 [18:03:00]written 0, free lines is 4095 [18:03:00]OFD Sender: Processing packet 92508 [packets to send 63, broken 62] [18:03:00]ProducePacketName [18:03:00]name=ofd_packets/00092508 [18:03:00]OFD Sender: To server: pG, [18:03:00]CommunicateWithHost lk.salyk.kg:30040 [18:03:00]ConnectInit lk.salyk.kg [18:03:00]Connected sock=10 [18:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 18 01 00 00 34 CB 10 01 AB 50 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D7 CF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5C 69 01 00 35 04 06 00 4E A3 8E FB F1 03 03 D1 93 3A 0E 3B E4 FE [18:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 3E 8F 47 00 1D 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 34 36 39 32 10 04 04 00 5C 69 01 00 F4 03 04 00 51 78 E5 66 B6 04 01 00 00 10 20 AC 82 A8 5E FE 76 [18:03:01]CommunicateWithHost err = 0 [18:03:01]CheckOFDResponse [18:03:01]1017 (14) - 77093643461234 [18:03:01]1041 (16) - 0000000000874692 [18:03:01]1040 (4) - 92508 [18:03:01]1012 (4) - 14.09.2024 11:49 [18:03:01]1206 (1) - 0 [18:03:01]OFD Sender: Remove packet 92508 [18:03:01]ProducePacketName [18:03:01]name=ofd_packets/00092508 [18:03:01]NVStorageDeleteData [18:03:01]Write to MH i2c: 01 00 00 E2 2F 11 [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 07 00 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: 01 07 00 E2 2F 00 00 00 00 00 1D 0D 42 [18:03:01]RasterBufferAndPrint [18:03:01]line [18:03:01]line [18:03:01]line [18:03:01]line [18:03:01]line [18:03:01]written 0, free lines is 3364 [18:03:01]MH_Cut [18:03:01]Write to MH i2c: D1 01 00 E9 2F 01 EA [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: D1 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: D1 01 00 [18:03:01]MH_I2C_Read... [18:03:01]Read from MH i2c: D1 01 00 E9 2F 00 E9 [18:03:01]Write to MH i2c: 01 00 00 EA 2F 19 [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:01]OFD Sender: No OFD packet to send [18:03:01]*** Cut start [18:03:01]*** Purtial cut [18:03:01]*** Stage 1: CUTSNS_PIN = 1 [18:03:03]Read from MH i2c: 01 [18:03:03]MH_I2C_Read... [18:03:03]*** Stop cut motor [18:03:03]*** Cut end [18:03:03]Read from MH i2c: 01 07 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: 01 07 00 EA 2F 00 00 00 00 00 FF 0F 2E [18:03:03]process_action close_receipt done [18:03:03]requested_data is exist [18:03:03]produce_requested_data [18:03:03]requested_item fm.sn is exist - process it [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 11 00 00 [18:03:03]Write to MH i2c: E2 08 00 EB 2F 80 11 00 00 00 00 00 00 94 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 17 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 17 00 EB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EB [18:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:03:03]wFMCommunicate OK [18:03:03]requested_item fd.num is exist - process it [18:03:03]SAM_PROTO_GetFieldsCounters [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 13 00 00 [18:03:03]Write to MH i2c: E2 08 00 EC 2F 80 13 00 00 00 00 00 00 97 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 62 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 62 00 EC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5C 69 01 00 0E 04 04 00 FA 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 54 [18:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5C 69 01 00 0E 04 04 00 FA 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 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_GetFieldsCounters done [18:03:04]requested_item shift.num is exist - process it [18:03:04]requested_item shift.opened is exist - process it [18:03:04]req_shift_opened [18:03:04]FM_GetShiftState [18:03:04]SAM_PROTO_GetShiftState [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 13 01 00 [18:03:04]Write to MH i2c: E2 08 00 ED 2F 80 13 01 00 00 00 00 00 99 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0E 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0E 00 ED 2F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 33 [18:03:04]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_GetShiftState done [18:03:04]FM_GetShiftState done [18:03:04]req_shift_opened done [18:03:04]requested_item shift.open_date is exist - process it [18:03:04]req_shift_open_date [18:03:04]req_shift_open_date done [18:03:04]produce_requested_data done [18:03:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92508,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:03:04]process_action_free close_receipt [18:03:04]json_value_free [18:03:04]json_value_free done [18:03:04]process_json_proto returns [18:03:04]Send response to host [18:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92508,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:03:04]free response buf [18:03:04]execute_script done [18:03:04]execute_script returns [18:03:04]free content buf [18:03:04]Sock 9.Close socket [18:03:04]Sock 9.Thread stoped [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:32]accept exits with 8 [18:04:32]New connection [18:04:32]New thread 3066801508 created [18:04:32]Thread 3066658148 joined [18:04:32]Waiting for new connection... [18:04:32] Sock 8.Parse request [18:04:32]Sock 8.Check first char [18:04:32]Sock 8.First char is OK [18:04:32]request: POST /json_proto HTTP/1.0 [18:04:32]Method: POST [18:04:32]URL: /json_proto [18:04:32]Method is POST - this is cgi request [18:04:32]url: /json_proto [18:04:32]query_string will be loaded in cgi processing [18:04:32]execute_cgi json_proto POST (null) [18:04:32]execute_cgi path=json_proto method=POST [18:04:32]POST find Content-Length [18:04:32]Host: 172.17.57.71:8080 [18:04:32]Content-Length: 738 [18:04:32]Content-Type: application/json [18:04:32] [18:04:32]POST finish read [18:04:32]Found Content-Length = 738 [18:04:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127411", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 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:04:32]execute_script... [18:04: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)127411", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 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:04:32]POST & json_proto [18:04:32]process_json_proto [18:04:32]json parsed OK: [18:04:32]protocol is kg_v1.0 [18:04:32]action value=close_receipt [18:04:32]process_action close_receipt [18:04:32]cmd_close_receipt [18:04:32]MH_GetDate [18:04:32]Write to MH i2c: F0 00 00 EE 2F 0C [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: F0 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: F0 09 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: F0 09 00 EE 2F 00 35 D0 E5 66 33 3A A4 66 DC [18:04:32]GetLastDocTimeStamp 1726336983 [18:04:32]current date 1726337077 [18:04:32]FM_GetShiftState [18:04:32]SAM_PROTO_GetShiftState [18:04:32]wFMCommunicate request_size=4 [18:04:32]MH_SAM_APDU [18:04:32]CAPDU: 80 13 01 00 [18:04:32]Write to MH i2c: E2 08 00 EF 2F 80 13 01 00 00 00 00 00 9B [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:32]Read from MH i2c: E2 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 0E 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 0E 00 EF 2F 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 35 [18:04:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:04:32]wFMCommunicate OK [18:04:32]SAM_PROTO_GetShiftState done [18:04:32]FM_GetShiftState done [18:04:32]opened in 1726273389 [18:04:32]opened+sec_in_day 1726359789 [18:04:32]quantity*price = 10500 [18:04:32]sum+1 = 10501 [18:04:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 160 14.09.2024 18:04 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92509 ФПД: 208397197693826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T180437&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92509&fm=208397197693826&tin=02508201610067®Number=0000000000091423&sum=10500 0 [18:04:33]StoreToDocumentArchive [18:04:33]shift 506 fd 92509 [18:04:33]save to /storage/0506/doc_00092509 [18:04:33]save last doc name /storage/0506/doc_00092509 to /storage/kkm_last_doc_name [18:04:33]save OK [18:04:33]Clear old archive folders... [18:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=310 [18:04:33]tlvbuf is 010B5860 [18:04:33]SAM_PROTO_ClearQueue [18:04:33]wFMCommunicate request_size=4 [18:04:33]MH_SAM_APDU [18:04:33]CAPDU: 80 09 00 00 [18:04:33]Write to MH i2c: E2 08 00 FC 2F 80 09 00 00 00 00 00 00 9D [18:04:33]Write i2c OK [18:04:33]MH_I2C_Read... [18:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:34]Read from MH i2c: E2 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 03 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 03 00 FC 2F 00 90 00 9F [18:04:34]RAPDU: 90 00 [18:04:34]wFMCommunicate OK [18:04:34]SAM_PROTO_ClearQueue done [18:04:34]KKMCreateOFDPacket [18:04:34]OFDProtocolAddRootSTLVToBuf [18:04:34]FM_MakeSignedData [18:04:34]FM_MakeSignedData [18:04:34]SAM_PROTO_SignData [18:04:34]wFMCommunicate request_size=4 [18:04:34]MH_SAM_APDU [18:04:34]CAPDU: 80 0D 01 02 [18:04:34]Write to MH i2c: E2 08 00 FD 2F 80 0D 01 02 00 00 00 00 A5 [18:04:34]Write i2c OK [18:04:34]MH_I2C_Read... [18:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:34]Read from MH i2c: E2 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 03 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 03 00 FD 2F 00 90 00 A0 [18:04:34]RAPDU: 90 00 [18:04:34]wFMCommunicate OK [18:04:34]wFMCommunicate request_size=255 [18:04:34]MH_SAM_APDU [18:04:34]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 00 00 00 F4 03 04 00 35 D0 E5 66 0E 04 04 00 FA 01 00 [18:04:34]Write to MH i2c: E2 02 01 FE 2F 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 00 00 00 F4 03 04 00 35 D0 E5 66 0E 04 04 00 FA 01 00 00 00 FA [18:04:34]Write i2c OK [18:04:34]MH_I2C_Read... [18:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:34]Read from MH i2c: E2 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 03 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 03 00 FE 2F 00 90 00 A1 [18:04:34]RAPDU: 90 00 [18:04:34]wFMCommunicate OK [18:04:34]wFMCommunicate request_size=69 [18:04:34]MH_SAM_APDU [18:04:34]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 69 01 00 35 04 06 00 BD 89 40 F0 D3 82 [18:04:34]Write to MH i2c: E2 48 00 FF 2F 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 69 01 00 35 04 06 00 BD 89 40 F0 D3 82 00 00 4D [18:04:34]Write i2c OK [18:04:34]MH_I2C_Read... [18:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:34]Read from MH i2c: E2 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 03 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 03 00 FF 2F 00 90 00 A2 [18:04:34]RAPDU: 90 00 [18:04:34]wFMCommunicate OK [18:04:34]wFMCommunicate request_size=4 [18:04:34]MH_SAM_APDU [18:04:34]CAPDU: 80 0D 03 02 [18:04:34]Write to MH i2c: E2 08 00 00 30 80 0D 03 02 00 00 00 00 AB [18:04:34]Write i2c OK [18:04:34]MH_I2C_Read... [18:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:34]Read from MH i2c: E2 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 0B 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 0B 00 00 30 00 26 4A BB FB 4F 86 B4 8E 90 00 E9 [18:04:34]RAPDU: 26 4A BB FB 4F 86 B4 8E 90 00 [18:04:34]wFMCommunicate OK [18:04:34]SAM_PROTO_SignData done [18:04:34]FM_MakeSignedData done [18:04:34]CreateOFDProtocolMessage [18:04:34]wFMCommunicate request_size=4 [18:04:34]MH_SAM_APDU [18:04:34]CAPDU: 80 11 00 00 [18:04:34]Write to MH i2c: E2 08 00 01 30 80 11 00 00 00 00 00 00 AB [18:04:34]Write i2c OK [18:04:34]MH_I2C_Read... [18:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:34]Read from MH i2c: E2 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 17 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: E2 17 00 01 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 02 [18:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:04:34]wFMCommunicate OK [18:04:34]CreateOFDProtocolMessage done [18:04:34]OFDSenderStorePacket 92509 [18:04:34]StoreOFDPacket docnum=92509 [18:04:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4A 01 00 00 39 49 42 01 D9 A5 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 00 00 00 F4 03 04 00 35 D0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 69 01 00 35 04 06 00 BD 89 40 F0 D3 82 26 4A BB FB 4F 86 B4 8E [18:04:34]CheckFolder [18:04:34]dirname=/storage/ofd_packets [18:04:34]CheckFolder done [18:04:34]ProducePacketName [18:04:34]name=ofd_packets/00092509 [18:04:34]NVStorageSaveData ofd_packets/00092509 [18:04:34]File name is /storage/ofd_packets/00092509 [18:04:34]Write 360 bytes [18:04:34]NVStorageSaveData done [18:04:34]OFDSenderStorePacket done [18:04:34]KKMCreateOFDPacket done [18:04:34]NVStorageSaveData kkm_last_timestamp [18:04:34]File name is /storage/kkm_last_timestamp [18:04:34]Write 4 bytes [18:04:34]NVStorageSaveData done [18:04:34]ExternCall_PrintAddStr [18:04:34]wPrintStart [18:04:34]Write to MH i2c: 01 00 00 02 30 32 [18:04:34]Write i2c OK [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: 01 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: 01 07 00 [18:04:34]MH_I2C_Read... [18:04:34]Read from MH i2c: 01 07 00 02 30 00 00 00 00 00 FF 0F 47 [18:04:34]RasterBufferAndPrint [18:04:34]line Счет N : (3)127411 [18:04:34]line ИНН: 02508201610067 [18:04:34]line Контрольно-Кассовый Чек [18:04:34]line ПРОДАЖА [18:04:34]line Товар: 4870145004982 [18:04:34]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [18:04:34]line 1.000 * 105.00 [18:04:34]line = 105.00 [18:04:34]line НДС 12% НСП 1% [18:04:34]line > о реализуемом товаре [18:04:34]line ИТОГО: 105.00 [18:04:34]line НСП 1% : 0.93 [18:04:34]line НДС 12% : 11.15 [18:04:34]line Наличными: 105.00 [18:04:34]line Безнал.: 0.00 [18:04:34]line Место: АЗС № 5 "Партнер Нефть" [18:04:34]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:04:34]line СНО: Общий режим [18:04:34]line Чек 160 14.09.2024 18:04 [18:04:34]line Смена: 506 ФФД: 1.0 [18:04:34]line ЗНМ: 03000000022 [18:04:34]line РНМ: 0000000000091423 [18:04:34]line Версия ККМ: 001 [18:04:34]line ФМ: 0000000000874692 [18:04:34]line ФД: 92509 [18:04:34]line ФПД: 208397197693826 [18:04:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T180437&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92509&fm=208397197693826&tin=02508201610067®Number=0000000000091423&sum=10500 [18:04:34]OFD Sender: Processing packet 92509 [packets to send 63, broken 62] [18:04:34]ProducePacketName [18:04:34]name=ofd_packets/00092509 [18:04:34]OFD Sender: To server: pG, [18:04:34]CommunicateWithHost lk.salyk.kg:30040 [18:04:34]ConnectInit lk.salyk.kg [18:04:34]line 0 [18:04:34]written 0, free lines is 4095 [18:04:34]Connected sock=11 [18:04:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4A 01 00 00 39 49 42 01 D9 A5 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 00 00 00 F4 03 04 00 35 D0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 69 01 00 35 04 06 00 BD 89 40 F0 D3 82 26 4A BB FB 4F 86 B4 8E [18:04:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4B 9A 47 00 C5 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5D 69 01 00 F4 03 04 00 AF 78 E5 66 B6 04 01 00 00 59 B7 FD 72 6E A6 D0 BF [18:04:35]CommunicateWithHost err = 0 [18:04:35]CheckOFDResponse [18:04:35]1017 (14) - 77093643461234 [18:04:35]1041 (16) - 0000000000874692 [18:04:35]1040 (4) - 92509 [18:04:35]1012 (4) - 14.09.2024 11:51 [18:04:35]1206 (1) - 0 [18:04:35]OFD Sender: Remove packet 92509 [18:04:35]ProducePacketName [18:04:35]name=ofd_packets/00092509 [18:04:35]NVStorageDeleteData [18:04:35]Write to MH i2c: 01 00 00 2B 30 5B [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: 01 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: 01 07 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: 01 07 00 2B 30 00 00 00 00 00 3E 0D AD [18:04:35]RasterBufferAndPrint [18:04:35]line [18:04:35]line [18:04:35]line [18:04:35]line [18:04:35]line [18:04:35]written 0, free lines is 3397 [18:04:35]MH_Cut [18:04:35]Write to MH i2c: D1 01 00 32 30 01 34 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: D1 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: D1 01 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: D1 01 00 32 30 00 33 [18:04:35]Write to MH i2c: 01 00 00 33 30 63 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]OFD Sender: No OFD packet to send [18:04:35]*** Cut start [18:04:35]*** Purtial cut [18:04:35]*** Stage 1: CUTSNS_PIN = 1 [18:04:37]Read from MH i2c: 01 [18:04:38]MH_I2C_Read... [18:04:38]*** Stop cut motor [18:04:38]*** Cut end [18:04:38]Read from MH i2c: 01 07 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 07 00 33 30 00 00 00 00 00 FF 0F 78 [18:04:38]process_action close_receipt done [18:04:38]requested_data is exist [18:04:38]produce_requested_data [18:04:38]requested_item fm.sn is exist - process it [18:04:38]wFMCommunicate request_size=4 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 11 00 00 [18:04:38]Write to MH i2c: E2 08 00 34 30 80 11 00 00 00 00 00 00 DE [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 17 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 17 00 34 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 35 [18:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:04:38]wFMCommunicate OK [18:04:38]requested_item fd.num is exist - process it [18:04:38]SAM_PROTO_GetFieldsCounters [18:04:38]wFMCommunicate request_size=4 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 13 00 00 [18:04:38]Write to MH i2c: E2 08 00 35 30 80 13 00 00 00 00 00 00 E1 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 62 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 62 00 35 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5D 69 01 00 0E 04 04 00 FA 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 A2 [18:04:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5D 69 01 00 0E 04 04 00 FA 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 [18:04:38]wFMCommunicate OK [18:04:38]SAM_PROTO_GetFieldsCounters done [18:04:38]requested_item shift.num is exist - process it [18:04:38]requested_item shift.opened is exist - process it [18:04:38]req_shift_opened [18:04:38]FM_GetShiftState [18:04:38]SAM_PROTO_GetShiftState [18:04:38]wFMCommunicate request_size=4 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 13 01 00 [18:04:38]Write to MH i2c: E2 08 00 36 30 80 13 01 00 00 00 00 00 E3 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 0E 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 0E 00 36 30 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7D [18:04:38]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:04:38]wFMCommunicate OK [18:04:38]SAM_PROTO_GetShiftState done [18:04:38]FM_GetShiftState done [18:04:38]req_shift_opened done [18:04:38]requested_item shift.open_date is exist - process it [18:04:38]req_shift_open_date [18:04:38]req_shift_open_date done [18:04:38]produce_requested_data done [18:04:38]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92509,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:04:38]process_action_free close_receipt [18:04:38]json_value_free [18:04:38]json_value_free done [18:04:38]process_json_proto returns [18:04:38]Send response to host [18:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92509,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:04:38]free response buf [18:04:38]execute_script done [18:04:38]execute_script returns [18:04:38]free content buf [18:04:38]Sock 8.Close socket [18:04:38]Sock 8.Thread stoped [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:18]accept exits with 9 [18:11:18]New connection [18:11:18]New thread 3066658148 created [18:11:18]Thread 3066801508 joined [18:11:18]Waiting for new connection... [18:11:18] Sock 9.Parse request [18:11:18]Sock 9.Check first char [18:11:18]Sock 9.First char is OK [18:11:18]request: POST /json_proto HTTP/1.0 [18:11:18]Method: POST [18:11:18]URL: /json_proto [18:11:18]Method is POST - this is cgi request [18:11:18]url: /json_proto [18:11:18]query_string will be loaded in cgi processing [18:11:18]execute_cgi json_proto POST (null) [18:11:18]execute_cgi path=json_proto method=POST [18:11:18]POST find Content-Length [18:11:18]Host: 172.17.57.71:8080 [18:11:18]Content-Length: 655 [18:11:18]Content-Type: application/json [18:11:18] [18:11:18]POST finish read [18:11:18]Found Content-Length = 655 [18:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127412", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:18]execute_script... [18:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127412", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:18]POST & json_proto [18:11:18]process_json_proto [18:11:18]json parsed OK: [18:11:18]protocol is kg_v1.0 [18:11:18]action value=close_receipt [18:11:18]process_action close_receipt [18:11:18]cmd_close_receipt [18:11:18]MH_GetDate [18:11:18]Write to MH i2c: F0 00 00 37 30 56 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: F0 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: F0 09 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: F0 09 00 37 30 00 CB D1 E5 66 33 3A A4 66 BD [18:11:18]GetLastDocTimeStamp 1726337077 [18:11:18]current date 1726337483 [18:11:18]FM_GetShiftState [18:11:18]SAM_PROTO_GetShiftState [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 13 01 00 [18:11:18]Write to MH i2c: E2 08 00 38 30 80 13 01 00 00 00 00 00 E5 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 0E 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 0E 00 38 30 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 7F [18:11:18]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:11:18]wFMCommunicate OK [18:11:18]SAM_PROTO_GetShiftState done [18:11:18]FM_GetShiftState done [18:11:18]opened in 1726273389 [18:11:18]opened+sec_in_day 1726359789 [18:11:18]quantity*price = 4500 [18:11:18]sum+1 = 4501 [18:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 161 14.09.2024 18:11 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92510 ФПД: 2080529197932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T181123&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92510&fm=2080529197932&tin=02508201610067®Number=0000000000091423&sum=4500 0 [18:11:19]StoreToDocumentArchive [18:11:19]shift 506 fd 92510 [18:11:19]save to /storage/0506/doc_00092510 [18:11:19]save last doc name /storage/0506/doc_00092510 to /storage/kkm_last_doc_name [18:11:19]save OK [18:11:19]Clear old archive folders... [18:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:11:19]tlvbuf is 00FC8740 [18:11:19]SAM_PROTO_ClearQueue [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 09 00 00 [18:11:19]Write to MH i2c: E2 08 00 45 30 80 09 00 00 00 00 00 00 E7 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 45 30 00 90 00 E9 [18:11:19]RAPDU: 90 00 [18:11:19]wFMCommunicate OK [18:11:19]SAM_PROTO_ClearQueue done [18:11:19]KKMCreateOFDPacket [18:11:19]OFDProtocolAddRootSTLVToBuf [18:11:19]FM_MakeSignedData [18:11:19]FM_MakeSignedData [18:11:19]SAM_PROTO_SignData [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 0D 01 02 [18:11:19]Write to MH i2c: E2 08 00 46 30 80 0D 01 02 00 00 00 00 EF [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 46 30 00 90 00 EA [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]wFMCommunicate request_size=255 [18:11:20]MH_SAM_APDU [18:11:20]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 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 CB D1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 [18:11:20]Write to MH i2c: E2 02 01 47 30 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 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 CB D1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 00 00 51 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 47 30 00 90 00 EB [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]wFMCommunicate request_size=41 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 69 01 00 35 04 06 00 01 E4 69 34 2B 6C [18:11:20]Write to MH i2c: E2 2C 00 48 30 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 69 01 00 35 04 06 00 01 E4 69 34 2B 6C 00 00 A6 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 48 30 00 90 00 EC [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 0D 03 02 [18:11:20]Write to MH i2c: E2 08 00 49 30 80 0D 03 02 00 00 00 00 F4 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0B 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0B 00 49 30 00 7D 6C FA 16 05 EE A3 20 90 00 A4 [18:11:20]RAPDU: 7D 6C FA 16 05 EE A3 20 90 00 [18:11:20]wFMCommunicate OK [18:11:20]SAM_PROTO_SignData done [18:11:20]FM_MakeSignedData done [18:11:20]CreateOFDProtocolMessage [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 11 00 00 [18:11:20]Write to MH i2c: E2 08 00 4A 30 80 11 00 00 00 00 00 00 F4 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 17 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 17 00 4A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4B [18:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:11:20]wFMCommunicate OK [18:11:20]CreateOFDProtocolMessage done [18:11:20]OFDSenderStorePacket 92510 [18:11:20]StoreOFDPacket docnum=92510 [18:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 42 A9 26 01 76 8D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 CB D1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 69 01 00 35 04 06 00 01 E4 69 34 2B 6C 7D 6C FA 16 05 EE A3 20 [18:11:20]CheckFolder [18:11:20]dirname=/storage/ofd_packets [18:11:20]CheckFolder done [18:11:20]ProducePacketName [18:11:20]name=ofd_packets/00092510 [18:11:20]NVStorageSaveData ofd_packets/00092510 [18:11:20]File name is /storage/ofd_packets/00092510 [18:11:20]Write 332 bytes [18:11:20]NVStorageSaveData done [18:11:20]OFDSenderStorePacket done [18:11:20]KKMCreateOFDPacket done [18:11:20]NVStorageSaveData kkm_last_timestamp [18:11:20]File name is /storage/kkm_last_timestamp [18:11:20]Write 4 bytes [18:11:20]NVStorageSaveData done [18:11:20]ExternCall_PrintAddStr [18:11:20]wPrintStart [18:11:20]Write to MH i2c: 01 00 00 4B 30 7B [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 4B 30 00 00 00 00 00 FF 0F 90 [18:11:20]RasterBufferAndPrint [18:11:20]line Счет N : (3)127412 [18:11:20]line ИНН: 02508201610067 [18:11:20]line Контрольно-Кассовый Чек [18:11:20]line ПРОДАЖА [18:11:20]line Товар: 4870001159955 [18:11:20]line Вода ASU пит н.газ ПЭТ 1л [18:11:20]line 1.000 * 45.00 [18:11:20]line = 45.00 [18:11:20]line НДС 12% НСП 1% [18:11:20]line > о реализуемом товаре [18:11:20]line ИТОГО: 45.00 [18:11:20]line НСП 1% : 0.40 [18:11:20]line НДС 12% : 4.78 [18:11:20]line Наличными: 45.00 [18:11:20]line Безнал.: 0.00 [18:11:20]line Место: АЗС № 5 "Партнер Нефть" [18:11:20]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:11:20]line СНО: Общий режим [18:11:20]line Чек 161 14.09.2024 18:11 [18:11:20]line Смена: 506 ФФД: 1.0 [18:11:20]line ЗНМ: 03000000022 [18:11:20]line РНМ: 0000000000091423 [18:11:20]line Версия ККМ: 001 [18:11:20]line ФМ: 0000000000874692 [18:11:20]line ФД: 92510 [18:11:20]line ФПД: 2080529197932 [18:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T181123&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92510&fm=2080529197932&tin=02508201610067®Number=0000000000091423&sum=4500 [18:11:20]line 0 [18:11:20]written 0, free lines is 4095 [18:11:20]OFD Sender: Processing packet 92510 [packets to send 63, broken 62] [18:11:20]ProducePacketName [18:11:20]name=ofd_packets/00092510 [18:11:20]OFD Sender: To server: pG, [18:11:20]CommunicateWithHost lk.salyk.kg:30040 [18:11:20]ConnectInit lk.salyk.kg [18:11:20]Connected sock=10 [18:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2E 01 00 00 42 A9 26 01 76 8D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 CB D1 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 69 01 00 35 04 06 00 01 E4 69 34 2B 6C 7D 6C FA 16 05 EE A3 20 [18:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 78 1D 47 00 C1 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5E 69 01 00 F4 03 04 00 45 7A E5 66 B6 04 01 00 00 CF E1 9F 23 7C BA 63 D6 [18:11:20]CommunicateWithHost err = 0 [18:11:20]CheckOFDResponse [18:11:20]1017 (14) - 77093643461234 [18:11:20]1041 (16) - 0000000000874692 [18:11:20]1040 (4) - 92510 [18:11:20]1012 (4) - 14.09.2024 11:57 [18:11:20]1206 (1) - 0 [18:11:20]OFD Sender: Remove packet 92510 [18:11:20]ProducePacketName [18:11:20]name=ofd_packets/00092510 [18:11:20]NVStorageDeleteData [18:11:20]Write to MH i2c: 01 00 00 73 30 A3 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 73 30 00 00 00 00 00 2E 0D E5 [18:11:20]RasterBufferAndPrint [18:11:20]line [18:11:20]line [18:11:20]line [18:11:20]line [18:11:20]line [18:11:20]written 0, free lines is 3379 [18:11:20]MH_Cut [18:11:20]Write to MH i2c: D1 01 00 7A 30 01 7C [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: D1 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: D1 01 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: D1 01 00 7A 30 00 7B [18:11:20]Write to MH i2c: 01 00 00 7B 30 AB [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:21]OFD Sender: No OFD packet to send [18:11:21]*** Cut start [18:11:21]*** Purtial cut [18:11:21]*** Stage 1: CUTSNS_PIN = 1 [18:11:23]Read from MH i2c: 01 [18:11:23]MH_I2C_Read... [18:11:23]*** Stop cut motor [18:11:23]*** Cut end [18:11:23]Read from MH i2c: 01 07 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 07 00 7B 30 00 00 00 00 00 FF 0F C0 [18:11:23]process_action close_receipt done [18:11:23]requested_data is exist [18:11:23]produce_requested_data [18:11:23]requested_item fm.sn is exist - process it [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 11 00 00 [18:11:23]Write to MH i2c: E2 08 00 7C 30 80 11 00 00 00 00 00 00 26 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 17 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 17 00 7C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7D [18:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:11:23]wFMCommunicate OK [18:11:23]requested_item fd.num is exist - process it [18:11:23]SAM_PROTO_GetFieldsCounters [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 13 00 00 [18:11:23]Write to MH i2c: E2 08 00 7D 30 80 13 00 00 00 00 00 00 29 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 62 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 62 00 7D 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5E 69 01 00 0E 04 04 00 FA 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 EE [18:11:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5E 69 01 00 0E 04 04 00 FA 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 [18:11:23]wFMCommunicate OK [18:11:23]SAM_PROTO_GetFieldsCounters done [18:11:23]requested_item shift.num is exist - process it [18:11:23]requested_item shift.opened is exist - process it [18:11:23]req_shift_opened [18:11:23]FM_GetShiftState [18:11:23]SAM_PROTO_GetShiftState [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 13 01 00 [18:11:23]Write to MH i2c: E2 08 00 7E 30 80 13 01 00 00 00 00 00 2B [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 0E 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 0E 00 7E 30 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C5 [18:11:23]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:11:23]wFMCommunicate OK [18:11:23]SAM_PROTO_GetShiftState done [18:11:23]FM_GetShiftState done [18:11:23]req_shift_opened done [18:11:23]requested_item shift.open_date is exist - process it [18:11:23]req_shift_open_date [18:11:23]req_shift_open_date done [18:11:23]produce_requested_data done [18:11:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92510,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:11:23]process_action_free close_receipt [18:11:23]json_value_free [18:11:23]json_value_free done [18:11:23]process_json_proto returns [18:11:23]Send response to host [18:11:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92510,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:11:23]free response buf [18:11:23]execute_script done [18:11:23]execute_script returns [18:11:23]free content buf [18:11:23]Sock 9.Close socket [18:11:23]Sock 9.Thread stoped [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:08]accept exits with 8 [18:14:08]New connection [18:14:08]New thread 3066801508 created [18:14:08]Thread 3066658148 joined [18:14:08]Waiting for new connection... [18:14:08] Sock 8.Parse request [18:14:08]Sock 8.Check first char [18:14:08]Sock 8.First char is OK [18:14:08]request: POST /json_proto HTTP/1.0 [18:14:08]Method: POST [18:14:08]URL: /json_proto [18:14:08]Method is POST - this is cgi request [18:14:08]url: /json_proto [18:14:08]query_string will be loaded in cgi processing [18:14:08]execute_cgi json_proto POST (null) [18:14:08]execute_cgi path=json_proto method=POST [18:14:08]POST find Content-Length [18:14:08]Host: 172.17.57.71:8080 [18:14:08]Content-Length: 780 [18:14:08]Content-Type: application/json [18:14:08] [18:14:08]POST finish read [18:14:08]Found Content-Length = 780 [18:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127413", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:08]execute_script... [18:14: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)127413", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:08]POST & json_proto [18:14:08]process_json_proto [18:14:08]json parsed OK: [18:14:08]protocol is kg_v1.0 [18:14:08]action value=close_receipt [18:14:08]process_action close_receipt [18:14:08]cmd_close_receipt [18:14:08]MH_GetDate [18:14:08]Write to MH i2c: F0 00 00 7F 30 9E [18:14:08]Write i2c OK [18:14:08]MH_I2C_Read... [18:14:08]Read from MH i2c: F0 [18:14:08]MH_I2C_Read... [18:14:08]Read from MH i2c: F0 09 00 [18:14:08]MH_I2C_Read... [18:14:08]Read from MH i2c: F0 09 00 7F 30 00 75 D2 E5 66 33 3A A4 66 B0 [18:14:08]GetLastDocTimeStamp 1726337483 [18:14:08]current date 1726337653 [18:14:08]FM_GetShiftState [18:14:08]SAM_PROTO_GetShiftState [18:14:08]wFMCommunicate request_size=4 [18:14:08]MH_SAM_APDU [18:14:08]CAPDU: 80 13 01 00 [18:14:08]Write to MH i2c: E2 08 00 80 30 80 13 01 00 00 00 00 00 2D [18:14:08]Write i2c OK [18:14:08]MH_I2C_Read... [18:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:08]Read from MH i2c: E2 [18:14:08]MH_I2C_Read... [18:14:08]Read from MH i2c: E2 0E 00 [18:14:08]MH_I2C_Read... [18:14:08]Read from MH i2c: E2 0E 00 80 30 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C7 [18:14:08]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:14:08]wFMCommunicate OK [18:14:08]SAM_PROTO_GetShiftState done [18:14:08]FM_GetShiftState done [18:14:08]opened in 1726273389 [18:14:08]opened+sec_in_day 1726359789 [18:14:08]quantity*price = 11000 [18:14:08]sum+1 = 11001 [18:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 162 14.09.2024 18:14 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92511 ФПД: 144660032043329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T181413&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92511&fm=144660032043329&tin=02508201610067®Number=0000000000091423&sum=11000 0 [18:14:09]StoreToDocumentArchive [18:14:09]shift 506 fd 92511 [18:14:09]save to /storage/0506/doc_00092511 [18:14:09]save last doc name /storage/0506/doc_00092511 to /storage/kkm_last_doc_name [18:14:09]save OK [18:14:09]Clear old archive folders... [18:14:09]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:14:09]tlvbuf is 00FA7B30 [18:14:09]SAM_PROTO_ClearQueue [18:14:09]wFMCommunicate request_size=4 [18:14:09]MH_SAM_APDU [18:14:09]CAPDU: 80 09 00 00 [18:14:09]Write to MH i2c: E2 08 00 8D 30 80 09 00 00 00 00 00 00 2F [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 8D 30 00 90 00 31 [18:14:09]RAPDU: 90 00 [18:14:09]wFMCommunicate OK [18:14:09]SAM_PROTO_ClearQueue done [18:14:09]KKMCreateOFDPacket [18:14:09]OFDProtocolAddRootSTLVToBuf [18:14:09]FM_MakeSignedData [18:14:09]FM_MakeSignedData [18:14:09]SAM_PROTO_SignData [18:14:09]wFMCommunicate request_size=4 [18:14:09]MH_SAM_APDU [18:14:09]CAPDU: 80 0D 01 02 [18:14:09]Write to MH i2c: E2 08 00 8E 30 80 0D 01 02 00 00 00 00 37 [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 8E 30 00 90 00 32 [18:14:09]RAPDU: 90 00 [18:14:09]wFMCommunicate OK [18:14:09]wFMCommunicate request_size=255 [18:14:09]MH_SAM_APDU [18:14:09]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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 75 D2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [18:14:09]Write to MH i2c: E2 02 01 8F 30 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 75 D2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 D8 [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:10]Read from MH i2c: E2 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: E2 03 00 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: E2 03 00 8F 30 00 90 00 33 [18:14:10]RAPDU: 90 00 [18:14:10]wFMCommunicate OK [18:14:10]wFMCommunicate request_size=25 [18:14:10]MH_SAM_APDU [18:14:10]CAPDU: 80 0D 02 02 14 39 32 10 04 04 00 5F 69 01 00 35 04 06 00 83 91 49 D2 B9 41 [18:14:10]Write to MH i2c: E2 1C 00 90 30 80 0D 02 02 14 00 39 32 10 04 04 00 5F 69 01 00 35 04 06 00 83 91 49 D2 B9 41 00 00 16 [18:14:10]Write i2c OK [18:14:10]MH_I2C_Read... [18:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:10]Read from MH i2c: E2 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: E2 03 00 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: E2 03 00 90 30 00 90 00 34 [18:14:10]RAPDU: 90 00 [18:14:10]wFMCommunicate OK [18:14:10]wFMCommunicate request_size=4 [18:14:10]MH_SAM_APDU [18:14:10]CAPDU: 80 0D 03 02 [18:14:10]Write to MH i2c: E2 08 00 91 30 80 0D 03 02 00 00 00 00 3C [18:14:10]Write i2c OK [18:14:10]MH_I2C_Read... [18:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:10]Read from MH i2c: E2 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: E2 0B 00 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: E2 0B 00 91 30 00 68 AF 0B 81 FC 44 07 BD 90 00 E4 [18:14:10]RAPDU: 68 AF 0B 81 FC 44 07 BD 90 00 [18:14:10]wFMCommunicate OK [18:14:10]SAM_PROTO_SignData done [18:14:10]FM_MakeSignedData done [18:14:10]CreateOFDProtocolMessage [18:14:10]wFMCommunicate request_size=4 [18:14:10]MH_SAM_APDU [18:14:10]CAPDU: 80 11 00 00 [18:14:10]Write to MH i2c: E2 08 00 92 30 80 11 00 00 00 00 00 00 3C [18:14:10]Write i2c OK [18:14:10]MH_I2C_Read... [18:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:10]Read from MH i2c: E2 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: E2 17 00 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: E2 17 00 92 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 93 [18:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:14:10]wFMCommunicate OK [18:14:10]CreateOFDProtocolMessage done [18:14:10]OFDSenderStorePacket 92511 [18:14:10]StoreOFDPacket docnum=92511 [18:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 97 89 16 01 C7 98 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 75 D2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5F 69 01 00 35 04 06 00 83 91 49 D2 B9 41 68 AF 0B 81 FC 44 07 BD [18:14:10]CheckFolder [18:14:10]dirname=/storage/ofd_packets [18:14:10]CheckFolder done [18:14:10]ProducePacketName [18:14:10]name=ofd_packets/00092511 [18:14:10]NVStorageSaveData ofd_packets/00092511 [18:14:10]File name is /storage/ofd_packets/00092511 [18:14:10]Write 316 bytes [18:14:10]NVStorageSaveData done [18:14:10]OFDSenderStorePacket done [18:14:10]KKMCreateOFDPacket done [18:14:10]NVStorageSaveData kkm_last_timestamp [18:14:10]File name is /storage/kkm_last_timestamp [18:14:10]Write 4 bytes [18:14:10]NVStorageSaveData done [18:14:10]ExternCall_PrintAddStr [18:14:10]wPrintStart [18:14:10]Write to MH i2c: 01 00 00 93 30 C3 [18:14:10]Write i2c OK [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: 01 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: 01 07 00 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: 01 07 00 93 30 00 00 00 00 00 FF 0F D8 [18:14:10]RasterBufferAndPrint [18:14:10]line Счет N : (3)127413 [18:14:10]line ИНН: 02508201610067 [18:14:10]line Контрольно-Кассовый Чек [18:14:10]line ПРОДАЖА [18:14:10]line Товар: 4870001570071 [18:14:10]line Напиток Pepsi 1л [18:14:10]line 1.000 * 110.00 [18:14:10]line = 110.00 [18:14:10]line НДС 12% НСП 1% [18:14:10]line > о реализуемом товаре [18:14:10]line ИТОГО: 110.00 [18:14:10]line НСП 1% : 0.97 [18:14:10]line НДС 12% : 11.68 [18:14:10]line Наличными: 0.00 [18:14:10]line Безнал.: 110.00 [18:14:10]line Место: АЗС № 5 "Партнер Нефть" [18:14:10]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:14:10]line СНО: Общий режим [18:14:10]line Чек 162 14.09.2024 18:14 [18:14:10]line Смена: 506 ФФД: 1.0 [18:14:10]line ЗНМ: 03000000022 [18:14:10]line РНМ: 0000000000091423 [18:14:10]line Версия ККМ: 001 [18:14:10]line Платежная система: О! деньги [18:14:10]line ФМ: 0000000000874692 [18:14:10]line ФД: 92511 [18:14:10]line ФПД: 144660032043329 [18:14:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T181413&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92511&fm=144660032043329&tin=02508201610067®Number=0000000000091423&sum=11000 [18:14:10]line 0 [18:14:10]OFD Sender: Processing packet 92511 [packets to send 63, broken 62] [18:14:10]ProducePacketName [18:14:10]name=ofd_packets/00092511 [18:14:10]OFD Sender: To server: pG, [18:14:10]CommunicateWithHost lk.salyk.kg:30040 [18:14:10]ConnectInit lk.salyk.kg [18:14:10]written 0, free lines is 4095 [18:14:10]Connected sock=10 [18:14:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1E 01 00 00 97 89 16 01 C7 98 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 75 D2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5F 69 01 00 35 04 06 00 83 91 49 D2 B9 41 68 AF 0B 81 FC 44 07 BD [18:14:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C6 41 47 00 4F 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 5F 69 01 00 F4 03 04 00 EF 7A E5 66 B6 04 01 00 00 95 43 33 77 24 DF B5 71 [18:14:10]CommunicateWithHost err = 0 [18:14:10]CheckOFDResponse [18:14:10]1017 (14) - 77093643461234 [18:14:10]1041 (16) - 0000000000874692 [18:14:10]1040 (4) - 92511 [18:14:10]1012 (4) - 14.09.2024 12:00 [18:14:10]1206 (1) - 0 [18:14:10]OFD Sender: Remove packet 92511 [18:14:10]ProducePacketName [18:14:10]name=ofd_packets/00092511 [18:14:10]NVStorageDeleteData [18:14:11]Write to MH i2c: 01 00 00 BD 30 ED [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 BD 30 00 00 00 00 00 02 0D 03 [18:14:11]RasterBufferAndPrint [18:14:11]line [18:14:11]line [18:14:11]line [18:14:11]line [18:14:11]line [18:14:11]written 0, free lines is 3335 [18:14:11]MH_Cut [18:14:11]Write to MH i2c: D1 01 00 C4 30 01 C6 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: D1 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: D1 01 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: D1 01 00 C4 30 00 C5 [18:14:11]Write to MH i2c: 01 00 00 C5 30 F5 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]OFD Sender: No OFD packet to send [18:14:11]*** Cut start [18:14:11]*** Purtial cut [18:14:11]*** Stage 1: CUTSNS_PIN = 1 [18:14:13]Read from MH i2c: 01 [18:14:13]MH_I2C_Read... [18:14:13]*** Stop cut motor [18:14:13]*** Cut end [18:14:13]Read from MH i2c: 01 07 00 [18:14:13]MH_I2C_Read... [18:14:13]Read from MH i2c: 01 07 00 C5 30 00 00 00 00 00 FF 0F 0A [18:14:13]process_action close_receipt done [18:14:13]requested_data is exist [18:14:13]produce_requested_data [18:14:13]requested_item fm.sn is exist - process it [18:14:13]wFMCommunicate request_size=4 [18:14:13]MH_SAM_APDU [18:14:13]CAPDU: 80 11 00 00 [18:14:13]Write to MH i2c: E2 08 00 C6 30 80 11 00 00 00 00 00 00 70 [18:14:13]Write i2c OK [18:14:13]MH_I2C_Read... [18:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:13]Read from MH i2c: E2 [18:14:13]MH_I2C_Read... [18:14:13]Read from MH i2c: E2 17 00 [18:14:13]MH_I2C_Read... [18:14:13]Read from MH i2c: E2 17 00 C6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C7 [18:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:14:13]wFMCommunicate OK [18:14:13]requested_item fd.num is exist - process it [18:14:13]SAM_PROTO_GetFieldsCounters [18:14:13]wFMCommunicate request_size=4 [18:14:13]MH_SAM_APDU [18:14:13]CAPDU: 80 13 00 00 [18:14:13]Write to MH i2c: E2 08 00 C7 30 80 13 00 00 00 00 00 00 73 [18:14:13]Write i2c OK [18:14:13]MH_I2C_Read... [18:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:14]Read from MH i2c: E2 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: E2 62 00 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: E2 62 00 C7 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5F 69 01 00 0E 04 04 00 FA 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 3C [18:14:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 5F 69 01 00 0E 04 04 00 FA 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 [18:14:14]wFMCommunicate OK [18:14:14]SAM_PROTO_GetFieldsCounters done [18:14:14]requested_item shift.num is exist - process it [18:14:14]requested_item shift.opened is exist - process it [18:14:14]req_shift_opened [18:14:14]FM_GetShiftState [18:14:14]SAM_PROTO_GetShiftState [18:14:14]wFMCommunicate request_size=4 [18:14:14]MH_SAM_APDU [18:14:14]CAPDU: 80 13 01 00 [18:14:14]Write to MH i2c: E2 08 00 C8 30 80 13 01 00 00 00 00 00 75 [18:14:14]Write i2c OK [18:14:14]MH_I2C_Read... [18:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:14]Read from MH i2c: E2 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: E2 0E 00 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: E2 0E 00 C8 30 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0F [18:14:14]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:14:14]wFMCommunicate OK [18:14:14]SAM_PROTO_GetShiftState done [18:14:14]FM_GetShiftState done [18:14:14]req_shift_opened done [18:14:14]requested_item shift.open_date is exist - process it [18:14:14]req_shift_open_date [18:14:14]req_shift_open_date done [18:14:14]produce_requested_data done [18:14:14]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92511,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:14:14]process_action_free close_receipt [18:14:14]json_value_free [18:14:14]json_value_free done [18:14:14]process_json_proto returns [18:14:14]Send response to host [18:14:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92511,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:14:14]free response buf [18:14:14]execute_script done [18:14:14]execute_script returns [18:14:14]free content buf [18:14:14]Sock 8.Close socket [18:14:14]Sock 8.Thread stoped [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:28]accept exits with 9 [18:15:28]New connection [18:15:28]New thread 3066658148 created [18:15:28]Thread 3066801508 joined [18:15:28]Waiting for new connection... [18:15:28] Sock 9.Parse request [18:15:28]Sock 9.Check first char [18:15:28]Sock 9.First char is OK [18:15:28]request: POST /json_proto HTTP/1.0 [18:15:28]Method: POST [18:15:28]URL: /json_proto [18:15:28]Method is POST - this is cgi request [18:15:28]url: /json_proto [18:15:28]query_string will be loaded in cgi processing [18:15:28]execute_cgi json_proto POST (null) [18:15:28]execute_cgi path=json_proto method=POST [18:15:28]POST find Content-Length [18:15:28]Host: 172.17.57.71:8080 [18:15:28]Content-Length: 1097 [18:15:28]Content-Type: application/json [18:15:28] [18:15:28]POST finish read [18:15:28]Found Content-Length = 1097 [18:15:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127414", "tax_sys" : 0, "items" : [ { "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": "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:28]execute_script... [18:15: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)127414", "tax_sys" : 0, "items" : [ { "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": "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:28]POST & json_proto [18:15:28]process_json_proto [18:15:28]json parsed OK: [18:15:28]protocol is kg_v1.0 [18:15:28]action value=close_receipt [18:15:28]process_action close_receipt [18:15:28]cmd_close_receipt [18:15:28]MH_GetDate [18:15:28]Write to MH i2c: F0 00 00 C9 30 E8 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: F0 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: F0 09 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: F0 09 00 C9 30 00 C5 D2 E5 66 33 3A A4 66 4A [18:15:28]GetLastDocTimeStamp 1726337653 [18:15:28]current date 1726337733 [18:15:28]FM_GetShiftState [18:15:28]SAM_PROTO_GetShiftState [18:15:28]wFMCommunicate request_size=4 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 13 01 00 [18:15:28]Write to MH i2c: E2 08 00 CA 30 80 13 01 00 00 00 00 00 77 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 0E 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 0E 00 CA 30 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 11 [18:15:28]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:15:28]wFMCommunicate OK [18:15:28]SAM_PROTO_GetShiftState done [18:15:28]FM_GetShiftState done [18:15:28]opened in 1726273389 [18:15:28]opened+sec_in_day 1726359789 [18:15:28]quantity*price = 8500 [18:15:28]sum+1 = 8501 [18:15:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.81 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 163 14.09.2024 18:15 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92512 ФПД: 200750485841474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T181533&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92512&fm=200750485841474&tin=02508201610067®Number=0000000000091423&sum=13000 0 [18:15:30]StoreToDocumentArchive [18:15:30]shift 506 fd 92512 [18:15:30]save to /storage/0506/doc_00092512 [18:15:30]save last doc name /storage/0506/doc_00092512 to /storage/kkm_last_doc_name [18:15:30]save OK [18:15:30]Clear old archive folders... [18:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=397 [18:15:30]tlvbuf is B6F33A40 [18:15:30]SAM_PROTO_ClearQueue [18:15:30]wFMCommunicate request_size=4 [18:15:30]MH_SAM_APDU [18:15:30]CAPDU: 80 09 00 00 [18:15:30]Write to MH i2c: E2 08 00 D7 30 80 09 00 00 00 00 00 00 79 [18:15:30]Write i2c OK [18:15:30]MH_I2C_Read... [18:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:30]Read from MH i2c: E2 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 03 00 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 03 00 D7 30 00 90 00 7B [18:15:30]RAPDU: 90 00 [18:15:30]wFMCommunicate OK [18:15:30]SAM_PROTO_ClearQueue done [18:15:30]KKMCreateOFDPacket [18:15:30]OFDProtocolAddRootSTLVToBuf [18:15:30]FM_MakeSignedData [18:15:30]FM_MakeSignedData [18:15:30]SAM_PROTO_SignData [18:15:30]wFMCommunicate request_size=4 [18:15:30]MH_SAM_APDU [18:15:30]CAPDU: 80 0D 01 02 [18:15:30]Write to MH i2c: E2 08 00 D8 30 80 0D 01 02 00 00 00 00 81 [18:15:30]Write i2c OK [18:15:30]MH_I2C_Read... [18:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:30]Read from MH i2c: E2 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 03 00 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 03 00 D8 30 00 90 00 7C [18:15:30]RAPDU: 90 00 [18:15:30]wFMCommunicate OK [18:15:30]wFMCommunicate request_size=255 [18:15:30]MH_SAM_APDU [18:15:30]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 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 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 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 [18:15:30]Write to MH i2c: E2 02 01 D9 30 80 0D 02 02 FA 00 03 00 8D 01 1E 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 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 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 00 00 E9 [18:15:30]Write i2c OK [18:15:30]MH_I2C_Read... [18:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:30]Read from MH i2c: E2 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 03 00 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 03 00 D9 30 00 90 00 7D [18:15:30]RAPDU: 90 00 [18:15:30]wFMCommunicate OK [18:15:30]wFMCommunicate request_size=156 [18:15:30]MH_SAM_APDU [18:15:30]CAPDU: 80 0D 02 02 97 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 65 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C5 D2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 69 01 00 35 04 06 00 B6 94 DD 65 A6 42 [18:15:30]Write to MH i2c: E2 9F 00 DA 30 80 0D 02 02 97 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 65 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C5 D2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 69 01 00 35 04 06 00 B6 94 DD 65 A6 42 00 00 6E [18:15:30]Write i2c OK [18:15:30]MH_I2C_Read... [18:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:30]Read from MH i2c: E2 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 03 00 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 03 00 DA 30 00 90 00 7E [18:15:30]RAPDU: 90 00 [18:15:30]wFMCommunicate OK [18:15:30]wFMCommunicate request_size=4 [18:15:30]MH_SAM_APDU [18:15:30]CAPDU: 80 0D 03 02 [18:15:30]Write to MH i2c: E2 08 00 DB 30 80 0D 03 02 00 00 00 00 86 [18:15:30]Write i2c OK [18:15:30]MH_I2C_Read... [18:15:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:30]Read from MH i2c: E2 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 0B 00 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 0B 00 DB 30 00 F9 0E A3 A6 5A 53 55 8E 90 00 67 [18:15:30]RAPDU: F9 0E A3 A6 5A 53 55 8E 90 00 [18:15:30]wFMCommunicate OK [18:15:30]SAM_PROTO_SignData done [18:15:30]FM_MakeSignedData done [18:15:30]CreateOFDProtocolMessage [18:15:30]wFMCommunicate request_size=4 [18:15:30]MH_SAM_APDU [18:15:30]CAPDU: 80 11 00 00 [18:15:30]Write to MH i2c: E2 08 00 DC 30 80 11 00 00 00 00 00 00 86 [18:15:30]Write i2c OK [18:15:30]MH_I2C_Read... [18:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:30]Read from MH i2c: E2 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 17 00 [18:15:30]MH_I2C_Read... [18:15:30]Read from MH i2c: E2 17 00 DC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [18:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:15:30]wFMCommunicate OK [18:15:30]CreateOFDProtocolMessage done [18:15:30]OFDSenderStorePacket 92512 [18:15:30]StoreOFDPacket docnum=92512 [18:15:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 59 46 99 01 AF 2D 5A 03 01 00 03 00 8D 01 1E 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 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 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 65 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C5 D2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 69 01 00 35 04 06 00 B6 94 DD 65 A6 42 F9 0E A3 A6 5A 53 55 8E [18:15:30]CheckFolder [18:15:30]dirname=/storage/ofd_packets [18:15:30]CheckFolder done [18:15:30]ProducePacketName [18:15:30]name=ofd_packets/00092512 [18:15:30]NVStorageSaveData ofd_packets/00092512 [18:15:30]File name is /storage/ofd_packets/00092512 [18:15:30]Write 447 bytes [18:15:30]NVStorageSaveData done [18:15:30]OFDSenderStorePacket done [18:15:30]KKMCreateOFDPacket done [18:15:30]NVStorageSaveData kkm_last_timestamp [18:15:31]File name is /storage/kkm_last_timestamp [18:15:31]Write 4 bytes [18:15:31]NVStorageSaveData done [18:15:31]ExternCall_PrintAddStr [18:15:31]wPrintStart [18:15:31]Write to MH i2c: 01 00 00 DD 30 0D [18:15:31]OFD Sender: Processing packet 92512 [packets to send 63, broken 62] [18:15:31]ProducePacketName [18:15:31]name=ofd_packets/00092512 [18:15:31]OFD Sender: To server: pG, [18:15:31]CommunicateWithHost lk.salyk.kg:30040 [18:15:31]ConnectInit lk.salyk.kg [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: 01 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: 01 07 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: 01 07 00 DD 30 00 00 00 00 00 FF 0F 22 [18:15:31]RasterBufferAndPrint [18:15:31]line Счет N : (3)127414 [18:15:31]line ИНН: 02508201610067 [18:15:31]line Контрольно-Кассовый Чек [18:15:31]line ПРОДАЖА [18:15:31]line Товар: 4660085515163 [18:15:31]line Шок Батончик Сникерс супер 95/80г [18:15:31]line 1.000 * 85.00 [18:15:31]line = 85.00 [18:15:31]line НДС 12% НСП 1% [18:15:31]line > о реализуемом товаре [18:15:31]line Товар: 50173976 [18:15:31]line Жев Orbit Winterfresh под [18:15:31]line 1.000 * 45.00 [18:15:31]line = 45.00 [18:15:31]line НДС 12% НСП 1% [18:15:31]line > о реализуемом товаре [18:15:31]line ИТОГО: 130.00 [18:15:31]line НСП 1% : 1.15 [18:15:31]line НДС 12% : 13.81 [18:15:31]line Наличными: 0.00 [18:15:31]line Безнал.: 130.00 [18:15:31]line Место: АЗС № 5 "Партнер Нефть" [18:15:31]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:15:31]line СНО: Общий режим [18:15:31]line Чек 163 14.09.2024 18:15 [18:15:31]line Смена: 506 ФФД: 1.0 [18:15:31]line ЗНМ: 03000000022 [18:15:31]line РНМ: 0000000000091423 [18:15:31]line Версия ККМ: 001 [18:15:31]line Платежная система: О! деньги [18:15:31]line ФМ: 0000000000874692 [18:15:31]line ФД: 92512 [18:15:31]line ФПД: 200750485841474 [18:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T181533&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92512&fm=200750485841474&tin=02508201610067®Number=0000000000091423&sum=13000 [18:15:31]line 0 [18:15:31]written 0, free lines is 4095 [18:15:31]Connected sock=8 [18:15:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A1 01 00 00 59 46 99 01 AF 2D 5A 03 01 00 03 00 8D 01 1E 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 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 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 65 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C5 D2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 69 01 00 35 04 06 00 B6 94 DD 65 A6 42 F9 0E A3 A6 5A 53 55 8E [18:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 51 7A 47 00 55 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 60 69 01 00 F4 03 04 00 3F 7B E5 66 B6 04 01 00 00 87 03 92 92 DB 1B 1F 4E [18:15:31]CommunicateWithHost err = 0 [18:15:31]CheckOFDResponse [18:15:31]1017 (14) - 77093643461234 [18:15:31]1041 (16) - 0000000000874692 [18:15:31]1040 (4) - 92512 [18:15:31]1012 (4) - 14.09.2024 12:02 [18:15:31]1206 (1) - 0 [18:15:31]OFD Sender: Remove packet 92512 [18:15:31]ProducePacketName [18:15:31]name=ofd_packets/00092512 [18:15:31]NVStorageDeleteData [18:15:31]Write to MH i2c: 01 00 00 0E 31 3F [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: 01 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: 01 07 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: 01 07 00 0E 31 00 00 00 00 00 A9 0C FB [18:15:31]RasterBufferAndPrint [18:15:31]line [18:15:31]line [18:15:31]line [18:15:31]line [18:15:31]line [18:15:31]written 0, free lines is 3249 [18:15:31]MH_Cut [18:15:31]Write to MH i2c: D1 01 00 15 31 01 18 [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: D1 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: D1 01 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: D1 01 00 15 31 00 17 [18:15:31]Write to MH i2c: 01 00 00 16 31 47 [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]OFD Sender: No OFD packet to send [18:15:32]*** Cut start [18:15:32]*** Purtial cut [18:15:32]*** Stage 1: CUTSNS_PIN = 1 [18:15:34]Read from MH i2c: 01 [18:15:34]MH_I2C_Read... [18:15:34]*** Stop cut motor [18:15:34]*** Cut end [18:15:34]Read from MH i2c: 01 07 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: 01 07 00 16 31 00 00 00 00 00 FF 0F 5C [18:15:34]process_action close_receipt done [18:15:34]requested_data is exist [18:15:34]produce_requested_data [18:15:34]requested_item fm.sn is exist - process it [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 11 00 00 [18:15:34]Write to MH i2c: E2 08 00 17 31 80 11 00 00 00 00 00 00 C2 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:34]Read from MH i2c: E2 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 17 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 17 00 17 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 19 [18:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:15:34]wFMCommunicate OK [18:15:34]requested_item fd.num is exist - process it [18:15:34]SAM_PROTO_GetFieldsCounters [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 13 00 00 [18:15:34]Write to MH i2c: E2 08 00 18 31 80 13 00 00 00 00 00 00 C5 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:34]Read from MH i2c: E2 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 62 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 62 00 18 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 60 69 01 00 0E 04 04 00 FA 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 92 [18:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 60 69 01 00 0E 04 04 00 FA 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 [18:15:34]wFMCommunicate OK [18:15:34]SAM_PROTO_GetFieldsCounters done [18:15:34]requested_item shift.num is exist - process it [18:15:34]requested_item shift.opened is exist - process it [18:15:34]req_shift_opened [18:15:34]FM_GetShiftState [18:15:34]SAM_PROTO_GetShiftState [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 13 01 00 [18:15:34]Write to MH i2c: E2 08 00 19 31 80 13 01 00 00 00 00 00 C7 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:34]Read from MH i2c: E2 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 0E 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 0E 00 19 31 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 61 [18:15:34]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:15:34]wFMCommunicate OK [18:15:34]SAM_PROTO_GetShiftState done [18:15:34]FM_GetShiftState done [18:15:34]req_shift_opened done [18:15:34]requested_item shift.open_date is exist - process it [18:15:34]req_shift_open_date [18:15:34]req_shift_open_date done [18:15:34]produce_requested_data done [18:15:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92512,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:15:34]process_action_free close_receipt [18:15:34]json_value_free [18:15:34]json_value_free done [18:15:34]process_json_proto returns [18:15:34]Send response to host [18:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92512,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:15:34]free response buf [18:15:34]execute_script done [18:15:34]execute_script returns [18:15:34]free content buf [18:15:34]Sock 9.Close socket [18:15:34]Sock 9.Thread stoped [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16: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:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]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:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:36]accept exits with 10 [18:21:36]New connection [18:21:36]New thread 3066801508 created [18:21:36]Thread 3066658148 joined [18:21:36]Waiting for new connection... [18:21:36] Sock 10.Parse request [18:21:36]Sock 10.Check first char [18:21:36]Sock 10.First char is OK [18:21:36]request: POST /json_proto HTTP/1.0 [18:21:36]Method: POST [18:21:36]URL: /json_proto [18:21:36]Method is POST - this is cgi request [18:21:36]url: /json_proto [18:21:36]query_string will be loaded in cgi processing [18:21:36]execute_cgi json_proto POST (null) [18:21:36]execute_cgi path=json_proto method=POST [18:21:36]POST find Content-Length [18:21:36]Host: 172.17.57.71:8080 [18:21:36]Content-Length: 1766 [18:21:36]Content-Type: application/json [18:21:36] [18:21:36]POST finish read [18:21:36]Found Content-Length = 1766 [18:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127415", "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" : 6.000, "sum" : 42.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": "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": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 391.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:36]execute_script... [18:21: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)127415", "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" : 6.000, "sum" : 42.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": "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": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 391.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:36]POST & json_proto [18:21:36]process_json_proto [18:21:36]json parsed OK: [18:21:36]protocol is kg_v1.0 [18:21:36]action value=close_receipt [18:21:36]process_action close_receipt [18:21:36]cmd_close_receipt [18:21:36]MH_GetDate [18:21:36]Write to MH i2c: F0 00 00 1A 31 3A [18:21:36]Write i2c OK [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: F0 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: F0 09 00 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: F0 09 00 1A 31 00 35 D4 E5 66 33 3A A4 66 0E [18:21:36]GetLastDocTimeStamp 1726337733 [18:21:36]current date 1726338101 [18:21:36]FM_GetShiftState [18:21:36]SAM_PROTO_GetShiftState [18:21:36]wFMCommunicate request_size=4 [18:21:36]MH_SAM_APDU [18:21:36]CAPDU: 80 13 01 00 [18:21:36]Write to MH i2c: E2 08 00 1B 31 80 13 01 00 00 00 00 00 C9 [18:21:36]Write i2c OK [18:21:36]MH_I2C_Read... [18:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:36]Read from MH i2c: E2 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 0E 00 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 0E 00 1B 31 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 63 [18:21:36]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:21:36]wFMCommunicate OK [18:21:36]SAM_PROTO_GetShiftState done [18:21:36]FM_GetShiftState done [18:21:36]opened in 1726273389 [18:21:36]opened+sec_in_day 1726359789 [18:21:36]quantity*price = 4200 [18:21:36]sum+1 = 4201 [18:21:36]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% > о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235333 Пряники Яшкино с вареной сгущенкой 350г 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 391.00 НСП 1% : 3.46 НДС 12% : 41.52 Наличными: 0.00 Безнал.: 391.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 164 14.09.2024 18:21 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92513 ФПД: 232610126613400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T182141&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92513&fm=232610126613400&tin=02508201610067®Number=0000000000091423&sum=39100 0 [18:21:37]StoreToDocumentArchive [18:21:37]shift 506 fd 92513 [18:21:37]save to /storage/0506/doc_00092513 [18:21:37]save last doc name /storage/0506/doc_00092513 to /storage/kkm_last_doc_name [18:21:37]save OK [18:21:37]Clear old archive folders... [18:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=663 [18:21:37]tlvbuf is 010BC3A0 [18:21:37]SAM_PROTO_ClearQueue [18:21:37]wFMCommunicate request_size=4 [18:21:37]MH_SAM_APDU [18:21:37]CAPDU: 80 09 00 00 [18:21:37]Write to MH i2c: E2 08 00 28 31 80 09 00 00 00 00 00 00 CB [18:21:37]Write i2c OK [18:21:37]MH_I2C_Read... [18:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:37]Read from MH i2c: E2 [18:21:37]MH_I2C_Read... [18:21:37]Read from MH i2c: E2 03 00 [18:21:37]MH_I2C_Read... [18:21:37]Read from MH i2c: E2 03 00 28 31 00 90 00 CD [18:21:37]RAPDU: 90 00 [18:21:37]wFMCommunicate OK [18:21:37]SAM_PROTO_ClearQueue done [18:21:37]KKMCreateOFDPacket [18:21:37]OFDProtocolAddRootSTLVToBuf [18:21:37]FM_MakeSignedData [18:21:37]FM_MakeSignedData [18:21:37]SAM_PROTO_SignData [18:21:37]wFMCommunicate request_size=4 [18:21:37]MH_SAM_APDU [18:21:37]CAPDU: 80 0D 01 02 [18:21:37]Write to MH i2c: E2 08 00 29 31 80 0D 01 02 00 00 00 00 D3 [18:21:37]Write i2c OK [18:21:37]MH_I2C_Read... [18:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:37]Read from MH i2c: E2 [18:21:37]MH_I2C_Read... [18:21:37]Read from MH i2c: E2 03 00 [18:21:37]MH_I2C_Read... [18:21:37]Read from MH i2c: E2 03 00 29 31 00 90 00 CE [18:21:37]RAPDU: 90 00 [18:21:37]wFMCommunicate OK [18:21:37]wFMCommunicate request_size=255 [18:21:37]MH_SAM_APDU [18:21:37]CAPDU: 80 0D 02 02 FA 03 00 97 02 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 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 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 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 [18:21:37]Write to MH i2c: E2 02 01 2A 31 80 0D 02 02 FA 00 03 00 97 02 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 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 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 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 00 00 D3 [18:21:37]Write i2c OK [18:21:37]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 2A 31 00 90 00 CF [18:21:38]RAPDU: 90 00 [18:21:38]wFMCommunicate OK [18:21:38]wFMCommunicate request_size=255 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 0D 02 02 FA 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 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 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 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 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 [18:21:38]Write to MH i2c: E2 02 01 2B 31 80 0D 02 02 FA 00 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 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 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 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 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 00 3D [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 2B 31 00 90 00 D0 [18:21:38]RAPDU: 90 00 [18:21:38]wFMCommunicate OK [18:21:38]wFMCommunicate request_size=172 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 BC 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 35 D4 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 69 01 00 35 04 06 00 D3 8E C3 F7 CB 98 [18:21:38]Write to MH i2c: E2 AF 00 2C 31 80 0D 02 02 A7 00 00 01 FC 03 06 00 BC 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 35 D4 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 69 01 00 35 04 06 00 D3 8E C3 F7 CB 98 00 00 ED [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 03 00 2C 31 00 90 00 D1 [18:21:38]RAPDU: 90 00 [18:21:38]wFMCommunicate OK [18:21:38]wFMCommunicate request_size=4 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 0D 03 02 [18:21:38]Write to MH i2c: E2 08 00 2D 31 80 0D 03 02 00 00 00 00 D9 [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 0B 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 0B 00 2D 31 00 86 A6 88 85 F2 F2 E9 DA 90 00 BA [18:21:38]RAPDU: 86 A6 88 85 F2 F2 E9 DA 90 00 [18:21:38]wFMCommunicate OK [18:21:38]SAM_PROTO_SignData done [18:21:38]FM_MakeSignedData done [18:21:38]CreateOFDProtocolMessage [18:21:38]wFMCommunicate request_size=4 [18:21:38]MH_SAM_APDU [18:21:38]CAPDU: 80 11 00 00 [18:21:38]Write to MH i2c: E2 08 00 2E 31 80 11 00 00 00 00 00 00 D9 [18:21:38]Write i2c OK [18:21:38]MH_I2C_Read... [18:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:38]Read from MH i2c: E2 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 17 00 [18:21:38]MH_I2C_Read... [18:21:38]Read from MH i2c: E2 17 00 2E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 30 [18:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:21:38]wFMCommunicate OK [18:21:38]CreateOFDProtocolMessage done [18:21:38]OFDSenderStorePacket 92513 [18:21:38]StoreOFDPacket docnum=92513 [18:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AB 02 00 00 09 AD A3 02 BB CA 5A 03 01 00 03 00 97 02 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 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 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 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 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 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 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 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 BC 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 35 D4 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 69 01 00 35 04 06 00 D3 8E C3 F7 CB 98 86 A6 88 85 F2 F2 E9 DA [18:21:38]CheckFolder [18:21:38]dirname=/storage/ofd_packets [18:21:38]CheckFolder done [18:21:38]ProducePacketName [18:21:38]name=ofd_packets/00092513 [18:21:38]NVStorageSaveData ofd_packets/00092513 [18:21:38]File name is /storage/ofd_packets/00092513 [18:21:38]Write 713 bytes [18:21:38]NVStorageSaveData done [18:21:38]OFDSenderStorePacket done [18:21:38]KKMCreateOFDPacket done [18:21:38]NVStorageSaveData kkm_last_timestamp [18:21:38]File name is /storage/kkm_last_timestamp [18:21:39]Write 4 bytes [18:21:39]NVStorageSaveData done [18:21:39]ExternCall_PrintAddStr [18:21:39]wPrintStart [18:21:39]Write to MH i2c: 01 00 00 2F 31 60 [18:21:39]OFD Sender: Processing packet 92513 [packets to send 63, broken 62] [18:21:39]ProducePacketName [18:21:39]name=ofd_packets/00092513 [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]OFD Sender: To server: pG, [18:21:39]CommunicateWithHost lk.salyk.kg:30040 [18:21:39]ConnectInit lk.salyk.kg [18:21:39]Read from MH i2c: 01 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: 01 07 00 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: 01 07 00 2F 31 00 00 00 00 00 FF 0F 75 [18:21:39]RasterBufferAndPrint [18:21:39]line Счет N : (3)127415 [18:21:39]line ИНН: 02508201610067 [18:21:39]line Контрольно-Кассовый Чек [18:21:39]line ПРОДАЖА [18:21:39]line Товар: 2000053020015 [18:21:39]line Бумажные стаканы 250мл 1шт [18:21:39]line 6.000 * 7.00 [18:21:39]line = 42.00 [18:21:39]line НДС 12% НСП 1% [18:21:39]line > о реализуемом товаре [18:21:39]line Товар: 5449000054227 [18:21:39]line Напиток Кока-Кола 1л [18:21:39]line 1.000 * 105.00 [18:21:39]line = 105.00 [18:21:39]line НДС 12% НСП 1% [18:21:39]line > о реализуемом товаре [18:21:39]line Товар: 4631150682851 [18:21:39]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [18:21:39]line 1.000 * 95.00 [18:21:39]line = 95.00 [18:21:39]line НДС 12% НСП 1% [18:21:39]line > о реализуемом товаре [18:21:39]line Товар: 4607015235333 [18:21:39]line Пряники Яшкино с вареной сгущенкой 350г [18:21:39]line 1.000 * 149.00 [18:21:39]line = 149.00 [18:21:39]line НДС 12% НСП 1% [18:21:39]line > о реализуемом товаре [18:21:39]line ИТОГО: 391.00 [18:21:39]line НСП 1% : 3.46 [18:21:39]line НДС 12% : 41.52 [18:21:39]line Наличными: 0.00 [18:21:39]line Безнал.: 391.00 [18:21:39]line Место: АЗС № 5 "Партнер Нефть" [18:21:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:21:39]line СНО: Общий режим [18:21:39]line Чек 164 14.09.2024 18:21 [18:21:39]line Смена: 506 ФФД: 1.0 [18:21:39]line ЗНМ: 03000000022 [18:21:39]line РНМ: 0000000000091423 [18:21:39]line Версия ККМ: 001 [18:21:39]line Платежная система: О! деньги [18:21:39]line ФМ: 0000000000874692 [18:21:39]line ФД: 92513 [18:21:39]line ФПД: 232610126613400 [18:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T182141&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92513&fm=232610126613400&tin=02508201610067®Number=0000000000091423&sum=39100 [18:21:39]line 0 [18:21:39]written 0, free lines is 4095 [18:21:39]Connected sock=9 [18:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AB 02 00 00 09 AD A3 02 BB CA 5A 03 01 00 03 00 97 02 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 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 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 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 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 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 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 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 BC 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 35 D4 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 69 01 00 35 04 06 00 D3 8E C3 F7 CB 98 86 A6 88 85 F2 F2 E9 DA [18:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BC 6E 47 00 58 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 61 69 01 00 F4 03 04 00 AF 7C E5 66 B6 04 01 00 00 CB 3D 07 14 C5 08 8D FF [18:21:39]CommunicateWithHost err = 0 [18:21:39]CheckOFDResponse [18:21:39]1017 (14) - 77093643461234 [18:21:39]1041 (16) - 0000000000874692 [18:21:39]1040 (4) - 92513 [18:21:39]1012 (4) - 14.09.2024 12:08 [18:21:39]1206 (1) - 0 [18:21:39]OFD Sender: Remove packet 92513 [18:21:39]ProducePacketName [18:21:39]name=ofd_packets/00092513 [18:21:39]NVStorageDeleteData [18:21:39]Write to MH i2c: 01 00 00 6E 31 9F [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: 01 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: 01 07 00 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: 01 07 00 6E 31 00 00 00 00 00 F7 0B A8 [18:21:39]RasterBufferAndPrint [18:21:39]line [18:21:39]line [18:21:39]line [18:21:39]line [18:21:39]line [18:21:39]written 0, free lines is 3074 [18:21:39]MH_Cut [18:21:39]Write to MH i2c: D1 01 00 75 31 01 78 [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: D1 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: D1 01 00 [18:21:39]MH_I2C_Read... [18:21:39]Read from MH i2c: D1 01 00 75 31 00 77 [18:21:39]Write to MH i2c: 01 00 00 76 31 A7 [18:21:39]Write i2c OK [18:21:39]MH_I2C_Read... [18:21:39]OFD Sender: No OFD packet to send [18:21:40]*** Cut start [18:21:40]*** Purtial cut [18:21:40]*** Stage 1: CUTSNS_PIN = 1 [18:21:42]Read from MH i2c: 01 [18:21:42]MH_I2C_Read... [18:21:42]*** Stop cut motor [18:21:42]*** Cut end [18:21:42]Read from MH i2c: 01 07 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: 01 07 00 76 31 00 00 00 00 00 FF 0F BC [18:21:42]process_action close_receipt done [18:21:42]requested_data is exist [18:21:42]produce_requested_data [18:21:42]requested_item fm.sn is exist - process it [18:21:42]wFMCommunicate request_size=4 [18:21:42]MH_SAM_APDU [18:21:42]CAPDU: 80 11 00 00 [18:21:42]Write to MH i2c: E2 08 00 77 31 80 11 00 00 00 00 00 00 22 [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:42]Read from MH i2c: E2 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 17 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 17 00 77 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 79 [18:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:21:42]wFMCommunicate OK [18:21:42]requested_item fd.num is exist - process it [18:21:42]SAM_PROTO_GetFieldsCounters [18:21:42]wFMCommunicate request_size=4 [18:21:42]MH_SAM_APDU [18:21:42]CAPDU: 80 13 00 00 [18:21:42]Write to MH i2c: E2 08 00 78 31 80 13 00 00 00 00 00 00 25 [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:42]Read from MH i2c: E2 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 62 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 62 00 78 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 61 69 01 00 0E 04 04 00 FA 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 F6 [18:21:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 61 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:42]wFMCommunicate OK [18:21:42]SAM_PROTO_GetFieldsCounters done [18:21:42]requested_item shift.num is exist - process it [18:21:42]requested_item shift.opened is exist - process it [18:21:42]req_shift_opened [18:21:42]FM_GetShiftState [18:21:42]SAM_PROTO_GetShiftState [18:21:42]wFMCommunicate request_size=4 [18:21:42]MH_SAM_APDU [18:21:42]CAPDU: 80 13 01 00 [18:21:42]Write to MH i2c: E2 08 00 79 31 80 13 01 00 00 00 00 00 27 [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:42]Read from MH i2c: E2 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 0E 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 0E 00 79 31 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C1 [18:21:42]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:21:42]wFMCommunicate OK [18:21:42]SAM_PROTO_GetShiftState done [18:21:42]FM_GetShiftState done [18:21:42]req_shift_opened done [18:21:42]requested_item shift.open_date is exist - process it [18:21:42]req_shift_open_date [18:21:42]req_shift_open_date done [18:21:42]produce_requested_data done [18:21:42]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92513,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:21:42]process_action_free close_receipt [18:21:42]json_value_free [18:21:42]json_value_free done [18:21:42]process_json_proto returns [18:21:42]Send response to host [18:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92513,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:21:42]free response buf [18:21:42]execute_script done [18:21:42]execute_script returns [18:21:42]free content buf [18:21:42]Sock 10.Close socket [18:21:42]Sock 10.Thread stoped [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:29:56]accept exits with 8 [18:29:56]New connection [18:29:56]New thread 3066658148 created [18:29:56]Thread 3066801508 joined [18:29:56]Waiting for new connection... [18:29:56] Sock 8.Parse request [18:29:56]Sock 8.Check first char [18:29:56]Sock 8.First char is OK [18:29:56]request: POST /json_proto HTTP/1.0 [18:29:56]Method: POST [18:29:56]URL: /json_proto [18:29:56]Method is POST - this is cgi request [18:29:56]url: /json_proto [18:29:56]query_string will be loaded in cgi processing [18:29:56]execute_cgi json_proto POST (null) [18:29:56]execute_cgi path=json_proto method=POST [18:29:56]POST find Content-Length [18:29:56]Host: 172.17.57.71:8080 [18:29:56]Content-Length: 811 [18:29:56]Content-Type: application/json [18:29:56] [18:29:56]POST finish read [18:29:56]Found Content-Length = 811 [18:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127416", "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: \u041E! \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" ] } } [18:29:56]execute_script... [18:29: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)127416", "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: \u041E! \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" ] } } [18:29:56]POST & json_proto [18:29:56]process_json_proto [18:29:56]json parsed OK: [18:29:56]protocol is kg_v1.0 [18:29:56]action value=close_receipt [18:29:56]process_action close_receipt [18:29:56]cmd_close_receipt [18:29:56]MH_GetDate [18:29:56]Write to MH i2c: F0 00 00 7A 31 9A [18:29:56]Write i2c OK [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: F0 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: F0 09 00 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: F0 09 00 7A 31 00 29 D6 E5 66 33 3A A4 66 64 [18:29:56]GetLastDocTimeStamp 1726338101 [18:29:56]current date 1726338601 [18:29:56]FM_GetShiftState [18:29:56]SAM_PROTO_GetShiftState [18:29:56]wFMCommunicate request_size=4 [18:29:56]MH_SAM_APDU [18:29:56]CAPDU: 80 13 01 00 [18:29:56]Write to MH i2c: E2 08 00 7B 31 80 13 01 00 00 00 00 00 29 [18:29:56]Write i2c OK [18:29:56]MH_I2C_Read... [18:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:56]Read from MH i2c: E2 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: E2 0E 00 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: E2 0E 00 7B 31 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 C3 [18:29:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:29:56]wFMCommunicate OK [18:29:56]SAM_PROTO_GetShiftState done [18:29:56]FM_GetShiftState done [18:29:56]opened in 1726273389 [18:29:56]opened+sec_in_day 1726359789 [18:29:56]quantity*price = 6000 [18:29:56]sum+1 = 6001 [18:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 165 14.09.2024 18:30 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92514 ФПД: 215603161966843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T183001&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92514&fm=215603161966843&tin=02508201610067®Number=0000000000091423&sum=6000 0 [18:29:57]StoreToDocumentArchive [18:29:57]shift 506 fd 92514 [18:29:57]save to /storage/0506/doc_00092514 [18:29:57]save last doc name /storage/0506/doc_00092514 to /storage/kkm_last_doc_name [18:29:57]save OK [18:29:57]Clear old archive folders... [18:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:29:57]tlvbuf is 01048D40 [18:29:57]SAM_PROTO_ClearQueue [18:29:57]wFMCommunicate request_size=4 [18:29:57]MH_SAM_APDU [18:29:57]CAPDU: 80 09 00 00 [18:29:57]Write to MH i2c: E2 08 00 88 31 80 09 00 00 00 00 00 00 2B [18:29:57]Write i2c OK [18:29:57]MH_I2C_Read... [18:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:57]Read from MH i2c: E2 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 03 00 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 03 00 88 31 00 90 00 2D [18:29:57]RAPDU: 90 00 [18:29:57]wFMCommunicate OK [18:29:57]SAM_PROTO_ClearQueue done [18:29:57]KKMCreateOFDPacket [18:29:57]OFDProtocolAddRootSTLVToBuf [18:29:57]FM_MakeSignedData [18:29:57]FM_MakeSignedData [18:29:57]SAM_PROTO_SignData [18:29:57]wFMCommunicate request_size=4 [18:29:57]MH_SAM_APDU [18:29:57]CAPDU: 80 0D 01 02 [18:29:57]Write to MH i2c: E2 08 00 89 31 80 0D 01 02 00 00 00 00 33 [18:29:57]Write i2c OK [18:29:57]MH_I2C_Read... [18:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:57]Read from MH i2c: E2 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 03 00 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 03 00 89 31 00 90 00 2E [18:29:57]RAPDU: 90 00 [18:29:57]wFMCommunicate OK [18:29:57]wFMCommunicate request_size=255 [18:29:57]MH_SAM_APDU [18:29:57]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 A5 00 00 00 F4 03 04 00 29 D6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [18:29:57]Write to MH i2c: E2 02 01 8A 31 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 A5 00 00 00 F4 03 04 00 29 D6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 52 [18:29:57]Write i2c OK [18:29:57]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 8A 31 00 90 00 2F [18:29:58]RAPDU: 90 00 [18:29:58]wFMCommunicate OK [18:29:58]wFMCommunicate request_size=35 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 69 01 00 35 04 06 00 C4 17 05 E1 A8 FB [18:29:58]Write to MH i2c: E2 26 00 8B 31 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 69 01 00 35 04 06 00 C4 17 05 E1 A8 FB 00 00 5D [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 8B 31 00 90 00 30 [18:29:58]RAPDU: 90 00 [18:29:58]wFMCommunicate OK [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 0D 03 02 [18:29:58]Write to MH i2c: E2 08 00 8C 31 80 0D 03 02 00 00 00 00 38 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 0B 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 0B 00 8C 31 00 29 06 25 96 6E EE 6E 4E 90 00 3B [18:29:58]RAPDU: 29 06 25 96 6E EE 6E 4E 90 00 [18:29:58]wFMCommunicate OK [18:29:58]SAM_PROTO_SignData done [18:29:58]FM_MakeSignedData done [18:29:58]CreateOFDProtocolMessage [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 11 00 00 [18:29:58]Write to MH i2c: E2 08 00 8D 31 80 11 00 00 00 00 00 00 38 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 17 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 17 00 8D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8F [18:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:29:58]wFMCommunicate OK [18:29:58]CreateOFDProtocolMessage done [18:29:58]OFDSenderStorePacket 92514 [18:29:58]StoreOFDPacket docnum=92514 [18:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 97 2C 20 01 29 76 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 A5 00 00 00 F4 03 04 00 29 D6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 69 01 00 35 04 06 00 C4 17 05 E1 A8 FB 29 06 25 96 6E EE 6E 4E [18:29:58]CheckFolder [18:29:58]dirname=/storage/ofd_packets [18:29:58]CheckFolder done [18:29:58]ProducePacketName [18:29:58]name=ofd_packets/00092514 [18:29:58]NVStorageSaveData ofd_packets/00092514 [18:29:58]File name is /storage/ofd_packets/00092514 [18:29:58]Write 326 bytes [18:29:58]NVStorageSaveData done [18:29:58]OFDSenderStorePacket done [18:29:58]KKMCreateOFDPacket done [18:29:58]NVStorageSaveData kkm_last_timestamp [18:29:58]File name is /storage/kkm_last_timestamp [18:29:58]Write 4 bytes [18:29:58]NVStorageSaveData done [18:29:58]ExternCall_PrintAddStr [18:29:58]wPrintStart [18:29:58]Write to MH i2c: 01 00 00 8E 31 BF [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: 01 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: 01 07 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: 01 07 00 8E 31 00 00 00 00 00 FF 0F D4 [18:29:58]RasterBufferAndPrint [18:29:58]line Счет N : (3)127416 [18:29:58]line ИНН: 02508201610067 [18:29:58]line Контрольно-Кассовый Чек [18:29:58]line ПРОДАЖА [18:29:58]line Товар: 4700000310043 [18:29:58]line Вода Жалалабат 27 1л [18:29:58]line 1.000 * 60.00 [18:29:58]line = 60.00 [18:29:58]line НДС 12% НСП 1% [18:29:58]line > о реализуемом товаре [18:29:58]line ИТОГО: 60.00 [18:29:58]line НСП 1% : 0.53 [18:29:58]line НДС 12% : 6.37 [18:29:58]line Наличными: 0.00 [18:29:58]line Безнал.: 60.00 [18:29:58]line Место: АЗС № 5 "Партнер Нефть" [18:29:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:29:58]line СНО: Общий режим [18:29:58]line Чек 165 14.09.2024 18:30 [18:29:58]line Смена: 506 ФФД: 1.0 [18:29:58]line ЗНМ: 03000000022 [18:29:58]line РНМ: 0000000000091423 [18:29:58]line Версия ККМ: 001 [18:29:58]line Платежная система: О! деньги [18:29:58]line ФМ: 0000000000874692 [18:29:58]line ФД: 92514 [18:29:58]line ФПД: 215603161966843 [18:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T183001&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92514&fm=215603161966843&tin=02508201610067®Number=0000000000091423&sum=6000 [18:29:58]line 0 [18:29:58]written 0, free lines is 4095 [18:29:58]OFD Sender: Processing packet 92514 [packets to send 63, broken 62] [18:29:58]ProducePacketName [18:29:58]name=ofd_packets/00092514 [18:29:58]OFD Sender: To server: pG, [18:29:58]CommunicateWithHost lk.salyk.kg:30040 [18:29:58]ConnectInit lk.salyk.kg [18:29:58]Connected sock=10 [18:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 97 2C 20 01 29 76 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 A5 00 00 00 F4 03 04 00 29 D6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 69 01 00 35 04 06 00 C4 17 05 E1 A8 FB 29 06 25 96 6E EE 6E 4E [18:29:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6D 83 47 00 62 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 62 69 01 00 F4 03 04 00 A3 7E E5 66 B6 04 01 00 00 50 CF AF 64 F8 28 D7 DA [18:29:58]CommunicateWithHost err = 0 [18:29:58]CheckOFDResponse [18:29:58]1017 (14) - 77093643461234 [18:29:58]1041 (16) - 0000000000874692 [18:29:58]1040 (4) - 92514 [18:29:58]1012 (4) - 14.09.2024 12:16 [18:29:58]1206 (1) - 0 [18:29:58]OFD Sender: Remove packet 92514 [18:29:58]ProducePacketName [18:29:58]name=ofd_packets/00092514 [18:29:58]NVStorageDeleteData [18:29:59]Write to MH i2c: 01 00 00 B8 31 E9 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: 01 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: 01 07 00 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: 01 07 00 B8 31 00 00 00 00 00 0C 0D 09 [18:29:59]RasterBufferAndPrint [18:29:59]line [18:29:59]line [18:29:59]line [18:29:59]line [18:29:59]line [18:29:59]written 0, free lines is 3345 [18:29:59]MH_Cut [18:29:59]Write to MH i2c: D1 01 00 BF 31 01 C2 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: D1 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: D1 01 00 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: D1 01 00 BF 31 00 C1 [18:29:59]Write to MH i2c: 01 00 00 C0 31 F1 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]OFD Sender: No OFD packet to send [18:29:59]*** Cut start [18:29:59]*** Purtial cut [18:29:59]*** Stage 1: CUTSNS_PIN = 1 [18:30:01]Read from MH i2c: 01 [18:30:01]MH_I2C_Read... [18:30:01]*** Stop cut motor [18:30:01]*** Cut end [18:30:01]Read from MH i2c: 01 07 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: 01 07 00 C0 31 00 00 00 00 00 FF 0F 06 [18:30:01]process_action close_receipt done [18:30:01]requested_data is exist [18:30:01]produce_requested_data [18:30:01]requested_item fm.sn is exist - process it [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 11 00 00 [18:30:01]Write to MH i2c: E2 08 00 C1 31 80 11 00 00 00 00 00 00 6C [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 17 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 17 00 C1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C3 [18:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:30:01]wFMCommunicate OK [18:30:01]requested_item fd.num is exist - process it [18:30:01]SAM_PROTO_GetFieldsCounters [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 13 00 00 [18:30:01]Write to MH i2c: E2 08 00 C2 31 80 13 00 00 00 00 00 00 6F [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 62 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 62 00 C2 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 62 69 01 00 0E 04 04 00 FA 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 44 [18:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 62 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:02]wFMCommunicate OK [18:30:02]SAM_PROTO_GetFieldsCounters done [18:30:02]requested_item shift.num is exist - process it [18:30:02]requested_item shift.opened is exist - process it [18:30:02]req_shift_opened [18:30:02]FM_GetShiftState [18:30:02]SAM_PROTO_GetShiftState [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 13 01 00 [18:30:02]Write to MH i2c: E2 08 00 C3 31 80 13 01 00 00 00 00 00 71 [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0E 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0E 00 C3 31 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0B [18:30:02]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:30:02]wFMCommunicate OK [18:30:02]SAM_PROTO_GetShiftState done [18:30:02]FM_GetShiftState done [18:30:02]req_shift_opened done [18:30:02]requested_item shift.open_date is exist - process it [18:30:02]req_shift_open_date [18:30:02]req_shift_open_date done [18:30:02]produce_requested_data done [18:30:02]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92514,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:30:02]process_action_free close_receipt [18:30:02]json_value_free [18:30:02]json_value_free done [18:30:02]process_json_proto returns [18:30:02]Send response to host [18:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92514,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:30:02]free response buf [18:30:02]execute_script done [18:30:02]execute_script returns [18:30:02]free content buf [18:30:02]Sock 8.Close socket [18:30:02]Sock 8.Thread stoped [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:01]accept exits with 9 [18:41:01]New connection [18:41:01]New thread 3066801508 created [18:41:01]Thread 3066658148 joined [18:41:01]Waiting for new connection... [18:41:01] Sock 9.Parse request [18:41:01]Sock 9.Check first char [18:41:01]Sock 9.First char is OK [18:41:01]request: POST /json_proto HTTP/1.0 [18:41:01]Method: POST [18:41:01]URL: /json_proto [18:41:01]Method is POST - this is cgi request [18:41:01]url: /json_proto [18:41:01]query_string will be loaded in cgi processing [18:41:01]execute_cgi json_proto POST (null) [18:41:01]execute_cgi path=json_proto method=POST [18:41:01]POST find Content-Length [18:41:01]Host: 172.17.57.71:8080 [18:41:01]Content-Length: 665 [18:41:01]Content-Type: application/json [18:41:01] [18:41:01]POST finish read [18:41:01]Found Content-Length = 665 [18:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127417", "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 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:01]execute_script... [18:41: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)127417", "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 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:01]POST & json_proto [18:41:01]process_json_proto [18:41:01]json parsed OK: [18:41:01]protocol is kg_v1.0 [18:41:01]action value=close_receipt [18:41:01]process_action close_receipt [18:41:01]cmd_close_receipt [18:41:01]MH_GetDate [18:41:01]Write to MH i2c: F0 00 00 C4 31 E4 [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: F0 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: F0 09 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: F0 09 00 C4 31 00 C2 D8 E5 66 33 3A A4 66 49 [18:41:01]GetLastDocTimeStamp 1726338601 [18:41:01]current date 1726339266 [18:41:01]FM_GetShiftState [18:41:01]SAM_PROTO_GetShiftState [18:41:01]wFMCommunicate request_size=4 [18:41:01]MH_SAM_APDU [18:41:01]CAPDU: 80 13 01 00 [18:41:01]Write to MH i2c: E2 08 00 C5 31 80 13 01 00 00 00 00 00 73 [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:01]Read from MH i2c: E2 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 0E 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 0E 00 C5 31 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 0D [18:41:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:41:01]wFMCommunicate OK [18:41:01]SAM_PROTO_GetShiftState done [18:41:01]FM_GetShiftState done [18:41:01]opened in 1726273389 [18:41:01]opened+sec_in_day 1726359789 [18:41:01]quantity*price = 9500 [18:41:01]sum+1 = 9501 [18:41:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 166 14.09.2024 18:41 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92515 ФПД: 231603877743123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T184106&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92515&fm=231603877743123&tin=02508201610067®Number=0000000000091423&sum=9500 0 [18:41:02]StoreToDocumentArchive [18:41:02]shift 506 fd 92515 [18:41:02]save to /storage/0506/doc_00092515 [18:41:02]save last doc name /storage/0506/doc_00092515 to /storage/kkm_last_doc_name [18:41:02]save OK [18:41:02]Clear old archive folders... [18:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=296 [18:41:02]tlvbuf is B6F33800 [18:41:02]SAM_PROTO_ClearQueue [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 09 00 00 [18:41:02]Write to MH i2c: E2 08 00 D2 31 80 09 00 00 00 00 00 00 75 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 03 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [18:41:02]RAPDU: 90 00 [18:41:02]wFMCommunicate OK [18:41:02]SAM_PROTO_ClearQueue done [18:41:02]KKMCreateOFDPacket [18:41:02]OFDProtocolAddRootSTLVToBuf [18:41:02]FM_MakeSignedData [18:41:02]FM_MakeSignedData [18:41:02]SAM_PROTO_SignData [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 0D 01 02 [18:41:02]Write to MH i2c: E2 08 00 D3 31 80 0D 01 02 00 00 00 00 7D [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 03 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 03 00 D3 31 00 90 00 78 [18:41:02]RAPDU: 90 00 [18:41:02]wFMCommunicate OK [18:41:02]wFMCommunicate request_size=255 [18:41:02]MH_SAM_APDU [18:41:02]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 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 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 A6 00 00 00 F4 03 04 00 C2 D8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [18:41:02]Write to MH i2c: E2 02 01 D4 31 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 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 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 A6 00 00 00 F4 03 04 00 C2 D8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 83 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:03]Read from MH i2c: E2 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 03 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 03 00 D4 31 00 90 00 79 [18:41:03]RAPDU: 90 00 [18:41:03]wFMCommunicate OK [18:41:03]wFMCommunicate request_size=55 [18:41:03]MH_SAM_APDU [18:41:03]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 69 01 00 35 04 06 00 D2 A4 7A DC 8A 13 [18:41:03]Write to MH i2c: E2 3A 00 D5 31 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 69 01 00 35 04 06 00 D2 A4 7A DC 8A 13 00 00 0D [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:03]Read from MH i2c: E2 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 03 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 03 00 D5 31 00 90 00 7A [18:41:03]RAPDU: 90 00 [18:41:03]wFMCommunicate OK [18:41:03]wFMCommunicate request_size=4 [18:41:03]MH_SAM_APDU [18:41:03]CAPDU: 80 0D 03 02 [18:41:03]Write to MH i2c: E2 08 00 D6 31 80 0D 03 02 00 00 00 00 82 [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:03]Read from MH i2c: E2 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 0B 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 0B 00 D6 31 00 E5 3E 71 6E 88 ED 50 0D 90 00 57 [18:41:03]RAPDU: E5 3E 71 6E 88 ED 50 0D 90 00 [18:41:03]wFMCommunicate OK [18:41:03]SAM_PROTO_SignData done [18:41:03]FM_MakeSignedData done [18:41:03]CreateOFDProtocolMessage [18:41:03]wFMCommunicate request_size=4 [18:41:03]MH_SAM_APDU [18:41:03]CAPDU: 80 11 00 00 [18:41:03]Write to MH i2c: E2 08 00 D7 31 80 11 00 00 00 00 00 00 82 [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:03]Read from MH i2c: E2 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 17 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 17 00 D7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D9 [18:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:41:03]wFMCommunicate OK [18:41:03]CreateOFDProtocolMessage done [18:41:03]OFDSenderStorePacket 92515 [18:41:03]StoreOFDPacket docnum=92515 [18:41:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 43 34 34 01 79 BB 5A 03 01 00 03 00 28 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 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 A6 00 00 00 F4 03 04 00 C2 D8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 69 01 00 35 04 06 00 D2 A4 7A DC 8A 13 E5 3E 71 6E 88 ED 50 0D [18:41:03]CheckFolder [18:41:03]dirname=/storage/ofd_packets [18:41:03]CheckFolder done [18:41:03]ProducePacketName [18:41:03]name=ofd_packets/00092515 [18:41:03]NVStorageSaveData ofd_packets/00092515 [18:41:03]File name is /storage/ofd_packets/00092515 [18:41:03]Write 346 bytes [18:41:03]NVStorageSaveData done [18:41:03]OFDSenderStorePacket done [18:41:03]KKMCreateOFDPacket done [18:41:03]NVStorageSaveData kkm_last_timestamp [18:41:03]File name is /storage/kkm_last_timestamp [18:41:03]Write 4 bytes [18:41:03]NVStorageSaveData done [18:41:03]ExternCall_PrintAddStr [18:41:03]wPrintStart [18:41:03]Write to MH i2c: 01 00 00 D8 31 09 [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 07 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 07 00 D8 31 00 00 00 00 00 FF 0F 1E [18:41:03]RasterBufferAndPrint [18:41:03]line Счет N : (3)127417 [18:41:03]line ИНН: 02508201610067 [18:41:03]line Контрольно-Кассовый Чек [18:41:03]line ПРОДАЖА [18:41:03]line Товар: 4631150682851 [18:41:03]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [18:41:03]line 1.000 * 95.00 [18:41:03]line = 95.00 [18:41:03]line НДС 12% НСП 1% [18:41:03]line > о реализуемом товаре [18:41:03]line ИТОГО: 95.00 [18:41:03]line НСП 1% : 0.84 [18:41:03]line НДС 12% : 10.09 [18:41:03]line Наличными: 95.00 [18:41:03]line Безнал.: 0.00 [18:41:03]line Место: АЗС № 5 "Партнер Нефть" [18:41:03]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:41:03]line СНО: Общий режим [18:41:03]line Чек 166 14.09.2024 18:41 [18:41:03]line Смена: 506 ФФД: 1.0 [18:41:03]line ЗНМ: 03000000022 [18:41:03]line РНМ: 0000000000091423 [18:41:03]line Версия ККМ: 001 [18:41:03]line ФМ: 0000000000874692 [18:41:03]line ФД: 92515 [18:41:03]line ФПД: 231603877743123 [18:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T184106&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92515&fm=231603877743123&tin=02508201610067®Number=0000000000091423&sum=9500 [18:41:03]OFD Sender: Processing packet 92515 [packets to send 63, broken 62] [18:41:03]ProducePacketName [18:41:03]name=ofd_packets/00092515 [18:41:03]OFD Sender: To server: pG, [18:41:03]CommunicateWithHost lk.salyk.kg:30040 [18:41:03]ConnectInit lk.salyk.kg [18:41:03]line 0 [18:41:03]written 0, free lines is 4095 [18:41:03]Connected sock=10 [18:41:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 43 34 34 01 79 BB 5A 03 01 00 03 00 28 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 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 A6 00 00 00 F4 03 04 00 C2 D8 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 69 01 00 35 04 06 00 D2 A4 7A DC 8A 13 E5 3E 71 6E 88 ED 50 0D [18:41:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D4 71 47 00 76 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 63 69 01 00 F4 03 04 00 3C 81 E5 66 B6 04 01 00 00 CF C5 02 06 01 A0 9F D9 [18:41:03]CommunicateWithHost err = 0 [18:41:03]CheckOFDResponse [18:41:03]1017 (14) - 77093643461234 [18:41:03]1041 (16) - 0000000000874692 [18:41:03]1040 (4) - 92515 [18:41:03]1012 (4) - 14.09.2024 12:27 [18:41:03]1206 (1) - 0 [18:41:03]OFD Sender: Remove packet 92515 [18:41:03]ProducePacketName [18:41:03]name=ofd_packets/00092515 [18:41:03]NVStorageDeleteData [18:41:04]Write to MH i2c: 01 00 00 01 32 33 [18:41:04]Write i2c OK [18:41:04]MH_I2C_Read... [18:41:04]Read from MH i2c: 01 [18:41:04]MH_I2C_Read... [18:41:04]Read from MH i2c: 01 07 00 [18:41:04]MH_I2C_Read... [18:41:04]Read from MH i2c: 01 07 00 01 32 00 00 00 00 00 0D 0D 54 [18:41:04]RasterBufferAndPrint [18:41:04]line [18:41:04]line [18:41:04]line [18:41:04]line [18:41:04]line [18:41:04]written 0, free lines is 3347 [18:41:04]MH_Cut [18:41:04]Write to MH i2c: D1 01 00 08 32 01 0C [18:41:04]Write i2c OK [18:41:04]MH_I2C_Read... [18:41:04]Read from MH i2c: D1 [18:41:04]MH_I2C_Read... [18:41:04]Read from MH i2c: D1 01 00 [18:41:04]MH_I2C_Read... [18:41:04]Read from MH i2c: D1 01 00 08 32 00 0B [18:41:04]Write to MH i2c: 01 00 00 09 32 3B [18:41:04]Write i2c OK [18:41:04]MH_I2C_Read... [18:41:04]OFD Sender: No OFD packet to send [18:41:04]*** Cut start [18:41:04]*** Purtial cut [18:41:04]*** Stage 1: CUTSNS_PIN = 1 [18:41:06]Read from MH i2c: 01 [18:41:06]MH_I2C_Read... [18:41:06]*** Stop cut motor [18:41:06]*** Cut end [18:41:06]Read from MH i2c: 01 07 00 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: 01 07 00 09 32 00 00 00 00 00 FF 0F 50 [18:41:06]process_action close_receipt done [18:41:06]requested_data is exist [18:41:06]produce_requested_data [18:41:06]requested_item fm.sn is exist - process it [18:41:06]wFMCommunicate request_size=4 [18:41:06]MH_SAM_APDU [18:41:06]CAPDU: 80 11 00 00 [18:41:06]Write to MH i2c: E2 08 00 0A 32 80 11 00 00 00 00 00 00 B6 [18:41:06]Write i2c OK [18:41:06]MH_I2C_Read... [18:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:06]Read from MH i2c: E2 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: E2 17 00 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: E2 17 00 0A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0D [18:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:41:06]wFMCommunicate OK [18:41:06]requested_item fd.num is exist - process it [18:41:06]SAM_PROTO_GetFieldsCounters [18:41:06]wFMCommunicate request_size=4 [18:41:06]MH_SAM_APDU [18:41:06]CAPDU: 80 13 00 00 [18:41:06]Write to MH i2c: E2 08 00 0B 32 80 13 00 00 00 00 00 00 B9 [18:41:06]Write i2c OK [18:41:06]MH_I2C_Read... [18:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:06]Read from MH i2c: E2 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: E2 62 00 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: E2 62 00 0B 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 63 69 01 00 0E 04 04 00 FA 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 92 [18: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 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 63 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:06]wFMCommunicate OK [18:41:06]SAM_PROTO_GetFieldsCounters done [18:41:06]requested_item shift.num is exist - process it [18:41:06]requested_item shift.opened is exist - process it [18:41:06]req_shift_opened [18:41:06]FM_GetShiftState [18:41:06]SAM_PROTO_GetShiftState [18:41:06]wFMCommunicate request_size=4 [18:41:06]MH_SAM_APDU [18:41:06]CAPDU: 80 13 01 00 [18:41:06]Write to MH i2c: E2 08 00 0C 32 80 13 01 00 00 00 00 00 BB [18:41:06]Write i2c OK [18:41:06]MH_I2C_Read... [18:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:07]Read from MH i2c: E2 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 0E 00 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 0E 00 0C 32 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 55 [18:41:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:41:07]wFMCommunicate OK [18:41:07]SAM_PROTO_GetShiftState done [18:41:07]FM_GetShiftState done [18:41:07]req_shift_opened done [18:41:07]requested_item shift.open_date is exist - process it [18:41:07]req_shift_open_date [18:41:07]req_shift_open_date done [18:41:07]produce_requested_data done [18:41:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92515,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:41:07]process_action_free close_receipt [18:41:07]json_value_free [18:41:07]json_value_free done [18:41:07]process_json_proto returns [18:41:07]Send response to host [18:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92515,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:41:07]free response buf [18:41:07]execute_script done [18:41:07]execute_script returns [18:41:07]free content buf [18:41:07]Sock 9.Close socket [18:41:07]Sock 9.Thread stoped [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]accept exits with 8 [18:43:59]New connection [18:43:59]New thread 3066658148 created [18:43:59]Thread 3066801508 joined [18:43:59]Waiting for new connection... [18:43:59] Sock 8.Parse request [18:43:59]Sock 8.Check first char [18:43:59]Sock 8.First char is OK [18:43:59]request: POST /json_proto HTTP/1.0 [18:43:59]Method: POST [18:43:59]URL: /json_proto [18:43:59]Method is POST - this is cgi request [18:43:59]url: /json_proto [18:43:59]query_string will be loaded in cgi processing [18:43:59]execute_cgi json_proto POST (null) [18:43:59]execute_cgi path=json_proto method=POST [18:43:59]POST find Content-Length [18:43:59]Host: 172.17.57.71:8080 [18:43:59]Content-Length: 1419 [18:43:59]Content-Type: application/json [18:43:59] [18:43:59]POST finish read [18:43:59]Found Content-Length = 1419 [18:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127418", "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" : 1.000, "sum" : 70.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": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 3.000, "sum" : 225.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:59]execute_script... [18:43: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)127418", "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" : 1.000, "sum" : 70.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": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 3.000, "sum" : 225.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:59]POST & json_proto [18:43:59]process_json_proto [18:43:59]json parsed OK: [18:43:59]protocol is kg_v1.0 [18:43:59]action value=close_receipt [18:43:59]process_action close_receipt [18:43:59]cmd_close_receipt [18:43:59]MH_GetDate [18:43:59]Write to MH i2c: F0 00 00 0D 32 2E [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: F0 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: F0 09 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: F0 09 00 0D 32 00 73 D9 E5 66 33 3A A4 66 45 [18:43:59]GetLastDocTimeStamp 1726339266 [18:43:59]current date 1726339443 [18:43:59]FM_GetShiftState [18:43:59]SAM_PROTO_GetShiftState [18:43:59]wFMCommunicate request_size=4 [18:43:59]MH_SAM_APDU [18:43:59]CAPDU: 80 13 01 00 [18:43:59]Write to MH i2c: E2 08 00 0E 32 80 13 01 00 00 00 00 00 BD [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:59]Read from MH i2c: E2 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 0E 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 0E 00 0E 32 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 57 [18:43:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:43:59]wFMCommunicate OK [18:43:59]SAM_PROTO_GetShiftState done [18:43:59]FM_GetShiftState done [18:43:59]opened in 1726273389 [18:43:59]opened+sec_in_day 1726359789 [18:43:59]quantity*price = 7000 [18:43:59]sum+1 = 7001 [18:43:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 3.000 * 75.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 435.00 НСП 1% : 3.85 НДС 12% : 46.19 Наличными: 0.00 Безнал.: 435.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 167 14.09.2024 18:44 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92516 ФПД: 122926130503320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T184403&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92516&fm=122926130503320&tin=02508201610067®Number=0000000000091423&sum=43500 0 [18:44:00]StoreToDocumentArchive [18:44:00]shift 506 fd 92516 [18:44:00]save to /storage/0506/doc_00092516 [18:44:00]save last doc name /storage/0506/doc_00092516 to /storage/kkm_last_doc_name [18:44:00]save OK [18:44:00]Clear old archive folders... [18:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=520 [18:44:00]tlvbuf is 00FCB290 [18:44:00]SAM_PROTO_ClearQueue [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 09 00 00 [18:44:00]Write to MH i2c: E2 08 00 1B 32 80 09 00 00 00 00 00 00 BF [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [18:44:00]RAPDU: 90 00 [18:44:00]wFMCommunicate OK [18:44:00]SAM_PROTO_ClearQueue done [18:44:00]KKMCreateOFDPacket [18:44:00]OFDProtocolAddRootSTLVToBuf [18:44:00]FM_MakeSignedData [18:44:00]FM_MakeSignedData [18:44:00]SAM_PROTO_SignData [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 0D 01 02 [18:44:00]Write to MH i2c: E2 08 00 1C 32 80 0D 01 02 00 00 00 00 C7 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 1C 32 00 90 00 C2 [18:44:00]RAPDU: 90 00 [18:44:00]wFMCommunicate OK [18:44:00]wFMCommunicate request_size=255 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 0D 02 02 FA 03 00 08 02 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 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 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 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 [18:44:00]Write to MH i2c: E2 02 01 1D 32 80 0D 02 02 FA 00 03 00 08 02 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 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 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 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 00 00 01 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 1D 32 00 90 00 C3 [18:44:00]RAPDU: 90 00 [18:44:00]wFMCommunicate OK [18:44:00]wFMCommunicate request_size=255 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 0D 02 02 FA 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 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 73 D9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [18:44:00]Write to MH i2c: E2 02 01 1E 32 80 0D 02 02 FA 00 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 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 73 D9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 E5 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:01]Read from MH i2c: E2 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 03 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 03 00 1E 32 00 90 00 C4 [18:44:01]RAPDU: 90 00 [18:44:01]wFMCommunicate OK [18:44:01]wFMCommunicate request_size=29 [18:44:01]MH_SAM_APDU [18:44:01]CAPDU: 80 0D 02 02 18 38 37 34 36 39 32 10 04 04 00 64 69 01 00 35 04 06 00 6F CC F8 57 9E 98 [18:44:01]Write to MH i2c: E2 20 00 1F 32 80 0D 02 02 18 00 38 37 34 36 39 32 10 04 04 00 64 69 01 00 35 04 06 00 6F CC F8 57 9E 98 00 00 24 [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:01]Read from MH i2c: E2 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 03 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 03 00 1F 32 00 90 00 C5 [18:44:01]RAPDU: 90 00 [18:44:01]wFMCommunicate OK [18:44:01]wFMCommunicate request_size=4 [18:44:01]MH_SAM_APDU [18:44:01]CAPDU: 80 0D 03 02 [18:44:01]Write to MH i2c: E2 08 00 20 32 80 0D 03 02 00 00 00 00 CD [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:01]Read from MH i2c: E2 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 0B 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 0B 00 20 32 00 63 70 15 5C 52 92 79 F2 90 00 61 [18:44:01]RAPDU: 63 70 15 5C 52 92 79 F2 90 00 [18:44:01]wFMCommunicate OK [18:44:01]SAM_PROTO_SignData done [18:44:01]FM_MakeSignedData done [18:44:01]CreateOFDProtocolMessage [18:44:01]wFMCommunicate request_size=4 [18:44:01]MH_SAM_APDU [18:44:01]CAPDU: 80 11 00 00 [18:44:01]Write to MH i2c: E2 08 00 21 32 80 11 00 00 00 00 00 00 CD [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:01]Read from MH i2c: E2 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 17 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: E2 17 00 21 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 24 [18:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:44:01]wFMCommunicate OK [18:44:01]CreateOFDProtocolMessage done [18:44:01]OFDSenderStorePacket 92516 [18:44:01]StoreOFDPacket docnum=92516 [18:44:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1C 02 00 00 F0 1C 14 02 99 0A 5A 03 01 00 03 00 08 02 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 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 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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 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 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 73 D9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 64 69 01 00 35 04 06 00 6F CC F8 57 9E 98 63 70 15 5C 52 92 79 F2 [18:44:01]CheckFolder [18:44:01]dirname=/storage/ofd_packets [18:44:01]CheckFolder done [18:44:01]ProducePacketName [18:44:01]name=ofd_packets/00092516 [18:44:01]NVStorageSaveData ofd_packets/00092516 [18:44:01]File name is /storage/ofd_packets/00092516 [18:44:01]Write 570 bytes [18:44:01]NVStorageSaveData done [18:44:01]OFDSenderStorePacket done [18:44:01]KKMCreateOFDPacket done [18:44:01]NVStorageSaveData kkm_last_timestamp [18:44:01]File name is /storage/kkm_last_timestamp [18:44:01]Write 4 bytes [18:44:01]NVStorageSaveData done [18:44:01]ExternCall_PrintAddStr [18:44:01]wPrintStart [18:44:01]Write to MH i2c: 01 00 00 22 32 54 [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: 01 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: 01 07 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: 01 07 00 22 32 00 00 00 00 00 FF 0F 69 [18:44:01]RasterBufferAndPrint [18:44:01]line Счет N : (3)127418 [18:44:01]line ИНН: 02508201610067 [18:44:01]line Контрольно-Кассовый Чек [18:44:01]line ПРОДАЖА [18:44:01]line Товар: 4870202522688 [18:44:01]line Garden напиток со вкусом граната 0,45 ПЭ [18:44:01]line 1.000 * 70.00 [18:44:01]line = 70.00 [18:44:01]line НДС 12% НСП 1% [18:44:01]line > о реализуемом товаре [18:44:01]line Товар: 4607065000790 [18:44:01]line Шок M&M`s с арахисом 45г [18:44:01]line 2.000 * 70.00 [18:44:01]line = 140.00 [18:44:01]line НДС 12% НСП 1% [18:44:01]line > о реализуемом товаре [18:44:01]line Товар: 54491472 [18:44:01]line Напиток Кока-Кола 0,5л [18:44:01]line 3.000 * 75.00 [18:44:01]line = 225.00 [18:44:01]line НДС 12% НСП 1% [18:44:01]line > о реализуемом товаре [18:44:01]line ИТОГО: 435.00 [18:44:01]line НСП 1% : 3.85 [18:44:01]line НДС 12% : 46.19 [18:44:01]line Наличными: 0.00 [18:44:01]line Безнал.: 435.00 [18:44:01]line Место: АЗС № 5 "Партнер Нефть" [18:44:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:44:01]line СНО: Общий режим [18:44:01]line Чек 167 14.09.2024 18:44 [18:44:01]line Смена: 506 ФФД: 1.0 [18:44:01]line ЗНМ: 03000000022 [18:44:01]line РНМ: 0000000000091423 [18:44:01]line Версия ККМ: 001 [18:44:01]line Платежная система: О! деньги [18:44:01]line ФМ: 0000000000874692 [18:44:01]line ФД: 92516 [18:44:01]line ФПД: 122926130503320 [18:44:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T184403&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92516&fm=122926130503320&tin=02508201610067®Number=0000000000091423&sum=43500 [18:44:01]line 0 [18:44:01]OFD Sender: Processing packet 92516 [packets to send 63, broken 62] [18:44:01]ProducePacketName [18:44:01]name=ofd_packets/00092516 [18:44:01]OFD Sender: To server: pG, [18:44:01]CommunicateWithHost lk.salyk.kg:30040 [18:44:01]ConnectInit lk.salyk.kg [18:44:01]written 0, free lines is 4095 [18:44:01]Connected sock=10 [18:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1C 02 00 00 F0 1C 14 02 99 0A 5A 03 01 00 03 00 08 02 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 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 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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 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 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 73 D9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 64 69 01 00 35 04 06 00 6F CC F8 57 9E 98 63 70 15 5C 52 92 79 F2 [18:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FA D4 47 00 BB A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 64 69 01 00 F4 03 04 00 EE 81 E5 66 B6 04 01 00 00 67 9A 9F 8A 33 15 0E 7F [18:44:01]CommunicateWithHost err = 0 [18:44:01]CheckOFDResponse [18:44:01]1017 (14) - 77093643461234 [18:44:01]1041 (16) - 0000000000874692 [18:44:01]1040 (4) - 92516 [18:44:01]1012 (4) - 14.09.2024 12:30 [18:44:01]1206 (1) - 0 [18:44:01]OFD Sender: Remove packet 92516 [18:44:01]ProducePacketName [18:44:01]name=ofd_packets/00092516 [18:44:01]NVStorageDeleteData [18:44:02]Write to MH i2c: 01 00 00 59 32 8B [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: 01 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: 01 07 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: 01 07 00 59 32 00 00 00 00 00 63 0C 01 [18:44:02]RasterBufferAndPrint [18:44:02]line [18:44:02]line [18:44:02]line [18:44:02]line [18:44:02]line [18:44:02]written 0, free lines is 3179 [18:44:02]MH_Cut [18:44:02]Write to MH i2c: D1 01 00 60 32 01 64 [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: D1 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: D1 01 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: D1 01 00 60 32 00 63 [18:44:02]Write to MH i2c: 01 00 00 61 32 93 [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]OFD Sender: No OFD packet to send [18:44:03]*** Cut start [18:44:03]*** Purtial cut [18:44:03]*** Stage 1: CUTSNS_PIN = 1 [18:44:05]Read from MH i2c: 01 [18:44:05]MH_I2C_Read... [18:44:05]*** Stop cut motor [18:44:05]*** Cut end [18:44:05]Read from MH i2c: 01 07 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: 01 07 00 61 32 00 00 00 00 00 FF 0F A8 [18:44:05]process_action close_receipt done [18:44:05]requested_data is exist [18:44:05]produce_requested_data [18:44:05]requested_item fm.sn is exist - process it [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 11 00 00 [18:44:05]Write to MH i2c: E2 08 00 62 32 80 11 00 00 00 00 00 00 0E [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 17 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 17 00 62 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [18:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:44:05]wFMCommunicate OK [18:44:05]requested_item fd.num is exist - process it [18:44:05]SAM_PROTO_GetFieldsCounters [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 13 00 00 [18:44:05]Write to MH i2c: E2 08 00 63 32 80 13 00 00 00 00 00 00 11 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 62 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 62 00 63 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 64 69 01 00 0E 04 04 00 FA 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 EE [18:44:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 64 69 01 00 0E 04 04 00 FA 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 [18:44:05]wFMCommunicate OK [18:44:05]SAM_PROTO_GetFieldsCounters done [18:44:05]requested_item shift.num is exist - process it [18:44:05]requested_item shift.opened is exist - process it [18:44:05]req_shift_opened [18:44:05]FM_GetShiftState [18:44:05]SAM_PROTO_GetShiftState [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 13 01 00 [18:44:05]Write to MH i2c: E2 08 00 64 32 80 13 01 00 00 00 00 00 13 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 0E 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 0E 00 64 32 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AD [18:44:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:44:05]wFMCommunicate OK [18:44:05]SAM_PROTO_GetShiftState done [18:44:05]FM_GetShiftState done [18:44:05]req_shift_opened done [18:44:05]requested_item shift.open_date is exist - process it [18:44:05]req_shift_open_date [18:44:05]req_shift_open_date done [18:44:05]produce_requested_data done [18:44:05]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92516,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:44:05]process_action_free close_receipt [18:44:05]json_value_free [18:44:05]json_value_free done [18:44:05]process_json_proto returns [18:44:05]Send response to host [18:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92516,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:44:05]free response buf [18:44:05]execute_script done [18:44:05]execute_script returns [18:44:05]free content buf [18:44:05]Sock 8.Close socket [18:44:05]Sock 8.Thread stoped [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:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]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:37]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:54]accept exits with 9 [18:52:54]New connection [18:52:54]New thread 3066801508 created [18:52:54]Thread 3066658148 joined [18:52:54]Waiting for new connection... [18:52:54] Sock 9.Parse request [18:52:54]Sock 9.Check first char [18:52:54]Sock 9.First char is OK [18:52:54]request: POST /json_proto HTTP/1.0 [18:52:54]Method: POST [18:52:54]URL: /json_proto [18:52:54]Method is POST - this is cgi request [18:52:54]url: /json_proto [18:52:54]query_string will be loaded in cgi processing [18:52:54]execute_cgi json_proto POST (null) [18:52:54]execute_cgi path=json_proto method=POST [18:52:54]POST find Content-Length [18:52:54]Host: 172.17.57.71:8080 [18:52:54]Content-Length: 865 [18:52:54]Content-Type: application/json [18:52:54] [18:52:54]POST finish read [18:52:54]Found Content-Length = 865 [18:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127419", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:54]execute_script... [18:52: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)127419", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:54]POST & json_proto [18:52:54]process_json_proto [18:52:54]json parsed OK: [18:52:54]protocol is kg_v1.0 [18:52:54]action value=close_receipt [18:52:54]process_action close_receipt [18:52:54]cmd_close_receipt [18:52:54]MH_GetDate [18:52:54]Write to MH i2c: F0 00 00 65 32 86 [18:52:54]Write i2c OK [18:52:54]MH_I2C_Read... [18:52:54]Read from MH i2c: F0 [18:52:54]MH_I2C_Read... [18:52:54]Read from MH i2c: F0 09 00 [18:52:54]MH_I2C_Read... [18:52:54]Read from MH i2c: F0 09 00 65 32 00 8B DB E5 66 33 3A A4 66 B7 [18:52:54]GetLastDocTimeStamp 1726339443 [18:52:54]current date 1726339979 [18:52:54]FM_GetShiftState [18:52:54]SAM_PROTO_GetShiftState [18:52:54]wFMCommunicate request_size=4 [18:52:54]MH_SAM_APDU [18:52:54]CAPDU: 80 13 01 00 [18:52:54]Write to MH i2c: E2 08 00 66 32 80 13 01 00 00 00 00 00 15 [18:52:54]Write i2c OK [18:52:54]MH_I2C_Read... [18:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:54]Read from MH i2c: E2 [18:52:54]MH_I2C_Read... [18:52:54]Read from MH i2c: E2 0E 00 [18:52:54]MH_I2C_Read... [18:52:54]Read from MH i2c: E2 0E 00 66 32 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AF [18:52:54]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:52:54]wFMCommunicate OK [18:52:54]SAM_PROTO_GetShiftState done [18:52:54]FM_GetShiftState done [18:52:54]opened in 1726273389 [18:52:54]opened+sec_in_day 1726359789 [18:52:54]quantity*price = 8900 [18:52:54]sum+1 = 8901 [18:52:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 0.00 Безнал.: 89.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 168 14.09.2024 18:52 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92517 ФПД: 3345453006139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T185259&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92517&fm=3345453006139&tin=02508201610067®Number=0000000000091423&sum=8900 0 [18:52:55]StoreToDocumentArchive [18:52:55]shift 506 fd 92517 [18:52:55]save to /storage/0506/doc_00092517 [18:52:55]save last doc name /storage/0506/doc_00092517 to /storage/kkm_last_doc_name [18:52:55]save OK [18:52:55]Clear old archive folders... [18:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:52:55]tlvbuf is 0107DC10 [18:52:55]SAM_PROTO_ClearQueue [18:52:55]wFMCommunicate request_size=4 [18:52:55]MH_SAM_APDU [18:52:55]CAPDU: 80 09 00 00 [18:52:55]Write to MH i2c: E2 08 00 73 32 80 09 00 00 00 00 00 00 17 [18:52:55]Write i2c OK [18:52:55]MH_I2C_Read... [18:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:55]Read from MH i2c: E2 [18:52:55]MH_I2C_Read... [18:52:55]Read from MH i2c: E2 03 00 [18:52:55]MH_I2C_Read... [18:52:55]Read from MH i2c: E2 03 00 73 32 00 90 00 19 [18:52:55]RAPDU: 90 00 [18:52:55]wFMCommunicate OK [18:52:55]SAM_PROTO_ClearQueue done [18:52:55]KKMCreateOFDPacket [18:52:55]OFDProtocolAddRootSTLVToBuf [18:52:55]FM_MakeSignedData [18:52:55]FM_MakeSignedData [18:52:55]SAM_PROTO_SignData [18:52:55]wFMCommunicate request_size=4 [18:52:55]MH_SAM_APDU [18:52:55]CAPDU: 80 0D 01 02 [18:52:55]Write to MH i2c: E2 08 00 74 32 80 0D 01 02 00 00 00 00 1F [18:52:55]Write i2c OK [18:52:55]MH_I2C_Read... [18:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:55]Read from MH i2c: E2 [18:52:55]MH_I2C_Read... [18:52:55]Read from MH i2c: E2 03 00 [18:52:55]MH_I2C_Read... [18:52:55]Read from MH i2c: E2 03 00 74 32 00 90 00 1A [18:52:55]RAPDU: 90 00 [18:52:55]wFMCommunicate OK [18:52:55]wFMCommunicate request_size=255 [18:52:55]MH_SAM_APDU [18:52:55]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8B DB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:52:55]Write to MH i2c: E2 02 01 75 32 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8B DB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 AF [18:52:55]Write i2c OK [18:52:55]MH_I2C_Read... [18:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:56]Read from MH i2c: E2 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 03 00 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 03 00 75 32 00 90 00 1B [18:52:56]RAPDU: 90 00 [18:52:56]wFMCommunicate OK [18:52:56]wFMCommunicate request_size=53 [18:52:56]MH_SAM_APDU [18:52:56]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 69 01 00 35 04 06 00 03 0A EC 89 BD 3B [18:52:56]Write to MH i2c: E2 38 00 76 32 80 0D 02 02 30 00 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 69 01 00 35 04 06 00 03 0A EC 89 BD 3B 00 00 5E [18:52:56]Write i2c OK [18:52:56]MH_I2C_Read... [18:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:56]Read from MH i2c: E2 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 03 00 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 03 00 76 32 00 90 00 1C [18:52:56]RAPDU: 90 00 [18:52:56]wFMCommunicate OK [18:52:56]wFMCommunicate request_size=4 [18:52:56]MH_SAM_APDU [18:52:56]CAPDU: 80 0D 03 02 [18:52:56]Write to MH i2c: E2 08 00 77 32 80 0D 03 02 00 00 00 00 24 [18:52:56]Write i2c OK [18:52:56]MH_I2C_Read... [18:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:56]Read from MH i2c: E2 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 0B 00 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 0B 00 77 32 00 38 D9 69 48 96 EC 8D 7F 90 00 75 [18:52:56]RAPDU: 38 D9 69 48 96 EC 8D 7F 90 00 [18:52:56]wFMCommunicate OK [18:52:56]SAM_PROTO_SignData done [18:52:56]FM_MakeSignedData done [18:52:56]CreateOFDProtocolMessage [18:52:56]wFMCommunicate request_size=4 [18:52:56]MH_SAM_APDU [18:52:56]CAPDU: 80 11 00 00 [18:52:56]Write to MH i2c: E2 08 00 78 32 80 11 00 00 00 00 00 00 24 [18:52:56]Write i2c OK [18:52:56]MH_I2C_Read... [18:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:56]Read from MH i2c: E2 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 17 00 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 17 00 78 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7B [18:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:52:56]wFMCommunicate OK [18:52:56]CreateOFDProtocolMessage done [18:52:56]OFDSenderStorePacket 92517 [18:52:56]StoreOFDPacket docnum=92517 [18:52:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3A 01 00 00 D7 9C 32 01 71 BF 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8B DB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 69 01 00 35 04 06 00 03 0A EC 89 BD 3B 38 D9 69 48 96 EC 8D 7F [18:52:56]CheckFolder [18:52:56]dirname=/storage/ofd_packets [18:52:56]CheckFolder done [18:52:56]ProducePacketName [18:52:56]name=ofd_packets/00092517 [18:52:56]NVStorageSaveData ofd_packets/00092517 [18:52:56]File name is /storage/ofd_packets/00092517 [18:52:56]Write 344 bytes [18:52:56]NVStorageSaveData done [18:52:56]OFDSenderStorePacket done [18:52:56]KKMCreateOFDPacket done [18:52:56]NVStorageSaveData kkm_last_timestamp [18:52:56]File name is /storage/kkm_last_timestamp [18:52:56]Write 4 bytes [18:52:56]NVStorageSaveData done [18:52:56]ExternCall_PrintAddStr [18:52:56]wPrintStart [18:52:56]Write to MH i2c: 01 00 00 79 32 AB [18:52:56]Write i2c OK [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: 01 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: 01 07 00 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: 01 07 00 79 32 00 00 00 00 00 FF 0F C0 [18:52:56]RasterBufferAndPrint [18:52:56]line Счет N : (3)127419 [18:52:56]line ИНН: 02508201610067 [18:52:56]line Контрольно-Кассовый Чек [18:52:56]line ПРОДАЖА [18:52:56]line Товар: 5000159390729 [18:52:56]line Шок Батончик Твикс Экстра 82г [18:52:56]line 1.000 * 89.00 [18:52:56]line = 89.00 [18:52:56]line НДС 12% НСП 1% [18:52:56]line > о реализуемом товаре [18:52:56]line ИТОГО: 89.00 [18:52:56]line НСП 1% : 0.79 [18:52:56]line НДС 12% : 9.45 [18:52:56]line Наличными: 0.00 [18:52:56]line Безнал.: 89.00 [18:52:56]line Место: АЗС № 5 "Партнер Нефть" [18:52:56]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:52:56]line СНО: Общий режим [18:52:56]line Чек 168 14.09.2024 18:52 [18:52:56]line Смена: 506 ФФД: 1.0 [18:52:56]line ЗНМ: 03000000022 [18:52:56]line РНМ: 0000000000091423 [18:52:56]line Версия ККМ: 001 [18:52:56]line Платежная система: О! деньги [18:52:56]line ФМ: 0000000000874692 [18:52:56]line ФД: 92517 [18:52:56]line ФПД: 3345453006139 [18:52:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T185259&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92517&fm=3345453006139&tin=02508201610067®Number=0000000000091423&sum=8900 [18:52:56]line 0 [18:52:56]OFD Sender: Processing packet 92517 [packets to send 63, broken 62] [18:52:56]ProducePacketName [18:52:56]name=ofd_packets/00092517 [18:52:56]OFD Sender: To server: pG, [18:52:56]CommunicateWithHost lk.salyk.kg:30040 [18:52:56]ConnectInit lk.salyk.kg [18:52:56]written 0, free lines is 4095 [18:52:56]Connected sock=10 [18: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 34 36 39 32 3A 01 00 00 D7 9C 32 01 71 BF 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8B DB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 69 01 00 35 04 06 00 03 0A EC 89 BD 3B 38 D9 69 48 96 EC 8D 7F [18:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 21 90 47 00 52 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 65 69 01 00 F4 03 04 00 05 84 E5 66 B6 04 01 00 00 3B 93 1A 37 2E 73 E6 66 [18:52:56]CommunicateWithHost err = 0 [18:52:56]CheckOFDResponse [18:52:56]1017 (14) - 77093643461234 [18:52:56]1041 (16) - 0000000000874692 [18:52:56]1040 (4) - 92517 [18:52:56]1012 (4) - 14.09.2024 12:39 [18:52:56]1206 (1) - 0 [18:52:56]OFD Sender: Remove packet 92517 [18:52:56]ProducePacketName [18:52:56]name=ofd_packets/00092517 [18:52:56]NVStorageDeleteData [18:52:57]Write to MH i2c: 01 00 00 A4 32 D6 [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: 01 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: 01 07 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: 01 07 00 A4 32 00 00 00 00 00 F7 0C E0 [18:52:57]RasterBufferAndPrint [18:52:57]line [18:52:57]line [18:52:57]line [18:52:57]line [18:52:57]line [18:52:57]written 0, free lines is 3327 [18:52:57]MH_Cut [18:52:57]Write to MH i2c: D1 01 00 AB 32 01 AF [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: D1 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: D1 01 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: D1 01 00 AB 32 00 AE [18:52:57]Write to MH i2c: 01 00 00 AC 32 DE [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]OFD Sender: No OFD packet to send [18:52:57]*** Cut start [18:52:57]*** Purtial cut [18:52:57]*** Stage 1: CUTSNS_PIN = 1 [18:52:59]Read from MH i2c: 01 [18:52:59]MH_I2C_Read... [18:52:59]*** Stop cut motor [18:52:59]*** Cut end [18:52:59]Read from MH i2c: 01 07 00 [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: 01 07 00 AC 32 00 00 00 00 00 FF 0F F3 [18:52:59]process_action close_receipt done [18:52:59]requested_data is exist [18:52:59]produce_requested_data [18:52:59]requested_item fm.sn is exist - process it [18:52:59]wFMCommunicate request_size=4 [18:52:59]MH_SAM_APDU [18:52:59]CAPDU: 80 11 00 00 [18:52:59]Write to MH i2c: E2 08 00 AD 32 80 11 00 00 00 00 00 00 59 [18:52:59]Write i2c OK [18:52:59]MH_I2C_Read... [18:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:59]Read from MH i2c: E2 [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: E2 17 00 [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: E2 17 00 AD 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B0 [18:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:52:59]wFMCommunicate OK [18:52:59]requested_item fd.num is exist - process it [18:52:59]SAM_PROTO_GetFieldsCounters [18:52:59]wFMCommunicate request_size=4 [18:52:59]MH_SAM_APDU [18:52:59]CAPDU: 80 13 00 00 [18:52:59]Write to MH i2c: E2 08 00 AE 32 80 13 00 00 00 00 00 00 5C [18:52:59]Write i2c OK [18:52:59]MH_I2C_Read... [18:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:00]Read from MH i2c: E2 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 62 00 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 62 00 AE 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 65 69 01 00 0E 04 04 00 FA 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 3D [18:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 65 69 01 00 0E 04 04 00 FA 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 [18:53:00]wFMCommunicate OK [18:53:00]SAM_PROTO_GetFieldsCounters done [18:53:00]requested_item shift.num is exist - process it [18:53:00]requested_item shift.opened is exist - process it [18:53:00]req_shift_opened [18:53:00]FM_GetShiftState [18:53:00]SAM_PROTO_GetShiftState [18:53:00]wFMCommunicate request_size=4 [18:53:00]MH_SAM_APDU [18:53:00]CAPDU: 80 13 01 00 [18:53:00]Write to MH i2c: E2 08 00 AF 32 80 13 01 00 00 00 00 00 5E [18:53:00]Write i2c OK [18:53:00]MH_I2C_Read... [18:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:00]Read from MH i2c: E2 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 0E 00 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 0E 00 AF 32 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F8 [18:53:00]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:53:00]wFMCommunicate OK [18:53:00]SAM_PROTO_GetShiftState done [18:53:00]FM_GetShiftState done [18:53:00]req_shift_opened done [18:53:00]requested_item shift.open_date is exist - process it [18:53:00]req_shift_open_date [18:53:00]req_shift_open_date done [18:53:00]produce_requested_data done [18:53:00]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92517,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:53:00]process_action_free close_receipt [18:53:00]json_value_free [18:53:00]json_value_free done [18:53:00]process_json_proto returns [18:53:00]Send response to host [18:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92517,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:53:00]free response buf [18:53:00]execute_script done [18:53:00]execute_script returns [18:53:00]free content buf [18:53:00]Sock 9.Close socket [18:53:00]Sock 9.Thread stoped [18:53:02]OFD Sender: No OFD packet to send [18:53:02]accept exits with 8 [18:53:02]New connection [18:53:02]New thread 3066658148 created [18:53:02]Thread 3066801508 joined [18:53:02]Waiting for new connection... [18:53:02] Sock 8.Parse request [18:53:02]Sock 8.Check first char [18:53:02]Sock 8.First char is OK [18:53:02]request: POST /json_proto HTTP/1.0 [18:53:02]Method: POST [18:53:02]URL: /json_proto [18:53:02]Method is POST - this is cgi request [18:53:02]url: /json_proto [18:53:02]query_string will be loaded in cgi processing [18:53:02]execute_cgi json_proto POST (null) [18:53:02]execute_cgi path=json_proto method=POST [18:53:02]POST find Content-Length [18:53:02]Host: 172.17.57.71:8080 [18:53:02]Content-Length: 823 [18:53:02]Content-Type: application/json [18:53:02] [18:53:02]POST finish read [18:53:02]Found Content-Length = 823 [18:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127420", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:02]execute_script... [18:53: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)127420", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:02]POST & json_proto [18:53:02]process_json_proto [18:53:02]json parsed OK: [18:53:02]protocol is kg_v1.0 [18:53:02]action value=close_receipt [18:53:02]process_action close_receipt [18:53:02]cmd_close_receipt [18:53:02]MH_GetDate [18:53:02]Write to MH i2c: F0 00 00 B0 32 D1 [18:53:02]Write i2c OK [18:53:02]MH_I2C_Read... [18:53:02]Read from MH i2c: F0 [18:53:02]MH_I2C_Read... [18:53:02]Read from MH i2c: F0 09 00 [18:53:02]MH_I2C_Read... [18:53:02]Read from MH i2c: F0 09 00 B0 32 00 93 DB E5 66 33 3A A4 66 0A [18:53:02]GetLastDocTimeStamp 1726339979 [18:53:02]current date 1726339987 [18:53:02]FM_GetShiftState [18:53:02]SAM_PROTO_GetShiftState [18:53:02]wFMCommunicate request_size=4 [18:53:02]MH_SAM_APDU [18:53:02]CAPDU: 80 13 01 00 [18:53:02]Write to MH i2c: E2 08 00 B1 32 80 13 01 00 00 00 00 00 60 [18:53:02]Write i2c OK [18:53:02]MH_I2C_Read... [18:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:02]Read from MH i2c: E2 [18:53:02]MH_I2C_Read... [18:53:02]Read from MH i2c: E2 0E 00 [18:53:02]MH_I2C_Read... [18:53:02]Read from MH i2c: E2 0E 00 B1 32 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 FA [18:53:02]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:53:02]wFMCommunicate OK [18:53:02]SAM_PROTO_GetShiftState done [18:53:02]FM_GetShiftState done [18:53:02]opened in 1726273389 [18:53:02]opened+sec_in_day 1726359789 [18:53:02]quantity*price = 9500 [18:53:02]sum+1 = 9501 [18:53:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 169 14.09.2024 18:53 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92518 ФПД: 348235152065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T185307&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92518&fm=348235152065&tin=02508201610067®Number=0000000000091423&sum=9500 0 [18:53:03]StoreToDocumentArchive [18:53:03]shift 506 fd 92518 [18:53:03]save to /storage/0506/doc_00092518 [18:53:03]save last doc name /storage/0506/doc_00092518 to /storage/kkm_last_doc_name [18:53:03]save OK [18:53:03]Clear old archive folders... [18:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=288 [18:53:03]tlvbuf is 01037E30 [18:53:03]SAM_PROTO_ClearQueue [18:53:03]wFMCommunicate request_size=4 [18:53:03]MH_SAM_APDU [18:53:03]CAPDU: 80 09 00 00 [18:53:03]Write to MH i2c: E2 08 00 BE 32 80 09 00 00 00 00 00 00 62 [18:53:03]Write i2c OK [18:53:03]MH_I2C_Read... [18:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:03]Read from MH i2c: E2 [18:53:03]MH_I2C_Read... [18:53:03]Read from MH i2c: E2 03 00 [18:53:03]MH_I2C_Read... [18:53:03]Read from MH i2c: E2 03 00 BE 32 00 90 00 64 [18:53:03]RAPDU: 90 00 [18:53:03]wFMCommunicate OK [18:53:03]SAM_PROTO_ClearQueue done [18:53:03]KKMCreateOFDPacket [18:53:03]OFDProtocolAddRootSTLVToBuf [18:53:03]FM_MakeSignedData [18:53:03]FM_MakeSignedData [18:53:03]SAM_PROTO_SignData [18:53:03]wFMCommunicate request_size=4 [18:53:03]MH_SAM_APDU [18:53:03]CAPDU: 80 0D 01 02 [18:53:03]Write to MH i2c: E2 08 00 BF 32 80 0D 01 02 00 00 00 00 6A [18:53:03]Write i2c OK [18:53:03]MH_I2C_Read... [18:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:03]Read from MH i2c: E2 [18:53:03]MH_I2C_Read... [18:53:03]Read from MH i2c: E2 03 00 [18:53:03]MH_I2C_Read... [18:53:03]Read from MH i2c: E2 03 00 BF 32 00 90 00 65 [18:53:03]RAPDU: 90 00 [18:53:03]wFMCommunicate OK [18:53:03]wFMCommunicate request_size=255 [18:53:03]MH_SAM_APDU [18:53:03]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 93 DB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [18:53:03]Write to MH i2c: E2 02 01 C0 32 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 93 DB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 B2 [18:53:03]Write i2c OK [18:53:03]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 C0 32 00 90 00 66 [18:53:04]RAPDU: 90 00 [18:53:04]wFMCommunicate OK [18:53:04]wFMCommunicate request_size=47 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 80 0D 02 02 2A 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 69 01 00 35 04 06 00 00 51 14 6E BA C1 [18:53:04]Write to MH i2c: E2 32 00 C1 32 80 0D 02 02 2A 00 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 69 01 00 35 04 06 00 00 51 14 6E BA C1 00 00 49 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 03 00 C1 32 00 90 00 67 [18:53:04]RAPDU: 90 00 [18:53:04]wFMCommunicate OK [18:53:04]wFMCommunicate request_size=4 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 80 0D 03 02 [18:53:04]Write to MH i2c: E2 08 00 C2 32 80 0D 03 02 00 00 00 00 6F [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 0B 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 0B 00 C2 32 00 00 64 17 5F E6 A6 D3 5C 90 00 05 [18:53:04]RAPDU: 00 64 17 5F E6 A6 D3 5C 90 00 [18:53:04]wFMCommunicate OK [18:53:04]SAM_PROTO_SignData done [18:53:04]FM_MakeSignedData done [18:53:04]CreateOFDProtocolMessage [18:53:04]wFMCommunicate request_size=4 [18:53:04]MH_SAM_APDU [18:53:04]CAPDU: 80 11 00 00 [18:53:04]Write to MH i2c: E2 08 00 C3 32 80 11 00 00 00 00 00 00 6F [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:04]Read from MH i2c: E2 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 17 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: E2 17 00 C3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C6 [18:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:53:04]wFMCommunicate OK [18:53:04]CreateOFDProtocolMessage done [18:53:04]OFDSenderStorePacket 92518 [18:53:04]StoreOFDPacket docnum=92518 [18:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 34 01 00 00 6D 88 2C 01 81 72 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 93 DB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 69 01 00 35 04 06 00 00 51 14 6E BA C1 00 64 17 5F E6 A6 D3 5C [18:53:04]CheckFolder [18:53:04]dirname=/storage/ofd_packets [18:53:04]CheckFolder done [18:53:04]ProducePacketName [18:53:04]name=ofd_packets/00092518 [18:53:04]NVStorageSaveData ofd_packets/00092518 [18:53:04]File name is /storage/ofd_packets/00092518 [18:53:04]Write 338 bytes [18:53:04]NVStorageSaveData done [18:53:04]OFDSenderStorePacket done [18:53:04]KKMCreateOFDPacket done [18:53:04]NVStorageSaveData kkm_last_timestamp [18:53:04]File name is /storage/kkm_last_timestamp [18:53:04]Write 4 bytes [18:53:04]NVStorageSaveData done [18:53:04]ExternCall_PrintAddStr [18:53:04]wPrintStart [18:53:04]Write to MH i2c: 01 00 00 C4 32 F6 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 07 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 07 00 C4 32 00 00 00 00 00 FF 0F 0B [18:53:04]RasterBufferAndPrint [18:53:04]line Счет N : (3)127420 [18:53:04]line ИНН: 02508201610067 [18:53:04]line Контрольно-Кассовый Чек [18:53:04]line ПРОДАЖА [18:53:04]line Товар: 4700000481453 [18:53:04]line Напиток энерг Nitro Max 0,45 ж/б [18:53:04]line 1.000 * 95.00 [18:53:04]line = 95.00 [18:53:04]line НДС 12% НСП 1% [18:53:04]line > о реализуемом товаре [18:53:04]line ИТОГО: 95.00 [18:53:04]line НСП 1% : 0.84 [18:53:04]line НДС 12% : 10.09 [18:53:04]line Наличными: 0.00 [18:53:04]line Безнал.: 95.00 [18:53:04]line Место: АЗС № 5 "Партнер Нефть" [18:53:04]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:53:04]line СНО: Общий режим [18:53:04]line Чек 169 14.09.2024 18:53 [18:53:04]line Смена: 506 ФФД: 1.0 [18:53:04]line ЗНМ: 03000000022 [18:53:04]line РНМ: 0000000000091423 [18:53:04]line Версия ККМ: 001 [18:53:04]line Платежная система: О! деньги [18:53:04]line ФМ: 0000000000874692 [18:53:04]line ФД: 92518 [18:53:04]line ФПД: 348235152065 [18:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T185307&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92518&fm=348235152065&tin=02508201610067®Number=0000000000091423&sum=9500 [18:53:04]line 0 [18:53:04]written 0, free lines is 4095 [18:53:04]OFD Sender: Processing packet 92518 [packets to send 63, broken 62] [18:53:04]ProducePacketName [18:53:04]name=ofd_packets/00092518 [18:53:04]OFD Sender: To server: pG, [18:53:04]CommunicateWithHost lk.salyk.kg:30040 [18:53:04]ConnectInit lk.salyk.kg [18:53:04]Connected sock=10 [18:53:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 34 01 00 00 6D 88 2C 01 81 72 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 93 DB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 69 01 00 35 04 06 00 00 51 14 6E BA C1 00 64 17 5F E6 A6 D3 5C [18:53:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FE 98 47 00 9C EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 66 69 01 00 F4 03 04 00 0D 84 E5 66 B6 04 01 00 00 37 74 81 80 5F 94 38 17 [18:53:04]CommunicateWithHost err = 0 [18:53:04]CheckOFDResponse [18:53:04]1017 (14) - 77093643461234 [18:53:04]1041 (16) - 0000000000874692 [18:53:04]1040 (4) - 92518 [18:53:04]1012 (4) - 14.09.2024 12:39 [18:53:04]1206 (1) - 0 [18:53:04]OFD Sender: Remove packet 92518 [18:53:04]ProducePacketName [18:53:04]name=ofd_packets/00092518 [18:53:04]NVStorageDeleteData [18:53:04]Write to MH i2c: 01 00 00 EF 32 21 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 07 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: 01 07 00 EF 32 00 00 00 00 00 01 0D 36 [18:53:04]RasterBufferAndPrint [18:53:04]line [18:53:04]line [18:53:04]line [18:53:04]line [18:53:04]line [18:53:04]written 0, free lines is 3341 [18:53:04]MH_Cut [18:53:04]Write to MH i2c: D1 01 00 F6 32 01 FA [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: D1 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: D1 01 00 [18:53:04]MH_I2C_Read... [18:53:04]Read from MH i2c: D1 01 00 F6 32 00 F9 [18:53:04]Write to MH i2c: 01 00 00 F7 32 29 [18:53:04]Write i2c OK [18:53:04]MH_I2C_Read... [18:53:05]OFD Sender: No OFD packet to send [18:53:05]*** Cut start [18:53:05]*** Purtial cut [18:53:05]*** Stage 1: CUTSNS_PIN = 1 [18:53:07]Read from MH i2c: 01 [18:53:07]MH_I2C_Read... [18:53:07]*** Stop cut motor [18:53:07]*** Cut end [18:53:07]Read from MH i2c: 01 07 00 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: 01 07 00 F7 32 00 00 00 00 00 FF 0F 3E [18:53:07]process_action close_receipt done [18:53:07]requested_data is exist [18:53:07]produce_requested_data [18:53:07]requested_item fm.sn is exist - process it [18:53:07]wFMCommunicate request_size=4 [18:53:07]MH_SAM_APDU [18:53:07]CAPDU: 80 11 00 00 [18:53:07]Write to MH i2c: E2 08 00 F8 32 80 11 00 00 00 00 00 00 A4 [18:53:07]Write i2c OK [18:53:07]MH_I2C_Read... [18:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:07]Read from MH i2c: E2 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 17 00 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 17 00 F8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FB [18:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:53:07]wFMCommunicate OK [18:53:07]requested_item fd.num is exist - process it [18:53:07]SAM_PROTO_GetFieldsCounters [18:53:07]wFMCommunicate request_size=4 [18:53:07]MH_SAM_APDU [18:53:07]CAPDU: 80 13 00 00 [18:53:07]Write to MH i2c: E2 08 00 F9 32 80 13 00 00 00 00 00 00 A7 [18:53:07]Write i2c OK [18:53:07]MH_I2C_Read... [18:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:07]Read from MH i2c: E2 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 62 00 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 62 00 F9 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 66 69 01 00 0E 04 04 00 FA 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 8C [18:53:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 66 69 01 00 0E 04 04 00 FA 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 [18:53:07]wFMCommunicate OK [18:53:07]SAM_PROTO_GetFieldsCounters done [18:53:07]requested_item shift.num is exist - process it [18:53:07]requested_item shift.opened is exist - process it [18:53:07]req_shift_opened [18:53:07]FM_GetShiftState [18:53:07]SAM_PROTO_GetShiftState [18:53:07]wFMCommunicate request_size=4 [18:53:07]MH_SAM_APDU [18:53:07]CAPDU: 80 13 01 00 [18:53:07]Write to MH i2c: E2 08 00 FA 32 80 13 01 00 00 00 00 00 A9 [18:53:07]Write i2c OK [18:53:07]MH_I2C_Read... [18:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:07]Read from MH i2c: E2 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 0E 00 [18:53:07]MH_I2C_Read... [18:53:07]Read from MH i2c: E2 0E 00 FA 32 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 43 [18:53:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:53:07]wFMCommunicate OK [18:53:07]SAM_PROTO_GetShiftState done [18:53:07]FM_GetShiftState done [18:53:07]req_shift_opened done [18:53:07]requested_item shift.open_date is exist - process it [18:53:07]req_shift_open_date [18:53:07]req_shift_open_date done [18:53:07]produce_requested_data done [18:53:07]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92518,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:53:07]process_action_free close_receipt [18:53:07]json_value_free [18:53:07]json_value_free done [18:53:07]process_json_proto returns [18:53:07]Send response to host [18:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92518,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:53:07]free response buf [18:53:07]execute_script done [18:53:07]execute_script returns [18:53:07]free content buf [18:53:07]Sock 8.Close socket [18:53:07]Sock 8.Thread stoped [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:30]accept exits with 9 [18:59:30]New connection [18:59:30]New thread 3066801508 created [18:59:30]Thread 3066658148 joined [18:59:30]Waiting for new connection... [18:59:30] Sock 9.Parse request [18:59:30]Sock 9.Check first char [18:59:30]Sock 9.First char is OK [18:59:30]request: POST /json_proto HTTP/1.0 [18:59:30]Method: POST [18:59:30]URL: /json_proto [18:59:30]Method is POST - this is cgi request [18:59:30]url: /json_proto [18:59:30]query_string will be loaded in cgi processing [18:59:30]execute_cgi json_proto POST (null) [18:59:30]execute_cgi path=json_proto method=POST [18:59:30]POST find Content-Length [18:59:30]Host: 172.17.57.71:8080 [18:59:30]Content-Length: 1096 [18:59:30]Content-Type: application/json [18:59:30] [18:59:30]POST finish read [18:59:30]Found Content-Length = 1096 [18:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127421", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077636400", "name": "\u041F\u0435\u0447 \u043A\u0430\u043A\u0430\u043E LOVITA SOFT CREAM COOKIES \u043C\u043E\u043B\u043E", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:30]execute_script... [18:59: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)127421", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077636400", "name": "\u041F\u0435\u0447 \u043A\u0430\u043A\u0430\u043E LOVITA SOFT CREAM COOKIES \u043C\u043E\u043B\u043E", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:30]POST & json_proto [18:59:30]process_json_proto [18:59:30]json parsed OK: [18:59:30]protocol is kg_v1.0 [18:59:30]action value=close_receipt [18:59:30]process_action close_receipt [18:59:30]cmd_close_receipt [18:59:30]MH_GetDate [18:59:30]Write to MH i2c: F0 00 00 FB 32 1C [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: F0 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: F0 09 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: F0 09 00 FB 32 00 17 DD E5 66 33 3A A4 66 DB [18:59:30]GetLastDocTimeStamp 1726339987 [18:59:30]current date 1726340375 [18:59:30]FM_GetShiftState [18:59:30]SAM_PROTO_GetShiftState [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 13 01 00 [18:59:30]Write to MH i2c: E2 08 00 FC 32 80 13 01 00 00 00 00 00 AB [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 0E 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 0E 00 FC 32 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 45 [18:59:30]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:59:30]wFMCommunicate OK [18:59:30]SAM_PROTO_GetShiftState done [18:59:30]FM_GetShiftState done [18:59:30]opened in 1726273389 [18:59:30]opened+sec_in_day 1726359789 [18:59:30]quantity*price = 8500 [18:59:30]sum+1 = 8501 [18:59:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823077636400 Печ какао LOVITA SOFT CREAM COOKIES моло 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 0.00 Безнал.: 215.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 170 14.09.2024 18:59 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92519 ФПД: 246454215558814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T185935&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92519&fm=246454215558814&tin=02508201610067®Number=0000000000091423&sum=21500 0 [18:59:31]StoreToDocumentArchive [18:59:31]shift 506 fd 92519 [18:59:31]save to /storage/0506/doc_00092519 [18:59:31]save last doc name /storage/0506/doc_00092519 to /storage/kkm_last_doc_name [18:59:31]save OK [18:59:31]Clear old archive folders... [18:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=418 [18:59:32]tlvbuf is B6F30890 [18:59:32]SAM_PROTO_ClearQueue [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 09 00 00 [18:59:32]Write to MH i2c: E2 08 00 09 33 80 09 00 00 00 00 00 00 AE [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 09 33 00 90 00 B0 [18:59:32]RAPDU: 90 00 [18:59:32]wFMCommunicate OK [18:59:32]SAM_PROTO_ClearQueue done [18:59:32]KKMCreateOFDPacket [18:59:32]OFDProtocolAddRootSTLVToBuf [18:59:32]FM_MakeSignedData [18:59:32]FM_MakeSignedData [18:59:32]SAM_PROTO_SignData [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 0D 01 02 [18:59:32]Write to MH i2c: E2 08 00 0A 33 80 0D 01 02 00 00 00 00 B6 [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 0A 33 00 90 00 B1 [18:59:32]RAPDU: 90 00 [18:59:32]wFMCommunicate OK [18:59:32]wFMCommunicate request_size=255 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 0D 02 02 FA 03 00 A2 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 34 30 30 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 4C 4F 56 49 54 41 20 53 4F 46 54 20 43 52 45 41 4D 20 43 4F 4F 4B 49 45 53 20 D0 BC D0 BE D0 BB D0 BE 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 [18:59:32]Write to MH i2c: E2 02 01 0B 33 80 0D 02 02 FA 00 03 00 A2 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 34 30 30 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 4C 4F 56 49 54 41 20 53 4F 46 54 20 43 52 45 41 4D 20 43 4F 4F 4B 49 45 53 20 D0 BC D0 BE D0 BB D0 BE 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 00 A0 [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 0B 33 00 90 00 B2 [18:59:32]RAPDU: 90 00 [18:59:32]wFMCommunicate OK [18:59:32]wFMCommunicate request_size=177 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 0D 02 02 AC 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 17 DD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 69 01 00 35 04 06 00 E0 26 17 F8 C6 9E [18:59:32]Write to MH i2c: E2 B4 00 0C 33 80 0D 02 02 AC 00 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 17 DD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 69 01 00 35 04 06 00 E0 26 17 F8 C6 9E 00 00 91 [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 03 00 0C 33 00 90 00 B3 [18:59:32]RAPDU: 90 00 [18:59:32]wFMCommunicate OK [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 0D 03 02 [18:59:32]Write to MH i2c: E2 08 00 0D 33 80 0D 03 02 00 00 00 00 BB [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 0B 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 0B 00 0D 33 00 F1 8E 64 67 B3 63 BA B4 90 00 8A [18:59:32]RAPDU: F1 8E 64 67 B3 63 BA B4 90 00 [18:59:32]wFMCommunicate OK [18:59:32]SAM_PROTO_SignData done [18:59:32]FM_MakeSignedData done [18:59:32]CreateOFDProtocolMessage [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 11 00 00 [18:59:32]Write to MH i2c: E2 08 00 0E 33 80 11 00 00 00 00 00 00 BB [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 17 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 17 00 0E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 12 [18:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:59:32]wFMCommunicate OK [18:59:32]CreateOFDProtocolMessage done [18:59:32]OFDSenderStorePacket 92519 [18:59:32]StoreOFDPacket docnum=92519 [18:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B6 01 00 00 62 84 AE 01 07 71 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 34 30 30 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 4C 4F 56 49 54 41 20 53 4F 46 54 20 43 52 45 41 4D 20 43 4F 4F 4B 49 45 53 20 D0 BC D0 BE D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 17 DD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 69 01 00 35 04 06 00 E0 26 17 F8 C6 9E F1 8E 64 67 B3 63 BA B4 [18:59:32]CheckFolder [18:59:32]dirname=/storage/ofd_packets [18:59:32]CheckFolder done [18:59:32]ProducePacketName [18:59:32]name=ofd_packets/00092519 [18:59:32]NVStorageSaveData ofd_packets/00092519 [18:59:32]File name is /storage/ofd_packets/00092519 [18:59:32]Write 468 bytes [18:59:32]NVStorageSaveData done [18:59:32]OFDSenderStorePacket done [18:59:33]KKMCreateOFDPacket done [18:59:33]NVStorageSaveData kkm_last_timestamp [18:59:33]File name is /storage/kkm_last_timestamp [18:59:33]Write 4 bytes [18:59:33]NVStorageSaveData done [18:59:33]ExternCall_PrintAddStr [18:59:33]wPrintStart [18:59:33]Write to MH i2c: 01 00 00 0F 33 42 [18:59:33]OFD Sender: Processing packet 92519 [packets to send 63, broken 62] [18:59:33]ProducePacketName [18:59:33]name=ofd_packets/00092519 [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]OFD Sender: To server: pG, [18:59:33]CommunicateWithHost lk.salyk.kg:30040 [18:59:33]ConnectInit lk.salyk.kg [18:59:33]Read from MH i2c: 01 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 07 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 07 00 0F 33 00 00 00 00 00 FF 0F 57 [18:59:33]RasterBufferAndPrint [18:59:33]line Счет N : (3)127421 [18:59:33]line ИНН: 02508201610067 [18:59:33]line Контрольно-Кассовый Чек [18:59:33]line ПРОДАЖА [18:59:33]line Товар: 4600682557456 [18:59:33]line Напиток FLash up energy эн ж/б 0,5/0,45л [18:59:33]line 1.000 * 85.00 [18:59:33]line = 85.00 [18:59:33]line НДС 12% НСП 1% [18:59:33]line > о реализуемом товаре [18:59:33]line Товар: 4823077636400 [18:59:33]line Печ какао LOVITA SOFT CREAM COOKIES моло [18:59:33]line 1.000 * 130.00 [18:59:33]line = 130.00 [18:59:33]line НДС 12% НСП 1% [18:59:33]line > о реализуемом товаре [18:59:33]line ИТОГО: 215.00 [18:59:33]line НСП 1% : 1.90 [18:59:33]line НДС 12% : 22.83 [18:59:33]line Наличными: 0.00 [18:59:33]line Безнал.: 215.00 [18:59:33]line Место: АЗС № 5 "Партнер Нефть" [18:59:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [18:59:33]line СНО: Общий режим [18:59:33]line Чек 170 14.09.2024 18:59 [18:59:33]line Смена: 506 ФФД: 1.0 [18:59:33]line ЗНМ: 03000000022 [18:59:33]line РНМ: 0000000000091423 [18:59:33]line Версия ККМ: 001 [18:59:33]line Платежная система: О! деньги [18:59:33]line ФМ: 0000000000874692 [18:59:33]line ФД: 92519 [18:59:33]line ФПД: 246454215558814 [18:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T185935&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92519&fm=246454215558814&tin=02508201610067®Number=0000000000091423&sum=21500 [18:59:33]line 0 [18:59:33]written 0, free lines is 4095 [18:59:33]Connected sock=10 [18:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B6 01 00 00 62 84 AE 01 07 71 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 34 30 30 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 4C 4F 56 49 54 41 20 53 4F 46 54 20 43 52 45 41 4D 20 43 4F 4F 4B 49 45 53 20 D0 BC D0 BE D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 17 DD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 69 01 00 35 04 06 00 E0 26 17 F8 C6 9E F1 8E 64 67 B3 63 BA B4 [18:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 94 85 47 00 D2 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 67 69 01 00 F4 03 04 00 91 85 E5 66 B6 04 01 00 00 C6 BC 7D D7 AC C3 FE 92 [18:59:33]CommunicateWithHost err = 0 [18:59:33]CheckOFDResponse [18:59:33]1017 (14) - 77093643461234 [18:59:33]1041 (16) - 0000000000874692 [18:59:33]1040 (4) - 92519 [18:59:33]1012 (4) - 14.09.2024 12:46 [18:59:33]1206 (1) - 0 [18:59:33]OFD Sender: Remove packet 92519 [18:59:33]ProducePacketName [18:59:33]name=ofd_packets/00092519 [18:59:33]NVStorageDeleteData [18:59:33]Write to MH i2c: 01 00 00 41 33 74 [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 07 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 07 00 41 33 00 00 00 00 00 9E 0C 25 [18:59:33]RasterBufferAndPrint [18:59:33]line [18:59:33]line [18:59:33]line [18:59:33]line [18:59:33]line [18:59:33]written 0, free lines is 3238 [18:59:33]MH_Cut [18:59:33]Write to MH i2c: D1 01 00 48 33 01 4D [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: D1 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: D1 01 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: D1 01 00 48 33 00 4C [18:59:33]Write to MH i2c: 01 00 00 49 33 7C [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]OFD Sender: No OFD packet to send [18:59:34]*** Cut start [18:59:34]*** Purtial cut [18:59:34]*** Stage 1: CUTSNS_PIN = 1 [18:59:36]Read from MH i2c: 01 [18:59:36]MH_I2C_Read... [18:59:36]*** Stop cut motor [18:59:36]*** Cut end [18:59:36]Read from MH i2c: 01 07 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: 01 07 00 49 33 00 00 00 00 00 FF 0F 91 [18:59:36]process_action close_receipt done [18:59:36]requested_data is exist [18:59:36]produce_requested_data [18:59:36]requested_item fm.sn is exist - process it [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 11 00 00 [18:59:36]Write to MH i2c: E2 08 00 4A 33 80 11 00 00 00 00 00 00 F7 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 17 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 17 00 4A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4E [18:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [18:59:36]wFMCommunicate OK [18:59:36]requested_item fd.num is exist - process it [18:59:36]SAM_PROTO_GetFieldsCounters [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 13 00 00 [18:59:36]Write to MH i2c: E2 08 00 4B 33 80 13 00 00 00 00 00 00 FA [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 62 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 62 00 4B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 67 69 01 00 0E 04 04 00 FA 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 E3 [18:59:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 67 69 01 00 0E 04 04 00 FA 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 [18:59:36]wFMCommunicate OK [18:59:36]SAM_PROTO_GetFieldsCounters done [18:59:36]requested_item shift.num is exist - process it [18:59:36]requested_item shift.opened is exist - process it [18:59:36]req_shift_opened [18:59:36]FM_GetShiftState [18:59:36]SAM_PROTO_GetShiftState [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 13 01 00 [18:59:36]Write to MH i2c: E2 08 00 4C 33 80 13 01 00 00 00 00 00 FC [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:36]Read from MH i2c: E2 0E 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 0E 00 4C 33 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 96 [18:59:36]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [18:59:36]wFMCommunicate OK [18:59:36]SAM_PROTO_GetShiftState done [18:59:36]FM_GetShiftState done [18:59:36]req_shift_opened done [18:59:36]requested_item shift.open_date is exist - process it [18:59:36]req_shift_open_date [18:59:36]req_shift_open_date done [18:59:36]produce_requested_data done [18:59:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92519,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [18:59:36]process_action_free close_receipt [18:59:36]json_value_free [18:59:36]json_value_free done [18:59:36]process_json_proto returns [18:59:36]Send response to host [18:59:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92519,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [18:59:36]free response buf [18:59:36]execute_script done [18:59:36]execute_script returns [18:59:36]free content buf [18:59:36]Sock 9.Close socket [18:59:36]Sock 9.Thread stoped [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:51]accept exits with 8 [19:03:51]New connection [19:03:51]New thread 3066658148 created [19:03:51]Thread 3066801508 joined [19:03:51]Waiting for new connection... [19:03:51] Sock 8.Parse request [19:03:51]Sock 8.Check first char [19:03:51]Sock 8.First char is OK [19:03:51]request: POST /json_proto HTTP/1.0 [19:03:51]Method: POST [19:03:51]URL: /json_proto [19:03:51]Method is POST - this is cgi request [19:03:51]url: /json_proto [19:03:51]query_string will be loaded in cgi processing [19:03:51]execute_cgi json_proto POST (null) [19:03:51]execute_cgi path=json_proto method=POST [19:03:51]POST find Content-Length [19:03:51]Host: 172.17.57.71:8080 [19:03:51]Content-Length: 1370 [19:03:51]Content-Type: application/json [19:03:51] [19:03:51]POST finish read [19:03:51]Found Content-Length = 1370 [19:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127422", "tax_sys" : 0, "items" : [ { "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": "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": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:51]execute_script... [19:03: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)127422", "tax_sys" : 0, "items" : [ { "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": "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": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:51]POST & json_proto [19:03:51]process_json_proto [19:03:51]json parsed OK: [19:03:51]protocol is kg_v1.0 [19:03:51]action value=close_receipt [19:03:51]process_action close_receipt [19:03:51]cmd_close_receipt [19:03:51]MH_GetDate [19:03:51]Write to MH i2c: F0 00 00 4D 33 6F [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: F0 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: F0 09 00 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: F0 09 00 4D 33 00 1B DE E5 66 33 3A A4 66 33 [19:03:51]GetLastDocTimeStamp 1726340375 [19:03:51]current date 1726340635 [19:03:51]FM_GetShiftState [19:03:51]SAM_PROTO_GetShiftState [19:03:51]wFMCommunicate request_size=4 [19:03:51]MH_SAM_APDU [19:03:51]CAPDU: 80 13 01 00 [19:03:51]Write to MH i2c: E2 08 00 4E 33 80 13 01 00 00 00 00 00 FE [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:51]Read from MH i2c: E2 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: E2 0E 00 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: E2 0E 00 4E 33 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 98 [19:03:51]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:03:51]wFMCommunicate OK [19:03:51]SAM_PROTO_GetShiftState done [19:03:51]FM_GetShiftState done [19:03:51]opened in 1726273389 [19:03:51]opened+sec_in_day 1726359789 [19:03:51]quantity*price = 4000 [19:03:51]sum+1 = 4001 [19:03:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.54 НДС 12% : 18.58 Наличными: 0.00 Безнал.: 175.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 171 14.09.2024 19:03 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92520 ФПД: 207549655709243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T190356&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92520&fm=207549655709243&tin=02508201610067®Number=0000000000091423&sum=17500 0 [19:03:52]StoreToDocumentArchive [19:03:52]shift 506 fd 92520 [19:03:52]save to /storage/0506/doc_00092520 [19:03:52]save last doc name /storage/0506/doc_00092520 to /storage/kkm_last_doc_name [19:03:52]save OK [19:03:52]Clear old archive folders... [19:03:52]ProcessDocumentItem done err = 0, tmpTLVsize=502 [19:03:52]tlvbuf is 00F99660 [19:03:52]SAM_PROTO_ClearQueue [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 09 00 00 [19:03:52]Write to MH i2c: E2 08 00 5B 33 80 09 00 00 00 00 00 00 00 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 5B 33 00 90 00 02 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]SAM_PROTO_ClearQueue done [19:03:52]KKMCreateOFDPacket [19:03:52]OFDProtocolAddRootSTLVToBuf [19:03:52]FM_MakeSignedData [19:03:52]FM_MakeSignedData [19:03:52]SAM_PROTO_SignData [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 01 02 [19:03:52]Write to MH i2c: E2 08 00 5C 33 80 0D 01 02 00 00 00 00 08 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 5C 33 00 90 00 03 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]wFMCommunicate request_size=255 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 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 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 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 [19:03:52]Write to MH i2c: E2 02 01 5D 33 80 0D 02 02 FA 00 03 00 F6 01 1E 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 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 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 00 00 A5 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 5D 33 00 90 00 04 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]wFMCommunicate request_size=255 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 02 02 FA 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1C DE E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 69 01 00 35 04 06 00 [19:03:52]Write to MH i2c: E2 02 01 5E 33 80 0D 02 02 FA 00 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1C DE E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 69 01 00 35 04 06 00 00 00 89 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 5E 33 00 90 00 05 [19:03:53]RAPDU: 90 00 [19:03:53]wFMCommunicate OK [19:03:53]wFMCommunicate request_size=11 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 0D 02 02 06 BC C3 EB 80 76 3B [19:03:53]Write to MH i2c: E2 0E 00 5F 33 80 0D 02 02 06 00 BC C3 EB 80 76 3B 00 00 B3 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 5F 33 00 90 00 06 [19:03:53]RAPDU: 90 00 [19:03:53]wFMCommunicate OK [19:03:53]wFMCommunicate request_size=4 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 0D 03 02 [19:03:53]Write to MH i2c: E2 08 00 60 33 80 0D 03 02 00 00 00 00 0E [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 0B 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 0B 00 60 33 00 36 26 FA 9B 06 B3 B7 7F 90 00 EF [19:03:53]RAPDU: 36 26 FA 9B 06 B3 B7 7F 90 00 [19:03:53]wFMCommunicate OK [19:03:53]SAM_PROTO_SignData done [19:03:53]FM_MakeSignedData done [19:03:53]CreateOFDProtocolMessage [19:03:53]wFMCommunicate request_size=4 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 11 00 00 [19:03:53]Write to MH i2c: E2 08 00 61 33 80 11 00 00 00 00 00 00 0E [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 17 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 17 00 61 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 65 [19:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:03:53]wFMCommunicate OK [19:03:53]CreateOFDProtocolMessage done [19:03:53]OFDSenderStorePacket 92520 [19:03:53]StoreOFDPacket docnum=92520 [19:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0A 02 00 00 94 79 02 02 8E 0D 5A 03 01 00 03 00 F6 01 1E 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 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 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1C DE E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 69 01 00 35 04 06 00 BC C3 EB 80 76 3B 36 26 FA 9B 06 B3 B7 7F [19:03:53]CheckFolder [19:03:53]dirname=/storage/ofd_packets [19:03:53]CheckFolder done [19:03:53]ProducePacketName [19:03:53]name=ofd_packets/00092520 [19:03:53]NVStorageSaveData ofd_packets/00092520 [19:03:53]File name is /storage/ofd_packets/00092520 [19:03:53]Write 552 bytes [19:03:53]NVStorageSaveData done [19:03:53]OFDSenderStorePacket done [19:03:53]KKMCreateOFDPacket done [19:03:53]NVStorageSaveData kkm_last_timestamp [19:03:53]File name is /storage/kkm_last_timestamp [19:03:53]Write 4 bytes [19:03:53]NVStorageSaveData done [19:03:53]ExternCall_PrintAddStr [19:03:53]wPrintStart [19:03:53]Write to MH i2c: 01 00 00 62 33 95 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 62 33 00 00 00 00 00 FF 0F AA [19:03:53]RasterBufferAndPrint [19:03:53]line Счет N : (3)127422 [19:03:53]line ИНН: 02508201610067 [19:03:53]line Контрольно-Кассовый Чек [19:03:53]line ПРОДАЖА [19:03:53]line Товар: 4700000160044 [19:03:53]line Вода Ыссык Ата 0,5л [19:03:53]line 1.000 * 40.00 [19:03:53]line = 40.00 [19:03:53]line НДС 12% НСП 1% [19:03:53]line > о реализуемом товаре [19:03:53]line Товар: 5449000189394 [19:03:53]line Холодный чай Fuse ягода 0,5л [19:03:53]line 1.000 * 75.00 [19:03:53]line = 75.00 [19:03:53]line НДС 12% НСП 1% [19:03:53]line > о реализуемом товаре [19:03:53]line Товар: 4011100977952 [19:03:53]line Шок Батончик Твикс 55г [19:03:53]line 1.000 * 60.00 [19:03:53]line = 60.00 [19:03:53]line НДС 12% НСП 1% [19:03:53]line > о реализуемом товаре [19:03:53]line ИТОГО: 175.00 [19:03:53]line НСП 1% : 1.54 [19:03:53]line НДС 12% : 18.58 [19:03:53]line Наличными: 0.00 [19:03:53]line Безнал.: 175.00 [19:03:53]line Место: АЗС № 5 "Партнер Нефть" [19:03:53]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:03:53]line СНО: Общий режим [19:03:53]line Чек 171 14.09.2024 19:03 [19:03:53]line Смена: 506 ФФД: 1.0 [19:03:53]line ЗНМ: 03000000022 [19:03:53]line РНМ: 0000000000091423 [19:03:53]line Версия ККМ: 001 [19:03:53]line Платежная система: О! деньги [19:03:53]line ФМ: 0000000000874692 [19:03:53]line ФД: 92520 [19:03:53]line ФПД: 207549655709243 [19:03:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T190356&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92520&fm=207549655709243&tin=02508201610067®Number=0000000000091423&sum=17500 [19:03:53]line 0 [19:03:53]written 0, free lines is 4095 [19:03:53]OFD Sender: Processing packet 92520 [packets to send 63, broken 62] [19:03:53]ProducePacketName [19:03:53]name=ofd_packets/00092520 [19:03:53]OFD Sender: To server: pG, [19:03:53]CommunicateWithHost lk.salyk.kg:30040 [19:03:53]ConnectInit lk.salyk.kg [19:03:53]Connected sock=10 [19:03:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0A 02 00 00 94 79 02 02 8E 0D 5A 03 01 00 03 00 F6 01 1E 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 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 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1C DE E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 68 69 01 00 35 04 06 00 BC C3 EB 80 76 3B 36 26 FA 9B 06 B3 B7 7F [19:03:53]Write to MH i2c: 01 00 00 98 33 CB [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 98 33 00 00 00 00 00 66 0C 44 [19:03:53]RasterBufferAndPrint [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]written 0, free lines is 3181 [19:03:53]MH_Cut [19:03:53]Write to MH i2c: D1 01 00 9F 33 01 A4 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 01 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 01 00 9F 33 00 A3 [19:03:53]Write to MH i2c: 01 00 00 A0 33 D3 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 67 5E 47 00 21 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 34 36 39 32 10 04 04 00 68 69 01 00 F4 03 04 00 96 86 E5 66 B6 04 01 00 00 A9 0B 7C 1A F3 44 32 6C [19:03:53]CommunicateWithHost err = 0 [19:03:53]CheckOFDResponse [19:03:53]1017 (14) - 77093643461234 [19:03:53]1041 (16) - 0000000000874692 [19:03:53]1040 (4) - 92520 [19:03:53]1012 (4) - 14.09.2024 12:50 [19:03:53]1206 (1) - 0 [19:03:53]OFD Sender: Remove packet 92520 [19:03:53]ProducePacketName [19:03:53]name=ofd_packets/00092520 [19:03:53]NVStorageDeleteData [19:03:54]OFD Sender: No OFD packet to send [19:03:54]*** Cut start [19:03:54]*** Purtial cut [19:03:54]*** Stage 1: CUTSNS_PIN = 1 [19:03:56]Read from MH i2c: 01 [19:03:56]MH_I2C_Read... [19:03:56]*** Stop cut motor [19:03:56]*** Cut end [19:03:56]Read from MH i2c: 01 07 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: 01 07 00 A0 33 00 00 00 00 00 FF 0F E8 [19:03:56]process_action close_receipt done [19:03:56]requested_data is exist [19:03:56]produce_requested_data [19:03:56]requested_item fm.sn is exist - process it [19:03:56]wFMCommunicate request_size=4 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 11 00 00 [19:03:56]Write to MH i2c: E2 08 00 A1 33 80 11 00 00 00 00 00 00 4E [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 17 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 17 00 A1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A5 [19:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:03:56]wFMCommunicate OK [19:03:56]requested_item fd.num is exist - process it [19:03:56]SAM_PROTO_GetFieldsCounters [19:03:56]wFMCommunicate request_size=4 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 13 00 00 [19:03:56]Write to MH i2c: E2 08 00 A2 33 80 13 00 00 00 00 00 00 51 [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 62 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 62 00 A2 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 68 69 01 00 0E 04 04 00 FA 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 3E [19:03:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 68 69 01 00 0E 04 04 00 FA 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 [19:03:56]wFMCommunicate OK [19:03:56]SAM_PROTO_GetFieldsCounters done [19:03:56]requested_item shift.num is exist - process it [19:03:56]requested_item shift.opened is exist - process it [19:03:56]req_shift_opened [19:03:56]FM_GetShiftState [19:03:56]SAM_PROTO_GetShiftState [19:03:56]wFMCommunicate request_size=4 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 13 01 00 [19:03:56]Write to MH i2c: E2 08 00 A3 33 80 13 01 00 00 00 00 00 53 [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 0E 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 0E 00 A3 33 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 ED [19:03:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:03:56]wFMCommunicate OK [19:03:56]SAM_PROTO_GetShiftState done [19:03:56]FM_GetShiftState done [19:03:56]req_shift_opened done [19:03:56]requested_item shift.open_date is exist - process it [19:03:56]req_shift_open_date [19:03:56]req_shift_open_date done [19:03:56]produce_requested_data done [19:03:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92520,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:03:56]process_action_free close_receipt [19:03:56]json_value_free [19:03:56]json_value_free done [19:03:56]process_json_proto returns [19:03:56]Send response to host [19:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92520,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:03:56]free response buf [19:03:56]execute_script done [19:03:56]execute_script returns [19:03:56]free content buf [19:03:56]Sock 8.Close socket [19:03:56]Sock 8.Thread stoped [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:52]accept exits with 9 [19:10:52]New connection [19:10:52]New thread 3066801508 created [19:10:52]Thread 3066658148 joined [19:10:52]Waiting for new connection... [19:10:52] Sock 9.Parse request [19:10:52]Sock 9.Check first char [19:10:52]Sock 9.First char is OK [19:10:52]request: POST /json_proto HTTP/1.0 [19:10:52]Method: POST [19:10:52]URL: /json_proto [19:10:52]Method is POST - this is cgi request [19:10:52]url: /json_proto [19:10:52]query_string will be loaded in cgi processing [19:10:52]execute_cgi json_proto POST (null) [19:10:52]execute_cgi path=json_proto method=POST [19:10:52]POST find Content-Length [19:10:52]Host: 172.17.57.71:8080 [19:10:52]Content-Length: 681 [19:10:52]Content-Type: application/json [19:10:52] [19:10:52]POST finish read [19:10:52]Found Content-Length = 681 [19:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)647901", "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" : 36.90, "quantity" : 13.560, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:52]execute_script... [19:10: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)647901", "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" : 36.90, "quantity" : 13.560, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:52]POST & json_proto [19:10:52]process_json_proto [19:10:52]json parsed OK: [19:10:52]protocol is kg_v1.0 [19:10:52]action value=close_receipt [19:10:52]process_action close_receipt [19:10:52]cmd_close_receipt [19:10:52]MH_GetDate [19:10:52]Write to MH i2c: F0 00 00 A4 33 C6 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: F0 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: F0 09 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: F0 09 00 A4 33 00 C1 DF E5 66 33 3A A4 66 31 [19:10:52]GetLastDocTimeStamp 1726340636 [19:10:52]current date 1726341057 [19:10:52]FM_GetShiftState [19:10:52]SAM_PROTO_GetShiftState [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 13 01 00 [19:10:52]Write to MH i2c: E2 08 00 A5 33 80 13 01 00 00 00 00 00 55 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 0E 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 0E 00 A5 33 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EF [19:10:52]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:10:52]wFMCommunicate OK [19:10:52]SAM_PROTO_GetShiftState done [19:10:52]FM_GetShiftState done [19:10:52]opened in 1726273389 [19:10:52]opened+sec_in_day 1726359789 [19:10:52]quantity*price = 50036 [19:10:52]sum+1 = 50037 [19:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 172 14.09.2024 19:10 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92521 ФПД: 17145963180253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T191057&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92521&fm=17145963180253&tin=02508201610067®Number=0000000000091423&sum=50000 [19:10:53]StoreToDocumentArchive [19:10:53]shift 506 fd 92521 [19:10:53]save to /storage/0506/doc_00092521 [19:10:53]save last doc name /storage/0506/doc_00092521 to /storage/kkm_last_doc_name [19:10:53]save OK [19:10:53]Clear old archive folders... [19:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:10:53]tlvbuf is 010416C0 [19:10:53]SAM_PROTO_ClearQueue [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 09 00 00 [19:10:53]Write to MH i2c: E2 08 00 B2 33 80 09 00 00 00 00 00 00 57 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [19:10:53]RAPDU: 90 00 [19:10:53]wFMCommunicate OK [19:10:53]SAM_PROTO_ClearQueue done [19:10:53]KKMCreateOFDPacket [19:10:53]OFDProtocolAddRootSTLVToBuf [19:10:53]FM_MakeSignedData [19:10:53]FM_MakeSignedData [19:10:53]SAM_PROTO_SignData [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 0D 01 02 [19:10:53]Write to MH i2c: E2 08 00 B3 33 80 0D 01 02 00 00 00 00 5F [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 B3 33 00 90 00 5A [19:10:53]RAPDU: 90 00 [19:10:53]wFMCommunicate OK [19:10:53]wFMCommunicate request_size=255 [19:10:53]MH_SAM_APDU [19:10: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 F8 34 00 00 00 00 00 37 04 06 00 6A 0E 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 AC 00 00 00 F4 03 04 00 C1 DF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 69 01 00 35 04 06 00 0F 98 [19:10:53]Write to MH i2c: E2 02 01 B4 33 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 F8 34 00 00 00 00 00 37 04 06 00 6A 0E 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 AC 00 00 00 F4 03 04 00 C1 DF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 69 01 00 35 04 06 00 0F 98 00 00 AD [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 03 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 03 00 B4 33 00 90 00 5B [19:10:54]RAPDU: 90 00 [19:10:54]wFMCommunicate OK [19:10:54]wFMCommunicate request_size=9 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 0D 02 02 04 1B 0B 70 DD [19:10:54]Write to MH i2c: E2 0C 00 B5 33 80 0D 02 02 04 00 1B 0B 70 DD 00 00 DD [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 03 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 03 00 B5 33 00 90 00 5C [19:10:54]RAPDU: 90 00 [19:10:54]wFMCommunicate OK [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 0D 03 02 [19:10:54]Write to MH i2c: E2 08 00 B6 33 80 0D 03 02 00 00 00 00 64 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0B 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0B 00 B6 33 00 E7 78 2F 6B 51 A8 50 EC 90 00 93 [19:10:54]RAPDU: E7 78 2F 6B 51 A8 50 EC 90 00 [19:10:54]wFMCommunicate OK [19:10:54]SAM_PROTO_SignData done [19:10:54]FM_MakeSignedData done [19:10:54]CreateOFDProtocolMessage [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 11 00 00 [19:10:54]Write to MH i2c: E2 08 00 B7 33 80 11 00 00 00 00 00 00 64 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 17 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 17 00 B7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BB [19:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:10:54]wFMCommunicate OK [19:10:54]CreateOFDProtocolMessage done [19:10:54]OFDSenderStorePacket 92521 [19:10:54]StoreOFDPacket docnum=92521 [19:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 2D 08 06 01 77 4D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 F8 34 00 00 00 00 00 37 04 06 00 6A 0E 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 AC 00 00 00 F4 03 04 00 C1 DF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 69 01 00 35 04 06 00 0F 98 1B 0B 70 DD E7 78 2F 6B 51 A8 50 EC [19:10:54]CheckFolder [19:10:54]dirname=/storage/ofd_packets [19:10:54]CheckFolder done [19:10:54]ProducePacketName [19:10:54]name=ofd_packets/00092521 [19:10:54]NVStorageSaveData ofd_packets/00092521 [19:10:54]File name is /storage/ofd_packets/00092521 [19:10:54]Write 300 bytes [19:10:54]NVStorageSaveData done [19:10:54]OFDSenderStorePacket done [19:10:54]KKMCreateOFDPacket done [19:10:54]NVStorageSaveData kkm_last_timestamp [19:10:54]File name is /storage/kkm_last_timestamp [19:10:54]Write 4 bytes [19:10:54]NVStorageSaveData done [19:10:54]ExternCall_PrintAddStr [19:10:54]wPrintStart [19:10:54]Write to MH i2c: 01 00 00 B8 33 EB [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: 01 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: 01 07 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: 01 07 00 B8 33 00 00 00 00 00 FF 0F 00 [19:10:54]RasterBufferAndPrint [19:10:54]line Счет N : (1)647901 [19:10:54]line ИНН: 02508201610067 [19:10:54]line Контрольно-Кассовый Чек [19:10:54]line ПРОДАЖА [19:10:54]line ТРК (МРК, ГНК) : 71 [19:10:54]line Товар: 2711190000 [19:10:54]line ГАЗ-К-5 [19:10:54]line 13.560 * 36.90 [19:10:54]line = 500.36 [19:10:54]line НДС 12% НСП 1% [19:10:54]line > о реализуемом товаре [19:10:54]line ОКРУГЛЕНИЕ: -0.36 [19:10:54]line ИТОГО: 500.00 [19:10:54]line Внесено: 500.00 [19:10:54]line СДАЧА: 0.00 [19:10:54]line НСП 1% : 4.43 [19:10:54]line НДС 12% : 53.14 [19:10:54]line Наличными: 500.00 [19:10:54]line Безнал.: 0.00 [19:10:54]line Место: АЗС № 5 "Партнер Нефть" [19:10:54]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:10:54]line СНО: Общий режим [19:10:54]line Чек 172 14.09.2024 19:10 [19:10:54]line Смена: 506 ФФД: 1.0 [19:10:54]line ЗНМ: 03000000022 [19:10:54]line РНМ: 0000000000091423 [19:10:54]line Версия ККМ: 001 [19:10:54]line ФМ: 0000000000874692 [19:10:54]line ФД: 92521 [19:10:54]line ФПД: 17145963180253 [19:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T191057&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92521&fm=17145963180253&tin=02508201610067®Number=0000000000091423&sum=50000 [19:10:54]written 0, free lines is 4095 [19:10:54]OFD Sender: Processing packet 92521 [packets to send 63, broken 62] [19:10:54]ProducePacketName [19:10:54]name=ofd_packets/00092521 [19:10:54]OFD Sender: To server: pG, [19:10:54]CommunicateWithHost lk.salyk.kg:30040 [19:10:54]ConnectInit lk.salyk.kg [19:10:54]Connected sock=10 [19:10:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 2D 08 06 01 77 4D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 F8 34 00 00 00 00 00 37 04 06 00 6A 0E 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 AC 00 00 00 F4 03 04 00 C1 DF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 69 01 00 35 04 06 00 0F 98 1B 0B 70 DD E7 78 2F 6B 51 A8 50 EC [19:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0F 6A 47 00 82 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 69 69 01 00 F4 03 04 00 3B 88 E5 66 B6 04 01 00 00 3D 49 72 26 BE 2B 44 58 [19:10:55]CommunicateWithHost err = 0 [19:10:55]CheckOFDResponse [19:10:55]1017 (14) - 77093643461234 [19:10:55]1041 (16) - 0000000000874692 [19:10:55]1040 (4) - 92521 [19:10:55]1012 (4) - 14.09.2024 12:57 [19:10:55]1206 (1) - 0 [19:10:55]OFD Sender: Remove packet 92521 [19:10:55]ProducePacketName [19:10:55]name=ofd_packets/00092521 [19:10:55]NVStorageDeleteData [19:10:55]Write to MH i2c: 01 00 00 E3 33 16 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 07 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 07 00 E3 33 00 00 00 00 00 EC 0C 15 [19:10:55]RasterBufferAndPrint [19:10:55]line [19:10:55]line [19:10:55]line [19:10:55]line [19:10:55]line [19:10:55]written 0, free lines is 3316 [19:10:55]MH_Cut [19:10:55]Write to MH i2c: D1 01 00 EA 33 01 EF [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: D1 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: D1 01 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: D1 01 00 EA 33 00 EE [19:10:55]Write to MH i2c: 01 00 00 EB 33 1E [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]OFD Sender: No OFD packet to send [19:10:55]*** Cut start [19:10:55]*** Purtial cut [19:10:55]*** Stage 1: CUTSNS_PIN = 1 [19:10:57]Read from MH i2c: 01 [19:10:57]MH_I2C_Read... [19:10:57]*** Stop cut motor [19:10:57]*** Cut end [19:10:57]Read from MH i2c: 01 07 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: 01 07 00 EB 33 00 00 00 00 00 FF 0F 33 [19:10:57]process_action close_receipt done [19:10:57]requested_data is exist [19:10:57]produce_requested_data [19:10:57]requested_item fm.sn is exist - process it [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 11 00 00 [19:10:57]Write to MH i2c: E2 08 00 EC 33 80 11 00 00 00 00 00 00 99 [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 17 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 17 00 EC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [19:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:10:57]wFMCommunicate OK [19:10:57]requested_item fd.num is exist - process it [19:10:57]SAM_PROTO_GetFieldsCounters [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 13 00 00 [19:10:57]Write to MH i2c: E2 08 00 ED 33 80 13 00 00 00 00 00 00 9C [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:58]Read from MH i2c: E2 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 62 00 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 62 00 ED 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 69 69 01 00 0E 04 04 00 FA 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 8D [19:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 69 69 01 00 0E 04 04 00 FA 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 [19:10:58]wFMCommunicate OK [19:10:58]SAM_PROTO_GetFieldsCounters done [19:10:58]requested_item shift.num is exist - process it [19:10:58]requested_item shift.opened is exist - process it [19:10:58]req_shift_opened [19:10:58]FM_GetShiftState [19:10:58]SAM_PROTO_GetShiftState [19:10:58]wFMCommunicate request_size=4 [19:10:58]MH_SAM_APDU [19:10:58]CAPDU: 80 13 01 00 [19:10:58]Write to MH i2c: E2 08 00 EE 33 80 13 01 00 00 00 00 00 9E [19:10:58]Write i2c OK [19:10:58]MH_I2C_Read... [19:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:58]Read from MH i2c: E2 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 0E 00 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 0E 00 EE 33 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 38 [19:10:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:10:58]wFMCommunicate OK [19:10:58]SAM_PROTO_GetShiftState done [19:10:58]FM_GetShiftState done [19:10:58]req_shift_opened done [19:10:58]requested_item shift.open_date is exist - process it [19:10:58]req_shift_open_date [19:10:58]req_shift_open_date done [19:10:58]produce_requested_data done [19:10:58]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92521,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:10:58]process_action_free close_receipt [19:10:58]json_value_free [19:10:58]json_value_free done [19:10:58]process_json_proto returns [19:10:58]Send response to host [19:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92521,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:10:58]free response buf [19:10:58]execute_script done [19:10:58]execute_script returns [19:10:58]free content buf [19:10:58]Sock 9.Close socket [19:10:58]Sock 9.Thread stoped [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:20:58]accept exits with 8 [19:20:58]New connection [19:20:58]New thread 3066658148 created [19:20:58]Thread 3066801508 joined [19:20:58]Waiting for new connection... [19:20:58] Sock 8.Parse request [19:20:58]Sock 8.Check first char [19:20:58]Sock 8.First char is OK [19:20:58]request: POST /json_proto HTTP/1.0 [19:20:58]Method: POST [19:20:58]URL: /json_proto [19:20:58]Method is POST - this is cgi request [19:20:58]url: /json_proto [19:20:58]query_string will be loaded in cgi processing [19:20:58]execute_cgi json_proto POST (null) [19:20:58]execute_cgi path=json_proto method=POST [19:20:58]POST find Content-Length [19:20:58]Host: 172.17.57.71:8080 [19:20:58]Content-Length: 1189 [19:20:58]Content-Type: application/json [19:20:58] [19:20:58]POST finish read [19:20:58]Found Content-Length = 1189 [19:20:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127423", "tax_sys" : 0, "items" : [ { "code": "8691216090453", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Chervyachki ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216080348", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Zubi 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:58]execute_script... [19:20: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)127423", "tax_sys" : 0, "items" : [ { "code": "8691216090453", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Chervyachki ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216080348", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Zubi 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:58]POST & json_proto [19:20:58]process_json_proto [19:20:58]json parsed OK: [19:20:58]protocol is kg_v1.0 [19:20:58]action value=close_receipt [19:20:58]process_action close_receipt [19:20:58]cmd_close_receipt [19:20:58]MH_GetDate [19:20:58]Write to MH i2c: F0 00 00 EF 33 11 [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: F0 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: F0 09 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: F0 09 00 EF 33 00 1F E2 E5 66 33 3A A4 66 DD [19:20:58]GetLastDocTimeStamp 1726341057 [19:20:58]current date 1726341663 [19:20:58]FM_GetShiftState [19:20:58]SAM_PROTO_GetShiftState [19:20:58]wFMCommunicate request_size=4 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 13 01 00 [19:20:58]Write to MH i2c: E2 08 00 F0 33 80 13 01 00 00 00 00 00 A0 [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 0E 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 0E 00 F0 33 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3A [19:20:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:20:58]wFMCommunicate OK [19:20:58]SAM_PROTO_GetShiftState done [19:20:58]FM_GetShiftState done [19:20:58]opened in 1726273389 [19:20:58]opened+sec_in_day 1726359789 [19:20:58]quantity*price = 10000 [19:20:58]sum+1 = 10001 [19:20:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8691216080348 Жевательный мармелад HARIBO Zubi 80гр (2 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.76 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 173 14.09.2024 19:21 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92522 ФПД: 18000323647663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T192103&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92522&fm=18000323647663&tin=02508201610067®Number=0000000000091423&sum=20000 0 [19:20:59]StoreToDocumentArchive [19:20:59]shift 506 fd 92522 [19:20:59]save to /storage/0506/doc_00092522 [19:20:59]save last doc name /storage/0506/doc_00092522 to /storage/kkm_last_doc_name [19:20:59]save OK [19:20:59]Clear old archive folders... [19:20:59]ProcessDocumentItem done err = 0, tmpTLVsize=434 [19:20:59]tlvbuf is 00FC91B0 [19:20:59]SAM_PROTO_ClearQueue [19:20:59]wFMCommunicate request_size=4 [19:20:59]MH_SAM_APDU [19:20:59]CAPDU: 80 09 00 00 [19:20:59]Write to MH i2c: E2 08 00 FD 33 80 09 00 00 00 00 00 00 A2 [19:20:59]Write i2c OK [19:20:59]MH_I2C_Read... [19:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:00]Read from MH i2c: E2 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 03 00 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 03 00 FD 33 00 90 00 A4 [19:21:00]RAPDU: 90 00 [19:21:00]wFMCommunicate OK [19:21:00]SAM_PROTO_ClearQueue done [19:21:00]KKMCreateOFDPacket [19:21:00]OFDProtocolAddRootSTLVToBuf [19:21:00]FM_MakeSignedData [19:21:00]FM_MakeSignedData [19:21:00]SAM_PROTO_SignData [19:21:00]wFMCommunicate request_size=4 [19:21:00]MH_SAM_APDU [19:21:00]CAPDU: 80 0D 01 02 [19:21:00]Write to MH i2c: E2 08 00 FE 33 80 0D 01 02 00 00 00 00 AA [19:21:00]Write i2c OK [19:21:00]MH_I2C_Read... [19:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:00]Read from MH i2c: E2 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 03 00 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 03 00 FE 33 00 90 00 A5 [19:21:00]RAPDU: 90 00 [19:21:00]wFMCommunicate OK [19:21:00]wFMCommunicate request_size=255 [19:21:00]MH_SAM_APDU [19:21:00]CAPDU: 80 0D 02 02 FA 03 00 B2 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 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 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 [19:21:00]Write to MH i2c: E2 02 01 FF 33 80 0D 02 02 FA 00 03 00 B2 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 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 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 00 00 3B [19:21:00]Write i2c OK [19:21:00]MH_I2C_Read... [19:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:00]Read from MH i2c: E2 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 03 00 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 03 00 FF 33 00 90 00 A6 [19:21:00]RAPDU: 90 00 [19:21:00]wFMCommunicate OK [19:21:00]wFMCommunicate request_size=193 [19:21:00]MH_SAM_APDU [19:21:00]CAPDU: 80 0D 02 02 BC 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 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 1F E2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 69 01 00 35 04 06 00 10 5F 06 E5 98 AF [19:21:00]Write to MH i2c: E2 C4 00 00 34 80 0D 02 02 BC 00 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 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 1F E2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 69 01 00 35 04 06 00 10 5F 06 E5 98 AF 00 00 A0 [19:21:00]Write i2c OK [19:21:00]MH_I2C_Read... [19:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:00]Read from MH i2c: E2 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 03 00 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 03 00 00 34 00 90 00 A8 [19:21:00]RAPDU: 90 00 [19:21:00]wFMCommunicate OK [19:21:00]wFMCommunicate request_size=4 [19:21:00]MH_SAM_APDU [19:21:00]CAPDU: 80 0D 03 02 [19:21:00]Write to MH i2c: E2 08 00 01 34 80 0D 03 02 00 00 00 00 B0 [19:21:00]Write i2c OK [19:21:00]MH_I2C_Read... [19:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:00]Read from MH i2c: E2 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 0B 00 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 0B 00 01 34 00 BC 14 D0 A5 47 E4 C1 AB 90 00 8D [19:21:00]RAPDU: BC 14 D0 A5 47 E4 C1 AB 90 00 [19:21:00]wFMCommunicate OK [19:21:00]SAM_PROTO_SignData done [19:21:00]FM_MakeSignedData done [19:21:00]CreateOFDProtocolMessage [19:21:00]wFMCommunicate request_size=4 [19:21:00]MH_SAM_APDU [19:21:00]CAPDU: 80 11 00 00 [19:21:00]Write to MH i2c: E2 08 00 02 34 80 11 00 00 00 00 00 00 B0 [19:21:00]Write i2c OK [19:21:00]MH_I2C_Read... [19:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:00]Read from MH i2c: E2 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 17 00 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 17 00 02 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 07 [19:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:21:00]wFMCommunicate OK [19:21:00]CreateOFDProtocolMessage done [19:21:00]OFDSenderStorePacket 92522 [19:21:00]StoreOFDPacket docnum=92522 [19:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C6 01 00 00 B9 94 BE 01 D7 C2 5A 03 01 00 03 00 B2 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 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 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 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 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 1F E2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 69 01 00 35 04 06 00 10 5F 06 E5 98 AF BC 14 D0 A5 47 E4 C1 AB [19:21:00]CheckFolder [19:21:00]dirname=/storage/ofd_packets [19:21:00]CheckFolder done [19:21:01]ProducePacketName [19:21:01]name=ofd_packets/00092522 [19:21:01]NVStorageSaveData ofd_packets/00092522 [19:21:01]File name is /storage/ofd_packets/00092522 [19:21:01]Write 484 bytes [19:21:01]NVStorageSaveData done [19:21:01]OFDSenderStorePacket done [19:21:01]KKMCreateOFDPacket done [19:21:01]NVStorageSaveData kkm_last_timestamp [19:21:01]File name is /storage/kkm_last_timestamp [19:21:01]Write 4 bytes [19:21:01]NVStorageSaveData done [19:21:01]ExternCall_PrintAddStr [19:21:01]wPrintStart [19:21:01]Write to MH i2c: 01 00 00 03 34 37 [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: 01 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: 01 07 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: 01 07 00 03 34 00 00 00 00 00 FF 0F 4C [19:21:01]RasterBufferAndPrint [19:21:01]line Счет N : (3)127423 [19:21:01]line ИНН: 02508201610067 [19:21:01]line Контрольно-Кассовый Чек [19:21:01]line ПРОДАЖА [19:21:01]line Товар: 8691216090453 [19:21:01]line Жевательный мармелад HARIBO Chervyachki [19:21:01]line 1.000 * 100.00 [19:21:01]line = 100.00 [19:21:01]line НДС 12% НСП 1% [19:21:01]line > о реализуемом товаре [19:21:01]line Товар: 8691216080348 [19:21:01]line Жевательный мармелад HARIBO Zubi 80гр (2 [19:21:01]line 1.000 * 100.00 [19:21:01]line = 100.00 [19:21:01]line НДС 12% НСП 1% [19:21:01]line > о реализуемом товаре [19:21:01]line ИТОГО: 200.00 [19:21:01]line НСП 1% : 1.76 [19:21:01]line НДС 12% : 21.24 [19:21:01]line Наличными: 0.00 [19:21:01]line Безнал.: 200.00 [19:21:01]line Место: АЗС № 5 "Партнер Нефть" [19:21:01]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:21:01]line СНО: Общий режим [19:21:01]line Чек 173 14.09.2024 19:21 [19:21:01]line Смена: 506 ФФД: 1.0 [19:21:01]line ЗНМ: 03000000022 [19:21:01]line РНМ: 0000000000091423 [19:21:01]line Версия ККМ: 001 [19:21:01]line Платежная система: Бакай Банк [19:21:01]line ФМ: 0000000000874692 [19:21:01]line ФД: 92522 [19:21:01]line ФПД: 18000323647663 [19:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T192103&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92522&fm=18000323647663&tin=02508201610067®Number=0000000000091423&sum=20000 [19:21:01]line 0 [19:21:01]written 0, free lines is 4095 [19:21:01]OFD Sender: Processing packet 92522 [packets to send 63, broken 62] [19:21:01]ProducePacketName [19:21:01]name=ofd_packets/00092522 [19:21:01]OFD Sender: To server: pG, [19:21:01]CommunicateWithHost lk.salyk.kg:30040 [19:21:01]ConnectInit lk.salyk.kg [19:21:01]Connected sock=10 [19:21:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 C6 01 00 00 B9 94 BE 01 D7 C2 5A 03 01 00 03 00 B2 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 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 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 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 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 1F E2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 69 01 00 35 04 06 00 10 5F 06 E5 98 AF BC 14 D0 A5 47 E4 C1 AB [19:21:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4F AE 47 00 4A 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6A 69 01 00 F4 03 04 00 9A 8A E5 66 B6 04 01 00 00 2C 55 03 83 D6 C4 B5 DC [19:21:01]CommunicateWithHost err = 0 [19:21:01]CheckOFDResponse [19:21:01]1017 (14) - 77093643461234 [19:21:01]1041 (16) - 0000000000874692 [19:21:01]1040 (4) - 92522 [19:21:01]1012 (4) - 14.09.2024 13:07 [19:21:01]1206 (1) - 0 [19:21:01]OFD Sender: Remove packet 92522 [19:21:01]ProducePacketName [19:21:01]name=ofd_packets/00092522 [19:21:01]NVStorageDeleteData [19:21:01]Write to MH i2c: 01 00 00 35 34 69 [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: 01 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: 01 07 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: 01 07 00 35 34 00 00 00 00 00 BA 0C 36 [19:21:01]RasterBufferAndPrint [19:21:01]line [19:21:01]line [19:21:01]line [19:21:01]line [19:21:01]line [19:21:01]written 0, free lines is 3267 [19:21:01]MH_Cut [19:21:01]Write to MH i2c: D1 01 00 3C 34 01 42 [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: D1 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: D1 01 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: D1 01 00 3C 34 00 41 [19:21:01]Write to MH i2c: 01 00 00 3D 34 71 [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]OFD Sender: No OFD packet to send [19:21:02]*** Cut start [19:21:02]*** Purtial cut [19:21:02]*** Stage 1: CUTSNS_PIN = 1 [19:21:04]Read from MH i2c: 01 [19:21:04]MH_I2C_Read... [19:21:04]*** Stop cut motor [19:21:04]*** Cut end [19:21:04]Read from MH i2c: 01 07 00 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: 01 07 00 3D 34 00 00 00 00 00 FF 0F 86 [19:21:04]process_action close_receipt done [19:21:04]requested_data is exist [19:21:04]produce_requested_data [19:21:04]requested_item fm.sn is exist - process it [19:21:04]wFMCommunicate request_size=4 [19:21:04]MH_SAM_APDU [19:21:04]CAPDU: 80 11 00 00 [19:21:04]Write to MH i2c: E2 08 00 3E 34 80 11 00 00 00 00 00 00 EC [19:21:04]Write i2c OK [19:21:04]MH_I2C_Read... [19:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:04]Read from MH i2c: E2 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: E2 17 00 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: E2 17 00 3E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 43 [19:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:21:04]wFMCommunicate OK [19:21:04]requested_item fd.num is exist - process it [19:21:04]SAM_PROTO_GetFieldsCounters [19:21:04]wFMCommunicate request_size=4 [19:21:04]MH_SAM_APDU [19:21:04]CAPDU: 80 13 00 00 [19:21:04]Write to MH i2c: E2 08 00 3F 34 80 13 00 00 00 00 00 00 EF [19:21:04]Write i2c OK [19:21:04]MH_I2C_Read... [19:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:04]Read from MH i2c: E2 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: E2 62 00 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: E2 62 00 3F 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6A 69 01 00 0E 04 04 00 FA 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 E4 [19:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6A 69 01 00 0E 04 04 00 FA 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 [19:21:04]wFMCommunicate OK [19:21:04]SAM_PROTO_GetFieldsCounters done [19:21:04]requested_item shift.num is exist - process it [19:21:04]requested_item shift.opened is exist - process it [19:21:04]req_shift_opened [19:21:04]FM_GetShiftState [19:21:04]SAM_PROTO_GetShiftState [19:21:04]wFMCommunicate request_size=4 [19:21:04]MH_SAM_APDU [19:21:04]CAPDU: 80 13 01 00 [19:21:04]Write to MH i2c: E2 08 00 40 34 80 13 01 00 00 00 00 00 F1 [19:21:04]Write i2c OK [19:21:04]MH_I2C_Read... [19:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:04]Read from MH i2c: E2 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: E2 0E 00 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: E2 0E 00 40 34 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8B [19:21:04]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:21:04]wFMCommunicate OK [19:21:04]SAM_PROTO_GetShiftState done [19:21:04]FM_GetShiftState done [19:21:04]req_shift_opened done [19:21:04]requested_item shift.open_date is exist - process it [19:21:04]req_shift_open_date [19:21:04]req_shift_open_date done [19:21:04]produce_requested_data done [19:21:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92522,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:21:04]process_action_free close_receipt [19:21:04]json_value_free [19:21:04]json_value_free done [19:21:04]process_json_proto returns [19:21:04]Send response to host [19:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92522,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:21:04]free response buf [19:21:04]execute_script done [19:21:04]execute_script returns [19:21:04]free content buf [19:21:04]Sock 8.Close socket [19:21:04]Sock 8.Thread stoped [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:20]accept exits with 9 [19:24:20]New connection [19:24:20]New thread 3066801508 created [19:24:20]Thread 3066658148 joined [19:24:20]Waiting for new connection... [19:24:20] Sock 9.Parse request [19:24:20]Sock 9.Check first char [19:24:20]Sock 9.First char is OK [19:24:20]request: POST /json_proto HTTP/1.0 [19:24:20]Method: POST [19:24:20]URL: /json_proto [19:24:20]Method is POST - this is cgi request [19:24:20]url: /json_proto [19:24:20]query_string will be loaded in cgi processing [19:24:20]execute_cgi json_proto POST (null) [19:24:20]execute_cgi path=json_proto method=POST [19:24:20]POST find Content-Length [19:24:20]Host: 172.17.57.71:8080 [19:24:20]Content-Length: 827 [19:24:20]Content-Type: application/json [19:24:20] [19:24:20]POST finish read [19:24:20]Found Content-Length = 827 [19:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127425", "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" : 2.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:20]execute_script... [19:24: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)127425", "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" : 2.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:20]POST & json_proto [19:24:20]process_json_proto [19:24:20]json parsed OK: [19:24:20]protocol is kg_v1.0 [19:24:20]action value=close_receipt [19:24:20]process_action close_receipt [19:24:20]cmd_close_receipt [19:24:20]MH_GetDate [19:24:20]Write to MH i2c: F0 00 00 41 34 64 [19:24:20]Write i2c OK [19:24:20]MH_I2C_Read... [19:24:20]Read from MH i2c: F0 [19:24:20]MH_I2C_Read... [19:24:20]Read from MH i2c: F0 09 00 [19:24:20]MH_I2C_Read... [19:24:20]Read from MH i2c: F0 09 00 41 34 00 E9 E2 E5 66 33 3A A4 66 FA [19:24:20]GetLastDocTimeStamp 1726341663 [19:24:20]current date 1726341865 [19:24:20]FM_GetShiftState [19:24:20]SAM_PROTO_GetShiftState [19:24:20]wFMCommunicate request_size=4 [19:24:20]MH_SAM_APDU [19:24:20]CAPDU: 80 13 01 00 [19:24:20]Write to MH i2c: E2 08 00 42 34 80 13 01 00 00 00 00 00 F3 [19:24:20]Write i2c OK [19:24:20]MH_I2C_Read... [19:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:20]Read from MH i2c: E2 [19:24:20]MH_I2C_Read... [19:24:20]Read from MH i2c: E2 0E 00 [19:24:20]MH_I2C_Read... [19:24:20]Read from MH i2c: E2 0E 00 42 34 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 8D [19:24:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:24:20]wFMCommunicate OK [19:24:20]SAM_PROTO_GetShiftState done [19:24:20]FM_GetShiftState done [19:24:20]opened in 1726273389 [19:24:20]opened+sec_in_day 1726359789 [19:24:20]quantity*price = 15000 [19:24:20]sum+1 = 15001 [19:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 174 14.09.2024 19:24 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92523 ФПД: 172667022081649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T192425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92523&fm=172667022081649&tin=02508201610067®Number=0000000000091423&sum=15000 0 [19:24:21]StoreToDocumentArchive [19:24:21]shift 506 fd 92523 [19:24:21]save to /storage/0506/doc_00092523 [19:24:21]save last doc name /storage/0506/doc_00092523 to /storage/kkm_last_doc_name [19:24:21]save OK [19:24:21]Clear old archive folders... [19:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=290 [19:24:21]tlvbuf is 0101E520 [19:24:21]SAM_PROTO_ClearQueue [19:24:21]wFMCommunicate request_size=4 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 09 00 00 [19:24:21]Write to MH i2c: E2 08 00 4F 34 80 09 00 00 00 00 00 00 F5 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 4F 34 00 90 00 F7 [19:24:21]RAPDU: 90 00 [19:24:21]wFMCommunicate OK [19:24:21]SAM_PROTO_ClearQueue done [19:24:21]KKMCreateOFDPacket [19:24:21]OFDProtocolAddRootSTLVToBuf [19:24:21]FM_MakeSignedData [19:24:21]FM_MakeSignedData [19:24:21]SAM_PROTO_SignData [19:24:21]wFMCommunicate request_size=4 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 0D 01 02 [19:24:21]Write to MH i2c: E2 08 00 50 34 80 0D 01 02 00 00 00 00 FD [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 50 34 00 90 00 F8 [19:24:21]RAPDU: 90 00 [19:24:21]wFMCommunicate OK [19:24:21]wFMCommunicate request_size=255 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 0D 02 02 FA 03 00 22 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 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E9 E2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [19:24:21]Write to MH i2c: E2 02 01 51 34 80 0D 02 02 FA 00 03 00 22 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 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E9 E2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 D3 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:22]OFD Sender: No OFD packet to send [19:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:22]Read from MH i2c: E2 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 51 34 00 90 00 F9 [19:24:22]RAPDU: 90 00 [19:24:22]wFMCommunicate OK [19:24:22]wFMCommunicate request_size=49 [19:24:22]MH_SAM_APDU [19:24:22]CAPDU: 80 0D 02 02 2C 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 69 01 00 35 04 06 00 9D 0A 2C 83 FE 71 [19:24:22]Write to MH i2c: E2 34 00 52 34 80 0D 02 02 2C 00 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 69 01 00 35 04 06 00 9D 0A 2C 83 FE 71 00 00 C5 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:22]Read from MH i2c: E2 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 52 34 00 90 00 FA [19:24:22]RAPDU: 90 00 [19:24:22]wFMCommunicate OK [19:24:22]wFMCommunicate request_size=4 [19:24:22]MH_SAM_APDU [19:24:22]CAPDU: 80 0D 03 02 [19:24:22]Write to MH i2c: E2 08 00 53 34 80 0D 03 02 00 00 00 00 02 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:22]Read from MH i2c: E2 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 0B 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 0B 00 53 34 00 57 EF 1C DC 68 A3 30 99 90 00 15 [19:24:22]RAPDU: 57 EF 1C DC 68 A3 30 99 90 00 [19:24:22]wFMCommunicate OK [19:24:22]SAM_PROTO_SignData done [19:24:22]FM_MakeSignedData done [19:24:22]CreateOFDProtocolMessage [19:24:22]wFMCommunicate request_size=4 [19:24:22]MH_SAM_APDU [19:24:22]CAPDU: 80 11 00 00 [19:24:22]Write to MH i2c: E2 08 00 54 34 80 11 00 00 00 00 00 00 02 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:22]Read from MH i2c: E2 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 17 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 17 00 54 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 59 [19:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:24:22]wFMCommunicate OK [19:24:22]CreateOFDProtocolMessage done [19:24:22]OFDSenderStorePacket 92523 [19:24:22]StoreOFDPacket docnum=92523 [19:24:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 01 00 00 88 FA 2E 01 E7 08 5A 03 01 00 03 00 22 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 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E9 E2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 69 01 00 35 04 06 00 9D 0A 2C 83 FE 71 57 EF 1C DC 68 A3 30 99 [19:24:22]CheckFolder [19:24:22]dirname=/storage/ofd_packets [19:24:22]CheckFolder done [19:24:22]ProducePacketName [19:24:22]name=ofd_packets/00092523 [19:24:22]NVStorageSaveData ofd_packets/00092523 [19:24:22]File name is /storage/ofd_packets/00092523 [19:24:22]Write 340 bytes [19:24:22]NVStorageSaveData done [19:24:22]OFDSenderStorePacket done [19:24:22]KKMCreateOFDPacket done [19:24:22]NVStorageSaveData kkm_last_timestamp [19:24:22]File name is /storage/kkm_last_timestamp [19:24:22]Write 4 bytes [19:24:22]NVStorageSaveData done [19:24:22]ExternCall_PrintAddStr [19:24:22]wPrintStart [19:24:22]Write to MH i2c: 01 00 00 55 34 89 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: 01 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: 01 07 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: 01 07 00 55 34 00 00 00 00 00 FF 0F 9E [19:24:22]RasterBufferAndPrint [19:24:22]line Счет N : (3)127425 [19:24:22]line ИНН: 02508201610067 [19:24:22]line Контрольно-Кассовый Чек [19:24:22]line ПРОДАЖА [19:24:22]line Товар: 4870001154059 [19:24:22]line Напиток Lipton IceTea 0,5л зел чай [19:24:22]line 2.000 * 75.00 [19:24:22]line = 150.00 [19:24:22]line НДС 12% НСП 1% [19:24:22]line > о реализуемом товаре [19:24:22]line ИТОГО: 150.00 [19:24:22]line НСП 1% : 1.33 [19:24:22]line НДС 12% : 15.93 [19:24:22]line Наличными: 0.00 [19:24:22]line Безнал.: 150.00 [19:24:22]line Место: АЗС № 5 "Партнер Нефть" [19:24:22]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:24:22]line СНО: Общий режим [19:24:22]line Чек 174 14.09.2024 19:24 [19:24:22]line Смена: 506 ФФД: 1.0 [19:24:22]line ЗНМ: 03000000022 [19:24:22]line РНМ: 0000000000091423 [19:24:22]line Версия ККМ: 001 [19:24:22]line Платежная система: О! деньги [19:24:22]line ФМ: 0000000000874692 [19:24:22]line ФД: 92523 [19:24:22]line ФПД: 172667022081649 [19:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T192425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92523&fm=172667022081649&tin=02508201610067®Number=0000000000091423&sum=15000 [19:24:22]line 0 [19:24:22]OFD Sender: Processing packet 92523 [packets to send 63, broken 62] [19:24:22]ProducePacketName [19:24:22]name=ofd_packets/00092523 [19:24:22]OFD Sender: To server: pG, [19:24:22]CommunicateWithHost lk.salyk.kg:30040 [19:24:22]ConnectInit lk.salyk.kg [19:24:22]written 0, free lines is 4095 [19:24:22]Connected sock=10 [19:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 36 01 00 00 88 FA 2E 01 E7 08 5A 03 01 00 03 00 22 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 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E9 E2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 69 01 00 35 04 06 00 9D 0A 2C 83 FE 71 57 EF 1C DC 68 A3 30 99 [19:24:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 77 2B 47 00 70 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6B 69 01 00 F4 03 04 00 63 8B E5 66 B6 04 01 00 00 92 8D 26 88 25 91 A6 55 [19:24:22]CommunicateWithHost err = 0 [19:24:22]CheckOFDResponse [19:24:22]1017 (14) - 77093643461234 [19:24:22]1041 (16) - 0000000000874692 [19:24:22]1040 (4) - 92523 [19:24:22]1012 (4) - 14.09.2024 13:10 [19:24:22]1206 (1) - 0 [19:24:22]OFD Sender: Remove packet 92523 [19:24:22]ProducePacketName [19:24:22]name=ofd_packets/00092523 [19:24:22]NVStorageDeleteData [19:24:23]Write to MH i2c: 01 00 00 80 34 B4 [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 07 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 07 00 80 34 00 00 00 00 00 E8 0C AF [19:24:23]RasterBufferAndPrint [19:24:23]line [19:24:23]line [19:24:23]line [19:24:23]line [19:24:23]line [19:24:23]written 0, free lines is 3309 [19:24:23]MH_Cut [19:24:23]Write to MH i2c: D1 01 00 87 34 01 8D [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: D1 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: D1 01 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: D1 01 00 87 34 00 8C [19:24:23]Write to MH i2c: 01 00 00 88 34 BC [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]OFD Sender: No OFD packet to send [19:24:23]*** Cut start [19:24:23]*** Purtial cut [19:24:23]*** Stage 1: CUTSNS_PIN = 1 [19:24:25]Read from MH i2c: 01 [19:24:25]MH_I2C_Read... [19:24:25]*** Stop cut motor [19:24:25]*** Cut end [19:24:25]Read from MH i2c: 01 07 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: 01 07 00 88 34 00 00 00 00 00 FF 0F D1 [19:24:25]process_action close_receipt done [19:24:25]requested_data is exist [19:24:25]produce_requested_data [19:24:25]requested_item fm.sn is exist - process it [19:24:25]wFMCommunicate request_size=4 [19:24:25]MH_SAM_APDU [19:24:25]CAPDU: 80 11 00 00 [19:24:25]Write to MH i2c: E2 08 00 89 34 80 11 00 00 00 00 00 00 37 [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:25]Read from MH i2c: E2 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 17 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 17 00 89 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8E [19:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:24:25]wFMCommunicate OK [19:24:25]requested_item fd.num is exist - process it [19:24:25]SAM_PROTO_GetFieldsCounters [19:24:25]wFMCommunicate request_size=4 [19:24:25]MH_SAM_APDU [19:24:25]CAPDU: 80 13 00 00 [19:24:25]Write to MH i2c: E2 08 00 8A 34 80 13 00 00 00 00 00 00 3A [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 62 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 62 00 8A 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6B 69 01 00 0E 04 04 00 FA 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 33 [19:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6B 69 01 00 0E 04 04 00 FA 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 [19:24:26]wFMCommunicate OK [19:24:26]SAM_PROTO_GetFieldsCounters done [19:24:26]requested_item shift.num is exist - process it [19:24:26]requested_item shift.opened is exist - process it [19:24:26]req_shift_opened [19:24:26]FM_GetShiftState [19:24:26]SAM_PROTO_GetShiftState [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 13 01 00 [19:24:26]Write to MH i2c: E2 08 00 8B 34 80 13 01 00 00 00 00 00 3C [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 0E 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 0E 00 8B 34 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D6 [19:24:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:24:26]wFMCommunicate OK [19:24:26]SAM_PROTO_GetShiftState done [19:24:26]FM_GetShiftState done [19:24:26]req_shift_opened done [19:24:26]requested_item shift.open_date is exist - process it [19:24:26]req_shift_open_date [19:24:26]req_shift_open_date done [19:24:26]produce_requested_data done [19:24:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92523,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:24:26]process_action_free close_receipt [19:24:26]json_value_free [19:24:26]json_value_free done [19:24:26]process_json_proto returns [19:24:26]Send response to host [19:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92523,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:24:26]free response buf [19:24:26]execute_script done [19:24:26]execute_script returns [19:24:26]free content buf [19:24:26]Sock 9.Close socket [19:24:26]Sock 9.Thread stoped [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32: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:15]accept exits with 8 [19:33:15]New connection [19:33:15]New thread 3066658148 created [19:33:15]Thread 3066801508 joined [19:33:15]Waiting for new connection... [19:33:15] Sock 8.Parse request [19:33:15]Sock 8.Check first char [19:33:15]Sock 8.First char is OK [19:33:15]request: POST /json_proto HTTP/1.0 [19:33:15]Method: POST [19:33:15]URL: /json_proto [19:33:15]Method is POST - this is cgi request [19:33:15]url: /json_proto [19:33:15]query_string will be loaded in cgi processing [19:33:15]execute_cgi json_proto POST (null) [19:33:15]execute_cgi path=json_proto method=POST [19:33:15]POST find Content-Length [19:33:15]Host: 172.17.57.71:8080 [19:33:15]Content-Length: 1114 [19:33:15]Content-Type: application/json [19:33:15] [19:33:15]POST finish read [19:33:15]Found Content-Length = 1114 [19:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127426", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:15]execute_script... [19:33:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127426", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:15]POST & json_proto [19:33:15]process_json_proto [19:33:15]json parsed OK: [19:33:15]protocol is kg_v1.0 [19:33:15]action value=close_receipt [19:33:15]process_action close_receipt [19:33:15]cmd_close_receipt [19:33:15]MH_GetDate [19:33:15]Write to MH i2c: F0 00 00 8C 34 AF [19:33:15]Write i2c OK [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: F0 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: F0 09 00 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: F0 09 00 8C 34 00 00 E5 E5 66 33 3A A4 66 5F [19:33:15]GetLastDocTimeStamp 1726341865 [19:33:15]current date 1726342400 [19:33:15]FM_GetShiftState [19:33:15]SAM_PROTO_GetShiftState [19:33:15]wFMCommunicate request_size=4 [19:33:15]MH_SAM_APDU [19:33:15]CAPDU: 80 13 01 00 [19:33:15]Write to MH i2c: E2 08 00 8D 34 80 13 01 00 00 00 00 00 3E [19:33:15]Write i2c OK [19:33:15]MH_I2C_Read... [19:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:15]Read from MH i2c: E2 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: E2 0E 00 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: E2 0E 00 8D 34 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D8 [19:33:15]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:33:15]wFMCommunicate OK [19:33:15]SAM_PROTO_GetShiftState done [19:33:15]FM_GetShiftState done [19:33:15]opened in 1726273389 [19:33:15]opened+sec_in_day 1726359789 [19:33:15]quantity*price = 12500 [19:33:15]sum+1 = 12501 [19:33:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40822426 Вода Бонаква 0,5л б/г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 0.00 Безнал.: 165.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 175 14.09.2024 19:33 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92524 ФПД: 254076371579338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T193320&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92524&fm=254076371579338&tin=02508201610067®Number=0000000000091423&sum=16500 0 [19:33:16]StoreToDocumentArchive [19:33:16]shift 506 fd 92524 [19:33:16]save to /storage/0506/doc_00092524 [19:33:16]save last doc name /storage/0506/doc_00092524 to /storage/kkm_last_doc_name [19:33:16]save OK [19:33:16]Clear old archive folders... [19:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=396 [19:33:16]tlvbuf is B6F30A70 [19:33:16]SAM_PROTO_ClearQueue [19:33:16]wFMCommunicate request_size=4 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 09 00 00 [19:33:16]Write to MH i2c: E2 08 00 9A 34 80 09 00 00 00 00 00 00 40 [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:16]Read from MH i2c: E2 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 9A 34 00 90 00 42 [19:33:16]RAPDU: 90 00 [19:33:16]wFMCommunicate OK [19:33:16]SAM_PROTO_ClearQueue done [19:33:16]KKMCreateOFDPacket [19:33:16]OFDProtocolAddRootSTLVToBuf [19:33:16]FM_MakeSignedData [19:33:16]FM_MakeSignedData [19:33:16]SAM_PROTO_SignData [19:33:16]wFMCommunicate request_size=4 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 0D 01 02 [19:33:16]Write to MH i2c: E2 08 00 9B 34 80 0D 01 02 00 00 00 00 48 [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:16]Read from MH i2c: E2 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 9B 34 00 90 00 43 [19:33:16]RAPDU: 90 00 [19:33:16]wFMCommunicate OK [19:33:16]wFMCommunicate request_size=255 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF [19:33:16]Write to MH i2c: E2 02 01 9C 34 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 00 00 10 [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 9C 34 00 90 00 44 [19:33:17]RAPDU: 90 00 [19:33:17]wFMCommunicate OK [19:33:17]wFMCommunicate request_size=155 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 0D 02 02 96 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 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 00 E5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6C 69 01 00 35 04 06 00 E7 14 C3 DF B1 CA [19:33:17]Write to MH i2c: E2 9E 00 9D 34 80 0D 02 02 96 00 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 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 00 E5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6C 69 01 00 35 04 06 00 E7 14 C3 DF B1 CA 00 00 9B [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 9D 34 00 90 00 45 [19:33:17]RAPDU: 90 00 [19:33:17]wFMCommunicate OK [19:33:17]wFMCommunicate request_size=4 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 0D 03 02 [19:33:17]Write to MH i2c: E2 08 00 9E 34 80 0D 03 02 00 00 00 00 4D [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 0B 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 0B 00 9E 34 00 BF 52 FC C2 A4 6E A6 7C 90 00 51 [19:33:17]RAPDU: BF 52 FC C2 A4 6E A6 7C 90 00 [19:33:17]wFMCommunicate OK [19:33:17]SAM_PROTO_SignData done [19:33:17]FM_MakeSignedData done [19:33:17]CreateOFDProtocolMessage [19:33:17]wFMCommunicate request_size=4 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 11 00 00 [19:33:17]Write to MH i2c: E2 08 00 9F 34 80 11 00 00 00 00 00 00 4D [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 17 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 17 00 9F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A4 [19:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:33:17]wFMCommunicate OK [19:33:17]CreateOFDProtocolMessage done [19:33:17]OFDSenderStorePacket 92524 [19:33:17]StoreOFDPacket docnum=92524 [19:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A0 01 00 00 84 B7 98 01 29 0D 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 00 E5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6C 69 01 00 35 04 06 00 E7 14 C3 DF B1 CA BF 52 FC C2 A4 6E A6 7C [19:33:17]CheckFolder [19:33:17]dirname=/storage/ofd_packets [19:33:17]CheckFolder done [19:33:17]ProducePacketName [19:33:17]name=ofd_packets/00092524 [19:33:17]NVStorageSaveData ofd_packets/00092524 [19:33:17]File name is /storage/ofd_packets/00092524 [19:33:17]Write 446 bytes [19:33:17]NVStorageSaveData done [19:33:17]OFDSenderStorePacket done [19:33:17]KKMCreateOFDPacket done [19:33:17]NVStorageSaveData kkm_last_timestamp [19:33:17]File name is /storage/kkm_last_timestamp [19:33:17]Write 4 bytes [19:33:17]NVStorageSaveData done [19:33:17]ExternCall_PrintAddStr [19:33:17]wPrintStart [19:33:17]Write to MH i2c: 01 00 00 A0 34 D4 [19:33:17]OFD Sender: Processing packet 92524 [packets to send 63, broken 62] [19:33:17]ProducePacketName [19:33:17]name=ofd_packets/00092524 [19:33:17]OFD Sender: To server: pG, [19:33:17]CommunicateWithHost lk.salyk.kg:30040 [19:33:17]ConnectInit lk.salyk.kg [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 07 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 07 00 A0 34 00 00 00 00 00 FF 0F E9 [19:33:17]RasterBufferAndPrint [19:33:17]line Счет N : (3)127426 [19:33:17]line ИНН: 02508201610067 [19:33:17]line Контрольно-Кассовый Чек [19:33:17]line ПРОДАЖА [19:33:17]line Товар: 4870202521247 [19:33:17]line Напиток MAXI чай 1,2 черн.персик [19:33:17]line 1.000 * 125.00 [19:33:17]line = 125.00 [19:33:17]line НДС 12% НСП 1% [19:33:17]line > о реализуемом товаре [19:33:17]line Товар: 40822426 [19:33:17]line Вода Бонаква 0,5л б/г [19:33:17]line 1.000 * 40.00 [19:33:17]line = 40.00 [19:33:17]line НДС 12% НСП 1% [19:33:17]line > о реализуемом товаре [19:33:17]line ИТОГО: 165.00 [19:33:17]line НСП 1% : 1.46 [19:33:17]line НДС 12% : 17.52 [19:33:17]line Наличными: 0.00 [19:33:17]line Безнал.: 165.00 [19:33:17]line Место: АЗС № 5 "Партнер Нефть" [19:33:17]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:33:17]line СНО: Общий режим [19:33:17]line Чек 175 14.09.2024 19:33 [19:33:17]line Смена: 506 ФФД: 1.0 [19:33:17]line ЗНМ: 03000000022 [19:33:17]line РНМ: 0000000000091423 [19:33:17]line Версия ККМ: 001 [19:33:17]line Платежная система: О! деньги [19:33:17]line ФМ: 0000000000874692 [19:33:17]line ФД: 92524 [19:33:17]line ФПД: 254076371579338 [19:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T193320&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92524&fm=254076371579338&tin=02508201610067®Number=0000000000091423&sum=16500 [19:33:17]line 0 [19:33:17]written 0, free lines is 4095 [19:33:17]Connected sock=10 [19:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A0 01 00 00 84 B7 98 01 29 0D 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 00 E5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6C 69 01 00 35 04 06 00 E7 14 C3 DF B1 CA BF 52 FC C2 A4 6E A6 7C [19:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 42 50 47 00 D8 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6C 69 01 00 F4 03 04 00 7A 8D E5 66 B6 04 01 00 00 24 B8 C1 46 4E 80 ED EE [19:33:18]CommunicateWithHost err = 0 [19:33:18]CheckOFDResponse [19:33:18]1017 (14) - 77093643461234 [19:33:18]1041 (16) - 0000000000874692 [19:33:18]1040 (4) - 92524 [19:33:18]1012 (4) - 14.09.2024 13:19 [19:33:18]1206 (1) - 0 [19:33:18]OFD Sender: Remove packet 92524 [19:33:18]ProducePacketName [19:33:18]name=ofd_packets/00092524 [19:33:18]NVStorageDeleteData [19:33:18]Write to MH i2c: 01 00 00 D1 34 05 [19:33:18]Write i2c OK [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: 01 [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: 01 07 00 [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: 01 07 00 D1 34 00 00 00 00 00 A3 0C BB [19:33:18]RasterBufferAndPrint [19:33:18]line [19:33:18]line [19:33:18]line [19:33:18]line [19:33:18]line [19:33:18]written 0, free lines is 3242 [19:33:18]MH_Cut [19:33:18]Write to MH i2c: D1 01 00 D8 34 01 DE [19:33:18]Write i2c OK [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: D1 [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: D1 01 00 [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: D1 01 00 D8 34 00 DD [19:33:18]Write to MH i2c: 01 00 00 D9 34 0D [19:33:18]Write i2c OK [19:33:18]MH_I2C_Read... [19:33:18]OFD Sender: No OFD packet to send [19:33:19]*** Cut start [19:33:19]*** Purtial cut [19:33:19]*** Stage 1: CUTSNS_PIN = 1 [19:33:21]Read from MH i2c: 01 [19:33:21]MH_I2C_Read... [19:33:21]*** Stop cut motor [19:33:21]*** Cut end [19:33:21]Read from MH i2c: 01 07 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: 01 07 00 D9 34 00 00 00 00 00 FF 0F 22 [19:33:21]process_action close_receipt done [19:33:21]requested_data is exist [19:33:21]produce_requested_data [19:33:21]requested_item fm.sn is exist - process it [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 11 00 00 [19:33:21]Write to MH i2c: E2 08 00 DA 34 80 11 00 00 00 00 00 00 88 [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 17 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 17 00 DA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DF [19:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:33:21]wFMCommunicate OK [19:33:21]requested_item fd.num is exist - process it [19:33:21]SAM_PROTO_GetFieldsCounters [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 13 00 00 [19:33:21]Write to MH i2c: E2 08 00 DB 34 80 13 00 00 00 00 00 00 8B [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 62 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 62 00 DB 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6C 69 01 00 0E 04 04 00 FA 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 88 [19:33:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6C 69 01 00 0E 04 04 00 FA 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 [19:33:21]wFMCommunicate OK [19:33:21]SAM_PROTO_GetFieldsCounters done [19:33:21]requested_item shift.num is exist - process it [19:33:21]requested_item shift.opened is exist - process it [19:33:21]req_shift_opened [19:33:21]FM_GetShiftState [19:33:21]SAM_PROTO_GetShiftState [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 13 01 00 [19:33:21]Write to MH i2c: E2 08 00 DC 34 80 13 01 00 00 00 00 00 8D [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:21]Read from MH i2c: E2 0E 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 0E 00 DC 34 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 27 [19:33:21]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:33:21]wFMCommunicate OK [19:33:21]SAM_PROTO_GetShiftState done [19:33:21]FM_GetShiftState done [19:33:21]req_shift_opened done [19:33:21]requested_item shift.open_date is exist - process it [19:33:21]req_shift_open_date [19:33:21]req_shift_open_date done [19:33:21]produce_requested_data done [19:33:21]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92524,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:33:21]process_action_free close_receipt [19:33:21]json_value_free [19:33:21]json_value_free done [19:33:21]process_json_proto returns [19:33:21]Send response to host [19:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92524,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:33:21]free response buf [19:33:21]execute_script done [19:33:21]execute_script returns [19:33:21]free content buf [19:33:21]Sock 8.Close socket [19:33:21]Sock 8.Thread stoped [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:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:37]accept exits with 9 [19:37:37]New connection [19:37:37]New thread 3066801508 created [19:37:37]Thread 3066658148 joined [19:37:37]Waiting for new connection... [19:37:37] Sock 9.Parse request [19:37:37]Sock 9.Check first char [19:37:37]Sock 9.First char is OK [19:37:37]request: POST /json_proto HTTP/1.0 [19:37:37]Method: POST [19:37:37]URL: /json_proto [19:37:37]Method is POST - this is cgi request [19:37:37]url: /json_proto [19:37:37]query_string will be loaded in cgi processing [19:37:37]execute_cgi json_proto POST (null) [19:37:37]execute_cgi path=json_proto method=POST [19:37:37]POST find Content-Length [19:37:37]Host: 172.17.57.71:8080 [19:37:37]Content-Length: 914 [19:37:37]Content-Type: application/json [19:37:37] [19:37:37]POST finish read [19:37:37]Found Content-Length = 914 [19:37:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127427", "tax_sys" : 0, "items" : [ { "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46040145", "name": "\u041A\u043E\u043D\u0444 Meller \u0441\u0442\u0438\u043A \u0448\u043E\u043A\u043E\u043B\u0430\u0434 8*24", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:37]execute_script... [19:37: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)127427", "tax_sys" : 0, "items" : [ { "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46040145", "name": "\u041A\u043E\u043D\u0444 Meller \u0441\u0442\u0438\u043A \u0448\u043E\u043A\u043E\u043B\u0430\u0434 8*24", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:37]POST & json_proto [19:37:37]process_json_proto [19:37:37]json parsed OK: [19:37:37]protocol is kg_v1.0 [19:37:37]action value=close_receipt [19:37:37]process_action close_receipt [19:37:37]cmd_close_receipt [19:37:37]MH_GetDate [19:37:37]Write to MH i2c: F0 00 00 DD 34 00 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: F0 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: F0 09 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: F0 09 00 DD 34 00 06 E6 E5 66 33 3A A4 66 B7 [19:37:37]GetLastDocTimeStamp 1726342400 [19:37:37]current date 1726342662 [19:37:37]FM_GetShiftState [19:37:37]SAM_PROTO_GetShiftState [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 13 01 00 [19:37:37]Write to MH i2c: E2 08 00 DE 34 80 13 01 00 00 00 00 00 8F [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 DE 34 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 29 [19:37:37]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_GetShiftState done [19:37:37]FM_GetShiftState done [19:37:37]opened in 1726273389 [19:37:37]opened+sec_in_day 1726359789 [19:37:37]quantity*price = 4500 [19:37:37]sum+1 = 4501 [19:37:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46040145 Конф Meller стик шоколад 8*24 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 176 14.09.2024 19:37 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92525 ФПД: 187686544851308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T193742&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92525&fm=187686544851308&tin=02508201610067®Number=0000000000091423&sum=12000 0 [19:37:38]StoreToDocumentArchive [19:37:38]shift 506 fd 92525 [19:37:38]save to /storage/0506/doc_00092525 [19:37:38]save last doc name /storage/0506/doc_00092525 to /storage/kkm_last_doc_name [19:37:38]OFD Sender: No OFD packet to send [19:37:38]save OK [19:37:38]Clear old archive folders... [19:37:38]ProcessDocumentItem done err = 0, tmpTLVsize=384 [19:37:38]tlvbuf is 010489B0 [19:37:38]SAM_PROTO_ClearQueue [19:37:38]wFMCommunicate request_size=4 [19:37:38]MH_SAM_APDU [19:37:38]CAPDU: 80 09 00 00 [19:37:38]Write to MH i2c: E2 08 00 EB 34 80 09 00 00 00 00 00 00 91 [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 EB 34 00 90 00 93 [19:37:39]RAPDU: 90 00 [19:37:39]wFMCommunicate OK [19:37:39]SAM_PROTO_ClearQueue done [19:37:39]KKMCreateOFDPacket [19:37:39]OFDProtocolAddRootSTLVToBuf [19:37:39]FM_MakeSignedData [19:37:39]FM_MakeSignedData [19:37:39]SAM_PROTO_SignData [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 0D 01 02 [19:37:39]Write to MH i2c: E2 08 00 EC 34 80 0D 01 02 00 00 00 00 99 [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 EC 34 00 90 00 94 [19:37:39]RAPDU: 90 00 [19:37:39]wFMCommunicate OK [19:37:39]wFMCommunicate request_size=255 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 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 6B 00 8A 04 08 00 34 36 30 34 30 31 34 35 06 04 2C 00 D0 9A D0 BE D0 BD D1 84 20 4D 65 6C 6C 65 72 20 D1 81 D1 82 D0 B8 D0 BA 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 2A 32 34 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [19:37:39]Write to MH i2c: E2 02 01 ED 34 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 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 6B 00 8A 04 08 00 34 36 30 34 30 31 34 35 06 04 2C 00 D0 9A D0 BE D0 BD D1 84 20 4D 65 6C 6C 65 72 20 D1 81 D1 82 D0 B8 D0 BA 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 2A 32 34 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 5B [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 ED 34 00 90 00 95 [19:37:39]RAPDU: 90 00 [19:37:39]wFMCommunicate OK [19:37:39]wFMCommunicate request_size=143 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 0D 02 02 8A 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 06 E6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 69 01 00 35 04 06 00 AA B3 2D D5 C1 6C [19:37:39]Write to MH i2c: E2 92 00 EE 34 80 0D 02 02 8A 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 06 E6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 69 01 00 35 04 06 00 AA B3 2D D5 C1 6C 00 00 96 [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 03 00 EE 34 00 90 00 96 [19:37:39]RAPDU: 90 00 [19:37:39]wFMCommunicate OK [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 0D 03 02 [19:37:39]Write to MH i2c: E2 08 00 EF 34 80 0D 03 02 00 00 00 00 9E [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 0B 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 0B 00 EF 34 00 BB BB EF 8C 42 01 E1 AE 90 00 62 [19:37:39]RAPDU: BB BB EF 8C 42 01 E1 AE 90 00 [19:37:39]wFMCommunicate OK [19:37:39]SAM_PROTO_SignData done [19:37:39]FM_MakeSignedData done [19:37:39]CreateOFDProtocolMessage [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 11 00 00 [19:37:39]Write to MH i2c: E2 08 00 F0 34 80 11 00 00 00 00 00 00 9E [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 17 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 17 00 F0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F5 [19:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:37:39]wFMCommunicate OK [19:37:39]CreateOFDProtocolMessage done [19:37:39]OFDSenderStorePacket 92525 [19:37:39]StoreOFDPacket docnum=92525 [19:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 94 01 00 00 C9 75 8C 01 E4 D8 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 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 6B 00 8A 04 08 00 34 36 30 34 30 31 34 35 06 04 2C 00 D0 9A D0 BE D0 BD D1 84 20 4D 65 6C 6C 65 72 20 D1 81 D1 82 D0 B8 D0 BA 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 2A 32 34 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 06 E6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 69 01 00 35 04 06 00 AA B3 2D D5 C1 6C BB BB EF 8C 42 01 E1 AE [19:37:39]CheckFolder [19:37:39]dirname=/storage/ofd_packets [19:37:39]CheckFolder done [19:37:39]ProducePacketName [19:37:39]name=ofd_packets/00092525 [19:37:39]NVStorageSaveData ofd_packets/00092525 [19:37:39]File name is /storage/ofd_packets/00092525 [19:37:39]Write 434 bytes [19:37:39]NVStorageSaveData done [19:37:39]OFDSenderStorePacket done [19:37:39]KKMCreateOFDPacket done [19:37:39]NVStorageSaveData kkm_last_timestamp [19:37:39]File name is /storage/kkm_last_timestamp [19:37:39]Write 4 bytes [19:37:39]NVStorageSaveData done [19:37:39]ExternCall_PrintAddStr [19:37:39]wPrintStart [19:37:39]Write to MH i2c: 01 00 00 F1 34 25 [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: 01 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: 01 07 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: 01 07 00 F1 34 00 00 00 00 00 FF 0F 3A [19:37:39]RasterBufferAndPrint [19:37:39]line Счет N : (3)127427 [19:37:39]line ИНН: 02508201610067 [19:37:39]line Контрольно-Кассовый Чек [19:37:39]line ПРОДАЖА [19:37:39]line Товар: 46116482 [19:37:39]line Жев Orbit ягодный микс [19:37:39]line 1.000 * 45.00 [19:37:39]line = 45.00 [19:37:39]line НДС 12% НСП 1% [19:37:39]line > о реализуемом товаре [19:37:39]line Товар: 46040145 [19:37:39]line Конф Meller стик шоколад 8*24 [19:37:39]line 1.000 * 75.00 [19:37:39]line = 75.00 [19:37:39]line НДС 12% НСП 1% [19:37:39]line > о реализуемом товаре [19:37:39]line ИТОГО: 120.00 [19:37:39]line НСП 1% : 1.06 [19:37:39]line НДС 12% : 12.74 [19:37:39]line Наличными: 120.00 [19:37:39]line Безнал.: 0.00 [19:37:39]line Место: АЗС № 5 "Партнер Нефть" [19:37:39]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:37:39]line СНО: Общий режим [19:37:39]line Чек 176 14.09.2024 19:37 [19:37:39]line Смена: 506 ФФД: 1.0 [19:37:39]line ЗНМ: 03000000022 [19:37:39]line РНМ: 0000000000091423 [19:37:39]line Версия ККМ: 001 [19:37:39]line ФМ: 0000000000874692 [19:37:39]line ФД: 92525 [19:37:39]line ФПД: 187686544851308 [19:37:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T193742&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92525&fm=187686544851308&tin=02508201610067®Number=0000000000091423&sum=12000 [19:37:39]line 0 [19:37:39]OFD Sender: Processing packet 92525 [packets to send 63, broken 62] [19:37:39]ProducePacketName [19:37:39]name=ofd_packets/00092525 [19:37:39]OFD Sender: To server: pG, [19:37:39]CommunicateWithHost lk.salyk.kg:30040 [19:37:39]ConnectInit lk.salyk.kg [19:37:39]written 0, free lines is 4095 [19:37:40]Connected sock=10 [19:37:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 94 01 00 00 C9 75 8C 01 E4 D8 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 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 6B 00 8A 04 08 00 34 36 30 34 30 31 34 35 06 04 2C 00 D0 9A D0 BE D0 BD D1 84 20 4D 65 6C 6C 65 72 20 D1 81 D1 82 D0 B8 D0 BA 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 2A 32 34 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 06 E6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 69 01 00 35 04 06 00 AA B3 2D D5 C1 6C BB BB EF 8C 42 01 E1 AE [19:37:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A8 1F 47 00 EA 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6D 69 01 00 F4 03 04 00 80 8E E5 66 B6 04 01 00 00 07 FC F9 C3 A2 6D E3 18 [19:37:40]CommunicateWithHost err = 0 [19:37:40]CheckOFDResponse [19:37:40]1017 (14) - 77093643461234 [19:37:40]1041 (16) - 0000000000874692 [19:37:40]1040 (4) - 92525 [19:37:40]1012 (4) - 14.09.2024 13:24 [19:37:40]1206 (1) - 0 [19:37:40]OFD Sender: Remove packet 92525 [19:37:40]ProducePacketName [19:37:40]name=ofd_packets/00092525 [19:37:40]NVStorageDeleteData [19:37:40]Write to MH i2c: 01 00 00 20 35 55 [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: 01 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: 01 07 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: 01 07 00 20 35 00 00 00 00 00 C3 0C 2B [19:37:40]RasterBufferAndPrint [19:37:40]line [19:37:40]line [19:37:40]line [19:37:40]line [19:37:40]line [19:37:40]written 0, free lines is 3274 [19:37:40]MH_Cut [19:37:40]Write to MH i2c: D1 01 00 27 35 01 2E [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: D1 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: D1 01 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: D1 01 00 27 35 00 2D [19:37:40]Write to MH i2c: 01 00 00 28 35 5D [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]OFD Sender: No OFD packet to send [19:37:41]*** Cut start [19:37:41]*** Purtial cut [19:37:41]*** Stage 1: CUTSNS_PIN = 1 [19:37:43]Read from MH i2c: 01 [19:37:43]MH_I2C_Read... [19:37:43]*** Stop cut motor [19:37:43]*** Cut end [19:37:43]Read from MH i2c: 01 07 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 07 00 28 35 00 00 00 00 00 FF 0F 72 [19:37:43]process_action close_receipt done [19:37:43]requested_data is exist [19:37:43]produce_requested_data [19:37:43]requested_item fm.sn is exist - process it [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 11 00 00 [19:37:43]Write to MH i2c: E2 08 00 29 35 80 11 00 00 00 00 00 00 D8 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 17 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 17 00 29 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 2F [19:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:37:43]wFMCommunicate OK [19:37:43]requested_item fd.num is exist - process it [19:37:43]SAM_PROTO_GetFieldsCounters [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 13 00 00 [19:37:43]Write to MH i2c: E2 08 00 2A 35 80 13 00 00 00 00 00 00 DB [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 62 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 62 00 2A 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6D 69 01 00 0E 04 04 00 FA 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 DC [19:37:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6D 69 01 00 0E 04 04 00 FA 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 [19:37:43]wFMCommunicate OK [19:37:43]SAM_PROTO_GetFieldsCounters done [19:37:43]requested_item shift.num is exist - process it [19:37:43]requested_item shift.opened is exist - process it [19:37:43]req_shift_opened [19:37:43]FM_GetShiftState [19:37:43]SAM_PROTO_GetShiftState [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 13 01 00 [19:37:43]Write to MH i2c: E2 08 00 2B 35 80 13 01 00 00 00 00 00 DD [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 0E 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 0E 00 2B 35 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 77 [19:37:43]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:37:43]wFMCommunicate OK [19:37:43]SAM_PROTO_GetShiftState done [19:37:43]FM_GetShiftState done [19:37:43]req_shift_opened done [19:37:43]requested_item shift.open_date is exist - process it [19:37:43]req_shift_open_date [19:37:43]req_shift_open_date done [19:37:43]produce_requested_data done [19:37:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92525,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:37:43]process_action_free close_receipt [19:37:43]json_value_free [19:37:43]json_value_free done [19:37:43]process_json_proto returns [19:37:43]Send response to host [19:37:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92525,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:37:43]free response buf [19:37:43]execute_script done [19:37:43]execute_script returns [19:37:43]free content buf [19:37:43]Sock 9.Close socket [19:37:43]Sock 9.Thread stoped [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]accept exits with 8 [19:38:20]New connection [19:38:20]New thread 3066658148 created [19:38:20]Thread 3066801508 joined [19:38:20]Waiting for new connection... [19:38:20] Sock 8.Parse request [19:38:20]Sock 8.Check first char [19:38:20]Sock 8.First char is OK [19:38:20]request: POST /json_proto HTTP/1.0 [19:38:20]Method: POST [19:38:20]URL: /json_proto [19:38:20]Method is POST - this is cgi request [19:38:20]url: /json_proto [19:38:20]query_string will be loaded in cgi processing [19:38:20]execute_cgi json_proto POST (null) [19:38:20]execute_cgi path=json_proto method=POST [19:38:20]POST find Content-Length [19:38:20]Host: 172.17.57.71:8080 [19:38:20]Content-Length: 1494 [19:38:20]Content-Type: application/json [19:38:20] [19:38:20]POST finish read [19:38:20]Found Content-Length = 1494 [19:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127428", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:20]execute_script... [19: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)127428", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:20]POST & json_proto [19:38:20]process_json_proto [19:38:20]json parsed OK: [19:38:20]protocol is kg_v1.0 [19:38:20]action value=close_receipt [19:38:20]process_action close_receipt [19:38:20]cmd_close_receipt [19:38:20]MH_GetDate [19:38:20]Write to MH i2c: F0 00 00 2C 35 50 [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: F0 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: F0 09 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: F0 09 00 2C 35 00 30 E6 E5 66 33 3A A4 66 31 [19:38:20]GetLastDocTimeStamp 1726342662 [19:38:20]current date 1726342704 [19:38:20]FM_GetShiftState [19:38:20]SAM_PROTO_GetShiftState [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 13 01 00 [19:38:20]Write to MH i2c: E2 08 00 2D 35 80 13 01 00 00 00 00 00 DF [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 0E 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 0E 00 2D 35 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 79 [19:38:20]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:38:20]wFMCommunicate OK [19:38:20]SAM_PROTO_GetShiftState done [19:38:20]FM_GetShiftState done [19:38:20]opened in 1726273389 [19:38:20]opened+sec_in_day 1726359789 [19:38:20]quantity*price = 7500 [19:38:20]sum+1 = 7501 [19:38:20]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% > о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.00 НДС 12% : 36.10 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 177 14.09.2024 19:38 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92526 ФПД: 210340157275434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T193825&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92526&fm=210340157275434&tin=02508201610067®Number=0000000000091423&sum=34000 0 [19:38:21]StoreToDocumentArchive [19:38:21]shift 506 fd 92526 [19:38:21]save to /storage/0506/doc_00092526 [19:38:21]save last doc name /storage/0506/doc_00092526 to /storage/kkm_last_doc_name [19:38:21]save OK [19:38:21]Clear old archive folders... [19:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=630 [19:38:21]tlvbuf is 00F83180 [19:38:21]SAM_PROTO_ClearQueue [19:38:21]wFMCommunicate request_size=4 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 09 00 00 [19:38:21]Write to MH i2c: E2 08 00 3A 35 80 09 00 00 00 00 00 00 E1 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 3A 35 00 90 00 E3 [19:38:21]RAPDU: 90 00 [19:38:21]wFMCommunicate OK [19:38:21]SAM_PROTO_ClearQueue done [19:38:21]KKMCreateOFDPacket [19:38:21]OFDProtocolAddRootSTLVToBuf [19:38:21]FM_MakeSignedData [19:38:21]FM_MakeSignedData [19:38:21]SAM_PROTO_SignData [19:38:21]wFMCommunicate request_size=4 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 0D 01 02 [19:38:21]Write to MH i2c: E2 08 00 3B 35 80 0D 01 02 00 00 00 00 E9 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 3B 35 00 90 00 E4 [19:38:21]RAPDU: 90 00 [19:38:21]wFMCommunicate OK [19:38:21]wFMCommunicate request_size=255 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 0D 02 02 FA 03 00 76 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 79 00 8A 04 0D 00 35 34 [19:38:21]Write to MH i2c: E2 02 01 3C 35 80 0D 02 02 FA 00 03 00 76 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 79 00 8A 04 0D 00 35 34 00 00 94 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 3C 35 00 90 00 E5 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=255 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 02 02 FA 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 [19:38:22]Write to MH i2c: E2 02 01 3D 35 80 0D 02 02 FA 00 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 3B [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=139 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 02 02 86 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 B1 00 00 00 F4 03 04 00 31 E6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 69 01 00 35 04 06 00 BF 4D A2 5B 3D 2A [19:38:22]Write to MH i2c: E2 8E 00 3E 35 80 0D 02 02 86 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 B1 00 00 00 F4 03 04 00 31 E6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 69 01 00 35 04 06 00 BF 4D A2 5B 3D 2A 00 00 F6 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 03 02 [19:38:22]Write to MH i2c: E2 08 00 3F 35 80 0D 03 02 00 00 00 00 EF [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 0B 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 0B 00 3F 35 00 A8 7D C6 F6 4F 31 71 19 90 00 DB [19:38:22]RAPDU: A8 7D C6 F6 4F 31 71 19 90 00 [19:38:22]wFMCommunicate OK [19:38:22]SAM_PROTO_SignData done [19:38:22]FM_MakeSignedData done [19:38:22]CreateOFDProtocolMessage [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 11 00 00 [19:38:22]Write to MH i2c: E2 08 00 40 35 80 11 00 00 00 00 00 00 EF [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 17 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 17 00 40 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 46 [19:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:38:22]wFMCommunicate OK [19:38:22]CreateOFDProtocolMessage done [19:38:22]OFDSenderStorePacket 92526 [19:38:22]StoreOFDPacket docnum=92526 [19:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8A 02 00 00 AF 31 82 02 09 6C 5A 03 01 00 03 00 76 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 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 B1 00 00 00 F4 03 04 00 31 E6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 69 01 00 35 04 06 00 BF 4D A2 5B 3D 2A A8 7D C6 F6 4F 31 71 19 [19:38:22]CheckFolder [19:38:22]dirname=/storage/ofd_packets [19:38:22]CheckFolder done [19:38:22]ProducePacketName [19:38:22]name=ofd_packets/00092526 [19:38:22]NVStorageSaveData ofd_packets/00092526 [19:38:22]File name is /storage/ofd_packets/00092526 [19:38:22]Write 680 bytes [19:38:22]NVStorageSaveData done [19:38:22]OFDSenderStorePacket done [19:38:22]KKMCreateOFDPacket done [19:38:22]NVStorageSaveData kkm_last_timestamp [19:38:22]File name is /storage/kkm_last_timestamp [19:38:22]Write 4 bytes [19:38:22]NVStorageSaveData done [19:38:22]ExternCall_PrintAddStr [19:38:22]wPrintStart [19:38:22]Write to MH i2c: 01 00 00 41 35 76 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 41 35 00 00 00 00 00 FF 0F 8B [19:38:22]RasterBufferAndPrint [19:38:22]line Счет N : (3)127428 [19:38:22]line ИНН: 02508201610067 [19:38:22]line Контрольно-Кассовый Чек [19:38:22]line ПРОДАЖА [19:38:22]line Товар: 5449000189349 [19:38:22]line Холодный чай Fuse манго ананас 0,5л [19:38:22]line 1.000 * 75.00 [19:38:22]line = 75.00 [19:38:22]line НДС 12% НСП 1% [19:38:22]line > о реализуемом товаре [19:38:22]line Товар: 4700000160211 [19:38:22]line Вода Легенда 0,5л [19:38:22]line 1.000 * 40.00 [19:38:22]line = 40.00 [19:38:22]line НДС 12% НСП 1% [19:38:22]line > о реализуемом товаре [19:38:22]line Товар: 5449000027450 [19:38:23]line Напиток FuzeTea чай манго,ром 0,5л [19:38:23]line 1.000 * 75.00 [19:38:23]line = 75.00 [19:38:23]line НДС 12% НСП 1% [19:38:23]line > о реализуемом товаре [19:38:23]line Товар: 4640030091645 [19:38:23]line Сигареты ESSE Exchange M [19:38:23]line 1.000 * 150.00 [19:38:23]line = 150.00 [19:38:23]line НДС 12% НСП 1% [19:38:23]line > о реализуемом товаре [19:38:23]line ИТОГО: 340.00 [19:38:23]line НСП 1% : 3.00 [19:38:23]line НДС 12% : 36.10 [19:38:23]line Наличными: 340.00 [19:38:23]line Безнал.: 0.00 [19:38:23]line Место: АЗС № 5 "Партнер Нефть" [19:38:23]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:38:23]line СНО: Общий режим [19:38:23]line Чек 177 14.09.2024 19:38 [19:38:23]line Смена: 506 ФФД: 1.0 [19:38:23]line ЗНМ: 03000000022 [19:38:23]line РНМ: 0000000000091423 [19:38:23]line Версия ККМ: 001 [19:38:23]line ФМ: 0000000000874692 [19:38:23]line ФД: 92526 [19:38:23]line ФПД: 210340157275434 [19:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T193825&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92526&fm=210340157275434&tin=02508201610067®Number=0000000000091423&sum=34000 [19:38:23]OFD Sender: Processing packet 92526 [packets to send 63, broken 62] [19:38:23]ProducePacketName [19:38:23]name=ofd_packets/00092526 [19:38:23]OFD Sender: To server: pG, [19:38:23]CommunicateWithHost lk.salyk.kg:30040 [19:38:23]ConnectInit lk.salyk.kg [19:38:23]line 0 [19:38:23]written 0, free lines is 4095 [19:38:23]Connected sock=10 [19:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8A 02 00 00 AF 31 82 02 09 6C 5A 03 01 00 03 00 76 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 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 B1 00 00 00 F4 03 04 00 31 E6 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6E 69 01 00 35 04 06 00 BF 4D A2 5B 3D 2A A8 7D C6 F6 4F 31 71 19 [19:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 1D 69 47 00 65 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 34 36 39 32 10 04 04 00 6E 69 01 00 F4 03 04 00 AC 8E E5 66 B6 04 01 00 00 A8 C5 C7 AC B0 5E E4 94 [19:38:23]CommunicateWithHost err = 0 [19:38:23]CheckOFDResponse [19:38:23]1017 (14) - 77093643461234 [19:38:23]1041 (16) - 0000000000874692 [19:38:23]1040 (4) - 92526 [19:38:23]1012 (4) - 14.09.2024 13:25 [19:38:23]1206 (1) - 0 [19:38:23]OFD Sender: Remove packet 92526 [19:38:23]ProducePacketName [19:38:23]name=ofd_packets/00092526 [19:38:23]NVStorageDeleteData [19:38:23]Write to MH i2c: 01 00 00 7D 35 B2 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 7D 35 00 00 00 00 00 15 0C DA [19:38:23]RasterBufferAndPrint [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]written 0, free lines is 3101 [19:38:23]MH_Cut [19:38:23]Write to MH i2c: D1 01 00 84 35 01 8B [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 01 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 01 00 84 35 00 8A [19:38:23]Write to MH i2c: 01 00 00 85 35 BA [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]OFD Sender: No OFD packet to send [19:38:24]*** Cut start [19:38:24]*** Purtial cut [19:38:24]*** Stage 1: CUTSNS_PIN = 1 [19:38:26]Read from MH i2c: 01 [19:38:26]MH_I2C_Read... [19:38:26]*** Stop cut motor [19:38:26]*** Cut end [19:38:26]Read from MH i2c: 01 07 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 07 00 85 35 00 00 00 00 00 FF 0F CF [19:38:26]process_action close_receipt done [19:38:26]requested_data is exist [19:38:26]produce_requested_data [19:38:26]requested_item fm.sn is exist - process it [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 11 00 00 [19:38:26]Write to MH i2c: E2 08 00 86 35 80 11 00 00 00 00 00 00 35 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 17 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 17 00 86 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 8C [19:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:38:26]wFMCommunicate OK [19:38:26]requested_item fd.num is exist - process it [19:38:26]SAM_PROTO_GetFieldsCounters [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 13 00 00 [19:38:26]Write to MH i2c: E2 08 00 87 35 80 13 00 00 00 00 00 00 38 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 62 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 62 00 87 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6E 69 01 00 0E 04 04 00 FA 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 3D [19:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6E 69 01 00 0E 04 04 00 FA 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 [19:38:26]wFMCommunicate OK [19:38:26]SAM_PROTO_GetFieldsCounters done [19:38:26]requested_item shift.num is exist - process it [19:38:26]requested_item shift.opened is exist - process it [19:38:26]req_shift_opened [19:38:26]FM_GetShiftState [19:38:26]SAM_PROTO_GetShiftState [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 13 01 00 [19:38:26]Write to MH i2c: E2 08 00 88 35 80 13 01 00 00 00 00 00 3A [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0E 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0E 00 88 35 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D4 [19:38:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:38:26]wFMCommunicate OK [19:38:26]SAM_PROTO_GetShiftState done [19:38:26]FM_GetShiftState done [19:38:26]req_shift_opened done [19:38:26]requested_item shift.open_date is exist - process it [19:38:26]req_shift_open_date [19:38:26]req_shift_open_date done [19:38:26]produce_requested_data done [19:38:26]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92526,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:38:26]process_action_free close_receipt [19:38:26]json_value_free [19:38:26]json_value_free done [19:38:26]process_json_proto returns [19:38:26]Send response to host [19:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92526,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:38:26]free response buf [19:38:26]execute_script done [19:38:26]execute_script returns [19:38:26]free content buf [19:38:26]Sock 8.Close socket [19:38:26]Sock 8.Thread stoped [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:45]accept exits with 9 [19:51:45]New connection [19:51:45]New thread 3066801508 created [19:51:45]Thread 3066658148 joined [19:51:45]Waiting for new connection... [19:51:45] Sock 9.Parse request [19:51:45]Sock 9.Check first char [19:51:45]Sock 9.First char is OK [19:51:45]request: POST /json_proto HTTP/1.0 [19:51:45]Method: POST [19:51:45]URL: /json_proto [19:51:45]Method is POST - this is cgi request [19:51:45]url: /json_proto [19:51:45]query_string will be loaded in cgi processing [19:51:45]execute_cgi json_proto POST (null) [19:51:45]execute_cgi path=json_proto method=POST [19:51:45]POST find Content-Length [19:51:45]Host: 172.17.57.71:8080 [19:51:45]Content-Length: 622 [19:51:45]Content-Type: application/json [19:51:45] [19:51:45]POST finish read [19:51:45]Found Content-Length = 622 [19:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127429", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "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 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:45]execute_script... [19:51: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)127429", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "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 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:45]POST & json_proto [19:51:45]process_json_proto [19:51:45]json parsed OK: [19:51:45]protocol is kg_v1.0 [19:51:45]action value=close_receipt [19:51:45]process_action close_receipt [19:51:45]cmd_close_receipt [19:51:45]MH_GetDate [19:51:45]Write to MH i2c: F0 00 00 89 35 AD [19:51:45]Write i2c OK [19:51:45]MH_I2C_Read... [19:51:45]Read from MH i2c: F0 [19:51:45]MH_I2C_Read... [19:51:45]Read from MH i2c: F0 09 00 [19:51:45]MH_I2C_Read... [19:51:45]Read from MH i2c: F0 09 00 89 35 00 56 E9 E5 66 33 3A A4 66 B7 [19:51:45]GetLastDocTimeStamp 1726342705 [19:51:45]current date 1726343510 [19:51:45]FM_GetShiftState [19:51:45]SAM_PROTO_GetShiftState [19:51:45]wFMCommunicate request_size=4 [19:51:45]MH_SAM_APDU [19:51:45]CAPDU: 80 13 01 00 [19:51:45]Write to MH i2c: E2 08 00 8A 35 80 13 01 00 00 00 00 00 3C [19:51:45]Write i2c OK [19:51:45]MH_I2C_Read... [19:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:45]Read from MH i2c: E2 [19:51:45]MH_I2C_Read... [19:51:45]Read from MH i2c: E2 0E 00 [19:51:45]MH_I2C_Read... [19:51:45]Read from MH i2c: E2 0E 00 8A 35 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 D6 [19:51:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:51:45]wFMCommunicate OK [19:51:45]SAM_PROTO_GetShiftState done [19:51:45]FM_GetShiftState done [19:51:45]opened in 1726273389 [19:51:45]opened+sec_in_day 1726359789 [19:51:45]quantity*price = 15000 [19:51:45]sum+1 = 15001 [19:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 178 14.09.2024 19:51 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92527 ФПД: 210374484546019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T195150&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92527&fm=210374484546019&tin=02508201610067®Number=0000000000091423&sum=15000 0 [19:51:46]StoreToDocumentArchive [19:51:46]shift 506 fd 92527 [19:51:46]save to /storage/0506/doc_00092527 [19:51:46]save last doc name /storage/0506/doc_00092527 to /storage/kkm_last_doc_name [19:51:46]save OK [19:51:46]Clear old archive folders... [19:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:51:46]tlvbuf is 0102B640 [19:51:46]SAM_PROTO_ClearQueue [19:51:46]wFMCommunicate request_size=4 [19:51:46]MH_SAM_APDU [19:51:46]CAPDU: 80 09 00 00 [19:51:46]Write to MH i2c: E2 08 00 97 35 80 09 00 00 00 00 00 00 3E [19:51:46]Write i2c OK [19:51:46]MH_I2C_Read... [19:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:46]Read from MH i2c: E2 [19:51:46]MH_I2C_Read... [19:51:46]Read from MH i2c: E2 03 00 [19:51:46]MH_I2C_Read... [19:51:46]Read from MH i2c: E2 03 00 97 35 00 90 00 40 [19:51:46]RAPDU: 90 00 [19:51:46]wFMCommunicate OK [19:51:46]SAM_PROTO_ClearQueue done [19:51:46]KKMCreateOFDPacket [19:51:46]OFDProtocolAddRootSTLVToBuf [19:51:46]FM_MakeSignedData [19:51:46]FM_MakeSignedData [19:51:46]SAM_PROTO_SignData [19:51:46]wFMCommunicate request_size=4 [19:51:46]MH_SAM_APDU [19:51:46]CAPDU: 80 0D 01 02 [19:51:46]Write to MH i2c: E2 08 00 98 35 80 0D 01 02 00 00 00 00 46 [19:51:46]Write i2c OK [19:51:46]MH_I2C_Read... [19:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:46]Read from MH i2c: E2 [19:51:46]MH_I2C_Read... [19:51:46]Read from MH i2c: E2 03 00 [19:51:46]MH_I2C_Read... [19:51:46]Read from MH i2c: E2 03 00 98 35 00 90 00 41 [19:51:46]RAPDU: 90 00 [19:51:46]wFMCommunicate OK [19:51:46]wFMCommunicate request_size=255 [19:51:46]MH_SAM_APDU [19:51:46]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 32 31 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 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 B2 00 00 00 F4 03 04 00 56 E9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 [19:51:46]Write to MH i2c: E2 02 01 99 35 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 32 31 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 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 B2 00 00 00 F4 03 04 00 56 E9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 00 00 18 [19:51:46]Write i2c OK [19:51:46]MH_I2C_Read... [19:51:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:47]Read from MH i2c: E2 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 03 00 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 03 00 99 35 00 90 00 42 [19:51:47]RAPDU: 90 00 [19:51:47]wFMCommunicate OK [19:51:47]wFMCommunicate request_size=33 [19:51:47]MH_SAM_APDU [19:51:47]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 69 01 00 35 04 06 00 BF 55 A0 6B D1 E3 [19:51:47]Write to MH i2c: E2 24 00 9A 35 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 69 01 00 35 04 06 00 BF 55 A0 6B D1 E3 00 00 88 [19:51:47]Write i2c OK [19:51:47]MH_I2C_Read... [19:51:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:47]Read from MH i2c: E2 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 03 00 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 03 00 9A 35 00 90 00 43 [19:51:47]RAPDU: 90 00 [19:51:47]wFMCommunicate OK [19:51:47]wFMCommunicate request_size=4 [19:51:47]MH_SAM_APDU [19:51:47]CAPDU: 80 0D 03 02 [19:51:47]Write to MH i2c: E2 08 00 9B 35 80 0D 03 02 00 00 00 00 4B [19:51:47]Write i2c OK [19:51:47]MH_I2C_Read... [19:51:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:47]Read from MH i2c: E2 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 0B 00 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 0B 00 9B 35 00 36 D0 B2 47 06 F7 57 25 90 00 C4 [19:51:47]RAPDU: 36 D0 B2 47 06 F7 57 25 90 00 [19:51:47]wFMCommunicate OK [19:51:47]SAM_PROTO_SignData done [19:51:47]FM_MakeSignedData done [19:51:47]CreateOFDProtocolMessage [19:51:47]wFMCommunicate request_size=4 [19:51:47]MH_SAM_APDU [19:51:47]CAPDU: 80 11 00 00 [19:51:47]Write to MH i2c: E2 08 00 9C 35 80 11 00 00 00 00 00 00 4B [19:51:47]Write i2c OK [19:51:47]MH_I2C_Read... [19:51:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:47]Read from MH i2c: E2 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 17 00 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: E2 17 00 9C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A2 [19:51:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:51:47]wFMCommunicate OK [19:51:47]CreateOFDProtocolMessage done [19:51:47]OFDSenderStorePacket 92527 [19:51:47]StoreOFDPacket docnum=92527 [19:51:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 7E 6E 1E 01 E7 17 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 32 31 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 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 B2 00 00 00 F4 03 04 00 56 E9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 69 01 00 35 04 06 00 BF 55 A0 6B D1 E3 36 D0 B2 47 06 F7 57 25 [19:51:47]CheckFolder [19:51:47]dirname=/storage/ofd_packets [19:51:47]CheckFolder done [19:51:47]ProducePacketName [19:51:47]name=ofd_packets/00092527 [19:51:47]NVStorageSaveData ofd_packets/00092527 [19:51:47]File name is /storage/ofd_packets/00092527 [19:51:47]Write 324 bytes [19:51:47]NVStorageSaveData done [19:51:47]OFDSenderStorePacket done [19:51:47]KKMCreateOFDPacket done [19:51:47]NVStorageSaveData kkm_last_timestamp [19:51:47]File name is /storage/kkm_last_timestamp [19:51:47]Write 4 bytes [19:51:47]NVStorageSaveData done [19:51:47]ExternCall_PrintAddStr [19:51:47]wPrintStart [19:51:47]Write to MH i2c: 01 00 00 9D 35 D2 [19:51:47]Write i2c OK [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: 01 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: 01 07 00 [19:51:47]MH_I2C_Read... [19:51:47]Read from MH i2c: 01 07 00 9D 35 00 00 00 00 00 FF 0F E7 [19:51:47]RasterBufferAndPrint [19:51:47]line Счет N : (3)127429 [19:51:47]line ИНН: 02508201610067 [19:51:47]line Контрольно-Кассовый Чек [19:51:47]line ПРОДАЖА [19:51:47]line Товар: 4640030091621 [19:51:47]line Сигареты ESSE Exchange W [19:51:47]line 1.000 * 150.00 [19:51:47]line = 150.00 [19:51:47]line НДС 12% НСП 1% [19:51:47]line > о реализуемом товаре [19:51:47]line ИТОГО: 150.00 [19:51:47]line НСП 1% : 1.33 [19:51:47]line НДС 12% : 15.93 [19:51:47]line Наличными: 150.00 [19:51:47]line Безнал.: 0.00 [19:51:47]line Место: АЗС № 5 "Партнер Нефть" [19:51:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:51:47]line СНО: Общий режим [19:51:47]line Чек 178 14.09.2024 19:51 [19:51:47]line Смена: 506 ФФД: 1.0 [19:51:47]line ЗНМ: 03000000022 [19:51:47]line РНМ: 0000000000091423 [19:51:47]line Версия ККМ: 001 [19:51:47]line ФМ: 0000000000874692 [19:51:47]line ФД: 92527 [19:51:47]line ФПД: 210374484546019 [19:51:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T195150&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92527&fm=210374484546019&tin=02508201610067®Number=0000000000091423&sum=15000 [19:51:47]line 0 [19:51:47]OFD Sender: Processing packet 92527 [packets to send 63, broken 62] [19:51:47]ProducePacketName [19:51:47]name=ofd_packets/00092527 [19:51:47]OFD Sender: To server: pG, [19:51:47]CommunicateWithHost lk.salyk.kg:30040 [19:51:47]ConnectInit lk.salyk.kg [19:51:47]written 0, free lines is 4095 [19:51:47]Connected sock=11 [19:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 26 01 00 00 7E 6E 1E 01 E7 17 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 32 31 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 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 B2 00 00 00 F4 03 04 00 56 E9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 69 01 00 35 04 06 00 BF 55 A0 6B D1 E3 36 D0 B2 47 06 F7 57 25 [19:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 61 D9 47 00 97 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 6F 69 01 00 F4 03 04 00 D0 91 E5 66 B6 04 01 00 00 0C D5 6B 64 75 B1 12 B8 [19:51:47]CommunicateWithHost err = 0 [19:51:47]CheckOFDResponse [19:51:47]1017 (14) - 77093643461234 [19:51:47]1041 (16) - 0000000000874692 [19:51:47]1040 (4) - 92527 [19:51:47]1012 (4) - 14.09.2024 13:38 [19:51:47]1206 (1) - 0 [19:51:47]OFD Sender: Remove packet 92527 [19:51:47]ProducePacketName [19:51:47]name=ofd_packets/00092527 [19:51:47]NVStorageDeleteData [19:51:48]Write to MH i2c: 01 00 00 C5 35 FA [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: 01 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: 01 07 00 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: 01 07 00 C5 35 00 00 00 00 00 26 0D 34 [19:51:48]RasterBufferAndPrint [19:51:48]line [19:51:48]line [19:51:48]line [19:51:48]line [19:51:48]line [19:51:48]written 0, free lines is 3371 [19:51:48]MH_Cut [19:51:48]Write to MH i2c: D1 01 00 CC 35 01 D3 [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: D1 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: D1 01 00 [19:51:48]MH_I2C_Read... [19:51:48]Read from MH i2c: D1 01 00 CC 35 00 D2 [19:51:48]Write to MH i2c: 01 00 00 CD 35 02 [19:51:48]Write i2c OK [19:51:48]MH_I2C_Read... [19:51:48]OFD Sender: No OFD packet to send [19:51:48]*** Cut start [19:51:48]*** Purtial cut [19:51:48]*** Stage 1: CUTSNS_PIN = 1 [19:51:50]Read from MH i2c: 01 [19:51:50]MH_I2C_Read... [19:51:50]*** Stop cut motor [19:51:50]*** Cut end [19:51:50]Read from MH i2c: 01 07 00 [19:51:50]MH_I2C_Read... [19:51:50]Read from MH i2c: 01 07 00 CD 35 00 00 00 00 00 FF 0F 17 [19:51:50]process_action close_receipt done [19:51:50]requested_data is exist [19:51:50]produce_requested_data [19:51:50]requested_item fm.sn is exist - process it [19:51:50]wFMCommunicate request_size=4 [19:51:50]MH_SAM_APDU [19:51:50]CAPDU: 80 11 00 00 [19:51:50]Write to MH i2c: E2 08 00 CE 35 80 11 00 00 00 00 00 00 7D [19:51:50]Write i2c OK [19:51:50]MH_I2C_Read... [19:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:50]Read from MH i2c: E2 [19:51:50]MH_I2C_Read... [19:51:50]Read from MH i2c: E2 17 00 [19:51:50]MH_I2C_Read... [19:51:50]Read from MH i2c: E2 17 00 CE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D4 [19:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:51:50]wFMCommunicate OK [19:51:50]requested_item fd.num is exist - process it [19:51:50]SAM_PROTO_GetFieldsCounters [19:51:50]wFMCommunicate request_size=4 [19:51:50]MH_SAM_APDU [19:51:50]CAPDU: 80 13 00 00 [19:51:50]Write to MH i2c: E2 08 00 CF 35 80 13 00 00 00 00 00 00 80 [19:51:50]Write i2c OK [19:51:50]MH_I2C_Read... [19:51:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:50]Read from MH i2c: E2 [19:51:50]MH_I2C_Read... [19:51:50]Read from MH i2c: E2 62 00 [19:51:50]MH_I2C_Read... [19:51:50]Read from MH i2c: E2 62 00 CF 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6F 69 01 00 0E 04 04 00 FA 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 89 [19:51:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 6F 69 01 00 0E 04 04 00 FA 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 [19:51:50]wFMCommunicate OK [19:51:50]SAM_PROTO_GetFieldsCounters done [19:51:50]requested_item shift.num is exist - process it [19:51:50]requested_item shift.opened is exist - process it [19:51:50]req_shift_opened [19:51:50]FM_GetShiftState [19:51:50]SAM_PROTO_GetShiftState [19:51:50]wFMCommunicate request_size=4 [19:51:50]MH_SAM_APDU [19:51:50]CAPDU: 80 13 01 00 [19:51:50]Write to MH i2c: E2 08 00 D0 35 80 13 01 00 00 00 00 00 82 [19:51:50]Write i2c OK [19:51:50]MH_I2C_Read... [19:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:50]Read from MH i2c: E2 [19:51:50]MH_I2C_Read... [19:51:50]Read from MH i2c: E2 0E 00 [19:51:50]MH_I2C_Read... [19:51:50]Read from MH i2c: E2 0E 00 D0 35 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 1C [19:51:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:51:50]wFMCommunicate OK [19:51:50]SAM_PROTO_GetShiftState done [19:51:50]FM_GetShiftState done [19:51:50]req_shift_opened done [19:51:50]requested_item shift.open_date is exist - process it [19:51:50]req_shift_open_date [19:51:50]req_shift_open_date done [19:51:50]produce_requested_data done [19:51:50]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92527,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:51:50]process_action_free close_receipt [19:51:50]json_value_free [19:51:50]json_value_free done [19:51:50]process_json_proto returns [19:51:50]Send response to host [19:51:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92527,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:51:50]free response buf [19:51:50]execute_script done [19:51:50]execute_script returns [19:51:50]free content buf [19:51:50]Sock 9.Close socket [19:51:50]Sock 9.Thread stoped [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:45]accept exits with 8 [19:57:45]New connection [19:57:45]New thread 3066658148 created [19:57:45]Thread 3066801508 joined [19:57:45]Waiting for new connection... [19:57:45] Sock 8.Parse request [19:57:45]Sock 8.Check first char [19:57:45]Sock 8.First char is OK [19:57:45]request: POST /json_proto HTTP/1.0 [19:57:45]Method: POST [19:57:45]URL: /json_proto [19:57:45]Method is POST - this is cgi request [19:57:45]url: /json_proto [19:57:45]query_string will be loaded in cgi processing [19:57:45]execute_cgi json_proto POST (null) [19:57:45]execute_cgi path=json_proto method=POST [19:57:45]POST find Content-Length [19:57:45]Host: 172.17.57.71:8080 [19:57:45]Content-Length: 644 [19:57:45]Content-Type: application/json [19:57:45] [19:57:45]POST finish read [19:57:45]Found Content-Length = 644 [19:57:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127430", "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" ] } } [19:57:45]execute_script... [19:57: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)127430", "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" ] } } [19:57:45]POST & json_proto [19:57:45]process_json_proto [19:57:45]json parsed OK: [19:57:45]protocol is kg_v1.0 [19:57:45]action value=close_receipt [19:57:45]process_action close_receipt [19:57:45]cmd_close_receipt [19:57:45]MH_GetDate [19:57:45]Write to MH i2c: F0 00 00 D1 35 F5 [19:57:45]Write i2c OK [19:57:45]MH_I2C_Read... [19:57:45]Read from MH i2c: F0 [19:57:45]MH_I2C_Read... [19:57:45]Read from MH i2c: F0 09 00 [19:57:45]MH_I2C_Read... [19:57:45]Read from MH i2c: F0 09 00 D1 35 00 BE EA E5 66 33 3A A4 66 68 [19:57:45]GetLastDocTimeStamp 1726343510 [19:57:45]current date 1726343870 [19:57:45]FM_GetShiftState [19:57:45]SAM_PROTO_GetShiftState [19:57:45]wFMCommunicate request_size=4 [19:57:45]MH_SAM_APDU [19:57:45]CAPDU: 80 13 01 00 [19:57:45]Write to MH i2c: E2 08 00 D2 35 80 13 01 00 00 00 00 00 84 [19:57:45]Write i2c OK [19:57:45]MH_I2C_Read... [19:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:45]Read from MH i2c: E2 [19:57:45]MH_I2C_Read... [19:57:45]Read from MH i2c: E2 0E 00 [19:57:45]MH_I2C_Read... [19:57:45]Read from MH i2c: E2 0E 00 D2 35 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 1E [19:57:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:57:45]wFMCommunicate OK [19:57:45]SAM_PROTO_GetShiftState done [19:57:45]FM_GetShiftState done [19:57:45]opened in 1726273389 [19:57:45]opened+sec_in_day 1726359789 [19:57:45]quantity*price = 4200 [19:57:45]sum+1 = 4201 [19:57:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 179 14.09.2024 19:57 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92528 ФПД: 163208190264034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T195750&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92528&fm=163208190264034&tin=02508201610067®Number=0000000000091423&sum=4200 0 [19:57:46]StoreToDocumentArchive [19:57:46]shift 506 fd 92528 [19:57:46]save to /storage/0506/doc_00092528 [19:57:46]save last doc name /storage/0506/doc_00092528 to /storage/kkm_last_doc_name [19:57:46]save OK [19:57:46]Clear old archive folders... [19:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:57:46]tlvbuf is 01062180 [19:57:46]SAM_PROTO_ClearQueue [19:57:46]wFMCommunicate request_size=4 [19:57:46]MH_SAM_APDU [19:57:46]CAPDU: 80 09 00 00 [19:57:46]Write to MH i2c: E2 08 00 DF 35 80 09 00 00 00 00 00 00 86 [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:46]Read from MH i2c: E2 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 03 00 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 03 00 DF 35 00 90 00 88 [19:57:46]RAPDU: 90 00 [19:57:46]wFMCommunicate OK [19:57:46]SAM_PROTO_ClearQueue done [19:57:46]KKMCreateOFDPacket [19:57:46]OFDProtocolAddRootSTLVToBuf [19:57:46]FM_MakeSignedData [19:57:46]FM_MakeSignedData [19:57:46]SAM_PROTO_SignData [19:57:46]wFMCommunicate request_size=4 [19:57:46]MH_SAM_APDU [19:57:46]CAPDU: 80 0D 01 02 [19:57:46]Write to MH i2c: E2 08 00 E0 35 80 0D 01 02 00 00 00 00 8E [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:46]Read from MH i2c: E2 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 03 00 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 03 00 E0 35 00 90 00 89 [19:57:46]RAPDU: 90 00 [19:57:46]wFMCommunicate OK [19:57:46]wFMCommunicate request_size=255 [19:57:46]MH_SAM_APDU [19:57:46]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 B3 00 00 00 F4 03 04 00 BE EA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [19:57:46]Write to MH i2c: E2 02 01 E1 35 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 B3 00 00 00 F4 03 04 00 BE EA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 A1 [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:47]Read from MH i2c: E2 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: E2 03 00 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: E2 03 00 E1 35 00 90 00 8A [19:57:47]RAPDU: 90 00 [19:57:47]wFMCommunicate OK [19:57:47]wFMCommunicate request_size=34 [19:57:47]MH_SAM_APDU [19:57:47]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 69 01 00 35 04 06 00 94 6F DE 34 82 E2 [19:57:47]Write to MH i2c: E2 25 00 E2 35 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 69 01 00 35 04 06 00 94 6F DE 34 82 E2 00 00 A9 [19:57:47]Write i2c OK [19:57:47]MH_I2C_Read... [19:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:47]Read from MH i2c: E2 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: E2 03 00 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: E2 03 00 E2 35 00 90 00 8B [19:57:47]RAPDU: 90 00 [19:57:47]wFMCommunicate OK [19:57:47]wFMCommunicate request_size=4 [19:57:47]MH_SAM_APDU [19:57:47]CAPDU: 80 0D 03 02 [19:57:47]Write to MH i2c: E2 08 00 E3 35 80 0D 03 02 00 00 00 00 93 [19:57:47]Write i2c OK [19:57:47]MH_I2C_Read... [19:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:47]Read from MH i2c: E2 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: E2 0B 00 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: E2 0B 00 E3 35 00 36 19 52 02 09 C9 03 46 90 00 52 [19:57:47]RAPDU: 36 19 52 02 09 C9 03 46 90 00 [19:57:47]wFMCommunicate OK [19:57:47]SAM_PROTO_SignData done [19:57:47]FM_MakeSignedData done [19:57:47]CreateOFDProtocolMessage [19:57:47]wFMCommunicate request_size=4 [19:57:47]MH_SAM_APDU [19:57:47]CAPDU: 80 11 00 00 [19:57:47]Write to MH i2c: E2 08 00 E4 35 80 11 00 00 00 00 00 00 93 [19:57:47]Write i2c OK [19:57:47]MH_I2C_Read... [19:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:47]Read from MH i2c: E2 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: E2 17 00 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: E2 17 00 E4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EA [19:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:57:47]wFMCommunicate OK [19:57:47]CreateOFDProtocolMessage done [19:57:47]OFDSenderStorePacket 92528 [19:57:47]StoreOFDPacket docnum=92528 [19:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 EA 2F 1F 01 70 75 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 B3 00 00 00 F4 03 04 00 BE EA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 69 01 00 35 04 06 00 94 6F DE 34 82 E2 36 19 52 02 09 C9 03 46 [19:57:47]CheckFolder [19:57:47]dirname=/storage/ofd_packets [19:57:47]CheckFolder done [19:57:47]ProducePacketName [19:57:47]name=ofd_packets/00092528 [19:57:47]NVStorageSaveData ofd_packets/00092528 [19:57:47]File name is /storage/ofd_packets/00092528 [19:57:47]Write 325 bytes [19:57:47]NVStorageSaveData done [19:57:47]OFDSenderStorePacket done [19:57:47]KKMCreateOFDPacket done [19:57:47]NVStorageSaveData kkm_last_timestamp [19:57:47]File name is /storage/kkm_last_timestamp [19:57:47]Write 4 bytes [19:57:47]NVStorageSaveData done [19:57:47]ExternCall_PrintAddStr [19:57:47]wPrintStart [19:57:47]Write to MH i2c: 01 00 00 E5 35 1A [19:57:47]Write i2c OK [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: 01 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: 01 07 00 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: 01 07 00 E5 35 00 00 00 00 00 FF 0F 2F [19:57:47]RasterBufferAndPrint [19:57:47]line Счет N : (3)127430 [19:57:47]line ИНН: 02508201610067 [19:57:47]line Контрольно-Кассовый Чек [19:57:47]line ПРОДАЖА [19:57:47]line Товар: 5449000005489 [19:57:47]line Вода Бонаква 1л б/г [19:57:47]line 1.000 * 42.00 [19:57:47]line = 42.00 [19:57:47]line НДС 12% НСП 1% [19:57:47]line > о реализуемом товаре [19:57:47]line ИТОГО: 42.00 [19:57:47]line НСП 1% : 0.37 [19:57:47]line НДС 12% : 4.46 [19:57:47]line Наличными: 42.00 [19:57:47]line Безнал.: 0.00 [19:57:47]line Место: АЗС № 5 "Партнер Нефть" [19:57:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:57:47]line СНО: Общий режим [19:57:47]line Чек 179 14.09.2024 19:57 [19:57:47]line Смена: 506 ФФД: 1.0 [19:57:47]line ЗНМ: 03000000022 [19:57:47]line РНМ: 0000000000091423 [19:57:47]line Версия ККМ: 001 [19:57:47]line ФМ: 0000000000874692 [19:57:47]line ФД: 92528 [19:57:47]line ФПД: 163208190264034 [19:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T195750&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92528&fm=163208190264034&tin=02508201610067®Number=0000000000091423&sum=4200 [19:57:47]line 0 [19:57:47]OFD Sender: Processing packet 92528 [packets to send 63, broken 62] [19:57:47]ProducePacketName [19:57:47]name=ofd_packets/00092528 [19:57:47]OFD Sender: To server: pG, [19:57:47]CommunicateWithHost lk.salyk.kg:30040 [19:57:47]ConnectInit lk.salyk.kg [19:57:47]written 0, free lines is 4095 [19:57:47]Connected sock=10 [19:57:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 EA 2F 1F 01 70 75 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 B3 00 00 00 F4 03 04 00 BE EA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 70 69 01 00 35 04 06 00 94 6F DE 34 82 E2 36 19 52 02 09 C9 03 46 [19:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7D 5F 47 00 5C 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 34 36 39 32 10 04 04 00 70 69 01 00 F4 03 04 00 38 93 E5 66 B6 04 01 00 00 E1 DB CB 15 FD B6 F5 00 [19:57:47]CommunicateWithHost err = 0 [19:57:47]CheckOFDResponse [19:57:47]1017 (14) - 77093643461234 [19:57:47]1041 (16) - 0000000000874692 [19:57:47]1040 (4) - 92528 [19:57:47]1012 (4) - 14.09.2024 13:44 [19:57:47]1206 (1) - 0 [19:57:47]OFD Sender: Remove packet 92528 [19:57:47]ProducePacketName [19:57:47]name=ofd_packets/00092528 [19:57:47]NVStorageDeleteData [19:57:47]Write to MH i2c: 01 00 00 0D 36 43 [19:57:47]Write i2c OK [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: 01 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: 01 07 00 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: 01 07 00 0D 36 00 00 00 00 00 20 0D 77 [19:57:47]RasterBufferAndPrint [19:57:47]line [19:57:47]line [19:57:47]line [19:57:47]line [19:57:47]line [19:57:47]written 0, free lines is 3366 [19:57:47]MH_Cut [19:57:47]Write to MH i2c: D1 01 00 14 36 01 1C [19:57:47]Write i2c OK [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: D1 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: D1 01 00 [19:57:47]MH_I2C_Read... [19:57:47]Read from MH i2c: D1 01 00 14 36 00 1B [19:57:47]Write to MH i2c: 01 00 00 15 36 4B [19:57:47]Write i2c OK [19:57:47]MH_I2C_Read... [19:57:48]OFD Sender: No OFD packet to send [19:57:48]*** Cut start [19:57:48]*** Purtial cut [19:57:48]*** Stage 1: CUTSNS_PIN = 1 [19:57:50]Read from MH i2c: 01 [19:57:50]MH_I2C_Read... [19:57:50]*** Stop cut motor [19:57:50]*** Cut end [19:57:50]Read from MH i2c: 01 07 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: 01 07 00 15 36 00 00 00 00 00 FF 0F 60 [19:57:50]process_action close_receipt done [19:57:50]requested_data is exist [19:57:50]produce_requested_data [19:57:50]requested_item fm.sn is exist - process it [19:57:50]wFMCommunicate request_size=4 [19:57:50]MH_SAM_APDU [19:57:50]CAPDU: 80 11 00 00 [19:57:50]Write to MH i2c: E2 08 00 16 36 80 11 00 00 00 00 00 00 C6 [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 17 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 17 00 16 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 1D [19:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:57:50]wFMCommunicate OK [19:57:50]requested_item fd.num is exist - process it [19:57:50]SAM_PROTO_GetFieldsCounters [19:57:50]wFMCommunicate request_size=4 [19:57:50]MH_SAM_APDU [19:57:50]CAPDU: 80 13 00 00 [19:57:50]Write to MH i2c: E2 08 00 17 36 80 13 00 00 00 00 00 00 C9 [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 62 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 62 00 17 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 70 69 01 00 0E 04 04 00 FA 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 D6 [19:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 70 69 01 00 0E 04 04 00 FA 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 [19:57:50]wFMCommunicate OK [19:57:50]SAM_PROTO_GetFieldsCounters done [19:57:50]requested_item shift.num is exist - process it [19:57:50]requested_item shift.opened is exist - process it [19:57:50]req_shift_opened [19:57:50]FM_GetShiftState [19:57:50]SAM_PROTO_GetShiftState [19:57:50]wFMCommunicate request_size=4 [19:57:50]MH_SAM_APDU [19:57:50]CAPDU: 80 13 01 00 [19:57:50]Write to MH i2c: E2 08 00 18 36 80 13 01 00 00 00 00 00 CB [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 0E 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 0E 00 18 36 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 65 [19:57:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:57:50]wFMCommunicate OK [19:57:50]SAM_PROTO_GetShiftState done [19:57:50]FM_GetShiftState done [19:57:50]req_shift_opened done [19:57:50]requested_item shift.open_date is exist - process it [19:57:50]req_shift_open_date [19:57:50]req_shift_open_date done [19:57:50]produce_requested_data done [19:57:50]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92528,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:57:50]process_action_free close_receipt [19:57:50]json_value_free [19:57:50]json_value_free done [19:57:50]process_json_proto returns [19:57:50]Send response to host [19:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92528,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:57:50]free response buf [19:57:50]execute_script done [19:57:50]execute_script returns [19:57:50]free content buf [19:57:50]Sock 8.Close socket [19:57:50]Sock 8.Thread stoped [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:48]accept exits with 9 [19:59:48]New connection [19:59:48]New thread 3066801508 created [19:59:48]Thread 3066658148 joined [19:59:48]Waiting for new connection... [19:59:48] Sock 9.Parse request [19:59:48]Sock 9.Check first char [19:59:48]Sock 9.First char is OK [19:59:48]request: POST /json_proto HTTP/1.0 [19:59:48]Method: POST [19:59:48]URL: /json_proto [19:59:48]Method is POST - this is cgi request [19:59:48]url: /json_proto [19:59:48]query_string will be loaded in cgi processing [19:59:48]execute_cgi json_proto POST (null) [19:59:48]execute_cgi path=json_proto method=POST [19:59:48]POST find Content-Length [19:59:48]Host: 172.17.57.71:8080 [19:59:48]Content-Length: 676 [19:59:48]Content-Type: application/json [19:59:48] [19:59:48]POST finish read [19:59:48]Found Content-Length = 676 [19:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127431", "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" : 10.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" ] } } [19:59:48]execute_script... [19:59:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127431", "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" : 10.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" ] } } [19:59:48]POST & json_proto [19:59:48]process_json_proto [19:59:48]json parsed OK: [19:59:48]protocol is kg_v1.0 [19:59:48]action value=close_receipt [19:59:48]process_action close_receipt [19:59:48]cmd_close_receipt [19:59:48]MH_GetDate [19:59:48]Write to MH i2c: F0 00 00 19 36 3E [19:59:48]Write i2c OK [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: F0 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: F0 09 00 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: F0 09 00 19 36 00 39 EB E5 66 33 3A A4 66 2D [19:59:48]GetLastDocTimeStamp 1726343870 [19:59:48]current date 1726343993 [19:59:48]FM_GetShiftState [19:59:48]SAM_PROTO_GetShiftState [19:59:48]wFMCommunicate request_size=4 [19:59:48]MH_SAM_APDU [19:59:48]CAPDU: 80 13 01 00 [19:59:48]Write to MH i2c: E2 08 00 1A 36 80 13 01 00 00 00 00 00 CD [19:59:48]Write i2c OK [19:59:48]MH_I2C_Read... [19:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:48]Read from MH i2c: E2 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: E2 0E 00 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: E2 0E 00 1A 36 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 67 [19:59:48]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:59:48]wFMCommunicate OK [19:59:48]SAM_PROTO_GetShiftState done [19:59:48]FM_GetShiftState done [19:59:48]opened in 1726273389 [19:59:48]opened+sec_in_day 1726359789 [19:59:48]quantity*price = 7000 [19:59:48]sum+1 = 7001 [19:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 180 14.09.2024 19:59 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92529 ФПД: 206758040029228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T195953&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92529&fm=206758040029228&tin=02508201610067®Number=0000000000091423&sum=7000 0 [19:59:49]StoreToDocumentArchive [19:59:49]shift 506 fd 92529 [19:59:49]save to /storage/0506/doc_00092529 [19:59:49]save last doc name /storage/0506/doc_00092529 to /storage/kkm_last_doc_name [19:59:49]save OK [19:59:49]Clear old archive folders... [19:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=287 [19:59:49]tlvbuf is 0109A020 [19:59:49]SAM_PROTO_ClearQueue [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 09 00 00 [19:59:49]Write to MH i2c: E2 08 00 27 36 80 09 00 00 00 00 00 00 CF [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 27 36 00 90 00 D1 [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]SAM_PROTO_ClearQueue done [19:59:49]KKMCreateOFDPacket [19:59:49]OFDProtocolAddRootSTLVToBuf [19:59:49]FM_MakeSignedData [19:59:49]FM_MakeSignedData [19:59:49]SAM_PROTO_SignData [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 0D 01 02 [19:59:49]Write to MH i2c: E2 08 00 28 36 80 0D 01 02 00 00 00 00 D7 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 28 36 00 90 00 D2 [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]wFMCommunicate request_size=255 [19:59:49]MH_SAM_APDU [19:59:49]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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 B4 00 00 00 F4 03 04 00 39 EB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [19:59:49]Write to MH i2c: E2 02 01 29 36 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 B4 00 00 00 F4 03 04 00 39 EB E5 66 0E 04 04 00 FA 01 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 72 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 29 36 00 90 00 D3 [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]wFMCommunicate request_size=46 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 0D 02 02 29 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 69 01 00 35 04 06 00 BC 0B 9B 87 C8 2C [19:59:49]Write to MH i2c: E2 31 00 2A 36 80 0D 02 02 29 00 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 69 01 00 35 04 06 00 BC 0B 9B 87 C8 2C 00 00 1D [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 2A 36 00 90 00 D4 [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 03 02 [19:59:50]Write to MH i2c: E2 08 00 2B 36 80 0D 03 02 00 00 00 00 DC [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 0B 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 0B 00 2B 36 00 A4 66 3A 18 0B 7E 63 4F 90 00 74 [19:59:50]RAPDU: A4 66 3A 18 0B 7E 63 4F 90 00 [19:59:50]wFMCommunicate OK [19:59:50]SAM_PROTO_SignData done [19:59:50]FM_MakeSignedData done [19:59:50]CreateOFDProtocolMessage [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 11 00 00 [19:59:50]Write to MH i2c: E2 08 00 2C 36 80 11 00 00 00 00 00 00 DC [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 17 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 17 00 2C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 33 [19:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:59:50]wFMCommunicate OK [19:59:50]CreateOFDProtocolMessage done [19:59:50]OFDSenderStorePacket 92529 [19:59:50]StoreOFDPacket docnum=92529 [19:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 0C E2 2B 01 4F AB 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 B4 00 00 00 F4 03 04 00 39 EB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 69 01 00 35 04 06 00 BC 0B 9B 87 C8 2C A4 66 3A 18 0B 7E 63 4F [19:59:50]CheckFolder [19:59:50]dirname=/storage/ofd_packets [19:59:50]CheckFolder done [19:59:50]ProducePacketName [19:59:50]name=ofd_packets/00092529 [19:59:50]NVStorageSaveData ofd_packets/00092529 [19:59:50]File name is /storage/ofd_packets/00092529 [19:59:50]Write 337 bytes [19:59:50]NVStorageSaveData done [19:59:50]OFDSenderStorePacket done [19:59:50]KKMCreateOFDPacket done [19:59:50]NVStorageSaveData kkm_last_timestamp [19:59:50]File name is /storage/kkm_last_timestamp [19:59:50]Write 4 bytes [19:59:50]NVStorageSaveData done [19:59:50]ExternCall_PrintAddStr [19:59:50]wPrintStart [19:59:50]Write to MH i2c: 01 00 00 2D 36 63 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 2D 36 00 00 00 00 00 FF 0F 78 [19:59:50]RasterBufferAndPrint [19:59:50]line Счет N : (3)127431 [19:59:50]line ИНН: 02508201610067 [19:59:50]line Контрольно-Кассовый Чек [19:59:50]line ПРОДАЖА [19:59:50]line Товар: 2000053020015 [19:59:50]line Бумажные стаканы 250мл 1шт [19:59:50]line 10.000 * 7.00 [19:59:50]line = 70.00 [19:59:50]line НДС 12% НСП 1% [19:59:50]line > о реализуемом товаре [19:59:50]line ИТОГО: 70.00 [19:59:50]line НСП 1% : 0.62 [19:59:50]line НДС 12% : 7.43 [19:59:50]line Наличными: 70.00 [19:59:50]line Безнал.: 0.00 [19:59:50]line Место: АЗС № 5 "Партнер Нефть" [19:59:50]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [19:59:50]line СНО: Общий режим [19:59:50]line Чек 180 14.09.2024 19:59 [19:59:50]line Смена: 506 ФФД: 1.0 [19:59:50]line ЗНМ: 03000000022 [19:59:50]line РНМ: 0000000000091423 [19:59:50]line Версия ККМ: 001 [19:59:50]line ФМ: 0000000000874692 [19:59:50]line ФД: 92529 [19:59:50]line ФПД: 206758040029228 [19:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T195953&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92529&fm=206758040029228&tin=02508201610067®Number=0000000000091423&sum=7000 [19:59:50]line 0 [19:59:50]OFD Sender: Processing packet 92529 [packets to send 63, broken 62] [19:59:50]ProducePacketName [19:59:50]name=ofd_packets/00092529 [19:59:50]OFD Sender: To server: pG, [19:59:50]CommunicateWithHost lk.salyk.kg:30040 [19:59:50]ConnectInit lk.salyk.kg [19:59:50]written 0, free lines is 4095 [19:59:50]Connected sock=10 [19:59:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 33 01 00 00 0C E2 2B 01 4F AB 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 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 B4 00 00 00 F4 03 04 00 39 EB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 69 01 00 35 04 06 00 BC 0B 9B 87 C8 2C A4 66 3A 18 0B 7E 63 4F [19:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 E9 91 47 00 47 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 71 69 01 00 F4 03 04 00 B3 93 E5 66 B6 04 01 00 00 5B DB C0 33 B3 34 07 F3 [19:59:50]CommunicateWithHost err = 0 [19:59:50]CheckOFDResponse [19:59:50]1017 (14) - 77093643461234 [19:59:50]1041 (16) - 0000000000874692 [19:59:50]1040 (4) - 92529 [19:59:50]1012 (4) - 14.09.2024 13:46 [19:59:50]1206 (1) - 0 [19:59:50]OFD Sender: Remove packet 92529 [19:59:50]ProducePacketName [19:59:50]name=ofd_packets/00092529 [19:59:50]NVStorageDeleteData [19:59:50]Write to MH i2c: 01 00 00 56 36 8C [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 56 36 00 00 00 00 00 01 0D A1 [19:59:50]RasterBufferAndPrint [19:59:50]line [19:59:50]line [19:59:50]line [19:59:50]line [19:59:50]line [19:59:50]written 0, free lines is 3335 [19:59:50]MH_Cut [19:59:50]Write to MH i2c: D1 01 00 5D 36 01 65 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: D1 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: D1 01 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: D1 01 00 5D 36 00 64 [19:59:50]Write to MH i2c: 01 00 00 5E 36 94 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:51]OFD Sender: No OFD packet to send [19:59:51]*** Cut start [19:59:51]*** Purtial cut [19:59:51]*** Stage 1: CUTSNS_PIN = 1 [19:59:53]Read from MH i2c: 01 [19:59:53]MH_I2C_Read... [19:59:53]*** Stop cut motor [19:59:53]*** Cut end [19:59:53]Read from MH i2c: 01 07 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: 01 07 00 5E 36 00 00 00 00 00 FF 0F A9 [19:59:53]process_action close_receipt done [19:59:53]requested_data is exist [19:59:53]produce_requested_data [19:59:53]requested_item fm.sn is exist - process it [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 11 00 00 [19:59:53]Write to MH i2c: E2 08 00 5F 36 80 11 00 00 00 00 00 00 0F [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 17 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 17 00 5F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 66 [19:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [19:59:53]wFMCommunicate OK [19:59:53]requested_item fd.num is exist - process it [19:59:53]SAM_PROTO_GetFieldsCounters [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 00 00 [19:59:53]Write to MH i2c: E2 08 00 60 36 80 13 00 00 00 00 00 00 12 [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 60 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 71 69 01 00 0E 04 04 00 FA 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 23 [19:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 71 69 01 00 0E 04 04 00 FA 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 [19:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetFieldsCounters done [19:59:53]requested_item shift.num is exist - process it [19:59:53]requested_item shift.opened is exist - process it [19:59:53]req_shift_opened [19:59:53]FM_GetShiftState [19:59:53]SAM_PROTO_GetShiftState [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 01 00 [19:59:53]Write to MH i2c: E2 08 00 61 36 80 13 01 00 00 00 00 00 14 [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 0E 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 0E 00 61 36 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 AE [19:59:53]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [19:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetShiftState done [19:59:53]FM_GetShiftState done [19:59:53]req_shift_opened done [19:59:53]requested_item shift.open_date is exist - process it [19:59:53]req_shift_open_date [19:59:53]req_shift_open_date done [19:59:53]produce_requested_data done [19:59:53]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92529,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [19:59:53]process_action_free close_receipt [19:59:53]json_value_free [19:59:53]json_value_free done [19:59:53]process_json_proto returns [19:59:53]Send response to host [19:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92529,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [19:59:53]free response buf [19:59:53]execute_script done [19:59:53]execute_script returns [19:59:53]free content buf [19:59:53]Sock 9.Close socket [19:59:53]Sock 9.Thread stoped [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:41]accept exits with 8 [20:05:41]New connection [20:05:41]New thread 3066658148 created [20:05:41]Thread 3066801508 joined [20:05:41]Waiting for new connection... [20:05:41] Sock 8.Parse request [20:05:41]Sock 8.Check first char [20:05:41]Sock 8.First char is OK [20:05:41]request: POST /json_proto HTTP/1.0 [20:05:41]Method: POST [20:05:41]URL: /json_proto [20:05:41]Method is POST - this is cgi request [20:05:41]url: /json_proto [20:05:41]query_string will be loaded in cgi processing [20:05:41]execute_cgi json_proto POST (null) [20:05:41]execute_cgi path=json_proto method=POST [20:05:41]POST find Content-Length [20:05:41]Host: 172.17.57.71:8080 [20:05:41]Content-Length: 1091 [20:05:41]Content-Type: application/json [20:05:41] [20:05:41]POST finish read [20:05:41]Found Content-Length = 1091 [20:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127432", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 830.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:41]execute_script... [20:05: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)127432", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 830.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:41]POST & json_proto [20:05:41]process_json_proto [20:05:41]json parsed OK: [20:05:41]protocol is kg_v1.0 [20:05:41]action value=close_receipt [20:05:41]process_action close_receipt [20:05:41]cmd_close_receipt [20:05:41]MH_GetDate [20:05:41]Write to MH i2c: F0 00 00 62 36 87 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: F0 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: F0 09 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: F0 09 00 62 36 00 9A EC E5 66 33 3A A4 66 D8 [20:05:41]GetLastDocTimeStamp 1726343993 [20:05:41]current date 1726344346 [20:05:41]FM_GetShiftState [20:05:41]SAM_PROTO_GetShiftState [20:05:41]wFMCommunicate request_size=4 [20:05:41]MH_SAM_APDU [20:05:41]CAPDU: 80 13 01 00 [20:05:41]Write to MH i2c: E2 08 00 63 36 80 13 01 00 00 00 00 00 16 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:41]Read from MH i2c: E2 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 0E 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 0E 00 63 36 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B0 [20:05:41]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:05:41]wFMCommunicate OK [20:05:41]SAM_PROTO_GetShiftState done [20:05:41]FM_GetShiftState done [20:05:41]opened in 1726273389 [20:05:41]opened+sec_in_day 1726359789 [20:05:41]quantity*price = 13000 [20:05:41]sum+1 = 13001 [20:05:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003150929 Новая Водка Organic 40% 0,7л 1.000 * 700.00 = 700.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 830.00 НСП 1% : 7.34 НДС 12% : 88.14 Наличными: 0.00 Безнал.: 830.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 181 14.09.2024 20:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92530 ФПД: 91465117428958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T200546&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92530&fm=91465117428958&tin=02508201610067®Number=0000000000091423&sum=83000 0 [20:05:42]StoreToDocumentArchive [20:05:42]shift 506 fd 92530 [20:05:42]save to /storage/0506/doc_00092530 [20:05:42]save last doc name /storage/0506/doc_00092530 to /storage/kkm_last_doc_name [20:05:42]save OK [20:05:42]Clear old archive folders... [20:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=407 [20:05:42]tlvbuf is 0101E450 [20:05:42]SAM_PROTO_ClearQueue [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 09 00 00 [20:05:42]Write to MH i2c: E2 08 00 70 36 80 09 00 00 00 00 00 00 18 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 70 36 00 90 00 1A [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_ClearQueue done [20:05:42]KKMCreateOFDPacket [20:05:42]OFDProtocolAddRootSTLVToBuf [20:05:42]FM_MakeSignedData [20:05:42]FM_MakeSignedData [20:05:42]SAM_PROTO_SignData [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 01 02 [20:05:42]Write to MH i2c: E2 08 00 71 36 80 0D 01 02 00 00 00 00 20 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 71 36 00 90 00 1B [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]wFMCommunicate request_size=255 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [20:05:42]Write to MH i2c: E2 02 01 72 36 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 16 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 72 36 00 90 00 1C [20:05:43]RAPDU: 90 00 [20:05:43]wFMCommunicate OK [20:05:43]wFMCommunicate request_size=166 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 0D 02 02 A1 38 44 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 44 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9A EC E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 69 01 00 35 04 06 00 53 2F E1 D5 6C DE [20:05:43]Write to MH i2c: E2 A9 00 73 36 80 0D 02 02 A1 00 38 44 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 44 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9A EC E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 69 01 00 35 04 06 00 53 2F E1 D5 6C DE 00 00 E9 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 73 36 00 90 00 1D [20:05:43]RAPDU: 90 00 [20:05:43]wFMCommunicate OK [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 0D 03 02 [20:05:43]Write to MH i2c: E2 08 00 74 36 80 0D 03 02 00 00 00 00 25 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0B 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0B 00 74 36 00 CB 3A 25 14 14 89 58 6E 90 00 C7 [20:05:43]RAPDU: CB 3A 25 14 14 89 58 6E 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_SignData done [20:05:43]FM_MakeSignedData done [20:05:43]CreateOFDProtocolMessage [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 11 00 00 [20:05:43]Write to MH i2c: E2 08 00 75 36 80 11 00 00 00 00 00 00 25 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 17 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 17 00 75 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7C [20:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:05:43]wFMCommunicate OK [20:05:43]CreateOFDProtocolMessage done [20:05:43]OFDSenderStorePacket 92530 [20:05:43]StoreOFDPacket docnum=92530 [20:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AB 01 00 00 8E 97 A3 01 CB 69 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 44 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 44 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9A EC E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 69 01 00 35 04 06 00 53 2F E1 D5 6C DE CB 3A 25 14 14 89 58 6E [20:05:43]CheckFolder [20:05:43]dirname=/storage/ofd_packets [20:05:43]CheckFolder done [20:05:43]ProducePacketName [20:05:43]name=ofd_packets/00092530 [20:05:43]NVStorageSaveData ofd_packets/00092530 [20:05:43]File name is /storage/ofd_packets/00092530 [20:05:43]Write 457 bytes [20:05:43]NVStorageSaveData done [20:05:43]OFDSenderStorePacket done [20:05:43]KKMCreateOFDPacket done [20:05:43]NVStorageSaveData kkm_last_timestamp [20:05:43]File name is /storage/kkm_last_timestamp [20:05:43]OFD Sender: Processing packet 92530 [packets to send 63, broken 62] [20:05:43]ProducePacketName [20:05:43]name=ofd_packets/00092530 [20:05:43]OFD Sender: To server: pG, [20:05:43]CommunicateWithHost lk.salyk.kg:30040 [20:05:43]ConnectInit lk.salyk.kg [20:05:43]Write 4 bytes [20:05:43]NVStorageSaveData done [20:05:43]ExternCall_PrintAddStr [20:05:43]wPrintStart [20:05:43]Write to MH i2c: 01 00 00 76 36 AC [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 76 36 00 00 00 00 00 FF 0F C1 [20:05:43]RasterBufferAndPrint [20:05:43]line Счет N : (3)127432 [20:05:43]line ИНН: 02508201610067 [20:05:43]line Контрольно-Кассовый Чек [20:05:43]line ПРОДАЖА [20:05:43]line Товар: 4870002329951 [20:05:43]line Напиток Lipton IceTea 1л зел чай Regular [20:05:43]line 1.000 * 130.00 [20:05:43]line = 130.00 [20:05:43]line НДС 12% НСП 1% [20:05:43]line > о реализуемом товаре [20:05:43]line Товар: 4700003150929 [20:05:43]line Новая Водка Organic 40% 0,7л [20:05:43]line 1.000 * 700.00 [20:05:43]line = 700.00 [20:05:43]line НДС 12% НСП 1% [20:05:43]line > о реализуемом товаре [20:05:43]line ИТОГО: 830.00 [20:05:43]line НСП 1% : 7.34 [20:05:43]line НДС 12% : 88.14 [20:05:43]line Наличными: 0.00 [20:05:43]line Безнал.: 830.00 [20:05:43]line Место: АЗС № 5 "Партнер Нефть" [20:05:43]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:05:43]line СНО: Общий режим [20:05:43]line Чек 181 14.09.2024 20:05 [20:05:43]line Смена: 506 ФФД: 1.0 [20:05:43]line ЗНМ: 03000000022 [20:05:43]line РНМ: 0000000000091423 [20:05:43]line Версия ККМ: 001 [20:05:43]line Платежная система: О! деньги [20:05:43]line ФМ: 0000000000874692 [20:05:43]line ФД: 92530 [20:05:43]line ФПД: 91465117428958 [20:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T200546&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92530&fm=91465117428958&tin=02508201610067®Number=0000000000091423&sum=83000 [20:05:43]line 0 [20:05:43]written 0, free lines is 4095 [20:05:43]Connected sock=11 [20:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 AB 01 00 00 8E 97 A3 01 CB 69 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 44 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 44 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9A EC E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 69 01 00 35 04 06 00 53 2F E1 D5 6C DE CB 3A 25 14 14 89 58 6E [20:05:44]Write to MH i2c: 01 00 00 A7 36 DD [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 A7 36 00 00 00 00 00 B1 0C A1 [20:05:44]RasterBufferAndPrint [20:05:44]line [20:05:44]line [20:05:44]line [20:05:44]line [20:05:44]line [20:05:44]written 0, free lines is 3257 [20:05:44]MH_Cut [20:05:44]Write to MH i2c: D1 01 00 AE 36 01 B6 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: D1 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: D1 01 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: D1 01 00 AE 36 00 B5 [20:05:44]Write to MH i2c: 01 00 00 AF 36 E5 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F8 A1 47 00 DA AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 72 69 01 00 F4 03 04 00 14 95 E5 66 B6 04 01 00 00 BC BA 8D D9 3D 28 89 B5 [20:05:44]CommunicateWithHost err = 0 [20:05:44]CheckOFDResponse [20:05:44]1017 (14) - 77093643461234 [20:05:44]1041 (16) - 0000000000874692 [20:05:44]1040 (4) - 92530 [20:05:44]1012 (4) - 14.09.2024 13:52 [20:05:44]1206 (1) - 0 [20:05:44]OFD Sender: Remove packet 92530 [20:05:44]ProducePacketName [20:05:44]name=ofd_packets/00092530 [20:05:44]NVStorageDeleteData [20:05:44]OFD Sender: No OFD packet to send [20:05:44]*** Cut start [20:05:44]*** Purtial cut [20:05:44]*** Stage 1: CUTSNS_PIN = 1 [20:05:46]Read from MH i2c: 01 [20:05:46]MH_I2C_Read... [20:05:46]*** Stop cut motor [20:05:46]*** Cut end [20:05:46]Read from MH i2c: 01 07 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: 01 07 00 AF 36 00 00 00 00 00 FF 0F FA [20:05:46]process_action close_receipt done [20:05:46]requested_data is exist [20:05:46]produce_requested_data [20:05:46]requested_item fm.sn is exist - process it [20:05:46]wFMCommunicate request_size=4 [20:05:46]MH_SAM_APDU [20:05:46]CAPDU: 80 11 00 00 [20:05:46]Write to MH i2c: E2 08 00 B0 36 80 11 00 00 00 00 00 00 60 [20:05:46]Write i2c OK [20:05:46]MH_I2C_Read... [20:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:46]Read from MH i2c: E2 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 17 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 17 00 B0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B7 [20:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:05:46]wFMCommunicate OK [20:05:46]requested_item fd.num is exist - process it [20:05:46]SAM_PROTO_GetFieldsCounters [20:05:46]wFMCommunicate request_size=4 [20:05:46]MH_SAM_APDU [20:05:46]CAPDU: 80 13 00 00 [20:05:46]Write to MH i2c: E2 08 00 B1 36 80 13 00 00 00 00 00 00 63 [20:05:46]Write i2c OK [20:05:46]MH_I2C_Read... [20:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:46]Read from MH i2c: E2 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 62 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 62 00 B1 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 72 69 01 00 0E 04 04 00 FA 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 78 [20:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 72 69 01 00 0E 04 04 00 FA 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 [20:05:46]wFMCommunicate OK [20:05:46]SAM_PROTO_GetFieldsCounters done [20:05:46]requested_item shift.num is exist - process it [20:05:46]requested_item shift.opened is exist - process it [20:05:46]req_shift_opened [20:05:46]FM_GetShiftState [20:05:46]SAM_PROTO_GetShiftState [20:05:46]wFMCommunicate request_size=4 [20:05:46]MH_SAM_APDU [20:05:46]CAPDU: 80 13 01 00 [20:05:46]Write to MH i2c: E2 08 00 B2 36 80 13 01 00 00 00 00 00 65 [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 [20:05:47]MH_I2C_Read... [20:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:47]Read from MH i2c: E2 0E 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 0E 00 B2 36 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 FF [20:05:47]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:05:47]wFMCommunicate OK [20:05:47]SAM_PROTO_GetShiftState done [20:05:47]FM_GetShiftState done [20:05:47]req_shift_opened done [20:05:47]requested_item shift.open_date is exist - process it [20:05:47]req_shift_open_date [20:05:47]req_shift_open_date done [20:05:47]produce_requested_data done [20:05:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92530,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:05:47]process_action_free close_receipt [20:05:47]json_value_free [20:05:47]json_value_free done [20:05:47]process_json_proto returns [20:05:47]Send response to host [20:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92530,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:05:47]free response buf [20:05:47]execute_script done [20:05:47]execute_script returns [20:05:47]free content buf [20:05:47]Sock 8.Close socket [20:05:47]Sock 8.Thread stoped [20:05:49]OFD Sender: No OFD packet to send [20:05:51]accept exits with 9 [20:05:51]New connection [20:05:51]New thread 3066801508 created [20:05:51]Thread 3066658148 joined [20:05:51]Waiting for new connection... [20:05:51] Sock 9.Parse request [20:05:51]Sock 9.Check first char [20:05:51]Sock 9.First char is OK [20:05:51]request: POST /json_proto HTTP/1.0 [20:05:51]Method: POST [20:05:51]URL: /json_proto [20:05:51]Method is POST - this is cgi request [20:05:51]url: /json_proto [20:05:51]query_string will be loaded in cgi processing [20:05:51]execute_cgi json_proto POST (null) [20:05:51]execute_cgi path=json_proto method=POST [20:05:51]POST find Content-Length [20:05:51]Host: 172.17.57.71:8080 [20:05:51]Content-Length: 620 [20:05:51]Content-Type: application/json [20:05:51] [20:05:51]POST finish read [20:05:51]Found Content-Length = 620 [20:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127433", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:51]execute_script... [20:05: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)127433", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:51]POST & json_proto [20:05:51]process_json_proto [20:05:51]json parsed OK: [20:05:51]protocol is kg_v1.0 [20:05:51]action value=close_receipt [20:05:51]process_action close_receipt [20:05:51]cmd_close_receipt [20:05:51]MH_GetDate [20:05:51]Write to MH i2c: F0 00 00 B3 36 D8 [20:05:51]Write i2c OK [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: F0 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: F0 09 00 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: F0 09 00 B3 36 00 A4 EC E5 66 33 3A A4 66 33 [20:05:51]GetLastDocTimeStamp 1726344346 [20:05:51]current date 1726344356 [20:05:51]FM_GetShiftState [20:05:51]SAM_PROTO_GetShiftState [20:05:51]wFMCommunicate request_size=4 [20:05:51]MH_SAM_APDU [20:05:51]CAPDU: 80 13 01 00 [20:05:51]Write to MH i2c: E2 08 00 B4 36 80 13 01 00 00 00 00 00 67 [20:05:51]Write i2c OK [20:05:51]MH_I2C_Read... [20:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:51]Read from MH i2c: E2 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 0E 00 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 0E 00 B4 36 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 01 [20:05:51]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:05:51]wFMCommunicate OK [20:05:51]SAM_PROTO_GetShiftState done [20:05:51]FM_GetShiftState done [20:05:51]opened in 1726273389 [20:05:51]opened+sec_in_day 1726359789 [20:05:51]quantity*price = 4900 [20:05:51]sum+1 = 4901 [20:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 182 14.09.2024 20:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92531 ФПД: 191495374363117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T200556&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92531&fm=191495374363117&tin=02508201610067®Number=0000000000091423&sum=4900 0 [20:05:52]StoreToDocumentArchive [20:05:52]shift 506 fd 92531 [20:05:52]save to /storage/0506/doc_00092531 [20:05:52]save last doc name /storage/0506/doc_00092531 to /storage/kkm_last_doc_name [20:05:52]save OK [20:05:52]Clear old archive folders... [20:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=279 [20:05:52]tlvbuf is 00F92A10 [20:05:52]SAM_PROTO_ClearQueue [20:05:52]wFMCommunicate request_size=4 [20:05:52]MH_SAM_APDU [20:05:52]CAPDU: 80 09 00 00 [20:05:52]Write to MH i2c: E2 08 00 C1 36 80 09 00 00 00 00 00 00 69 [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:52]Read from MH i2c: E2 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: E2 03 00 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: E2 03 00 C1 36 00 90 00 6B [20:05:52]RAPDU: 90 00 [20:05:52]wFMCommunicate OK [20:05:52]SAM_PROTO_ClearQueue done [20:05:52]KKMCreateOFDPacket [20:05:52]OFDProtocolAddRootSTLVToBuf [20:05:52]FM_MakeSignedData [20:05:52]FM_MakeSignedData [20:05:52]SAM_PROTO_SignData [20:05:52]wFMCommunicate request_size=4 [20:05:52]MH_SAM_APDU [20:05:52]CAPDU: 80 0D 01 02 [20:05:52]Write to MH i2c: E2 08 00 C2 36 80 0D 01 02 00 00 00 00 71 [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:52]Read from MH i2c: E2 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: E2 03 00 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: E2 03 00 C2 36 00 90 00 6C [20:05:52]RAPDU: 90 00 [20:05:52]wFMCommunicate OK [20:05:52]wFMCommunicate request_size=255 [20:05:52]MH_SAM_APDU [20:05:52]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 B6 00 00 00 F4 03 04 00 A4 EC E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 [20:05:52]Write to MH i2c: E2 02 01 C3 36 80 0D 02 02 FA 00 03 00 17 01 1E 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 B6 00 00 00 F4 03 04 00 A4 EC E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 00 00 3F [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 03 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 03 00 C3 36 00 90 00 6D [20:05:53]RAPDU: 90 00 [20:05:53]wFMCommunicate OK [20:05:53]wFMCommunicate request_size=38 [20:05:53]MH_SAM_APDU [20:05:53]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 69 01 00 35 04 06 00 AE 29 FD C3 D9 ED [20:05:53]Write to MH i2c: E2 29 00 C4 36 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 69 01 00 35 04 06 00 AE 29 FD C3 D9 ED 00 00 3B [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 03 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 03 00 C4 36 00 90 00 6E [20:05:53]RAPDU: 90 00 [20:05:53]wFMCommunicate OK [20:05:53]wFMCommunicate request_size=4 [20:05:53]MH_SAM_APDU [20:05:53]CAPDU: 80 0D 03 02 [20:05:53]Write to MH i2c: E2 08 00 C5 36 80 0D 03 02 00 00 00 00 76 [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 0B 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 0B 00 C5 36 00 31 2B C3 F0 FD 4F B9 8F 90 00 1A [20:05:53]RAPDU: 31 2B C3 F0 FD 4F B9 8F 90 00 [20:05:53]wFMCommunicate OK [20:05:53]SAM_PROTO_SignData done [20:05:53]FM_MakeSignedData done [20:05:53]CreateOFDProtocolMessage [20:05:53]wFMCommunicate request_size=4 [20:05:53]MH_SAM_APDU [20:05:53]CAPDU: 80 11 00 00 [20:05:53]Write to MH i2c: E2 08 00 C6 36 80 11 00 00 00 00 00 00 76 [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 17 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 17 00 C6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CD [20:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:05:53]wFMCommunicate OK [20:05:53]CreateOFDProtocolMessage done [20:05:53]OFDSenderStorePacket 92531 [20:05:53]StoreOFDPacket docnum=92531 [20:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 8F 19 23 01 98 77 5A 03 01 00 03 00 17 01 1E 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 B6 00 00 00 F4 03 04 00 A4 EC E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 69 01 00 35 04 06 00 AE 29 FD C3 D9 ED 31 2B C3 F0 FD 4F B9 8F [20:05:53]CheckFolder [20:05:53]dirname=/storage/ofd_packets [20:05:53]CheckFolder done [20:05:53]ProducePacketName [20:05:53]name=ofd_packets/00092531 [20:05:53]NVStorageSaveData ofd_packets/00092531 [20:05:53]File name is /storage/ofd_packets/00092531 [20:05:53]Write 329 bytes [20:05:53]NVStorageSaveData done [20:05:53]OFDSenderStorePacket done [20:05:53]KKMCreateOFDPacket done [20:05:53]NVStorageSaveData kkm_last_timestamp [20:05:53]File name is /storage/kkm_last_timestamp [20:05:53]Write 4 bytes [20:05:53]NVStorageSaveData done [20:05:53]ExternCall_PrintAddStr [20:05:53]wPrintStart [20:05:53]Write to MH i2c: 01 00 00 C7 36 FD [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 07 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 07 00 C7 36 00 00 00 00 00 FF 0F 12 [20:05:53]RasterBufferAndPrint [20:05:53]line Счет N : (3)127433 [20:05:53]line ИНН: 02508201610067 [20:05:53]line Контрольно-Кассовый Чек [20:05:53]line ПРОДАЖА [20:05:53]line Товар: 46214645 [20:05:53]line Р/ж mentos pure white клуб 16/15,5г [20:05:53]line 1.000 * 49.00 [20:05:53]line = 49.00 [20:05:53]line НДС 12% НСП 1% [20:05:53]line > о реализуемом товаре [20:05:53]line ИТОГО: 49.00 [20:05:53]line НСП 1% : 0.43 [20:05:53]line НДС 12% : 5.20 [20:05:53]line Наличными: 49.00 [20:05:53]line Безнал.: 0.00 [20:05:53]line Место: АЗС № 5 "Партнер Нефть" [20:05:53]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:05:53]line СНО: Общий режим [20:05:53]line Чек 182 14.09.2024 20:05 [20:05:53]line Смена: 506 ФФД: 1.0 [20:05:53]line ЗНМ: 03000000022 [20:05:53]line РНМ: 0000000000091423 [20:05:53]line Версия ККМ: 001 [20:05:53]line ФМ: 0000000000874692 [20:05:53]line ФД: 92531 [20:05:53]line ФПД: 191495374363117 [20:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T200556&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92531&fm=191495374363117&tin=02508201610067®Number=0000000000091423&sum=4900 [20:05:53]line 0 [20:05:53]written 0, free lines is 4095 [20:05:53]OFD Sender: Processing packet 92531 [packets to send 63, broken 62] [20:05:53]ProducePacketName [20:05:53]name=ofd_packets/00092531 [20:05:53]OFD Sender: To server: pG, [20:05:53]CommunicateWithHost lk.salyk.kg:30040 [20:05:53]ConnectInit lk.salyk.kg [20:05:53]Connected sock=10 [20:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2B 01 00 00 8F 19 23 01 98 77 5A 03 01 00 03 00 17 01 1E 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 B6 00 00 00 F4 03 04 00 A4 EC E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 69 01 00 35 04 06 00 AE 29 FD C3 D9 ED 31 2B C3 F0 FD 4F B9 8F [20:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 98 6E 47 00 5D 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 73 69 01 00 F4 03 04 00 1E 95 E5 66 B6 04 01 00 00 86 ED D2 CB D6 F1 0E 38 [20:05:53]CommunicateWithHost err = 0 [20:05:53]CheckOFDResponse [20:05:53]1017 (14) - 77093643461234 [20:05:53]1041 (16) - 0000000000874692 [20:05:53]1040 (4) - 92531 [20:05:53]1012 (4) - 14.09.2024 13:52 [20:05:53]1206 (1) - 0 [20:05:53]OFD Sender: Remove packet 92531 [20:05:53]ProducePacketName [20:05:53]name=ofd_packets/00092531 [20:05:53]NVStorageDeleteData [20:05:53]Write to MH i2c: 01 00 00 F0 36 26 [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 07 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 07 00 F0 36 00 00 00 00 00 1E 0D 58 [20:05:53]RasterBufferAndPrint [20:05:53]line [20:05:53]line [20:05:53]line [20:05:53]line [20:05:53]line [20:05:53]written 0, free lines is 3369 [20:05:53]MH_Cut [20:05:53]Write to MH i2c: D1 01 00 F7 36 01 FF [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: D1 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: D1 01 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: D1 01 00 F7 36 00 FE [20:05:53]Write to MH i2c: 01 00 00 F8 36 2E [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:54]OFD Sender: No OFD packet to send [20:05:54]*** Cut start [20:05:54]*** Purtial cut [20:05:54]*** Stage 1: CUTSNS_PIN = 1 [20:05:56]Read from MH i2c: 01 [20:05:56]MH_I2C_Read... [20:05:56]*** Stop cut motor [20:05:56]*** Cut end [20:05:56]Read from MH i2c: 01 07 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: 01 07 00 F8 36 00 00 00 00 00 FF 0F 43 [20:05:56]process_action close_receipt done [20:05:56]requested_data is exist [20:05:56]produce_requested_data [20:05:56]requested_item fm.sn is exist - process it [20:05:56]wFMCommunicate request_size=4 [20:05:56]MH_SAM_APDU [20:05:56]CAPDU: 80 11 00 00 [20:05:56]Write to MH i2c: E2 08 00 F9 36 80 11 00 00 00 00 00 00 A9 [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:56]Read from MH i2c: E2 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 17 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 17 00 F9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 00 [20:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:05:56]wFMCommunicate OK [20:05:56]requested_item fd.num is exist - process it [20:05:56]SAM_PROTO_GetFieldsCounters [20:05:56]wFMCommunicate request_size=4 [20:05:56]MH_SAM_APDU [20:05:56]CAPDU: 80 13 00 00 [20:05:56]Write to MH i2c: E2 08 00 FA 36 80 13 00 00 00 00 00 00 AC [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 [20:05:56]MH_I2C_Read... [20:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:56]Read from MH i2c: E2 62 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 62 00 FA 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 73 69 01 00 0E 04 04 00 FA 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 C5 [20:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 73 69 01 00 0E 04 04 00 FA 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 [20:05:56]wFMCommunicate OK [20:05:56]SAM_PROTO_GetFieldsCounters done [20:05:56]requested_item shift.num is exist - process it [20:05:56]requested_item shift.opened is exist - process it [20:05:56]req_shift_opened [20:05:56]FM_GetShiftState [20:05:56]SAM_PROTO_GetShiftState [20:05:56]wFMCommunicate request_size=4 [20:05:56]MH_SAM_APDU [20:05:56]CAPDU: 80 13 01 00 [20:05:56]Write to MH i2c: E2 08 00 FB 36 80 13 01 00 00 00 00 00 AE [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:56]Read from MH i2c: E2 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 0E 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 0E 00 FB 36 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 48 [20:05:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:05:56]wFMCommunicate OK [20:05:56]SAM_PROTO_GetShiftState done [20:05:56]FM_GetShiftState done [20:05:56]req_shift_opened done [20:05:56]requested_item shift.open_date is exist - process it [20:05:56]req_shift_open_date [20:05:56]req_shift_open_date done [20:05:56]produce_requested_data done [20:05:56]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92531,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:05:56]process_action_free close_receipt [20:05:56]json_value_free [20:05:56]json_value_free done [20:05:56]process_json_proto returns [20:05:56]Send response to host [20:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92531,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:05:56]free response buf [20:05:56]execute_script done [20:05:56]execute_script returns [20:05:56]free content buf [20:05:56]Sock 9.Close socket [20:05:56]Sock 9.Thread stoped [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:57]int [20:10:57]Write to MH i2c: 01 00 00 FC 36 32 [20:10:57]*** FLAG_PRN_PAP1 set [20:10:57]Write i2c OK [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: 01 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: 01 07 00 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: 01 07 00 FC 36 00 01 00 00 00 FF 0F 48 [20:10:57]state=0 [20:10:57]No paper [20:10:57]int [20:10:57]Write to MH i2c: 01 00 00 FD 36 33 [20:10:57]*** FLAG_PRN_PAP2 set [20:10:57]Write i2c OK [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: 01 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: 01 07 00 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: 01 07 00 FD 36 00 03 00 00 00 FF 0F 4B [20:10:57]state=0 [20:10:57]No paper [20:10:57]Cover opened [20:10:58]int [20:10:58]Write to MH i2c: 01 00 00 FE 36 34 [20:10:58]*** FLAG_PRN_PAP2 reset [20:10:58]Write i2c OK [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: 01 [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: 01 07 00 [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: 01 07 00 FE 36 00 01 00 00 00 FF 0F 4A [20:10:58]state=3 [20:10:58]No paper [20:10:58]Cover closed [20:10:58]int [20:10:58]Write to MH i2c: 01 00 00 FF 36 35 [20:10:58]*** FLAG_PRN_PAP2 set [20:10:58]Write i2c OK [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: 01 [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: 01 07 00 [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: 01 07 00 FF 36 00 03 00 00 00 FF 0F 4D [20:10:58]state=0 [20:10:58]No paper [20:10:58]Cover opened [20:10:59]OFD Sender: No OFD packet to send [20:11:03]Write to MH i2c: 01 00 00 00 37 37 [20:11:03]Write i2c OK [20:11:03]MH_I2C_Read... [20:11:03]Read from MH i2c: 01 [20:11:03]MH_I2C_Read... [20:11:03]Read from MH i2c: 01 07 00 [20:11:03]MH_I2C_Read... [20:11:03]Read from MH i2c: 01 07 00 00 37 00 03 00 00 00 FF 0F 4F [20:11:03]state=3 [20:11:03]No paper [20:11:03]Cover opened [20:11:04]OFD Sender: No OFD packet to send [20:11:08]Write to MH i2c: 01 00 00 01 37 38 [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 07 00 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 07 00 01 37 00 03 00 00 00 FF 0F 50 [20:11:08]state=3 [20:11:08]No paper [20:11:08]Cover opened [20:11:09]OFD Sender: No OFD packet to send [20:11:13]Write to MH i2c: 01 00 00 02 37 39 [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: 01 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: 01 07 00 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: 01 07 00 02 37 00 03 00 00 00 FF 0F 51 [20:11:13]state=3 [20:11:13]No paper [20:11:13]Cover opened [20:11:14]OFD Sender: No OFD packet to send [20:11:18]Write to MH i2c: 01 00 00 03 37 3A [20:11:18]Write i2c OK [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: 01 [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: 01 07 00 [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: 01 07 00 03 37 00 03 00 00 00 FF 0F 52 [20:11:18]state=3 [20:11:18]No paper [20:11:18]Cover opened [20:11:19]OFD Sender: No OFD packet to send [20:11:23]Write to MH i2c: 01 00 00 04 37 3B [20:11:23]Write i2c OK [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: 01 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: 01 07 00 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: 01 07 00 04 37 00 03 00 00 00 FF 0F 53 [20:11:23]state=3 [20:11:23]No paper [20:11:23]Cover opened [20:11:24]OFD Sender: No OFD packet to send [20:11:28]Write to MH i2c: 01 00 00 05 37 3C [20:11:28]Write i2c OK [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: 01 [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: 01 07 00 [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: 01 07 00 05 37 00 03 00 00 00 FF 0F 54 [20:11:28]state=3 [20:11:28]No paper [20:11:28]Cover opened [20:11:29]OFD Sender: No OFD packet to send [20:11:33]Write to MH i2c: 01 00 00 06 37 3D [20:11:33]Write i2c OK [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 07 00 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 07 00 06 37 00 03 00 00 00 FF 0F 55 [20:11:33]state=3 [20:11:33]No paper [20:11:33]Cover opened [20:11:33]int [20:11:33]Write to MH i2c: 01 00 00 07 37 3E [20:11:33]*** FLAG_PRN_PAP2 reset [20:11:33]Write i2c OK [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 07 00 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 07 00 07 37 00 01 00 00 00 FF 0F 54 [20:11:33]state=3 [20:11:33]No paper [20:11:33]Cover closed [20:11:33]int [20:11:33]Write to MH i2c: 01 00 00 08 37 3F [20:11:33]*** FLAG_PRN_PAP2 set [20:11:33]Write i2c OK [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 07 00 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 07 00 08 37 00 03 00 00 00 FF 0F 57 [20:11:33]state=0 [20:11:33]No paper [20:11:33]Cover opened [20:11:34]int [20:11:34]Write to MH i2c: 01 00 00 09 37 40 [20:11:34]*** FLAG_PRN_PAP2 reset [20:11:34]Write i2c OK [20:11:34]MH_I2C_Read... [20:11:34]Read from MH i2c: 01 [20:11:34]MH_I2C_Read... [20:11:34]Read from MH i2c: 01 07 00 [20:11:34]MH_I2C_Read... [20:11:34]Read from MH i2c: 01 07 00 09 37 00 01 00 00 00 FF 0F 56 [20:11:34]state=3 [20:11:34]No paper [20:11:34]Cover closed [20:11:34]OFD Sender: No OFD packet to send [20:11:34]int [20:11:34]Write to MH i2c: 01 00 00 0A 37 41 [20:11:34]*** FLAG_PRN_PAP2 set [20:11:34]Write i2c OK [20:11:34]MH_I2C_Read... [20:11:34]Read from MH i2c: 01 [20:11:34]MH_I2C_Read... [20:11:34]Read from MH i2c: 01 07 00 [20:11:34]MH_I2C_Read... [20:11:34]Read from MH i2c: 01 07 00 0A 37 00 03 00 00 00 FF 0F 59 [20:11:34]state=0 [20:11:34]No paper [20:11:34]Cover opened [20:11:35]int [20:11:35]Write to MH i2c: 01 00 00 0B 37 42 [20:11:35]Write i2c OK [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 07 00 [20:11:35]MH_I2C_Read... [20:11:35]*** FLAG_PRN_PAP2 reset [20:11:35]*** FLAG_PRN_PAP1 reset [20:11:35]Read from MH i2c: 01 07 00 0B 37 00 00 00 00 00 FF 0F 57 [20:11:35]state=3 [20:11:35]Cover closed [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:18:56]accept exits with 8 [20:18:56]New connection [20:18:56]New thread 3066658148 created [20:18:56]Thread 3066801508 joined [20:18:56]Waiting for new connection... [20:18:56] Sock 8.Parse request [20:18:56]Sock 8.Check first char [20:18:56]Sock 8.First char is OK [20:18:56]request: POST /json_proto HTTP/1.0 [20:18:56]Method: POST [20:18:56]URL: /json_proto [20:18:56]Method is POST - this is cgi request [20:18:56]url: /json_proto [20:18:56]query_string will be loaded in cgi processing [20:18:56]execute_cgi json_proto POST (null) [20:18:56]execute_cgi path=json_proto method=POST [20:18:56]POST find Content-Length [20:18:56]Host: 172.17.57.71:8080 [20:18:56]Content-Length: 662 [20:18:56]Content-Type: application/json [20:18:56] [20:18:56]POST finish read [20:18:56]Found Content-Length = 662 [20:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127434", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:56]execute_script... [20:18: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)127434", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:56]POST & json_proto [20:18:56]process_json_proto [20:18:56]json parsed OK: [20:18:56]protocol is kg_v1.0 [20:18:56]action value=close_receipt [20:18:56]process_action close_receipt [20:18:56]cmd_close_receipt [20:18:56]MH_GetDate [20:18:56]Write to MH i2c: F0 00 00 0C 37 32 [20:18:56]Write i2c OK [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: F0 [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: F0 09 00 [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: F0 09 00 0C 37 00 B5 EF E5 66 33 3A A4 66 A1 [20:18:56]GetLastDocTimeStamp 1726344356 [20:18:56]current date 1726345141 [20:18:56]FM_GetShiftState [20:18:56]SAM_PROTO_GetShiftState [20:18:56]wFMCommunicate request_size=4 [20:18:56]MH_SAM_APDU [20:18:56]CAPDU: 80 13 01 00 [20:18:56]Write to MH i2c: E2 08 00 0D 37 80 13 01 00 00 00 00 00 C1 [20:18:56]Write i2c OK [20:18:56]MH_I2C_Read... [20:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:56]Read from MH i2c: E2 [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: E2 0E 00 [20:18:56]MH_I2C_Read... [20:18:56]Read from MH i2c: E2 0E 00 0D 37 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 5B [20:18:56]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:18:56]wFMCommunicate OK [20:18:56]SAM_PROTO_GetShiftState done [20:18:56]FM_GetShiftState done [20:18:56]opened in 1726273389 [20:18:56]opened+sec_in_day 1726359789 [20:18:56]quantity*price = 6000 [20:18:56]sum+1 = 6001 [20:18:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 183 14.09.2024 20:19 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92532 ФПД: 207932436183484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T201901&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92532&fm=207932436183484&tin=02508201610067®Number=0000000000091423&sum=6000 0 [20:18:57]StoreToDocumentArchive [20:18:57]shift 506 fd 92532 [20:18:57]save to /storage/0506/doc_00092532 [20:18:57]save last doc name /storage/0506/doc_00092532 to /storage/kkm_last_doc_name [20:18:57]save OK [20:18:57]Clear old archive folders... [20:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=281 [20:18:57]tlvbuf is B6F33230 [20:18:57]SAM_PROTO_ClearQueue [20:18:57]wFMCommunicate request_size=4 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 09 00 00 [20:18:57]Write to MH i2c: E2 08 00 1A 37 80 09 00 00 00 00 00 00 C3 [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 1A 37 00 90 00 C5 [20:18:57]RAPDU: 90 00 [20:18:57]wFMCommunicate OK [20:18:57]SAM_PROTO_ClearQueue done [20:18:57]KKMCreateOFDPacket [20:18:57]OFDProtocolAddRootSTLVToBuf [20:18:57]FM_MakeSignedData [20:18:57]FM_MakeSignedData [20:18:57]SAM_PROTO_SignData [20:18:57]wFMCommunicate request_size=4 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 0D 01 02 [20:18:57]Write to MH i2c: E2 08 00 1B 37 80 0D 01 02 00 00 00 00 CB [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 03 00 1B 37 00 90 00 C6 [20:18:57]RAPDU: 90 00 [20:18:57]wFMCommunicate OK [20:18:57]wFMCommunicate request_size=255 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B5 EF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 [20:18:57]Write to MH i2c: E2 02 01 1C 37 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B5 EF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 00 2D [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:58]Read from MH i2c: E2 03 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 1C 37 00 90 00 C7 [20:18:58]RAPDU: 90 00 [20:18:58]wFMCommunicate OK [20:18:58]wFMCommunicate request_size=40 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 74 69 01 00 35 04 06 00 BD 1D 0A FE F9 BC [20:18:58]Write to MH i2c: E2 2B 00 1D 37 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 74 69 01 00 35 04 06 00 BD 1D 0A FE F9 BC 00 00 04 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 1D 37 00 90 00 C8 [20:18:58]RAPDU: 90 00 [20:18:58]wFMCommunicate OK [20:18:58]wFMCommunicate request_size=4 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 0D 03 02 [20:18:58]Write to MH i2c: E2 08 00 1E 37 80 0D 03 02 00 00 00 00 D0 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 0B 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 0B 00 1E 37 00 E6 9B CF E5 0D C3 C8 19 90 00 B7 [20:18:58]RAPDU: E6 9B CF E5 0D C3 C8 19 90 00 [20:18:58]wFMCommunicate OK [20:18:58]SAM_PROTO_SignData done [20:18:58]FM_MakeSignedData done [20:18:58]CreateOFDProtocolMessage [20:18:58]wFMCommunicate request_size=4 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 11 00 00 [20:18:58]Write to MH i2c: E2 08 00 1F 37 80 11 00 00 00 00 00 00 D0 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 17 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 17 00 1F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 27 [20:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:18:58]wFMCommunicate OK [20:18:58]CreateOFDProtocolMessage done [20:18:58]OFDSenderStorePacket 92532 [20:18:58]StoreOFDPacket docnum=92532 [20:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 49 EC 25 01 19 B7 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B5 EF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 74 69 01 00 35 04 06 00 BD 1D 0A FE F9 BC E6 9B CF E5 0D C3 C8 19 [20:18:58]CheckFolder [20:18:58]dirname=/storage/ofd_packets [20:18:58]CheckFolder done [20:18:58]ProducePacketName [20:18:58]name=ofd_packets/00092532 [20:18:58]NVStorageSaveData ofd_packets/00092532 [20:18:58]File name is /storage/ofd_packets/00092532 [20:18:58]Write 331 bytes [20:18:58]NVStorageSaveData done [20:18:58]OFDSenderStorePacket done [20:18:58]KKMCreateOFDPacket done [20:18:58]NVStorageSaveData kkm_last_timestamp [20:18:58]File name is /storage/kkm_last_timestamp [20:18:58]Write 4 bytes [20:18:58]NVStorageSaveData done [20:18:58]ExternCall_PrintAddStr [20:18:58]wPrintStart [20:18:58]Write to MH i2c: 01 00 00 20 37 57 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 07 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 07 00 20 37 00 00 00 00 00 FF 0F 6C [20:18:58]RasterBufferAndPrint [20:18:58]line Счет N : (3)127434 [20:18:58]line ИНН: 02508201610067 [20:18:58]line Контрольно-Кассовый Чек [20:18:58]line ПРОДАЖА [20:18:58]line Товар: 4011100977952 [20:18:58]line Шок Батончик Твикс 55г [20:18:58]line 1.000 * 60.00 [20:18:58]line = 60.00 [20:18:58]line НДС 12% НСП 1% [20:18:58]line > о реализуемом товаре [20:18:58]line ИТОГО: 60.00 [20:18:58]line НСП 1% : 0.53 [20:18:58]line НДС 12% : 6.37 [20:18:58]line Наличными: 60.00 [20:18:58]line Безнал.: 0.00 [20:18:58]line Место: АЗС № 5 "Партнер Нефть" [20:18:58]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:18:58]line СНО: Общий режим [20:18:58]line Чек 183 14.09.2024 20:19 [20:18:58]line Смена: 506 ФФД: 1.0 [20:18:58]line ЗНМ: 03000000022 [20:18:58]line РНМ: 0000000000091423 [20:18:58]line Версия ККМ: 001 [20:18:58]line ФМ: 0000000000874692 [20:18:58]line ФД: 92532 [20:18:58]line ФПД: 207932436183484 [20:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T201901&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92532&fm=207932436183484&tin=02508201610067®Number=0000000000091423&sum=6000 [20:18:58]OFD Sender: Processing packet 92532 [packets to send 63, broken 62] [20:18:58]ProducePacketName [20:18:58]name=ofd_packets/00092532 [20:18:58]OFD Sender: To server: pG, [20:18:58]CommunicateWithHost lk.salyk.kg:30040 [20:18:58]ConnectInit lk.salyk.kg [20:18:58]line 0 [20:18:58]written 0, free lines is 4095 [20:18:58]Connected sock=10 [20:18:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 2D 01 00 00 49 EC 25 01 19 B7 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B5 EF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 74 69 01 00 35 04 06 00 BD 1D 0A FE F9 BC E6 9B CF E5 0D C3 C8 19 [20:18:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 38 1F 47 00 17 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 74 69 01 00 F4 03 04 00 2F 98 E5 66 B6 04 01 00 00 8C 24 61 A2 ED 72 79 72 [20:18:58]CommunicateWithHost err = 0 [20:18:58]CheckOFDResponse [20:18:58]1017 (14) - 77093643461234 [20:18:58]1041 (16) - 0000000000874692 [20:18:58]1040 (4) - 92532 [20:18:58]1012 (4) - 14.09.2024 14:05 [20:18:58]1206 (1) - 0 [20:18:58]OFD Sender: Remove packet 92532 [20:18:58]ProducePacketName [20:18:58]name=ofd_packets/00092532 [20:18:58]NVStorageDeleteData [20:18:58]Write to MH i2c: 01 00 00 48 37 7F [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 07 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 07 00 48 37 00 00 00 00 00 22 0D B5 [20:18:58]RasterBufferAndPrint [20:18:58]line [20:18:58]line [20:18:58]line [20:18:58]line [20:18:58]line [20:18:58]written 0, free lines is 3368 [20:18:58]MH_Cut [20:18:58]Write to MH i2c: D1 01 00 4F 37 01 58 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: D1 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: D1 01 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: D1 01 00 4F 37 00 57 [20:18:59]Write to MH i2c: 01 00 00 50 37 87 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]OFD Sender: No OFD packet to send [20:18:59]*** Cut start [20:18:59]*** Purtial cut [20:18:59]*** Stage 1: CUTSNS_PIN = 1 [20:19:01]Read from MH i2c: 01 [20:19:01]MH_I2C_Read... [20:19:01]*** Stop cut motor [20:19:01]*** Cut end [20:19:01]Read from MH i2c: 01 07 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 50 37 00 00 00 00 00 FF 0F 9C [20:19:01]process_action close_receipt done [20:19:01]requested_data is exist [20:19:01]produce_requested_data [20:19:01]requested_item fm.sn is exist - process it [20:19:01]wFMCommunicate request_size=4 [20:19:01]MH_SAM_APDU [20:19:01]CAPDU: 80 11 00 00 [20:19:01]Write to MH i2c: E2 08 00 51 37 80 11 00 00 00 00 00 00 02 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:01]Read from MH i2c: E2 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 17 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 17 00 51 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 59 [20:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:19:01]wFMCommunicate OK [20:19:01]requested_item fd.num is exist - process it [20:19:01]SAM_PROTO_GetFieldsCounters [20:19:01]wFMCommunicate request_size=4 [20:19:01]MH_SAM_APDU [20:19:01]CAPDU: 80 13 00 00 [20:19:01]Write to MH i2c: E2 08 00 52 37 80 13 00 00 00 00 00 00 05 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:01]Read from MH i2c: E2 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 62 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 62 00 52 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 74 69 01 00 0E 04 04 00 FA 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 22 [20:19:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 74 69 01 00 0E 04 04 00 FA 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 [20:19:01]wFMCommunicate OK [20:19:01]SAM_PROTO_GetFieldsCounters done [20:19:01]requested_item shift.num is exist - process it [20:19:01]requested_item shift.opened is exist - process it [20:19:01]req_shift_opened [20:19:01]FM_GetShiftState [20:19:01]SAM_PROTO_GetShiftState [20:19:01]wFMCommunicate request_size=4 [20:19:01]MH_SAM_APDU [20:19:01]CAPDU: 80 13 01 00 [20:19:01]Write to MH i2c: E2 08 00 53 37 80 13 01 00 00 00 00 00 07 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:01]Read from MH i2c: E2 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 0E 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 0E 00 53 37 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A1 [20:19:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:19:01]wFMCommunicate OK [20:19:01]SAM_PROTO_GetShiftState done [20:19:01]FM_GetShiftState done [20:19:01]req_shift_opened done [20:19:01]requested_item shift.open_date is exist - process it [20:19:01]req_shift_open_date [20:19:01]req_shift_open_date done [20:19:01]produce_requested_data done [20:19:01]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92532,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:19:01]process_action_free close_receipt [20:19:01]json_value_free [20:19:01]json_value_free done [20:19:01]process_json_proto returns [20:19:01]Send response to host [20:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92532,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:19:01]free response buf [20:19:01]execute_script done [20:19:01]execute_script returns [20:19:01]free content buf [20:19:01]Sock 8.Close socket [20:19:01]Sock 8.Thread stoped [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:53]accept exits with 9 [20:20:53]New connection [20:20:53]New thread 3066801508 created [20:20:53]Thread 3066658148 joined [20:20:53]Waiting for new connection... [20:20:53] Sock 9.Parse request [20:20:53]Sock 9.Check first char [20:20:53]Sock 9.First char is OK [20:20:53]request: POST /json_proto HTTP/1.0 [20:20:53]Method: POST [20:20:53]URL: /json_proto [20:20:53]Method is POST - this is cgi request [20:20:53]url: /json_proto [20:20:53]query_string will be loaded in cgi processing [20:20:53]execute_cgi json_proto POST (null) [20:20:53]execute_cgi path=json_proto method=POST [20:20:53]POST find Content-Length [20:20:53]Host: 172.17.57.71:8080 [20:20:53]Content-Length: 958 [20:20:53]Content-Type: application/json [20:20:53] [20:20:53]POST finish read [20:20:53]Found Content-Length = 958 [20:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127435", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 284.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:53]execute_script... [20:20: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)127435", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 284.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:53]POST & json_proto [20:20:53]process_json_proto [20:20:53]json parsed OK: [20:20:53]protocol is kg_v1.0 [20:20:53]action value=close_receipt [20:20:53]process_action close_receipt [20:20:53]cmd_close_receipt [20:20:53]MH_GetDate [20:20:53]Write to MH i2c: F0 00 00 54 37 7A [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: F0 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: F0 09 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: F0 09 00 54 37 00 2A F0 E5 66 33 3A A4 66 5F [20:20:53]GetLastDocTimeStamp 1726345141 [20:20:53]current date 1726345258 [20:20:53]FM_GetShiftState [20:20:53]SAM_PROTO_GetShiftState [20:20:53]wFMCommunicate request_size=4 [20:20:53]MH_SAM_APDU [20:20:53]CAPDU: 80 13 01 00 [20:20:53]Write to MH i2c: E2 08 00 55 37 80 13 01 00 00 00 00 00 09 [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:53]Read from MH i2c: E2 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 0E 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 0E 00 55 37 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A3 [20:20:53]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:20:53]wFMCommunicate OK [20:20:53]SAM_PROTO_GetShiftState done [20:20:53]FM_GetShiftState done [20:20:53]opened in 1726273389 [20:20:53]opened+sec_in_day 1726359789 [20:20:53]quantity*price = 19500 [20:20:53]sum+1 = 19501 [20:20:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 284.00 НСП 1% : 2.52 НДС 12% : 30.16 Наличными: 284.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 184 14.09.2024 20:20 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92533 ФПД: 19478883098454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T202058&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92533&fm=19478883098454&tin=02508201610067®Number=0000000000091423&sum=28400 0 [20:20:54]StoreToDocumentArchive [20:20:54]shift 506 fd 92533 [20:20:54]save to /storage/0506/doc_00092533 [20:20:54]save last doc name /storage/0506/doc_00092533 to /storage/kkm_last_doc_name [20:20:54]save OK [20:20:54]Clear old archive folders... [20:20:54]ProcessDocumentItem done err = 0, tmpTLVsize=394 [20:20:54]tlvbuf is B6F33B70 [20:20:54]SAM_PROTO_ClearQueue [20:20:54]wFMCommunicate request_size=4 [20:20:54]MH_SAM_APDU [20:20:54]CAPDU: 80 09 00 00 [20:20:54]Write to MH i2c: E2 08 00 62 37 80 09 00 00 00 00 00 00 0B [20:20:54]Write i2c OK [20:20:54]MH_I2C_Read... [20:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:54]Read from MH i2c: E2 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: E2 03 00 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: E2 03 00 62 37 00 90 00 0D [20:20:54]RAPDU: 90 00 [20:20:54]wFMCommunicate OK [20:20:54]SAM_PROTO_ClearQueue done [20:20:54]KKMCreateOFDPacket [20:20:54]OFDProtocolAddRootSTLVToBuf [20:20:54]FM_MakeSignedData [20:20:54]FM_MakeSignedData [20:20:54]SAM_PROTO_SignData [20:20:54]wFMCommunicate request_size=4 [20:20:54]MH_SAM_APDU [20:20:54]CAPDU: 80 0D 01 02 [20:20:54]Write to MH i2c: E2 08 00 63 37 80 0D 01 02 00 00 00 00 13 [20:20:54]Write i2c OK [20:20:54]MH_I2C_Read... [20:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:54]Read from MH i2c: E2 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: E2 03 00 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: E2 03 00 63 37 00 90 00 0E [20:20:54]RAPDU: 90 00 [20:20:54]wFMCommunicate OK [20:20:54]wFMCommunicate request_size=255 [20:20:54]MH_SAM_APDU [20:20:54]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F [20:20:54]Write to MH i2c: E2 02 01 64 37 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 28 [20:20:54]Write i2c OK [20:20:54]MH_I2C_Read... [20:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:55]Read from MH i2c: E2 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 03 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 03 00 64 37 00 90 00 0F [20:20:55]RAPDU: 90 00 [20:20:55]wFMCommunicate OK [20:20:55]wFMCommunicate request_size=153 [20:20:55]MH_SAM_APDU [20:20:55]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0B 00 00 00 00 07 04 06 00 F0 6E 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 2A F0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 69 01 00 35 04 06 00 11 B7 47 E8 5F 56 [20:20:55]Write to MH i2c: E2 9C 00 65 37 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0B 00 00 00 00 07 04 06 00 F0 6E 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 2A F0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 69 01 00 35 04 06 00 11 B7 47 E8 5F 56 00 00 34 [20:20:55]Write i2c OK [20:20:55]MH_I2C_Read... [20:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:55]Read from MH i2c: E2 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 03 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 03 00 65 37 00 90 00 10 [20:20:55]RAPDU: 90 00 [20:20:55]wFMCommunicate OK [20:20:55]wFMCommunicate request_size=4 [20:20:55]MH_SAM_APDU [20:20:55]CAPDU: 80 0D 03 02 [20:20:55]Write to MH i2c: E2 08 00 66 37 80 0D 03 02 00 00 00 00 18 [20:20:55]Write i2c OK [20:20:55]MH_I2C_Read... [20:20:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:55]Read from MH i2c: E2 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 0B 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 0B 00 66 37 00 0B 86 D4 38 6B BE 11 24 90 00 14 [20:20:55]RAPDU: 0B 86 D4 38 6B BE 11 24 90 00 [20:20:55]wFMCommunicate OK [20:20:55]SAM_PROTO_SignData done [20:20:55]FM_MakeSignedData done [20:20:55]CreateOFDProtocolMessage [20:20:55]wFMCommunicate request_size=4 [20:20:55]MH_SAM_APDU [20:20:55]CAPDU: 80 11 00 00 [20:20:55]Write to MH i2c: E2 08 00 67 37 80 11 00 00 00 00 00 00 18 [20:20:55]Write i2c OK [20:20:55]MH_I2C_Read... [20:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:55]Read from MH i2c: E2 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 17 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 17 00 67 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6F [20:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:20:55]wFMCommunicate OK [20:20:55]CreateOFDProtocolMessage done [20:20:55]OFDSenderStorePacket 92533 [20:20:55]StoreOFDPacket docnum=92533 [20:20:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9E 01 00 00 3A 0B 96 01 D5 7C 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0B 00 00 00 00 07 04 06 00 F0 6E 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 2A F0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 69 01 00 35 04 06 00 11 B7 47 E8 5F 56 0B 86 D4 38 6B BE 11 24 [20:20:55]CheckFolder [20:20:55]dirname=/storage/ofd_packets [20:20:55]CheckFolder done [20:20:55]ProducePacketName [20:20:55]name=ofd_packets/00092533 [20:20:55]NVStorageSaveData ofd_packets/00092533 [20:20:55]File name is /storage/ofd_packets/00092533 [20:20:55]Write 444 bytes [20:20:55]NVStorageSaveData done [20:20:55]OFDSenderStorePacket done [20:20:55]KKMCreateOFDPacket done [20:20:55]NVStorageSaveData kkm_last_timestamp [20:20:55]File name is /storage/kkm_last_timestamp [20:20:55]Write 4 bytes [20:20:55]NVStorageSaveData done [20:20:55]ExternCall_PrintAddStr [20:20:55]wPrintStart [20:20:55]Write to MH i2c: 01 00 00 68 37 9F [20:20:55]Write i2c OK [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: 01 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: 01 07 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: 01 07 00 68 37 00 00 00 00 00 FF 0F B4 [20:20:55]RasterBufferAndPrint [20:20:55]line Счет N : (3)127435 [20:20:55]line ИНН: 02508201610067 [20:20:55]line Контрольно-Кассовый Чек [20:20:55]line ПРОДАЖА [20:20:55]line Товар: 58411125749 [20:20:55]line Те самые макарон [20:20:55]line 1.000 * 195.00 [20:20:55]line = 195.00 [20:20:55]line НДС 12% НСП 1% [20:20:55]line > о реализуемом товаре [20:20:55]line Товар: 5000159390729 [20:20:55]line Шок Батончик Твикс Экстра 82г [20:20:55]line 1.000 * 89.00 [20:20:55]line = 89.00 [20:20:55]line НДС 12% НСП 1% [20:20:55]line > о реализуемом товаре [20:20:55]line ИТОГО: 284.00 [20:20:55]line НСП 1% : 2.52 [20:20:55]line НДС 12% : 30.16 [20:20:55]line Наличными: 284.00 [20:20:55]line Безнал.: 0.00 [20:20:55]line Место: АЗС № 5 "Партнер Нефть" [20:20:55]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:20:55]line СНО: Общий режим [20:20:55]line Чек 184 14.09.2024 20:20 [20:20:55]line Смена: 506 ФФД: 1.0 [20:20:55]line ЗНМ: 03000000022 [20:20:55]line РНМ: 0000000000091423 [20:20:55]line Версия ККМ: 001 [20:20:55]line ФМ: 0000000000874692 [20:20:55]line ФД: 92533 [20:20:55]line ФПД: 19478883098454 [20:20:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T202058&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92533&fm=19478883098454&tin=02508201610067®Number=0000000000091423&sum=28400 [20:20:55]line 0 [20:20:55]OFD Sender: Processing packet 92533 [packets to send 63, broken 62] [20:20:55]ProducePacketName [20:20:55]name=ofd_packets/00092533 [20:20:55]OFD Sender: To server: pG, [20:20:55]CommunicateWithHost lk.salyk.kg:30040 [20:20:55]ConnectInit lk.salyk.kg [20:20:55]written 0, free lines is 4095 [20:20:55]Connected sock=10 [20:20:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9E 01 00 00 3A 0B 96 01 D5 7C 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0B 00 00 00 00 07 04 06 00 F0 6E 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 2A F0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 69 01 00 35 04 06 00 11 B7 47 E8 5F 56 0B 86 D4 38 6B BE 11 24 [20:20:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FA CC 47 00 E8 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 75 69 01 00 F4 03 04 00 A4 98 E5 66 B6 04 01 00 00 41 8F D1 C6 7B 2A 8F 6B [20:20:56]CommunicateWithHost err = 0 [20:20:56]CheckOFDResponse [20:20:56]1017 (14) - 77093643461234 [20:20:56]1041 (16) - 0000000000874692 [20:20:56]1040 (4) - 92533 [20:20:56]1012 (4) - 14.09.2024 14:07 [20:20:56]1206 (1) - 0 [20:20:56]OFD Sender: Remove packet 92533 [20:20:56]ProducePacketName [20:20:56]name=ofd_packets/00092533 [20:20:56]NVStorageDeleteData [20:20:56]Write to MH i2c: 01 00 00 97 37 CE [20:20:56]Write i2c OK [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: 01 [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: 01 07 00 [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: 01 07 00 97 37 00 00 00 00 00 CD 0C AE [20:20:56]RasterBufferAndPrint [20:20:56]line [20:20:56]line [20:20:56]line [20:20:56]line [20:20:56]line [20:20:56]written 0, free lines is 3285 [20:20:56]MH_Cut [20:20:56]Write to MH i2c: D1 01 00 9E 37 01 A7 [20:20:56]Write i2c OK [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: D1 [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: D1 01 00 [20:20:56]MH_I2C_Read... [20:20:56]Read from MH i2c: D1 01 00 9E 37 00 A6 [20:20:56]Write to MH i2c: 01 00 00 9F 37 D6 [20:20:56]Write i2c OK [20:20:56]MH_I2C_Read... [20:20:56]OFD Sender: No OFD packet to send [20:20:57]*** Cut start [20:20:57]*** Purtial cut [20:20:57]*** Stage 1: CUTSNS_PIN = 1 [20:20:59]Read from MH i2c: 01 [20:20:59]MH_I2C_Read... [20:20:59]*** Stop cut motor [20:20:59]*** Cut end [20:20:59]Read from MH i2c: 01 07 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 07 00 9F 37 00 00 00 00 00 FF 0F EB [20:20:59]process_action close_receipt done [20:20:59]requested_data is exist [20:20:59]produce_requested_data [20:20:59]requested_item fm.sn is exist - process it [20:20:59]wFMCommunicate request_size=4 [20:20:59]MH_SAM_APDU [20:20:59]CAPDU: 80 11 00 00 [20:20:59]Write to MH i2c: E2 08 00 A0 37 80 11 00 00 00 00 00 00 51 [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 17 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 17 00 A0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [20:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:20:59]wFMCommunicate OK [20:20:59]requested_item fd.num is exist - process it [20:20:59]SAM_PROTO_GetFieldsCounters [20:20:59]wFMCommunicate request_size=4 [20:20:59]MH_SAM_APDU [20:20:59]CAPDU: 80 13 00 00 [20:20:59]Write to MH i2c: E2 08 00 A1 37 80 13 00 00 00 00 00 00 54 [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 62 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 62 00 A1 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 75 69 01 00 0E 04 04 00 FA 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 75 [20:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 75 69 01 00 0E 04 04 00 FA 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 [20:20:59]wFMCommunicate OK [20:20:59]SAM_PROTO_GetFieldsCounters done [20:20:59]requested_item shift.num is exist - process it [20:20:59]requested_item shift.opened is exist - process it [20:20:59]req_shift_opened [20:20:59]FM_GetShiftState [20:20:59]SAM_PROTO_GetShiftState [20:20:59]wFMCommunicate request_size=4 [20:20:59]MH_SAM_APDU [20:20:59]CAPDU: 80 13 01 00 [20:20:59]Write to MH i2c: E2 08 00 A2 37 80 13 01 00 00 00 00 00 56 [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:59]Read from MH i2c: E2 0E 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 0E 00 A2 37 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F0 [20:20:59]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:20:59]wFMCommunicate OK [20:20:59]SAM_PROTO_GetShiftState done [20:20:59]FM_GetShiftState done [20:20:59]req_shift_opened done [20:20:59]requested_item shift.open_date is exist - process it [20:20:59]req_shift_open_date [20:20:59]req_shift_open_date done [20:20:59]produce_requested_data done [20:20:59]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92533,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:20:59]process_action_free close_receipt [20:20:59]json_value_free [20:20:59]json_value_free done [20:20:59]process_json_proto returns [20:20:59]Send response to host [20:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92533,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:20:59]free response buf [20:20:59]execute_script done [20:20:59]execute_script returns [20:20:59]free content buf [20:20:59]Sock 9.Close socket [20:20:59]Sock 9.Thread stoped [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:39]accept exits with 8 [20:23:39]New connection [20:23:39]New thread 3066658148 created [20:23:39]Thread 3066801508 joined [20:23:39]Waiting for new connection... [20:23:39] Sock 8.Parse request [20:23:39]Sock 8.Check first char [20:23:39]Sock 8.First char is OK [20:23:39]request: POST /json_proto HTTP/1.0 [20:23:39]Method: POST [20:23:39]URL: /json_proto [20:23:39]Method is POST - this is cgi request [20:23:39]url: /json_proto [20:23:39]query_string will be loaded in cgi processing [20:23:39]execute_cgi json_proto POST (null) [20:23:39]execute_cgi path=json_proto method=POST [20:23:39]POST find Content-Length [20:23:39]Host: 172.17.57.71:8080 [20:23:39]Content-Length: 1357 [20:23:39]Content-Type: application/json [20:23:39] [20:23:39]POST finish read [20:23:39]Found Content-Length = 1357 [20:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127436", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:39]execute_script... [20:23: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)127436", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:39]POST & json_proto [20:23:39]process_json_proto [20:23:39]json parsed OK: [20:23:39]protocol is kg_v1.0 [20:23:39]action value=close_receipt [20:23:39]process_action close_receipt [20:23:39]cmd_close_receipt [20:23:39]MH_GetDate [20:23:39]Write to MH i2c: F0 00 00 A3 37 C9 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: F0 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: F0 09 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: F0 09 00 A3 37 00 D0 F0 E5 66 33 3A A4 66 54 [20:23:39]GetLastDocTimeStamp 1726345258 [20:23:39]current date 1726345424 [20:23:39]FM_GetShiftState [20:23:39]SAM_PROTO_GetShiftState [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 13 01 00 [20:23:39]Write to MH i2c: E2 08 00 A4 37 80 13 01 00 00 00 00 00 58 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:40]Read from MH i2c: E2 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 0E 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 0E 00 A4 37 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 F2 [20:23:40]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:23:40]wFMCommunicate OK [20:23:40]SAM_PROTO_GetShiftState done [20:23:40]FM_GetShiftState done [20:23:40]opened in 1726273389 [20:23:40]opened+sec_in_day 1726359789 [20:23:40]quantity*price = 6500 [20:23:40]sum+1 = 6501 [20:23:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338001623 Вода Фруто НЯНЯ негазир д/детей 0,33л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571023 Вода ASU пит н.газ клубн,киви ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.85 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 185 14.09.2024 20:23 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92534 ФПД: 183354623050448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T202345&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92534&fm=183354623050448&tin=02508201610067®Number=0000000000091423&sum=21000 0 [20:23:41]StoreToDocumentArchive [20:23:41]shift 506 fd 92534 [20:23:41]save to /storage/0506/doc_00092534 [20:23:41]save last doc name /storage/0506/doc_00092534 to /storage/kkm_last_doc_name [20:23:41]save OK [20:23:41]Clear old archive folders... [20:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=563 [20:23:41]tlvbuf is 010ACF10 [20:23:41]SAM_PROTO_ClearQueue [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 09 00 00 [20:23:41]Write to MH i2c: E2 08 00 B1 37 80 09 00 00 00 00 00 00 5A [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 B1 37 00 90 00 5C [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]SAM_PROTO_ClearQueue done [20:23:41]KKMCreateOFDPacket [20:23:41]OFDProtocolAddRootSTLVToBuf [20:23:41]FM_MakeSignedData [20:23:41]FM_MakeSignedData [20:23:41]SAM_PROTO_SignData [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 01 02 [20:23:41]Write to MH i2c: E2 08 00 B2 37 80 0D 01 02 00 00 00 00 62 [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 B2 37 00 90 00 5D [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]wFMCommunicate request_size=255 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 02 02 FA 03 00 33 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 [20:23:41]Write to MH i2c: E2 02 01 B3 37 80 0D 02 02 FA 00 03 00 33 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 CB [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]OFD Sender: No OFD packet to send [20:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 B3 37 00 90 00 5E [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]wFMCommunicate request_size=255 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 02 02 FA 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 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 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 B9 00 00 00 F4 03 04 00 D1 F0 E5 66 0E 04 04 00 [20:23:41]Write to MH i2c: E2 02 01 B4 37 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 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 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 B9 00 00 00 F4 03 04 00 D1 F0 E5 66 0E 04 04 00 00 00 56 [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 03 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 03 00 B4 37 00 90 00 5F [20:23:42]RAPDU: 90 00 [20:23:42]wFMCommunicate OK [20:23:42]wFMCommunicate request_size=72 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 0D 02 02 43 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 69 01 00 35 04 06 00 A6 C2 93 2C C2 D0 [20:23:42]Write to MH i2c: E2 4B 00 B5 37 80 0D 02 02 43 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 69 01 00 35 04 06 00 A6 C2 93 2C C2 D0 00 00 13 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 03 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 03 00 B5 37 00 90 00 60 [20:23:42]RAPDU: 90 00 [20:23:42]wFMCommunicate OK [20:23:42]wFMCommunicate request_size=4 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 0D 03 02 [20:23:42]Write to MH i2c: E2 08 00 B6 37 80 0D 03 02 00 00 00 00 68 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 0B 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 0B 00 B6 37 00 B6 D4 D8 79 7E F1 0F C7 90 00 89 [20:23:42]RAPDU: B6 D4 D8 79 7E F1 0F C7 90 00 [20:23:42]wFMCommunicate OK [20:23:42]SAM_PROTO_SignData done [20:23:42]FM_MakeSignedData done [20:23:42]CreateOFDProtocolMessage [20:23:42]wFMCommunicate request_size=4 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 11 00 00 [20:23:42]Write to MH i2c: E2 08 00 B7 37 80 11 00 00 00 00 00 00 68 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 17 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 17 00 B7 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BF [20:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:23:42]wFMCommunicate OK [20:23:42]CreateOFDProtocolMessage done [20:23:42]OFDSenderStorePacket 92534 [20:23:42]StoreOFDPacket docnum=92534 [20:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 47 02 00 00 6D E5 3F 02 C3 01 5A 03 01 00 03 00 33 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 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 B9 00 00 00 F4 03 04 00 D1 F0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 69 01 00 35 04 06 00 A6 C2 93 2C C2 D0 B6 D4 D8 79 7E F1 0F C7 [20:23:42]CheckFolder [20:23:42]dirname=/storage/ofd_packets [20:23:42]CheckFolder done [20:23:42]ProducePacketName [20:23:42]name=ofd_packets/00092534 [20:23:42]NVStorageSaveData ofd_packets/00092534 [20:23:42]File name is /storage/ofd_packets/00092534 [20:23:42]Write 613 bytes [20:23:42]NVStorageSaveData done [20:23:42]OFDSenderStorePacket done [20:23:42]KKMCreateOFDPacket done [20:23:42]NVStorageSaveData kkm_last_timestamp [20:23:42]File name is /storage/kkm_last_timestamp [20:23:42]Write 4 bytes [20:23:42]NVStorageSaveData done [20:23:42]ExternCall_PrintAddStr [20:23:42]wPrintStart [20:23:42]Write to MH i2c: 01 00 00 B8 37 EF [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 07 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 07 00 B8 37 00 00 00 00 00 FF 0F 04 [20:23:42]RasterBufferAndPrint [20:23:42]line Счет N : (3)127436 [20:23:42]line ИНН: 02508201610067 [20:23:42]line Контрольно-Кассовый Чек [20:23:42]line ПРОДАЖА [20:23:42]line Товар: 4870002328404 [20:23:42]line Вода ASU пит н.газ мята ПЭТ 0,5л [20:23:42]line 1.000 * 65.00 [20:23:42]line = 65.00 [20:23:42]line НДС 12% НСП 1% [20:23:42]line > о реализуемом товаре [20:23:42]line Товар: 4600338001623 [20:23:42]line Вода Фруто НЯНЯ негазир д/детей 0,33л [20:23:42]line 1.000 * 80.00 [20:23:42]line = 80.00 [20:23:42]line НДС 12% НСП 1% [20:23:42]line > о реализуемом товаре [20:23:42]line Товар: 4870001571023 [20:23:42]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [20:23:42]line 1.000 * 65.00 [20:23:42]line = 65.00 [20:23:42]line НДС 12% НСП 1% [20:23:42]line > о реализуемом товаре [20:23:42]line ИТОГО: 210.00 [20:23:42]line НСП 1% : 1.85 [20:23:42]line НДС 12% : 22.30 [20:23:42]line Наличными: 210.00 [20:23:42]line Безнал.: 0.00 [20:23:42]line Место: АЗС № 5 "Партнер Нефть" [20:23:42]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:23:42]line СНО: Общий режим [20:23:42]line Чек 185 14.09.2024 20:23 [20:23:42]line Смена: 506 ФФД: 1.0 [20:23:42]line ЗНМ: 03000000022 [20:23:42]line РНМ: 0000000000091423 [20:23:42]line Версия ККМ: 001 [20:23:42]line ФМ: 0000000000874692 [20:23:42]line ФД: 92534 [20:23:42]line ФПД: 183354623050448 [20:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T202345&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92534&fm=183354623050448&tin=02508201610067®Number=0000000000091423&sum=21000 [20:23:42]OFD Sender: Processing packet 92534 [packets to send 63, broken 62] [20:23:42]ProducePacketName [20:23:42]name=ofd_packets/00092534 [20:23:42]OFD Sender: To server: pG, [20:23:42]CommunicateWithHost lk.salyk.kg:30040 [20:23:42]ConnectInit lk.salyk.kg [20:23:42]line 0 [20:23:42]written 0, free lines is 4095 [20:23:42]Connected sock=10 [20:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 47 02 00 00 6D E5 3F 02 C3 01 5A 03 01 00 03 00 33 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 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 B9 00 00 00 F4 03 04 00 D1 F0 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 69 01 00 35 04 06 00 A6 C2 93 2C C2 D0 B6 D4 D8 79 7E F1 0F C7 [20:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 21 EB 47 00 2D 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 76 69 01 00 F4 03 04 00 4B 99 E5 66 B6 04 01 00 00 13 F3 F4 D2 A9 14 31 11 [20:23:43]CommunicateWithHost err = 0 [20:23:43]CheckOFDResponse [20:23:43]1017 (14) - 77093643461234 [20:23:43]1041 (16) - 0000000000874692 [20:23:43]1040 (4) - 92534 [20:23:43]1012 (4) - 14.09.2024 14:10 [20:23:43]1206 (1) - 0 [20:23:43]OFD Sender: Remove packet 92534 [20:23:43]ProducePacketName [20:23:43]name=ofd_packets/00092534 [20:23:43]NVStorageDeleteData [20:23:43]Write to MH i2c: 01 00 00 EF 37 26 [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: 01 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: 01 07 00 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: 01 07 00 EF 37 00 00 00 00 00 5F 0C 98 [20:23:43]RasterBufferAndPrint [20:23:43]line [20:23:43]line [20:23:43]line [20:23:43]line [20:23:43]line [20:23:43]written 0, free lines is 3176 [20:23:43]MH_Cut [20:23:43]Write to MH i2c: D1 01 00 F6 37 01 FF [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: D1 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: D1 01 00 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: D1 01 00 F6 37 00 FE [20:23:43]Write to MH i2c: 01 00 00 F7 37 2E [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]OFD Sender: No OFD packet to send [20:23:44]*** Cut start [20:23:44]*** Purtial cut [20:23:44]*** Stage 1: CUTSNS_PIN = 1 [20:23:46]Read from MH i2c: 01 [20:23:46]MH_I2C_Read... [20:23:46]*** Stop cut motor [20:23:46]*** Cut end [20:23:46]Read from MH i2c: 01 07 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 07 00 F7 37 00 00 00 00 00 FF 0F 43 [20:23:46]process_action close_receipt done [20:23:46]requested_data is exist [20:23:46]produce_requested_data [20:23:46]requested_item fm.sn is exist - process it [20:23:46]wFMCommunicate request_size=4 [20:23:46]MH_SAM_APDU [20:23:46]CAPDU: 80 11 00 00 [20:23:46]Write to MH i2c: E2 08 00 F8 37 80 11 00 00 00 00 00 00 A9 [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:46]Read from MH i2c: E2 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: E2 17 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: E2 17 00 F8 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 00 [20:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:23:46]wFMCommunicate OK [20:23:46]requested_item fd.num is exist - process it [20:23:46]SAM_PROTO_GetFieldsCounters [20:23:46]wFMCommunicate request_size=4 [20:23:46]MH_SAM_APDU [20:23:46]CAPDU: 80 13 00 00 [20:23:46]Write to MH i2c: E2 08 00 F9 37 80 13 00 00 00 00 00 00 AC [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:46]Read from MH i2c: E2 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: E2 62 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: E2 62 00 F9 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 76 69 01 00 0E 04 04 00 FA 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 D1 [20:23:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 76 69 01 00 0E 04 04 00 FA 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 [20:23:46]wFMCommunicate OK [20:23:46]SAM_PROTO_GetFieldsCounters done [20:23:46]requested_item shift.num is exist - process it [20:23:46]requested_item shift.opened is exist - process it [20:23:46]req_shift_opened [20:23:46]FM_GetShiftState [20:23:46]SAM_PROTO_GetShiftState [20:23:46]wFMCommunicate request_size=4 [20:23:46]MH_SAM_APDU [20:23:46]CAPDU: 80 13 01 00 [20:23:46]Write to MH i2c: E2 08 00 FA 37 80 13 01 00 00 00 00 00 AE [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:46]Read from MH i2c: E2 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: E2 0E 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: E2 0E 00 FA 37 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 48 [20:23:46]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:23:46]wFMCommunicate OK [20:23:46]SAM_PROTO_GetShiftState done [20:23:46]FM_GetShiftState done [20:23:46]req_shift_opened done [20:23:46]requested_item shift.open_date is exist - process it [20:23:46]req_shift_open_date [20:23:46]req_shift_open_date done [20:23:46]produce_requested_data done [20:23:46]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92534,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:23:46]process_action_free close_receipt [20:23:46]json_value_free [20:23:46]json_value_free done [20:23:46]process_json_proto returns [20:23:46]Send response to host [20:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92534,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:23:46]free response buf [20:23:46]execute_script done [20:23:46]execute_script returns [20:23:46]free content buf [20:23:46]Sock 8.Close socket [20:23:46]Sock 8.Thread stoped [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:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:07]accept exits with 9 [20:32:07]New connection [20:32:07]New thread 3066801508 created [20:32:07]Thread 3066658148 joined [20:32:07]Waiting for new connection... [20:32:07] Sock 9.Parse request [20:32:07]Sock 9.Check first char [20:32:07]Sock 9.First char is OK [20:32:07]request: POST /json_proto HTTP/1.0 [20:32:07]Method: POST [20:32:07]URL: /json_proto [20:32:07]Method is POST - this is cgi request [20:32:07]url: /json_proto [20:32:07]query_string will be loaded in cgi processing [20:32:07]execute_cgi json_proto POST (null) [20:32:07]execute_cgi path=json_proto method=POST [20:32:07]POST find Content-Length [20:32:07]Host: 172.17.57.71:8080 [20:32:07]Content-Length: 623 [20:32:07]Content-Type: application/json [20:32:07] [20:32:07]POST finish read [20:32:07]Found Content-Length = 623 [20:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127437", "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" ] } } [20:32:07]execute_script... [20:32:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127437", "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" ] } } [20:32:07]POST & json_proto [20:32:07]process_json_proto [20:32:07]json parsed OK: [20:32:07]protocol is kg_v1.0 [20:32:07]action value=close_receipt [20:32:07]process_action close_receipt [20:32:07]cmd_close_receipt [20:32:07]MH_GetDate [20:32:07]Write to MH i2c: F0 00 00 FB 37 21 [20:32:07]Write i2c OK [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: F0 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: F0 09 00 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: F0 09 00 FB 37 00 CC F2 E5 66 33 3A A4 66 AA [20:32:07]GetLastDocTimeStamp 1726345425 [20:32:07]current date 1726345932 [20:32:07]FM_GetShiftState [20:32:07]SAM_PROTO_GetShiftState [20:32:07]wFMCommunicate request_size=4 [20:32:07]MH_SAM_APDU [20:32:07]CAPDU: 80 13 01 00 [20:32:07]Write to MH i2c: E2 08 00 FC 37 80 13 01 00 00 00 00 00 B0 [20:32:07]Write i2c OK [20:32:07]MH_I2C_Read... [20:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:07]Read from MH i2c: E2 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: E2 0E 00 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: E2 0E 00 FC 37 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 4A [20:32:07]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:32:07]wFMCommunicate OK [20:32:07]SAM_PROTO_GetShiftState done [20:32:07]FM_GetShiftState done [20:32:07]opened in 1726273389 [20:32:07]opened+sec_in_day 1726359789 [20:32:07]quantity*price = 14400 [20:32:07]sum+1 = 14401 [20:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 186 14.09.2024 20:32 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92535 ФПД: 50965175688687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T203212&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92535&fm=50965175688687&tin=02508201610067®Number=0000000000091423&sum=14400 0 [20:32:08]StoreToDocumentArchive [20:32:08]shift 506 fd 92535 [20:32:08]save to /storage/0506/doc_00092535 [20:32:08]save last doc name /storage/0506/doc_00092535 to /storage/kkm_last_doc_name [20:32:08]save OK [20:32:08]Clear old archive folders... [20:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:32:08]tlvbuf is 010535A0 [20:32:08]SAM_PROTO_ClearQueue [20:32:08]wFMCommunicate request_size=4 [20:32:08]MH_SAM_APDU [20:32:08]CAPDU: 80 09 00 00 [20:32:08]Write to MH i2c: E2 08 00 09 38 80 09 00 00 00 00 00 00 B3 [20:32:08]Write i2c OK [20:32:08]MH_I2C_Read... [20:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:08]Read from MH i2c: E2 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 03 00 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 03 00 09 38 00 90 00 B5 [20:32:08]RAPDU: 90 00 [20:32:08]wFMCommunicate OK [20:32:08]SAM_PROTO_ClearQueue done [20:32:08]KKMCreateOFDPacket [20:32:08]OFDProtocolAddRootSTLVToBuf [20:32:08]FM_MakeSignedData [20:32:08]FM_MakeSignedData [20:32:08]SAM_PROTO_SignData [20:32:08]wFMCommunicate request_size=4 [20:32:08]MH_SAM_APDU [20:32:08]CAPDU: 80 0D 01 02 [20:32:08]Write to MH i2c: E2 08 00 0A 38 80 0D 01 02 00 00 00 00 BB [20:32:08]Write i2c OK [20:32:08]MH_I2C_Read... [20:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:08]Read from MH i2c: E2 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 03 00 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 03 00 0A 38 00 90 00 B6 [20:32:08]RAPDU: 90 00 [20:32:08]wFMCommunicate OK [20:32:08]wFMCommunicate request_size=255 [20:32:08]MH_SAM_APDU [20:32:08]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 BA 00 00 00 F4 03 04 00 CC F2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [20:32:08]Write to MH i2c: E2 02 01 0B 38 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 BA 00 00 00 F4 03 04 00 CC F2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 78 [20:32:08]Write i2c OK [20:32:08]MH_I2C_Read... [20:32:09]OFD Sender: No OFD packet to send [20:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 0B 38 00 90 00 B7 [20:32:09]RAPDU: 90 00 [20:32:09]wFMCommunicate OK [20:32:09]wFMCommunicate request_size=34 [20:32:09]MH_SAM_APDU [20:32:09]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 69 01 00 35 04 06 00 2E 5A 41 31 5D EF [20:32:09]Write to MH i2c: E2 25 00 0C 38 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 69 01 00 35 04 06 00 2E 5A 41 31 5D EF 00 00 AA [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 0C 38 00 90 00 B8 [20:32:09]RAPDU: 90 00 [20:32:09]wFMCommunicate OK [20:32:09]wFMCommunicate request_size=4 [20:32:09]MH_SAM_APDU [20:32:09]CAPDU: 80 0D 03 02 [20:32:09]Write to MH i2c: E2 08 00 0D 38 80 0D 03 02 00 00 00 00 C0 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 0B 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 0B 00 0D 38 00 F1 43 3A 06 B1 A7 53 7E 90 00 5E [20:32:09]RAPDU: F1 43 3A 06 B1 A7 53 7E 90 00 [20:32:09]wFMCommunicate OK [20:32:09]SAM_PROTO_SignData done [20:32:09]FM_MakeSignedData done [20:32:09]CreateOFDProtocolMessage [20:32:09]wFMCommunicate request_size=4 [20:32:09]MH_SAM_APDU [20:32:09]CAPDU: 80 11 00 00 [20:32:09]Write to MH i2c: E2 08 00 0E 38 80 11 00 00 00 00 00 00 C0 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 17 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 17 00 0E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 17 [20:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:32:09]wFMCommunicate OK [20:32:09]CreateOFDProtocolMessage done [20:32:09]OFDSenderStorePacket 92535 [20:32:09]StoreOFDPacket docnum=92535 [20:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 72 03 1F 01 9B B7 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 BA 00 00 00 F4 03 04 00 CC F2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 69 01 00 35 04 06 00 2E 5A 41 31 5D EF F1 43 3A 06 B1 A7 53 7E [20:32:09]CheckFolder [20:32:09]dirname=/storage/ofd_packets [20:32:09]CheckFolder done [20:32:09]ProducePacketName [20:32:09]name=ofd_packets/00092535 [20:32:09]NVStorageSaveData ofd_packets/00092535 [20:32:09]File name is /storage/ofd_packets/00092535 [20:32:09]Write 325 bytes [20:32:09]NVStorageSaveData done [20:32:09]OFDSenderStorePacket done [20:32:09]KKMCreateOFDPacket done [20:32:09]NVStorageSaveData kkm_last_timestamp [20:32:09]File name is /storage/kkm_last_timestamp [20:32:09]Write 4 bytes [20:32:09]NVStorageSaveData done [20:32:09]ExternCall_PrintAddStr [20:32:09]wPrintStart [20:32:09]Write to MH i2c: 01 00 00 0F 38 47 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 0F 38 00 00 00 00 00 FF 0F 5C [20:32:09]RasterBufferAndPrint [20:32:09]line Счет N : (3)127437 [20:32:09]line ИНН: 02508201610067 [20:32:09]line Контрольно-Кассовый Чек [20:32:09]line ПРОДАЖА [20:32:09]line Товар: 48743587 [20:32:09]line Сигареты Winston XStyle Silver [20:32:09]line 1.000 * 144.00 [20:32:09]line = 144.00 [20:32:09]line НДС 12% НСП 1% [20:32:09]line > о реализуемом товаре [20:32:09]line ИТОГО: 144.00 [20:32:09]line НСП 1% : 1.27 [20:32:09]line НДС 12% : 15.29 [20:32:09]line Наличными: 144.00 [20:32:09]line Безнал.: 0.00 [20:32:09]line Место: АЗС № 5 "Партнер Нефть" [20:32:09]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:32:09]line СНО: Общий режим [20:32:09]line Чек 186 14.09.2024 20:32 [20:32:09]line Смена: 506 ФФД: 1.0 [20:32:09]line ЗНМ: 03000000022 [20:32:09]line РНМ: 0000000000091423 [20:32:09]line Версия ККМ: 001 [20:32:09]line ФМ: 0000000000874692 [20:32:09]line ФД: 92535 [20:32:09]line ФПД: 50965175688687 [20:32:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T203212&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92535&fm=50965175688687&tin=02508201610067®Number=0000000000091423&sum=14400 [20:32:09]line 0 [20:32:09]OFD Sender: Processing packet 92535 [packets to send 63, broken 62] [20:32:09]ProducePacketName [20:32:09]name=ofd_packets/00092535 [20:32:09]OFD Sender: To server: pG, [20:32:09]CommunicateWithHost lk.salyk.kg:30040 [20:32:09]ConnectInit lk.salyk.kg [20:32:09]written 0, free lines is 4095 [20:32:09]Connected sock=10 [20:32:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 72 03 1F 01 9B B7 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 BA 00 00 00 F4 03 04 00 CC F2 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 69 01 00 35 04 06 00 2E 5A 41 31 5D EF F1 43 3A 06 B1 A7 53 7E [20:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 41 03 47 00 59 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 77 69 01 00 F4 03 04 00 46 9B E5 66 B6 04 01 00 00 C7 E1 B3 60 92 F6 B8 91 [20:32:09]CommunicateWithHost err = 0 [20:32:09]CheckOFDResponse [20:32:09]1017 (14) - 77093643461234 [20:32:09]1041 (16) - 0000000000874692 [20:32:09]1040 (4) - 92535 [20:32:09]1012 (4) - 14.09.2024 14:18 [20:32:09]1206 (1) - 0 [20:32:09]OFD Sender: Remove packet 92535 [20:32:09]ProducePacketName [20:32:09]name=ofd_packets/00092535 [20:32:09]NVStorageDeleteData [20:32:10]Write to MH i2c: 01 00 00 38 38 70 [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 07 00 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 07 00 38 38 00 00 00 00 00 11 0D 95 [20:32:10]RasterBufferAndPrint [20:32:10]line [20:32:10]line [20:32:10]line [20:32:10]line [20:32:10]line [20:32:10]written 0, free lines is 3352 [20:32:10]MH_Cut [20:32:10]Write to MH i2c: D1 01 00 3F 38 01 49 [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: D1 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: D1 01 00 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: D1 01 00 3F 38 00 48 [20:32:10]Write to MH i2c: 01 00 00 40 38 78 [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]OFD Sender: No OFD packet to send [20:32:10]*** Cut start [20:32:10]*** Purtial cut [20:32:10]*** Stage 1: CUTSNS_PIN = 1 [20:32:12]Read from MH i2c: 01 [20:32:12]MH_I2C_Read... [20:32:12]*** Stop cut motor [20:32:12]*** Cut end [20:32:12]Read from MH i2c: 01 07 00 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: 01 07 00 40 38 00 00 00 00 00 FF 0F 8D [20:32:12]process_action close_receipt done [20:32:12]requested_data is exist [20:32:12]produce_requested_data [20:32:12]requested_item fm.sn is exist - process it [20:32:12]wFMCommunicate request_size=4 [20:32:12]MH_SAM_APDU [20:32:12]CAPDU: 80 11 00 00 [20:32:12]Write to MH i2c: E2 08 00 41 38 80 11 00 00 00 00 00 00 F3 [20:32:12]Write i2c OK [20:32:12]MH_I2C_Read... [20:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:12]Read from MH i2c: E2 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 17 00 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 17 00 41 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 4A [20:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:32:12]wFMCommunicate OK [20:32:12]requested_item fd.num is exist - process it [20:32:12]SAM_PROTO_GetFieldsCounters [20:32:12]wFMCommunicate request_size=4 [20:32:12]MH_SAM_APDU [20:32:12]CAPDU: 80 13 00 00 [20:32:12]Write to MH i2c: E2 08 00 42 38 80 13 00 00 00 00 00 00 F6 [20:32:12]Write i2c OK [20:32:12]MH_I2C_Read... [20:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:12]Read from MH i2c: E2 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 62 00 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 62 00 42 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 77 69 01 00 0E 04 04 00 FA 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 1F [20:32:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 77 69 01 00 0E 04 04 00 FA 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 [20:32:12]wFMCommunicate OK [20:32:12]SAM_PROTO_GetFieldsCounters done [20:32:12]requested_item shift.num is exist - process it [20:32:12]requested_item shift.opened is exist - process it [20:32:12]req_shift_opened [20:32:12]FM_GetShiftState [20:32:12]SAM_PROTO_GetShiftState [20:32:12]wFMCommunicate request_size=4 [20:32:12]MH_SAM_APDU [20:32:12]CAPDU: 80 13 01 00 [20:32:12]Write to MH i2c: E2 08 00 43 38 80 13 01 00 00 00 00 00 F8 [20:32:12]Write i2c OK [20:32:12]MH_I2C_Read... [20:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:12]Read from MH i2c: E2 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 0E 00 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 0E 00 43 38 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 92 [20:32:12]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:32:12]wFMCommunicate OK [20:32:12]SAM_PROTO_GetShiftState done [20:32:12]FM_GetShiftState done [20:32:12]req_shift_opened done [20:32:12]requested_item shift.open_date is exist - process it [20:32:12]req_shift_open_date [20:32:12]req_shift_open_date done [20:32:12]produce_requested_data done [20:32:12]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92535,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:32:12]process_action_free close_receipt [20:32:12]json_value_free [20:32:12]json_value_free done [20:32:12]process_json_proto returns [20:32:12]Send response to host [20:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92535,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:32:12]free response buf [20:32:12]execute_script done [20:32:12]execute_script returns [20:32:12]free content buf [20:32:12]Sock 9.Close socket [20:32:12]Sock 9.Thread stoped [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [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:06]accept exits with 8 [20:33:06]New connection [20:33:06]New thread 3066658148 created [20:33:06]Thread 3066801508 joined [20:33:06]Waiting for new connection... [20:33:06] Sock 8.Parse request [20:33:06]Sock 8.Check first char [20:33:06]Sock 8.First char is OK [20:33:06]request: POST /json_proto HTTP/1.0 [20:33:06]Method: POST [20:33:06]URL: /json_proto [20:33:06]Method is POST - this is cgi request [20:33:06]url: /json_proto [20:33:06]query_string will be loaded in cgi processing [20:33:06]execute_cgi json_proto POST (null) [20:33:06]execute_cgi path=json_proto method=POST [20:33:06]POST find Content-Length [20:33:06]Host: 172.17.57.71:8080 [20:33:06]Content-Length: 621 [20:33:06]Content-Type: application/json [20:33:06] [20:33:06]POST finish read [20:33:06]Found Content-Length = 621 [20:33:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127438", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:06]execute_script... [20:33: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)127438", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:06]POST & json_proto [20:33:06]process_json_proto [20:33:06]json parsed OK: [20:33:06]protocol is kg_v1.0 [20:33:06]action value=close_receipt [20:33:06]process_action close_receipt [20:33:06]cmd_close_receipt [20:33:06]MH_GetDate [20:33:06]Write to MH i2c: F0 00 00 44 38 6B [20:33:06]Write i2c OK [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: F0 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: F0 09 00 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: F0 09 00 44 38 00 06 F3 E5 66 33 3A A4 66 2F [20:33:06]GetLastDocTimeStamp 1726345932 [20:33:06]current date 1726345990 [20:33:06]FM_GetShiftState [20:33:06]SAM_PROTO_GetShiftState [20:33:06]wFMCommunicate request_size=4 [20:33:06]MH_SAM_APDU [20:33:06]CAPDU: 80 13 01 00 [20:33:06]Write to MH i2c: E2 08 00 45 38 80 13 01 00 00 00 00 00 FA [20:33:06]Write i2c OK [20:33:06]MH_I2C_Read... [20:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:06]Read from MH i2c: E2 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: E2 0E 00 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: E2 0E 00 45 38 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 94 [20:33:06]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:33:06]wFMCommunicate OK [20:33:06]SAM_PROTO_GetShiftState done [20:33:06]FM_GetShiftState done [20:33:06]opened in 1726273389 [20:33:06]opened+sec_in_day 1726359789 [20:33:06]quantity*price = 28800 [20:33:06]sum+1 = 28801 [20:33:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 187 14.09.2024 20:33 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92536 ФПД: 112752211810432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T203311&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92536&fm=112752211810432&tin=02508201610067®Number=0000000000091423&sum=28800 0 [20:33:07]StoreToDocumentArchive [20:33:07]shift 506 fd 92536 [20:33:07]save to /storage/0506/doc_00092536 [20:33:07]save last doc name /storage/0506/doc_00092536 to /storage/kkm_last_doc_name [20:33:07]save OK [20:33:07]Clear old archive folders... [20:33:07]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:33:07]tlvbuf is 00FCB3F0 [20:33:07]SAM_PROTO_ClearQueue [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 09 00 00 [20:33:07]Write to MH i2c: E2 08 00 52 38 80 09 00 00 00 00 00 00 FC [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 52 38 00 90 00 FE [20:33:07]RAPDU: 90 00 [20:33:07]wFMCommunicate OK [20:33:07]SAM_PROTO_ClearQueue done [20:33:07]KKMCreateOFDPacket [20:33:07]OFDProtocolAddRootSTLVToBuf [20:33:07]FM_MakeSignedData [20:33:07]FM_MakeSignedData [20:33:07]SAM_PROTO_SignData [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 0D 01 02 [20:33:07]Write to MH i2c: E2 08 00 53 38 80 0D 01 02 00 00 00 00 04 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 53 38 00 90 00 FF [20:33:07]RAPDU: 90 00 [20:33:07]wFMCommunicate OK [20:33:07]wFMCommunicate request_size=255 [20:33:07]MH_SAM_APDU [20:33:07]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 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 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 FF 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 BB 00 00 00 F4 03 04 00 07 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [20:33:07]Write to MH i2c: E2 02 01 54 38 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 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 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 FF 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 BB 00 00 00 F4 03 04 00 07 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 36 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 54 38 00 90 00 00 [20:33:07]RAPDU: 90 00 [20:33:07]wFMCommunicate OK [20:33:07]wFMCommunicate request_size=32 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 78 69 01 00 35 04 06 00 66 8C 2B 88 58 80 [20:33:07]Write to MH i2c: E2 23 00 55 38 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 78 69 01 00 35 04 06 00 66 8C 2B 88 58 80 00 00 C7 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 55 38 00 90 00 01 [20:33:07]RAPDU: 90 00 [20:33:07]wFMCommunicate OK [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 0D 03 02 [20:33:07]Write to MH i2c: E2 08 00 56 38 80 0D 03 02 00 00 00 00 09 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 0B 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 0B 00 56 38 00 3E 71 1F F1 CE A2 59 DD 90 00 6F [20:33:07]RAPDU: 3E 71 1F F1 CE A2 59 DD 90 00 [20:33:07]wFMCommunicate OK [20:33:07]SAM_PROTO_SignData done [20:33:07]FM_MakeSignedData done [20:33:07]CreateOFDProtocolMessage [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 11 00 00 [20:33:07]Write to MH i2c: E2 08 00 57 38 80 11 00 00 00 00 00 00 09 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 17 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 17 00 57 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 60 [20:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:33:07]wFMCommunicate OK [20:33:07]CreateOFDProtocolMessage done [20:33:07]OFDSenderStorePacket 92536 [20:33:07]StoreOFDPacket docnum=92536 [20:33:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 61 96 1D 01 1C 11 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 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 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 FF 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 BB 00 00 00 F4 03 04 00 07 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 78 69 01 00 35 04 06 00 66 8C 2B 88 58 80 3E 71 1F F1 CE A2 59 DD [20:33:07]CheckFolder [20:33:07]dirname=/storage/ofd_packets [20:33:07]CheckFolder done [20:33:07]ProducePacketName [20:33:07]name=ofd_packets/00092536 [20:33:07]NVStorageSaveData ofd_packets/00092536 [20:33:07]File name is /storage/ofd_packets/00092536 [20:33:07]Write 323 bytes [20:33:07]NVStorageSaveData done [20:33:07]OFDSenderStorePacket done [20:33:07]KKMCreateOFDPacket done [20:33:07]NVStorageSaveData kkm_last_timestamp [20:33:07]File name is /storage/kkm_last_timestamp [20:33:07]Write 4 bytes [20:33:07]NVStorageSaveData done [20:33:07]ExternCall_PrintAddStr [20:33:07]wPrintStart [20:33:07]Write to MH i2c: 01 00 00 58 38 90 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: 01 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: 01 07 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: 01 07 00 58 38 00 00 00 00 00 FF 0F A5 [20:33:07]RasterBufferAndPrint [20:33:07]line Счет N : (3)127438 [20:33:07]line ИНН: 02508201610067 [20:33:07]line Контрольно-Кассовый Чек [20:33:07]line ПРОДАЖА [20:33:07]line Товар: 48743570 [20:33:07]line Сигареты Winston XStyle Blue [20:33:07]line 2.000 * 144.00 [20:33:07]line = 288.00 [20:33:07]line НДС 12% НСП 1% [20:33:07]line > о реализуемом товаре [20:33:07]line ИТОГО: 288.00 [20:33:07]line НСП 1% : 2.55 [20:33:07]line НДС 12% : 30.58 [20:33:07]line Наличными: 288.00 [20:33:07]line Безнал.: 0.00 [20:33:07]line Место: АЗС № 5 "Партнер Нефть" [20:33:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:33:07]line СНО: Общий режим [20:33:07]line Чек 187 14.09.2024 20:33 [20:33:07]line Смена: 506 ФФД: 1.0 [20:33:07]line ЗНМ: 03000000022 [20:33:07]line РНМ: 0000000000091423 [20:33:07]line Версия ККМ: 001 [20:33:07]line ФМ: 0000000000874692 [20:33:07]line ФД: 92536 [20:33:07]line ФПД: 112752211810432 [20:33:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T203311&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92536&fm=112752211810432&tin=02508201610067®Number=0000000000091423&sum=28800 [20:33:08]OFD Sender: Processing packet 92536 [packets to send 63, broken 62] [20:33:08]ProducePacketName [20:33:08]name=ofd_packets/00092536 [20:33:08]OFD Sender: To server: pG, [20:33:08]CommunicateWithHost lk.salyk.kg:30040 [20:33:08]ConnectInit lk.salyk.kg [20:33:08]line 0 [20:33:08]written 0, free lines is 4095 [20:33:08]Connected sock=10 [20:33:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 61 96 1D 01 1C 11 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 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 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 FF 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 BB 00 00 00 F4 03 04 00 07 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 78 69 01 00 35 04 06 00 66 8C 2B 88 58 80 3E 71 1F F1 CE A2 59 DD [20:33:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 0E 04 47 00 E0 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 78 69 01 00 F4 03 04 00 81 9B E5 66 B6 04 01 00 00 97 E6 B3 97 FB AC 57 C4 [20:33:08]CommunicateWithHost err = 0 [20:33:08]CheckOFDResponse [20:33:08]1017 (14) - 77093643461234 [20:33:08]1041 (16) - 0000000000874692 [20:33:08]1040 (4) - 92536 [20:33:08]1012 (4) - 14.09.2024 14:19 [20:33:08]1206 (1) - 0 [20:33:08]OFD Sender: Remove packet 92536 [20:33:08]ProducePacketName [20:33:08]name=ofd_packets/00092536 [20:33:08]NVStorageDeleteData [20:33:08]Write to MH i2c: 01 00 00 80 38 B8 [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: 01 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: 01 07 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: 01 07 00 80 38 00 00 00 00 00 31 0D FD [20:33:08]RasterBufferAndPrint [20:33:08]line [20:33:08]line [20:33:08]line [20:33:08]line [20:33:08]line [20:33:08]written 0, free lines is 3384 [20:33:08]MH_Cut [20:33:08]Write to MH i2c: D1 01 00 87 38 01 91 [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: D1 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: D1 01 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: D1 01 00 87 38 00 90 [20:33:08]Write to MH i2c: 01 00 00 88 38 C0 [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]OFD Sender: No OFD packet to send [20:33:09]*** Cut start [20:33:09]*** Purtial cut [20:33:09]*** Stage 1: CUTSNS_PIN = 1 [20:33:11]Read from MH i2c: 01 [20:33:11]MH_I2C_Read... [20:33:11]*** Stop cut motor [20:33:11]*** Cut end [20:33:11]Read from MH i2c: 01 07 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: 01 07 00 88 38 00 00 00 00 00 FF 0F D5 [20:33:11]process_action close_receipt done [20:33:11]requested_data is exist [20:33:11]produce_requested_data [20:33:11]requested_item fm.sn is exist - process it [20:33:11]wFMCommunicate request_size=4 [20:33:11]MH_SAM_APDU [20:33:11]CAPDU: 80 11 00 00 [20:33:11]Write to MH i2c: E2 08 00 89 38 80 11 00 00 00 00 00 00 3B [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:11]Read from MH i2c: E2 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 17 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 17 00 89 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 92 [20:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:33:11]wFMCommunicate OK [20:33:11]requested_item fd.num is exist - process it [20:33:11]SAM_PROTO_GetFieldsCounters [20:33:11]wFMCommunicate request_size=4 [20:33:11]MH_SAM_APDU [20:33:11]CAPDU: 80 13 00 00 [20:33:11]Write to MH i2c: E2 08 00 8A 38 80 13 00 00 00 00 00 00 3E [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:11]Read from MH i2c: E2 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 62 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 62 00 8A 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 78 69 01 00 0E 04 04 00 FA 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 6B [20:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 78 69 01 00 0E 04 04 00 FA 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 [20:33:11]wFMCommunicate OK [20:33:11]SAM_PROTO_GetFieldsCounters done [20:33:11]requested_item shift.num is exist - process it [20:33:11]requested_item shift.opened is exist - process it [20:33:11]req_shift_opened [20:33:11]FM_GetShiftState [20:33:11]SAM_PROTO_GetShiftState [20:33:11]wFMCommunicate request_size=4 [20:33:11]MH_SAM_APDU [20:33:11]CAPDU: 80 13 01 00 [20:33:11]Write to MH i2c: E2 08 00 8B 38 80 13 01 00 00 00 00 00 40 [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:11]Read from MH i2c: E2 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 0E 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 0E 00 8B 38 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DA [20:33:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:33:11]wFMCommunicate OK [20:33:11]SAM_PROTO_GetShiftState done [20:33:11]FM_GetShiftState done [20:33:11]req_shift_opened done [20:33:11]requested_item shift.open_date is exist - process it [20:33:11]req_shift_open_date [20:33:11]req_shift_open_date done [20:33:11]produce_requested_data done [20:33:11]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92536,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:33:11]process_action_free close_receipt [20:33:11]json_value_free [20:33:11]json_value_free done [20:33:11]process_json_proto returns [20:33:11]Send response to host [20:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92536,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:33:11]free response buf [20:33:11]execute_script done [20:33:11]execute_script returns [20:33:11]free content buf [20:33:11]Sock 8.Close socket [20:33:11]Sock 8.Thread stoped [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:05]accept exits with 9 [20:34:05]New connection [20:34:05]New thread 3066801508 created [20:34:05]Thread 3066658148 joined [20:34:05]Waiting for new connection... [20:34:05] Sock 9.Parse request [20:34:05]Sock 9.Check first char [20:34:05]Sock 9.First char is OK [20:34:05]request: POST /json_proto HTTP/1.0 [20:34:05]Method: POST [20:34:05]URL: /json_proto [20:34:05]Method is POST - this is cgi request [20:34:05]url: /json_proto [20:34:05]query_string will be loaded in cgi processing [20:34:05]execute_cgi json_proto POST (null) [20:34:05]execute_cgi path=json_proto method=POST [20:34:05]POST find Content-Length [20:34:05]Host: 172.17.57.71:8080 [20:34:05]Content-Length: 621 [20:34:05]Content-Type: application/json [20:34:05] [20:34:05]POST finish read [20:34:05]Found Content-Length = 621 [20:34:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127439", "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" ] } } [20:34:05]execute_script... [20:34: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)127439", "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" ] } } [20:34:05]POST & json_proto [20:34:05]process_json_proto [20:34:05]json parsed OK: [20:34:05]protocol is kg_v1.0 [20:34:05]action value=close_receipt [20:34:05]process_action close_receipt [20:34:05]cmd_close_receipt [20:34:05]MH_GetDate [20:34:05]Write to MH i2c: F0 00 00 8C 38 B3 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: F0 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: F0 09 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: F0 09 00 8C 38 00 42 F3 E5 66 33 3A A4 66 B3 [20:34:05]GetLastDocTimeStamp 1726345991 [20:34:05]current date 1726346050 [20:34:05]FM_GetShiftState [20:34:05]SAM_PROTO_GetShiftState [20:34:05]wFMCommunicate request_size=4 [20:34:05]MH_SAM_APDU [20:34:05]CAPDU: 80 13 01 00 [20:34:05]Write to MH i2c: E2 08 00 8D 38 80 13 01 00 00 00 00 00 42 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:05]Read from MH i2c: E2 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 0E 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: E2 0E 00 8D 38 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DC [20:34:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:34:05]wFMCommunicate OK [20:34:05]SAM_PROTO_GetShiftState done [20:34:05]FM_GetShiftState done [20:34:05]opened in 1726273389 [20:34:05]opened+sec_in_day 1726359789 [20:34:05]quantity*price = 14400 [20:34:05]sum+1 = 14401 [20:34:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 188 14.09.2024 20:34 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92537 ФПД: 242016048344032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T203410&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92537&fm=242016048344032&tin=02508201610067®Number=0000000000091423&sum=14400 0 [20:34:06]StoreToDocumentArchive [20:34:06]shift 506 fd 92537 [20:34:06]save to /storage/0506/doc_00092537 [20:34:06]save last doc name /storage/0506/doc_00092537 to /storage/kkm_last_doc_name [20:34:06]save OK [20:34:06]Clear old archive folders... [20:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:34:06]tlvbuf is 00FF8DF0 [20:34:06]SAM_PROTO_ClearQueue [20:34:06]wFMCommunicate request_size=4 [20:34:06]MH_SAM_APDU [20:34:06]CAPDU: 80 09 00 00 [20:34:06]Write to MH i2c: E2 08 00 9A 38 80 09 00 00 00 00 00 00 44 [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:06]Read from MH i2c: E2 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 03 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 03 00 9A 38 00 90 00 46 [20:34:06]RAPDU: 90 00 [20:34:06]wFMCommunicate OK [20:34:06]SAM_PROTO_ClearQueue done [20:34:06]KKMCreateOFDPacket [20:34:06]OFDProtocolAddRootSTLVToBuf [20:34:06]FM_MakeSignedData [20:34:06]FM_MakeSignedData [20:34:06]SAM_PROTO_SignData [20:34:06]wFMCommunicate request_size=4 [20:34:06]MH_SAM_APDU [20:34:06]CAPDU: 80 0D 01 02 [20:34:06]Write to MH i2c: E2 08 00 9B 38 80 0D 01 02 00 00 00 00 4C [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:06]Read from MH i2c: E2 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 03 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 03 00 9B 38 00 90 00 47 [20:34:06]RAPDU: 90 00 [20:34:06]wFMCommunicate OK [20:34:06]wFMCommunicate request_size=255 [20:34:06]MH_SAM_APDU [20:34:06]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 BC 00 00 00 F4 03 04 00 42 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 [20:34:06]Write to MH i2c: E2 02 01 9C 38 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 BC 00 00 00 F4 03 04 00 42 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 00 00 E7 [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:06]Read from MH i2c: E2 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 03 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 03 00 9C 38 00 90 00 48 [20:34:06]RAPDU: 90 00 [20:34:06]wFMCommunicate OK [20:34:06]wFMCommunicate request_size=32 [20:34:06]MH_SAM_APDU [20:34:06]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 39 32 10 04 04 00 79 69 01 00 35 04 06 00 DC 1C C0 97 6B E0 [20:34:06]Write to MH i2c: E2 23 00 9D 38 80 0D 02 02 1B 00 30 30 30 38 37 34 36 39 32 10 04 04 00 79 69 01 00 35 04 06 00 DC 1C C0 97 6B E0 00 00 2D [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:06]Read from MH i2c: E2 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 03 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 03 00 9D 38 00 90 00 49 [20:34:06]RAPDU: 90 00 [20:34:06]wFMCommunicate OK [20:34:06]wFMCommunicate request_size=4 [20:34:06]MH_SAM_APDU [20:34:06]CAPDU: 80 0D 03 02 [20:34:06]Write to MH i2c: E2 08 00 9E 38 80 0D 03 02 00 00 00 00 51 [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:07]Read from MH i2c: E2 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: E2 0B 00 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: E2 0B 00 9E 38 00 C1 E9 03 FD AC C9 39 E8 90 00 92 [20:34:07]RAPDU: C1 E9 03 FD AC C9 39 E8 90 00 [20:34:07]wFMCommunicate OK [20:34:07]SAM_PROTO_SignData done [20:34:07]FM_MakeSignedData done [20:34:07]CreateOFDProtocolMessage [20:34:07]wFMCommunicate request_size=4 [20:34:07]MH_SAM_APDU [20:34:07]CAPDU: 80 11 00 00 [20:34:07]Write to MH i2c: E2 08 00 9F 38 80 11 00 00 00 00 00 00 51 [20:34:07]Write i2c OK [20:34:07]MH_I2C_Read... [20:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:07]Read from MH i2c: E2 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: E2 17 00 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: E2 17 00 9F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A8 [20:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:34:07]wFMCommunicate OK [20:34:07]CreateOFDProtocolMessage done [20:34:07]OFDSenderStorePacket 92537 [20:34:07]StoreOFDPacket docnum=92537 [20:34:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 25 8D 1D 01 F9 FD 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 BC 00 00 00 F4 03 04 00 42 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 79 69 01 00 35 04 06 00 DC 1C C0 97 6B E0 C1 E9 03 FD AC C9 39 E8 [20:34:07]CheckFolder [20:34:07]dirname=/storage/ofd_packets [20:34:07]CheckFolder done [20:34:07]ProducePacketName [20:34:07]name=ofd_packets/00092537 [20:34:07]NVStorageSaveData ofd_packets/00092537 [20:34:07]File name is /storage/ofd_packets/00092537 [20:34:07]Write 323 bytes [20:34:07]NVStorageSaveData done [20:34:07]OFDSenderStorePacket done [20:34:07]KKMCreateOFDPacket done [20:34:07]NVStorageSaveData kkm_last_timestamp [20:34:07]File name is /storage/kkm_last_timestamp [20:34:07]Write 4 bytes [20:34:07]NVStorageSaveData done [20:34:07]ExternCall_PrintAddStr [20:34:07]wPrintStart [20:34:07]Write to MH i2c: 01 00 00 A0 38 D8 [20:34:07]Write i2c OK [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: 01 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: 01 07 00 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: 01 07 00 A0 38 00 00 00 00 00 FF 0F ED [20:34:07]RasterBufferAndPrint [20:34:07]line Счет N : (3)127439 [20:34:07]line ИНН: 02508201610067 [20:34:07]line Контрольно-Кассовый Чек [20:34:07]line ПРОДАЖА [20:34:07]line Товар: 48743570 [20:34:07]line Сигареты Winston XStyle Blue [20:34:07]line 1.000 * 144.00 [20:34:07]line = 144.00 [20:34:07]line НДС 12% НСП 1% [20:34:07]line > о реализуемом товаре [20:34:07]line ИТОГО: 144.00 [20:34:07]line НСП 1% : 1.27 [20:34:07]line НДС 12% : 15.29 [20:34:07]line Наличными: 144.00 [20:34:07]line Безнал.: 0.00 [20:34:07]line Место: АЗС № 5 "Партнер Нефть" [20:34:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:34:07]line СНО: Общий режим [20:34:07]line Чек 188 14.09.2024 20:34 [20:34:07]line Смена: 506 ФФД: 1.0 [20:34:07]line ЗНМ: 03000000022 [20:34:07]line РНМ: 0000000000091423 [20:34:07]line Версия ККМ: 001 [20:34:07]line ФМ: 0000000000874692 [20:34:07]line ФД: 92537 [20:34:07]line ФПД: 242016048344032 [20:34:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T203410&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92537&fm=242016048344032&tin=02508201610067®Number=0000000000091423&sum=14400 [20:34:07]line 0 [20:34:07]OFD Sender: Processing packet 92537 [packets to send 63, broken 62] [20:34:07]ProducePacketName [20:34:07]name=ofd_packets/00092537 [20:34:07]OFD Sender: To server: pG, [20:34:07]CommunicateWithHost lk.salyk.kg:30040 [20:34:07]ConnectInit lk.salyk.kg [20:34:07]written 0, free lines is 4095 [20:34:07]Connected sock=10 [20:34:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 25 01 00 00 25 8D 1D 01 F9 FD 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 BC 00 00 00 F4 03 04 00 42 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 79 69 01 00 35 04 06 00 DC 1C C0 97 6B E0 C1 E9 03 FD AC C9 39 E8 [20:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 02 E3 47 00 32 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 34 36 39 32 10 04 04 00 79 69 01 00 F4 03 04 00 BC 9B E5 66 B6 04 01 00 00 23 C6 B9 BD 8B EC 47 EC [20:34:07]CommunicateWithHost err = 0 [20:34:07]CheckOFDResponse [20:34:07]1017 (14) - 77093643461234 [20:34:07]1041 (16) - 0000000000874692 [20:34:07]1040 (4) - 92537 [20:34:07]1012 (4) - 14.09.2024 14:20 [20:34:07]1206 (1) - 0 [20:34:07]OFD Sender: Remove packet 92537 [20:34:07]ProducePacketName [20:34:07]name=ofd_packets/00092537 [20:34:07]NVStorageDeleteData [20:34:07]Write to MH i2c: 01 00 00 C8 38 00 [20:34:07]Write i2c OK [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: 01 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: 01 07 00 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: 01 07 00 C8 38 00 00 00 00 00 2B 0D 3F [20:34:07]RasterBufferAndPrint [20:34:07]line [20:34:07]line [20:34:07]line [20:34:07]line [20:34:07]line [20:34:07]written 0, free lines is 3377 [20:34:07]MH_Cut [20:34:07]Write to MH i2c: D1 01 00 CF 38 01 D9 [20:34:07]Write i2c OK [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: D1 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: D1 01 00 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: D1 01 00 CF 38 00 D8 [20:34:07]Write to MH i2c: 01 00 00 D0 38 08 [20:34:07]Write i2c OK [20:34:07]MH_I2C_Read... [20:34:08]OFD Sender: No OFD packet to send [20:34:08]*** Cut start [20:34:08]*** Purtial cut [20:34:08]*** Stage 1: CUTSNS_PIN = 1 [20:34:10]Read from MH i2c: 01 [20:34:10]MH_I2C_Read... [20:34:10]*** Stop cut motor [20:34:10]*** Cut end [20:34:10]Read from MH i2c: 01 07 00 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: 01 07 00 D0 38 00 00 00 00 00 FF 0F 1D [20:34:10]process_action close_receipt done [20:34:10]requested_data is exist [20:34:10]produce_requested_data [20:34:10]requested_item fm.sn is exist - process it [20:34:10]wFMCommunicate request_size=4 [20:34:10]MH_SAM_APDU [20:34:10]CAPDU: 80 11 00 00 [20:34:10]Write to MH i2c: E2 08 00 D1 38 80 11 00 00 00 00 00 00 83 [20:34:10]Write i2c OK [20:34:10]MH_I2C_Read... [20:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:10]Read from MH i2c: E2 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: E2 17 00 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: E2 17 00 D1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DA [20:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:34:10]wFMCommunicate OK [20:34:10]requested_item fd.num is exist - process it [20:34:10]SAM_PROTO_GetFieldsCounters [20:34:10]wFMCommunicate request_size=4 [20:34:10]MH_SAM_APDU [20:34:10]CAPDU: 80 13 00 00 [20:34:10]Write to MH i2c: E2 08 00 D2 38 80 13 00 00 00 00 00 00 86 [20:34:10]Write i2c OK [20:34:10]MH_I2C_Read... [20:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:10]Read from MH i2c: E2 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: E2 62 00 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: E2 62 00 D2 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 79 69 01 00 0E 04 04 00 FA 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 B7 [20:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 79 69 01 00 0E 04 04 00 FA 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 [20:34:10]wFMCommunicate OK [20:34:10]SAM_PROTO_GetFieldsCounters done [20:34:10]requested_item shift.num is exist - process it [20:34:10]requested_item shift.opened is exist - process it [20:34:10]req_shift_opened [20:34:10]FM_GetShiftState [20:34:10]SAM_PROTO_GetShiftState [20:34:10]wFMCommunicate request_size=4 [20:34:10]MH_SAM_APDU [20:34:10]CAPDU: 80 13 01 00 [20:34:10]Write to MH i2c: E2 08 00 D3 38 80 13 01 00 00 00 00 00 88 [20:34:10]Write i2c OK [20:34:10]MH_I2C_Read... [20:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:10]Read from MH i2c: E2 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: E2 0E 00 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: E2 0E 00 D3 38 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 22 [20:34:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:34:10]wFMCommunicate OK [20:34:10]SAM_PROTO_GetShiftState done [20:34:10]FM_GetShiftState done [20:34:10]req_shift_opened done [20:34:10]requested_item shift.open_date is exist - process it [20:34:10]req_shift_open_date [20:34:10]req_shift_open_date done [20:34:10]produce_requested_data done [20:34:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92537,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:34:10]process_action_free close_receipt [20:34:10]json_value_free [20:34:10]json_value_free done [20:34:10]process_json_proto returns [20:34:10]Send response to host [20:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92537,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:34:10]free response buf [20:34:10]execute_script done [20:34:10]execute_script returns [20:34:10]free content buf [20:34:10]Sock 9.Close socket [20:34:10]Sock 9.Thread stoped [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:39]accept exits with 8 [20:34:39]New connection [20:34:39]New thread 3066658148 created [20:34:39]Thread 3066801508 joined [20:34:39]Waiting for new connection... [20:34:39] Sock 8.Parse request [20:34:39]Sock 8.Check first char [20:34:39]Sock 8.First char is OK [20:34:39]request: POST /json_proto HTTP/1.0 [20:34:39]Method: POST [20:34:39]URL: /json_proto [20:34:39]Method is POST - this is cgi request [20:34:39]url: /json_proto [20:34:39]query_string will be loaded in cgi processing [20:34:39]execute_cgi json_proto POST (null) [20:34:39]execute_cgi path=json_proto method=POST [20:34:39]POST find Content-Length [20:34:39]Host: 172.17.57.71:8080 [20:34:39]Content-Length: 800 [20:34:39]Content-Type: application/json [20:34:39] [20:34:39]POST finish read [20:34:39]Found Content-Length = 800 [20:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127440", "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: \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" ] } } [20:34:39]execute_script... [20:34: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)127440", "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: \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" ] } } [20:34:39]POST & json_proto [20:34:39]process_json_proto [20:34:39]json parsed OK: [20:34:39]protocol is kg_v1.0 [20:34:39]action value=close_receipt [20:34:39]process_action close_receipt [20:34:39]cmd_close_receipt [20:34:39]MH_GetDate [20:34:39]Write to MH i2c: F0 00 00 D4 38 FB [20:34:39]Write i2c OK [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: F0 [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: F0 09 00 [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: F0 09 00 D4 38 00 64 F3 E5 66 33 3A A4 66 1D [20:34:39]GetLastDocTimeStamp 1726346050 [20:34:39]current date 1726346084 [20:34:39]FM_GetShiftState [20:34:39]SAM_PROTO_GetShiftState [20:34:39]wFMCommunicate request_size=4 [20:34:39]MH_SAM_APDU [20:34:39]CAPDU: 80 13 01 00 [20:34:39]Write to MH i2c: E2 08 00 D5 38 80 13 01 00 00 00 00 00 8A [20:34:39]Write i2c OK [20:34:39]MH_I2C_Read... [20:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:39]Read from MH i2c: E2 [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: E2 0E 00 [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: E2 0E 00 D5 38 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 24 [20:34:39]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:34:39]wFMCommunicate OK [20:34:39]SAM_PROTO_GetShiftState done [20:34:39]FM_GetShiftState done [20:34:39]opened in 1726273389 [20:34:39]opened+sec_in_day 1726359789 [20:34:39]quantity*price = 14400 [20:34:39]sum+1 = 14401 [20:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 189 14.09.2024 20:34 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92538 ФПД: 174903825154396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T203444&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92538&fm=174903825154396&tin=02508201610067®Number=0000000000091423&sum=14400 0 [20:34:40]StoreToDocumentArchive [20:34:40]shift 506 fd 92538 [20:34:40]save to /storage/0506/doc_00092538 [20:34:40]save last doc name /storage/0506/doc_00092538 to /storage/kkm_last_doc_name [20:34:40]save OK [20:34:40]Clear old archive folders... [20:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:34:40]tlvbuf is 00FF8A50 [20:34:40]SAM_PROTO_ClearQueue [20:34:40]wFMCommunicate request_size=4 [20:34:40]MH_SAM_APDU [20:34:40]CAPDU: 80 09 00 00 [20:34:40]Write to MH i2c: E2 08 00 E2 38 80 09 00 00 00 00 00 00 8C [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 E2 38 00 90 00 8E [20:34:40]RAPDU: 90 00 [20:34:40]wFMCommunicate OK [20:34:40]SAM_PROTO_ClearQueue done [20:34:40]KKMCreateOFDPacket [20:34:40]OFDProtocolAddRootSTLVToBuf [20:34:40]FM_MakeSignedData [20:34:40]FM_MakeSignedData [20:34:40]SAM_PROTO_SignData [20:34:40]wFMCommunicate request_size=4 [20:34:40]MH_SAM_APDU [20:34:40]CAPDU: 80 0D 01 02 [20:34:40]Write to MH i2c: E2 08 00 E3 38 80 0D 01 02 00 00 00 00 94 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 E3 38 00 90 00 8F [20:34:40]RAPDU: 90 00 [20:34:40]wFMCommunicate OK [20:34:40]wFMCommunicate request_size=255 [20:34:40]MH_SAM_APDU [20:34:40]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 BD 00 00 00 F4 03 04 00 64 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [20:34:40]Write to MH i2c: E2 02 01 E4 38 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 BD 00 00 00 F4 03 04 00 64 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 ED [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 E4 38 00 90 00 90 [20:34:40]RAPDU: 90 00 [20:34:40]wFMCommunicate OK [20:34:40]wFMCommunicate request_size=34 [20:34:40]MH_SAM_APDU [20:34:40]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7A 69 01 00 35 04 06 00 9F 12 F8 5E 41 5C [20:34:40]Write to MH i2c: E2 25 00 E5 38 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7A 69 01 00 35 04 06 00 9F 12 F8 5E 41 5C 00 00 E4 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 E5 38 00 90 00 91 [20:34:40]RAPDU: 90 00 [20:34:40]wFMCommunicate OK [20:34:40]wFMCommunicate request_size=4 [20:34:40]MH_SAM_APDU [20:34:40]CAPDU: 80 0D 03 02 [20:34:40]Write to MH i2c: E2 08 00 E6 38 80 0D 03 02 00 00 00 00 99 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:41]Read from MH i2c: E2 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 0B 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 0B 00 E6 38 00 36 5A CD AB 7F 32 44 7D 90 00 14 [20:34:41]RAPDU: 36 5A CD AB 7F 32 44 7D 90 00 [20:34:41]wFMCommunicate OK [20:34:41]SAM_PROTO_SignData done [20:34:41]FM_MakeSignedData done [20:34:41]CreateOFDProtocolMessage [20:34:41]wFMCommunicate request_size=4 [20:34:41]MH_SAM_APDU [20:34:41]CAPDU: 80 11 00 00 [20:34:41]Write to MH i2c: E2 08 00 E7 38 80 11 00 00 00 00 00 00 99 [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:41]Read from MH i2c: E2 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 17 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: E2 17 00 E7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [20:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:34:41]wFMCommunicate OK [20:34:41]CreateOFDProtocolMessage done [20:34:41]OFDSenderStorePacket 92538 [20:34:41]StoreOFDPacket docnum=92538 [20:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 4C CB 1F 01 B5 7E 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 BD 00 00 00 F4 03 04 00 64 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7A 69 01 00 35 04 06 00 9F 12 F8 5E 41 5C 36 5A CD AB 7F 32 44 7D [20:34:41]CheckFolder [20:34:41]dirname=/storage/ofd_packets [20:34:41]CheckFolder done [20:34:41]ProducePacketName [20:34:41]name=ofd_packets/00092538 [20:34:41]NVStorageSaveData ofd_packets/00092538 [20:34:41]File name is /storage/ofd_packets/00092538 [20:34:41]Write 325 bytes [20:34:41]NVStorageSaveData done [20:34:41]OFDSenderStorePacket done [20:34:41]KKMCreateOFDPacket done [20:34:41]NVStorageSaveData kkm_last_timestamp [20:34:41]File name is /storage/kkm_last_timestamp [20:34:41]Write 4 bytes [20:34:41]NVStorageSaveData done [20:34:41]ExternCall_PrintAddStr [20:34:41]wPrintStart [20:34:41]Write to MH i2c: 01 00 00 E8 38 20 [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 07 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 07 00 E8 38 00 00 00 00 00 FF 0F 35 [20:34:41]RasterBufferAndPrint [20:34:41]line Счет N : (3)127440 [20:34:41]line ИНН: 02508201610067 [20:34:41]line Контрольно-Кассовый Чек [20:34:41]line ПРОДАЖА [20:34:41]line Товар: 48743587 [20:34:41]line Сигареты Winston XStyle Silver [20:34:41]line 1.000 * 144.00 [20:34:41]line = 144.00 [20:34:41]line НДС 12% НСП 1% [20:34:41]line > о реализуемом товаре [20:34:41]line ИТОГО: 144.00 [20:34:41]line НСП 1% : 1.27 [20:34:41]line НДС 12% : 15.29 [20:34:41]line Наличными: 0.00 [20:34:41]line Безнал.: 144.00 [20:34:41]line Место: АЗС № 5 "Партнер Нефть" [20:34:41]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:34:41]line СНО: Общий режим [20:34:41]line Чек 189 14.09.2024 20:34 [20:34:41]line Смена: 506 ФФД: 1.0 [20:34:41]line ЗНМ: 03000000022 [20:34:41]line РНМ: 0000000000091423 [20:34:41]line Версия ККМ: 001 [20:34:41]line Платежная система: Бакай Банк [20:34:41]line ФМ: 0000000000874692 [20:34:41]line ФД: 92538 [20:34:41]line ФПД: 174903825154396 [20:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T203444&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92538&fm=174903825154396&tin=02508201610067®Number=0000000000091423&sum=14400 [20:34:41]line 0 [20:34:41]OFD Sender: Processing packet 92538 [packets to send 63, broken 62] [20:34:41]ProducePacketName [20:34:41]name=ofd_packets/00092538 [20:34:41]OFD Sender: To server: pG, [20:34:41]CommunicateWithHost lk.salyk.kg:30040 [20:34:41]ConnectInit lk.salyk.kg [20:34:41]written 0, free lines is 4095 [20:34:41]Connected sock=10 [20:34:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 4C CB 1F 01 B5 7E 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 BD 00 00 00 F4 03 04 00 64 F3 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7A 69 01 00 35 04 06 00 9F 12 F8 5E 41 5C 36 5A CD AB 7F 32 44 7D [20:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 97 04 47 00 26 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 34 36 39 32 10 04 04 00 7A 69 01 00 F4 03 04 00 DE 9B E5 66 B6 04 01 00 00 94 80 1A 6F B8 35 27 70 [20:34:41]CommunicateWithHost err = 0 [20:34:41]CheckOFDResponse [20:34:41]1017 (14) - 77093643461234 [20:34:41]1041 (16) - 0000000000874692 [20:34:41]1040 (4) - 92538 [20:34:41]1012 (4) - 14.09.2024 14:21 [20:34:41]1206 (1) - 0 [20:34:41]OFD Sender: Remove packet 92538 [20:34:41]ProducePacketName [20:34:41]name=ofd_packets/00092538 [20:34:41]NVStorageDeleteData [20:34:41]Write to MH i2c: 01 00 00 13 39 4C [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 07 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 07 00 13 39 00 00 00 00 00 F1 0C 50 [20:34:41]RasterBufferAndPrint [20:34:41]line [20:34:41]line [20:34:41]line [20:34:41]line [20:34:41]line [20:34:41]written 0, free lines is 3320 [20:34:41]MH_Cut [20:34:41]Write to MH i2c: D1 01 00 1A 39 01 25 [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: D1 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: D1 01 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: D1 01 00 1A 39 00 24 [20:34:41]Write to MH i2c: 01 00 00 1B 39 54 [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:42]OFD Sender: No OFD packet to send [20:34:42]*** Cut start [20:34:42]*** Purtial cut [20:34:42]*** Stage 1: CUTSNS_PIN = 1 [20:34:44]Read from MH i2c: 01 [20:34:44]MH_I2C_Read... [20:34:44]*** Stop cut motor [20:34:44]*** Cut end [20:34:44]Read from MH i2c: 01 07 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: 01 07 00 1B 39 00 00 00 00 00 FF 0F 69 [20:34:44]process_action close_receipt done [20:34:44]requested_data is exist [20:34:44]produce_requested_data [20:34:44]requested_item fm.sn is exist - process it [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 11 00 00 [20:34:44]Write to MH i2c: E2 08 00 1C 39 80 11 00 00 00 00 00 00 CF [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 17 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 17 00 1C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 26 [20:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:34:44]wFMCommunicate OK [20:34:44]requested_item fd.num is exist - process it [20:34:44]SAM_PROTO_GetFieldsCounters [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 13 00 00 [20:34:44]Write to MH i2c: E2 08 00 1D 39 80 13 00 00 00 00 00 00 D2 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 62 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 62 00 1D 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7A 69 01 00 0E 04 04 00 FA 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 07 [20:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7A 69 01 00 0E 04 04 00 FA 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 [20:34:44]wFMCommunicate OK [20:34:44]SAM_PROTO_GetFieldsCounters done [20:34:44]requested_item shift.num is exist - process it [20:34:44]requested_item shift.opened is exist - process it [20:34:44]req_shift_opened [20:34:44]FM_GetShiftState [20:34:44]SAM_PROTO_GetShiftState [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 13 01 00 [20:34:44]Write to MH i2c: E2 08 00 1E 39 80 13 01 00 00 00 00 00 D4 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 0E 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 0E 00 1E 39 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 6E [20:34:44]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:34:44]wFMCommunicate OK [20:34:44]SAM_PROTO_GetShiftState done [20:34:44]FM_GetShiftState done [20:34:44]req_shift_opened done [20:34:44]requested_item shift.open_date is exist - process it [20:34:44]req_shift_open_date [20:34:44]req_shift_open_date done [20:34:44]produce_requested_data done [20:34:44]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92538,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:34:44]process_action_free close_receipt [20:34:44]json_value_free [20:34:44]json_value_free done [20:34:44]process_json_proto returns [20:34:44]Send response to host [20:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92538,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:34:44]free response buf [20:34:44]execute_script done [20:34:44]execute_script returns [20:34:44]free content buf [20:34:44]Sock 8.Close socket [20:34:44]Sock 8.Thread stoped [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:43:58]accept exits with 9 [20:43:58]New connection [20:43:58]New thread 3066801508 created [20:43:58]Thread 3066658148 joined [20:43:58]Waiting for new connection... [20:43:58] Sock 9.Parse request [20:43:58]Sock 9.Check first char [20:43:58]Sock 9.First char is OK [20:43:58]request: POST /json_proto HTTP/1.0 [20:43:58]Method: POST [20:43:58]URL: /json_proto [20:43:58]Method is POST - this is cgi request [20:43:58]url: /json_proto [20:43:58]query_string will be loaded in cgi processing [20:43:58]execute_cgi json_proto POST (null) [20:43:58]execute_cgi path=json_proto method=POST [20:43:58]POST find Content-Length [20:43:58]Host: 172.17.57.71:8080 [20:43:58]Content-Length: 684 [20:43:58]Content-Type: application/json [20:43:58] [20:43:58]POST finish read [20:43:58]Found Content-Length = 684 [20:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127441", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 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" ] } } [20:43:58]execute_script... [20:43: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)127441", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 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" ] } } [20:43:58]POST & json_proto [20:43:58]process_json_proto [20:43:58]json parsed OK: [20:43:58]protocol is kg_v1.0 [20:43:58]action value=close_receipt [20:43:58]process_action close_receipt [20:43:58]cmd_close_receipt [20:43:58]MH_GetDate [20:43:58]Write to MH i2c: F0 00 00 1F 39 47 [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: F0 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: F0 09 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: F0 09 00 1F 39 00 93 F5 E5 66 33 3A A4 66 9A [20:43:58]GetLastDocTimeStamp 1726346084 [20:43:58]current date 1726346643 [20:43:58]FM_GetShiftState [20:43:58]SAM_PROTO_GetShiftState [20:43:58]wFMCommunicate request_size=4 [20:43:58]MH_SAM_APDU [20:43:58]CAPDU: 80 13 01 00 [20:43:58]Write to MH i2c: E2 08 00 20 39 80 13 01 00 00 00 00 00 D6 [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:58]Read from MH i2c: E2 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 0E 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 0E 00 20 39 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 70 [20:43:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:43:58]wFMCommunicate OK [20:43:58]SAM_PROTO_GetShiftState done [20:43:58]FM_GetShiftState done [20:43:58]opened in 1726273389 [20:43:58]opened+sec_in_day 1726359789 [20:43:58]quantity*price = 7500 [20:43:58]sum+1 = 7501 [20:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 190 14.09.2024 20:44 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92539 ФПД: 253665030717820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T204403&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92539&fm=253665030717820&tin=02508201610067®Number=0000000000091423&sum=7500 0 [20:43:59]StoreToDocumentArchive [20:43:59]shift 506 fd 92539 [20:43:59]save to /storage/0506/doc_00092539 [20:43:59]save last doc name /storage/0506/doc_00092539 to /storage/kkm_last_doc_name [20:43:59]save OK [20:43:59]Clear old archive folders... [20:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=295 [20:43:59]tlvbuf is 00FB3B20 [20:43:59]SAM_PROTO_ClearQueue [20:43:59]wFMCommunicate request_size=4 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 09 00 00 [20:43:59]Write to MH i2c: E2 08 00 2D 39 80 09 00 00 00 00 00 00 D8 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 2D 39 00 90 00 DA [20:43:59]RAPDU: 90 00 [20:43:59]wFMCommunicate OK [20:43:59]SAM_PROTO_ClearQueue done [20:43:59]KKMCreateOFDPacket [20:43:59]OFDProtocolAddRootSTLVToBuf [20:43:59]FM_MakeSignedData [20:43:59]FM_MakeSignedData [20:43:59]SAM_PROTO_SignData [20:43:59]wFMCommunicate request_size=4 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 0D 01 02 [20:43:59]Write to MH i2c: E2 08 00 2E 39 80 0D 01 02 00 00 00 00 E0 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 2E 39 00 90 00 DB [20:43:59]RAPDU: 90 00 [20:43:59]wFMCommunicate OK [20:43:59]wFMCommunicate request_size=255 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BE 00 00 00 F4 03 04 00 93 F5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [20:43:59]Write to MH i2c: E2 02 01 2F 39 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BE 00 00 00 F4 03 04 00 93 F5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 B1 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 2F 39 00 90 00 DC [20:43:59]RAPDU: 90 00 [20:43:59]wFMCommunicate OK [20:43:59]wFMCommunicate request_size=54 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7B 69 01 00 35 04 06 00 E6 B4 FE 0C 41 7C [20:43:59]Write to MH i2c: E2 39 00 30 39 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7B 69 01 00 35 04 06 00 E6 B4 FE 0C 41 7C 00 00 4E [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 03 00 30 39 00 90 00 DD [20:43:59]RAPDU: 90 00 [20:43:59]wFMCommunicate OK [20:43:59]wFMCommunicate request_size=4 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 0D 03 02 [20:43:59]Write to MH i2c: E2 08 00 31 39 80 0D 03 02 00 00 00 00 E5 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:00]Read from MH i2c: E2 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 0B 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 0B 00 31 39 00 CF 1C CF 87 82 17 53 66 90 00 79 [20:44:00]RAPDU: CF 1C CF 87 82 17 53 66 90 00 [20:44:00]wFMCommunicate OK [20:44:00]SAM_PROTO_SignData done [20:44:00]FM_MakeSignedData done [20:44:00]CreateOFDProtocolMessage [20:44:00]wFMCommunicate request_size=4 [20:44:00]MH_SAM_APDU [20:44:00]CAPDU: 80 11 00 00 [20:44:00]Write to MH i2c: E2 08 00 32 39 80 11 00 00 00 00 00 00 E5 [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:00]Read from MH i2c: E2 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 17 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 17 00 32 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3C [20:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:44:00]wFMCommunicate OK [20:44:00]CreateOFDProtocolMessage done [20:44:00]OFDSenderStorePacket 92539 [20:44:00]StoreOFDPacket docnum=92539 [20:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 0D CA 33 01 3C 87 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BE 00 00 00 F4 03 04 00 93 F5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7B 69 01 00 35 04 06 00 E6 B4 FE 0C 41 7C CF 1C CF 87 82 17 53 66 [20:44:00]CheckFolder [20:44:00]dirname=/storage/ofd_packets [20:44:00]CheckFolder done [20:44:00]ProducePacketName [20:44:00]name=ofd_packets/00092539 [20:44:00]NVStorageSaveData ofd_packets/00092539 [20:44:00]File name is /storage/ofd_packets/00092539 [20:44:00]Write 345 bytes [20:44:00]NVStorageSaveData done [20:44:00]OFDSenderStorePacket done [20:44:00]KKMCreateOFDPacket done [20:44:00]NVStorageSaveData kkm_last_timestamp [20:44:00]File name is /storage/kkm_last_timestamp [20:44:00]Write 4 bytes [20:44:00]NVStorageSaveData done [20:44:00]ExternCall_PrintAddStr [20:44:00]wPrintStart [20:44:00]Write to MH i2c: 01 00 00 33 39 6C [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 07 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 07 00 33 39 00 00 00 00 00 FF 0F 81 [20:44:00]RasterBufferAndPrint [20:44:00]line Счет N : (3)127441 [20:44:00]line ИНН: 02508201610067 [20:44:00]line Контрольно-Кассовый Чек [20:44:00]line ПРОДАЖА [20:44:00]line Товар: 5449000027450 [20:44:00]line Напиток FuzeTea чай манго,ром 0,5л [20:44:00]line 1.000 * 75.00 [20:44:00]line = 75.00 [20:44:00]line НДС 12% НСП 1% [20:44:00]line > о реализуемом товаре [20:44:00]line ИТОГО: 75.00 [20:44:00]line НСП 1% : 0.66 [20:44:00]line НДС 12% : 7.96 [20:44:00]line Наличными: 75.00 [20:44:00]line Безнал.: 0.00 [20:44:00]line Место: АЗС № 5 "Партнер Нефть" [20:44:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [20:44:00]line СНО: Общий режим [20:44:00]line Чек 190 14.09.2024 20:44 [20:44:00]line Смена: 506 ФФД: 1.0 [20:44:00]line ЗНМ: 03000000022 [20:44:00]line РНМ: 0000000000091423 [20:44:00]line Версия ККМ: 001 [20:44:00]line ФМ: 0000000000874692 [20:44:00]line ФД: 92539 [20:44:00]line ФПД: 253665030717820 [20:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T204403&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92539&fm=253665030717820&tin=02508201610067®Number=0000000000091423&sum=7500 [20:44:00]line 0 [20:44:00]OFD Sender: Processing packet 92539 [packets to send 63, broken 62] [20:44:00]ProducePacketName [20:44:00]name=ofd_packets/00092539 [20:44:00]OFD Sender: To server: pG, [20:44:00]CommunicateWithHost lk.salyk.kg:30040 [20:44:00]ConnectInit lk.salyk.kg [20:44:00]written 0, free lines is 4095 [20:44:00]Connected sock=10 [20:44:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3B 01 00 00 0D CA 33 01 3C 87 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BE 00 00 00 F4 03 04 00 93 F5 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7B 69 01 00 35 04 06 00 E6 B4 FE 0C 41 7C CF 1C CF 87 82 17 53 66 [20:44:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 9A 5F 47 00 86 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 34 36 39 32 10 04 04 00 7B 69 01 00 F4 03 04 00 0D 9E E5 66 B6 04 01 00 00 03 32 39 87 0A 26 2B 82 [20:44:00]CommunicateWithHost err = 0 [20:44:00]CheckOFDResponse [20:44:00]1017 (14) - 77093643461234 [20:44:00]1041 (16) - 0000000000874692 [20:44:00]1040 (4) - 92539 [20:44:00]1012 (4) - 14.09.2024 14:30 [20:44:00]1206 (1) - 0 [20:44:00]OFD Sender: Remove packet 92539 [20:44:00]ProducePacketName [20:44:00]name=ofd_packets/00092539 [20:44:00]NVStorageDeleteData [20:44:00]Write to MH i2c: 01 00 00 5C 39 95 [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 07 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 07 00 5C 39 00 00 00 00 00 0D 0D B6 [20:44:00]RasterBufferAndPrint [20:44:00]line [20:44:00]line [20:44:00]line [20:44:00]line [20:44:00]line [20:44:00]written 0, free lines is 3347 [20:44:00]MH_Cut [20:44:00]Write to MH i2c: D1 01 00 63 39 01 6E [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: D1 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: D1 01 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: D1 01 00 63 39 00 6D [20:44:00]Write to MH i2c: 01 00 00 64 39 9D [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:01]OFD Sender: No OFD packet to send [20:44:01]*** Cut start [20:44:01]*** Purtial cut [20:44:01]*** Stage 1: CUTSNS_PIN = 1 [20:44:03]Read from MH i2c: 01 [20:44:03]MH_I2C_Read... [20:44:03]*** Stop cut motor [20:44:03]*** Cut end [20:44:03]Read from MH i2c: 01 07 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: 01 07 00 64 39 00 00 00 00 00 FF 0F B2 [20:44:03]process_action close_receipt done [20:44:03]requested_data is exist [20:44:03]produce_requested_data [20:44:03]requested_item fm.sn is exist - process it [20:44:03]wFMCommunicate request_size=4 [20:44:03]MH_SAM_APDU [20:44:03]CAPDU: 80 11 00 00 [20:44:03]Write to MH i2c: E2 08 00 65 39 80 11 00 00 00 00 00 00 18 [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:03]Read from MH i2c: E2 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 17 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 17 00 65 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 6F [20:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [20:44:03]wFMCommunicate OK [20:44:03]requested_item fd.num is exist - process it [20:44:03]SAM_PROTO_GetFieldsCounters [20:44:03]wFMCommunicate request_size=4 [20:44:03]MH_SAM_APDU [20:44:03]CAPDU: 80 13 00 00 [20:44:03]Write to MH i2c: E2 08 00 66 39 80 13 00 00 00 00 00 00 1B [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:03]Read from MH i2c: E2 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 62 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 62 00 66 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7B 69 01 00 0E 04 04 00 FA 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 54 [20:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7B 69 01 00 0E 04 04 00 FA 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 [20:44:03]wFMCommunicate OK [20:44:03]SAM_PROTO_GetFieldsCounters done [20:44:03]requested_item shift.num is exist - process it [20:44:03]requested_item shift.opened is exist - process it [20:44:03]req_shift_opened [20:44:03]FM_GetShiftState [20:44:03]SAM_PROTO_GetShiftState [20:44:03]wFMCommunicate request_size=4 [20:44:03]MH_SAM_APDU [20:44:03]CAPDU: 80 13 01 00 [20:44:03]Write to MH i2c: E2 08 00 67 39 80 13 01 00 00 00 00 00 1D [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:03]Read from MH i2c: E2 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 0E 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 0E 00 67 39 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B7 [20:44:03]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [20:44:03]wFMCommunicate OK [20:44:03]SAM_PROTO_GetShiftState done [20:44:03]FM_GetShiftState done [20:44:03]req_shift_opened done [20:44:03]requested_item shift.open_date is exist - process it [20:44:03]req_shift_open_date [20:44:03]req_shift_open_date done [20:44:03]produce_requested_data done [20:44:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92539,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [20:44:03]process_action_free close_receipt [20:44:03]json_value_free [20:44:03]json_value_free done [20:44:03]process_json_proto returns [20:44:03]Send response to host [20:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92539,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [20:44:03]free response buf [20:44:03]execute_script done [20:44:03]execute_script returns [20:44:03]free content buf [20:44:03]Sock 9.Close socket [20:44:03]Sock 9.Thread stoped [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:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50: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:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:28]accept exits with 8 [21:00:28]New connection [21:00:28]New thread 3066658148 created [21:00:28]Thread 3066801508 joined [21:00:28]Waiting for new connection... [21:00:28] Sock 8.Parse request [21:00:28]Sock 8.Check first char [21:00:28]Sock 8.First char is OK [21:00:28]request: POST /json_proto HTTP/1.0 [21:00:28]Method: POST [21:00:28]URL: /json_proto [21:00:28]Method is POST - this is cgi request [21:00:28]url: /json_proto [21:00:28]query_string will be loaded in cgi processing [21:00:28]execute_cgi json_proto POST (null) [21:00:28]execute_cgi path=json_proto method=POST [21:00:28]POST find Content-Length [21:00:28]Host: 172.17.57.71:8080 [21:00:28]Content-Length: 1065 [21:00:28]Content-Type: application/json [21:00:28] [21:00:28]POST finish read [21:00:28]Found Content-Length = 1065 [21:00:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127442", "tax_sys" : 0, "items" : [ { "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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46123428", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:28]execute_script... [21:00: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)127442", "tax_sys" : 0, "items" : [ { "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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46123428", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:28]POST & json_proto [21:00:28]process_json_proto [21:00:28]json parsed OK: [21:00:28]protocol is kg_v1.0 [21:00:28]action value=close_receipt [21:00:28]process_action close_receipt [21:00:28]cmd_close_receipt [21:00:28]MH_GetDate [21:00:28]Write to MH i2c: F0 00 00 68 39 90 [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: F0 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: F0 09 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: F0 09 00 68 39 00 71 F9 E5 66 33 3A A4 66 C5 [21:00:28]GetLastDocTimeStamp 1726346643 [21:00:28]current date 1726347633 [21:00:28]FM_GetShiftState [21:00:28]SAM_PROTO_GetShiftState [21:00:28]wFMCommunicate request_size=4 [21:00:28]MH_SAM_APDU [21:00:28]CAPDU: 80 13 01 00 [21:00:28]Write to MH i2c: E2 08 00 69 39 80 13 01 00 00 00 00 00 1F [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:28]Read from MH i2c: E2 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 0E 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 0E 00 69 39 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 B9 [21:00:28]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:00:28]wFMCommunicate OK [21:00:28]SAM_PROTO_GetShiftState done [21:00:28]FM_GetShiftState done [21:00:28]opened in 1726273389 [21:00:28]opened+sec_in_day 1726359789 [21:00:28]quantity*price = 15000 [21:00:28]sum+1 = 15001 [21:00:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46123428 Сигареты Mevius Wind Blue 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 309.00 НСП 1% : 2.74 НДС 12% : 32.81 Наличными: 0.00 Безнал.: 309.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 191 14.09.2024 21:00 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92540 ФПД: 13527259356429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T210033&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92540&fm=13527259356429&tin=02508201610067®Number=0000000000091423&sum=30900 0 [21:00:29]StoreToDocumentArchive [21:00:29]shift 506 fd 92540 [21:00:29]save to /storage/0506/doc_00092540 [21:00:29]save last doc name /storage/0506/doc_00092540 to /storage/kkm_last_doc_name [21:00:29]save OK [21:00:29]Clear old archive folders... [21:00:29]ProcessDocumentItem done err = 0, tmpTLVsize=375 [21:00:29]tlvbuf is 00FE4990 [21:00:29]SAM_PROTO_ClearQueue [21:00:29]wFMCommunicate request_size=4 [21:00:29]MH_SAM_APDU [21:00:29]CAPDU: 80 09 00 00 [21:00:29]Write to MH i2c: E2 08 00 76 39 80 09 00 00 00 00 00 00 21 [21:00:29]Write i2c OK [21:00:29]MH_I2C_Read... [21:00:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:29]Read from MH i2c: E2 [21:00:29]MH_I2C_Read... [21:00:29]Read from MH i2c: E2 03 00 [21:00:29]MH_I2C_Read... [21:00:29]Read from MH i2c: E2 03 00 76 39 00 90 00 23 [21:00:29]RAPDU: 90 00 [21:00:29]wFMCommunicate OK [21:00:29]SAM_PROTO_ClearQueue done [21:00:29]KKMCreateOFDPacket [21:00:29]OFDProtocolAddRootSTLVToBuf [21:00:29]FM_MakeSignedData [21:00:29]FM_MakeSignedData [21:00:29]SAM_PROTO_SignData [21:00:29]wFMCommunicate request_size=4 [21:00:29]MH_SAM_APDU [21:00:29]CAPDU: 80 0D 01 02 [21:00:29]Write to MH i2c: E2 08 00 77 39 80 0D 01 02 00 00 00 00 29 [21:00:29]Write i2c OK [21:00:29]MH_I2C_Read... [21:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:29]Read from MH i2c: E2 [21:00:29]MH_I2C_Read... [21:00:29]Read from MH i2c: E2 03 00 [21:00:29]MH_I2C_Read... [21:00:29]Read from MH i2c: E2 03 00 77 39 00 90 00 24 [21:00:29]RAPDU: 90 00 [21:00:29]wFMCommunicate OK [21:00:29]wFMCommunicate request_size=255 [21:00:29]MH_SAM_APDU [21:00:29]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 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 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 23 04 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 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 B4 78 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 [21:00:29]Write to MH i2c: E2 02 01 78 39 80 0D 02 02 FA 00 03 00 77 01 1E 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 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 23 04 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 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 B4 78 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 00 4F [21:00:29]Write i2c OK [21:00:29]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 03 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 03 00 78 39 00 90 00 25 [21:00:30]RAPDU: 90 00 [21:00:30]wFMCommunicate OK [21:00:30]wFMCommunicate request_size=134 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 78 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 71 F9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 69 01 00 35 04 06 00 0C 4D 8F 7D 1D 0D [21:00:30]Write to MH i2c: E2 89 00 79 39 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 78 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 71 F9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 69 01 00 35 04 06 00 0C 4D 8F 7D 1D 0D 00 00 46 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 03 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 03 00 79 39 00 90 00 26 [21:00:30]RAPDU: 90 00 [21:00:30]wFMCommunicate OK [21:00:30]wFMCommunicate request_size=4 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 0D 03 02 [21:00:30]Write to MH i2c: E2 08 00 7A 39 80 0D 03 02 00 00 00 00 2E [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 0B 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 0B 00 7A 39 00 04 9F F8 19 59 81 7B 27 90 00 5F [21:00:30]RAPDU: 04 9F F8 19 59 81 7B 27 90 00 [21:00:30]wFMCommunicate OK [21:00:30]SAM_PROTO_SignData done [21:00:30]FM_MakeSignedData done [21:00:30]CreateOFDProtocolMessage [21:00:30]wFMCommunicate request_size=4 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 11 00 00 [21:00:30]Write to MH i2c: E2 08 00 7B 39 80 11 00 00 00 00 00 00 2E [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 17 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 17 00 7B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 85 [21:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:00:30]wFMCommunicate OK [21:00:30]CreateOFDProtocolMessage done [21:00:30]OFDSenderStorePacket 92540 [21:00:30]StoreOFDPacket docnum=92540 [21:00:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8B 01 00 00 E1 A0 83 01 B9 D6 5A 03 01 00 03 00 77 01 1E 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 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 23 04 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 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 B4 78 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 D1 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 78 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 71 F9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 69 01 00 35 04 06 00 0C 4D 8F 7D 1D 0D 04 9F F8 19 59 81 7B 27 [21:00:30]CheckFolder [21:00:30]dirname=/storage/ofd_packets [21:00:30]CheckFolder done [21:00:30]ProducePacketName [21:00:30]name=ofd_packets/00092540 [21:00:30]NVStorageSaveData ofd_packets/00092540 [21:00:30]File name is /storage/ofd_packets/00092540 [21:00:30]Write 425 bytes [21:00:30]NVStorageSaveData done [21:00:30]OFDSenderStorePacket done [21:00:30]KKMCreateOFDPacket done [21:00:30]NVStorageSaveData kkm_last_timestamp [21:00:30]File name is /storage/kkm_last_timestamp [21:00:30]Write 4 bytes [21:00:30]NVStorageSaveData done [21:00:30]ExternCall_PrintAddStr [21:00:30]wPrintStart [21:00:30]Write to MH i2c: 01 00 00 7C 39 B5 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: 01 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: 01 07 00 [21:00:30]MH_I2C_Read... [21:00:30]OFD Sender: Processing packet 92540 [packets to send 63, broken 62] [21:00:30]ProducePacketName [21:00:30]name=ofd_packets/00092540 [21:00:30]OFD Sender: To server: pG, [21:00:30]CommunicateWithHost lk.salyk.kg:30040 [21:00:30]ConnectInit lk.salyk.kg [21:00:30]Read from MH i2c: 01 07 00 7C 39 00 00 00 00 00 FF 0F CA [21:00:30]RasterBufferAndPrint [21:00:30]line Счет N : (3)127442 [21:00:30]line ИНН: 02508201610067 [21:00:30]line Контрольно-Кассовый Чек [21:00:30]line ПРОДАЖА [21:00:30]line Товар: 54491472 [21:00:30]line Напиток Кока-Кола 0,5л [21:00:30]line 2.000 * 75.00 [21:00:30]line = 150.00 [21:00:30]line НДС 12% НСП 1% [21:00:30]line > о реализуемом товаре [21:00:30]line Товар: 46123428 [21:00:30]line Сигареты Mevius Wind Blue [21:00:30]line 1.000 * 159.00 [21:00:30]line = 159.00 [21:00:30]line НДС 12% НСП 1% [21:00:30]line > о реализуемом товаре [21:00:30]line ИТОГО: 309.00 [21:00:30]line НСП 1% : 2.74 [21:00:30]line НДС 12% : 32.81 [21:00:30]line Наличными: 0.00 [21:00:30]line Безнал.: 309.00 [21:00:30]line Место: АЗС № 5 "Партнер Нефть" [21:00:30]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:00:30]line СНО: Общий режим [21:00:30]line Чек 191 14.09.2024 21:00 [21:00:30]line Смена: 506 ФФД: 1.0 [21:00:30]line ЗНМ: 03000000022 [21:00:30]line РНМ: 0000000000091423 [21:00:30]line Версия ККМ: 001 [21:00:30]line Платежная система: Бакай Банк [21:00:30]line ФМ: 0000000000874692 [21:00:30]line ФД: 92540 [21:00:30]line ФПД: 13527259356429 [21:00:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T210033&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92540&fm=13527259356429&tin=02508201610067®Number=0000000000091423&sum=30900 [21:00:30]line 0 [21:00:30]written 0, free lines is 4095 [21:00:30]Connected sock=10 [21:00:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 8B 01 00 00 E1 A0 83 01 B9 D6 5A 03 01 00 03 00 77 01 1E 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 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 23 04 60 00 8A 04 08 00 34 36 31 32 33 34 32 38 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 B4 78 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 D1 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 78 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 71 F9 E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 69 01 00 35 04 06 00 0C 4D 8F 7D 1D 0D 04 9F F8 19 59 81 7B 27 [21:00:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C3 3C 47 00 34 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7C 69 01 00 F4 03 04 00 EB A1 E5 66 B6 04 01 00 00 95 E9 9C 27 CB D8 D1 A2 [21:00:31]CommunicateWithHost err = 0 [21:00:31]CheckOFDResponse [21:00:31]1017 (14) - 77093643461234 [21:00:31]1041 (16) - 0000000000874692 [21:00:31]1040 (4) - 92540 [21:00:31]1012 (4) - 14.09.2024 14:47 [21:00:31]1206 (1) - 0 [21:00:31]OFD Sender: Remove packet 92540 [21:00:31]ProducePacketName [21:00:31]name=ofd_packets/00092540 [21:00:31]NVStorageDeleteData [21:00:31]Write to MH i2c: 01 00 00 AC 39 E5 [21:00:31]Write i2c OK [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: 01 [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: 01 07 00 [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: 01 07 00 AC 39 00 00 00 00 00 BF 0C B7 [21:00:31]RasterBufferAndPrint [21:00:31]line [21:00:31]line [21:00:31]line [21:00:31]line [21:00:31]line [21:00:31]written 0, free lines is 3269 [21:00:31]MH_Cut [21:00:31]Write to MH i2c: D1 01 00 B3 39 01 BE [21:00:31]Write i2c OK [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: D1 [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: D1 01 00 [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: D1 01 00 B3 39 00 BD [21:00:31]Write to MH i2c: 01 00 00 B4 39 ED [21:00:31]Write i2c OK [21:00:31]MH_I2C_Read... [21:00:31]OFD Sender: No OFD packet to send [21:00:32]*** Cut start [21:00:32]*** Purtial cut [21:00:32]*** Stage 1: CUTSNS_PIN = 1 [21:00:34]Read from MH i2c: 01 [21:00:34]MH_I2C_Read... [21:00:34]*** Stop cut motor [21:00:34]*** Cut end [21:00:34]Read from MH i2c: 01 07 00 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: 01 07 00 B4 39 00 00 00 00 00 FF 0F 02 [21:00:34]process_action close_receipt done [21:00:34]requested_data is exist [21:00:34]produce_requested_data [21:00:34]requested_item fm.sn is exist - process it [21:00:34]wFMCommunicate request_size=4 [21:00:34]MH_SAM_APDU [21:00:34]CAPDU: 80 11 00 00 [21:00:34]Write to MH i2c: E2 08 00 B5 39 80 11 00 00 00 00 00 00 68 [21:00:34]Write i2c OK [21:00:34]MH_I2C_Read... [21:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:34]Read from MH i2c: E2 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 17 00 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 17 00 B5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BF [21:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:00:34]wFMCommunicate OK [21:00:34]requested_item fd.num is exist - process it [21:00:34]SAM_PROTO_GetFieldsCounters [21:00:34]wFMCommunicate request_size=4 [21:00:34]MH_SAM_APDU [21:00:34]CAPDU: 80 13 00 00 [21:00:34]Write to MH i2c: E2 08 00 B6 39 80 13 00 00 00 00 00 00 6B [21:00:34]Write i2c OK [21:00:34]MH_I2C_Read... [21:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:34]Read from MH i2c: E2 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 62 00 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 62 00 B6 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7C 69 01 00 0E 04 04 00 FA 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 A8 [21:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7C 69 01 00 0E 04 04 00 FA 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 [21:00:34]wFMCommunicate OK [21:00:34]SAM_PROTO_GetFieldsCounters done [21:00:34]requested_item shift.num is exist - process it [21:00:34]requested_item shift.opened is exist - process it [21:00:34]req_shift_opened [21:00:34]FM_GetShiftState [21:00:34]SAM_PROTO_GetShiftState [21:00:34]wFMCommunicate request_size=4 [21:00:34]MH_SAM_APDU [21:00:34]CAPDU: 80 13 01 00 [21:00:34]Write to MH i2c: E2 08 00 B7 39 80 13 01 00 00 00 00 00 6D [21:00:34]Write i2c OK [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 [21:00:34]MH_I2C_Read... [21:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:34]Read from MH i2c: E2 0E 00 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 0E 00 B7 39 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 07 [21:00:34]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:00:34]wFMCommunicate OK [21:00:34]SAM_PROTO_GetShiftState done [21:00:34]FM_GetShiftState done [21:00:34]req_shift_opened done [21:00:34]requested_item shift.open_date is exist - process it [21:00:34]req_shift_open_date [21:00:34]req_shift_open_date done [21:00:34]produce_requested_data done [21:00:34]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92540,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:00:34]process_action_free close_receipt [21:00:34]json_value_free [21:00:34]json_value_free done [21:00:34]process_json_proto returns [21:00:34]Send response to host [21:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92540,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:00:34]free response buf [21:00:34]execute_script done [21:00:34]execute_script returns [21:00:34]free content buf [21:00:34]Sock 8.Close socket [21:00:34]Sock 8.Thread stoped [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:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]accept exits with 9 [21:05:46]New connection [21:05:46]New thread 3066801508 created [21:05:46]Thread 3066658148 joined [21:05:46]Waiting for new connection... [21:05:46] Sock 9.Parse request [21:05:46]Sock 9.Check first char [21:05:46]Sock 9.First char is OK [21:05:46]request: POST /json_proto HTTP/1.0 [21:05:46]Method: POST [21:05:46]URL: /json_proto [21:05:46]Method is POST - this is cgi request [21:05:46]url: /json_proto [21:05:46]query_string will be loaded in cgi processing [21:05:46]execute_cgi json_proto POST (null) [21:05:46]execute_cgi path=json_proto method=POST [21:05:46]POST find Content-Length [21:05:46]Host: 172.17.57.71:8080 [21:05:46]Content-Length: 668 [21:05:46]Content-Type: application/json [21:05:46] [21:05:46]POST finish read [21:05:46]Found Content-Length = 668 [21:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127443", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:46]execute_script... [21:05: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)127443", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:46]POST & json_proto [21:05:46]process_json_proto [21:05:46]json parsed OK: [21:05:46]protocol is kg_v1.0 [21:05:46]action value=close_receipt [21:05:46]process_action close_receipt [21:05:46]cmd_close_receipt [21:05:46]MH_GetDate [21:05:46]Write to MH i2c: F0 00 00 B8 39 E0 [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: F0 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: F0 09 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: F0 09 00 B8 39 00 AF FA E5 66 33 3A A4 66 54 [21:05:46]GetLastDocTimeStamp 1726347633 [21:05:46]current date 1726347951 [21:05:46]FM_GetShiftState [21:05:46]SAM_PROTO_GetShiftState [21:05:46]wFMCommunicate request_size=4 [21:05:46]MH_SAM_APDU [21:05:46]CAPDU: 80 13 01 00 [21:05:46]Write to MH i2c: E2 08 00 B9 39 80 13 01 00 00 00 00 00 6F [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:46]Read from MH i2c: E2 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 0E 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 0E 00 B9 39 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 09 [21:05:46]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:05:46]wFMCommunicate OK [21:05:46]SAM_PROTO_GetShiftState done [21:05:46]FM_GetShiftState done [21:05:46]opened in 1726273389 [21:05:46]opened+sec_in_day 1726359789 [21:05:46]quantity*price = 13000 [21:05:46]sum+1 = 13001 [21:05:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 192 14.09.2024 21:05 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92541 ФПД: 3036370527494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T210551&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92541&fm=3036370527494&tin=02508201610067®Number=0000000000091423&sum=13000 0 [21:05:47]StoreToDocumentArchive [21:05:47]shift 506 fd 92541 [21:05:47]save to /storage/0506/doc_00092541 [21:05:47]save last doc name /storage/0506/doc_00092541 to /storage/kkm_last_doc_name [21:05:47]save OK [21:05:47]Clear old archive folders... [21:05:47]ProcessDocumentItem done err = 0, tmpTLVsize=296 [21:05:47]tlvbuf is 00F83220 [21:05:47]SAM_PROTO_ClearQueue [21:05:47]wFMCommunicate request_size=4 [21:05:47]MH_SAM_APDU [21:05:47]CAPDU: 80 09 00 00 [21:05:47]Write to MH i2c: E2 08 00 C6 39 80 09 00 00 00 00 00 00 71 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:47]Read from MH i2c: E2 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: E2 03 00 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: E2 03 00 C6 39 00 90 00 73 [21:05:47]RAPDU: 90 00 [21:05:47]wFMCommunicate OK [21:05:47]SAM_PROTO_ClearQueue done [21:05:47]KKMCreateOFDPacket [21:05:47]OFDProtocolAddRootSTLVToBuf [21:05:47]FM_MakeSignedData [21:05:47]FM_MakeSignedData [21:05:47]SAM_PROTO_SignData [21:05:47]wFMCommunicate request_size=4 [21:05:47]MH_SAM_APDU [21:05:47]CAPDU: 80 0D 01 02 [21:05:47]Write to MH i2c: E2 08 00 C7 39 80 0D 01 02 00 00 00 00 79 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:47]Read from MH i2c: E2 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: E2 03 00 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: E2 03 00 C7 39 00 90 00 74 [21:05:47]RAPDU: 90 00 [21:05:47]wFMCommunicate OK [21:05:47]wFMCommunicate request_size=255 [21:05:47]MH_SAM_APDU [21:05:47]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 AF FA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [21:05:47]Write to MH i2c: E2 02 01 C8 39 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 AF FA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 FE [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: E2 [21:05:47]MH_I2C_Read... [21:05:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:47]Read from MH i2c: E2 03 00 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: E2 03 00 C8 39 00 90 00 75 [21:05:47]RAPDU: 90 00 [21:05:47]wFMCommunicate OK [21:05:47]wFMCommunicate request_size=55 [21:05:47]MH_SAM_APDU [21:05:47]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 69 01 00 35 04 06 00 02 C2 F5 C9 65 06 [21:05:47]Write to MH i2c: E2 3A 00 C9 39 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 69 01 00 35 04 06 00 02 C2 F5 C9 65 06 00 00 A7 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:48]Read from MH i2c: E2 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 C9 39 00 90 00 76 [21:05:48]RAPDU: 90 00 [21:05:48]wFMCommunicate OK [21:05:48]wFMCommunicate request_size=4 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 0D 03 02 [21:05:48]Write to MH i2c: E2 08 00 CA 39 80 0D 03 02 00 00 00 00 7E [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:48]Read from MH i2c: E2 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 0B 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 0B 00 CA 39 00 03 CA B3 23 06 62 7E 1C 90 00 24 [21:05:48]RAPDU: 03 CA B3 23 06 62 7E 1C 90 00 [21:05:48]wFMCommunicate OK [21:05:48]SAM_PROTO_SignData done [21:05:48]FM_MakeSignedData done [21:05:48]CreateOFDProtocolMessage [21:05:48]wFMCommunicate request_size=4 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 11 00 00 [21:05:48]Write to MH i2c: E2 08 00 CB 39 80 11 00 00 00 00 00 00 7E [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:48]Read from MH i2c: E2 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 17 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 17 00 CB 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D5 [21:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:05:48]wFMCommunicate OK [21:05:48]CreateOFDProtocolMessage done [21:05:48]OFDSenderStorePacket 92541 [21:05:48]StoreOFDPacket docnum=92541 [21:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 4A 9B 34 01 03 9E 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 AF FA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 69 01 00 35 04 06 00 02 C2 F5 C9 65 06 03 CA B3 23 06 62 7E 1C [21:05:48]CheckFolder [21:05:48]dirname=/storage/ofd_packets [21:05:48]CheckFolder done [21:05:48]ProducePacketName [21:05:48]name=ofd_packets/00092541 [21:05:48]NVStorageSaveData ofd_packets/00092541 [21:05:48]File name is /storage/ofd_packets/00092541 [21:05:48]Write 346 bytes [21:05:48]NVStorageSaveData done [21:05:48]OFDSenderStorePacket done [21:05:48]KKMCreateOFDPacket done [21:05:48]NVStorageSaveData kkm_last_timestamp [21:05:48]File name is /storage/kkm_last_timestamp [21:05:48]Write 4 bytes [21:05:48]NVStorageSaveData done [21:05:48]ExternCall_PrintAddStr [21:05:48]wPrintStart [21:05:48]Write to MH i2c: 01 00 00 CC 39 05 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 07 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 07 00 CC 39 00 00 00 00 00 FF 0F 1A [21:05:48]RasterBufferAndPrint [21:05:48]line Счет N : (3)127443 [21:05:48]line ИНН: 02508201610067 [21:05:48]line Контрольно-Кассовый Чек [21:05:48]line ПРОДАЖА [21:05:48]line Товар: 4870002329951 [21:05:48]line Напиток Lipton IceTea 1л зел чай Regular [21:05:48]line 1.000 * 130.00 [21:05:48]line = 130.00 [21:05:48]line НДС 12% НСП 1% [21:05:48]line > о реализуемом товаре [21:05:48]line ИТОГО: 130.00 [21:05:48]line НСП 1% : 1.15 [21:05:48]line НДС 12% : 13.80 [21:05:48]line Наличными: 130.00 [21:05:48]line Безнал.: 0.00 [21:05:48]line Место: АЗС № 5 "Партнер Нефть" [21:05:48]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:05:48]line СНО: Общий режим [21:05:48]line Чек 192 14.09.2024 21:05 [21:05:48]line Смена: 506 ФФД: 1.0 [21:05:48]line ЗНМ: 03000000022 [21:05:48]line РНМ: 0000000000091423 [21:05:48]line Версия ККМ: 001 [21:05:48]line ФМ: 0000000000874692 [21:05:48]line ФД: 92541 [21:05:48]line ФПД: 3036370527494 [21:05:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T210551&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92541&fm=3036370527494&tin=02508201610067®Number=0000000000091423&sum=13000 [21:05:48]line 0 [21:05:48]written 0, free lines is 4095 [21:05:48]OFD Sender: Processing packet 92541 [packets to send 63, broken 62] [21:05:48]ProducePacketName [21:05:48]name=ofd_packets/00092541 [21:05:48]OFD Sender: To server: pG, [21:05:48]CommunicateWithHost lk.salyk.kg:30040 [21:05:48]ConnectInit lk.salyk.kg [21:05:48]Connected sock=10 [21:05:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 3C 01 00 00 4A 9B 34 01 03 9E 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 AF FA E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 69 01 00 35 04 06 00 02 C2 F5 C9 65 06 03 CA B3 23 06 62 7E 1C [21:05:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 53 30 47 00 94 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7D 69 01 00 F4 03 04 00 29 A3 E5 66 B6 04 01 00 00 23 E7 1F 94 FA 3D 80 94 [21:05:48]CommunicateWithHost err = 0 [21:05:48]CheckOFDResponse [21:05:48]1017 (14) - 77093643461234 [21:05:48]1041 (16) - 0000000000874692 [21:05:48]1040 (4) - 92541 [21:05:48]1012 (4) - 14.09.2024 14:52 [21:05:48]1206 (1) - 0 [21:05:48]OFD Sender: Remove packet 92541 [21:05:48]ProducePacketName [21:05:48]name=ofd_packets/00092541 [21:05:48]NVStorageDeleteData [21:05:48]Write to MH i2c: 01 00 00 F5 39 2E [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 07 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 07 00 F5 39 00 00 00 00 00 0F 0D 51 [21:05:48]RasterBufferAndPrint [21:05:48]line [21:05:48]line [21:05:48]line [21:05:48]line [21:05:48]line [21:05:48]written 0, free lines is 3350 [21:05:48]MH_Cut [21:05:48]Write to MH i2c: D1 01 00 FC 39 01 07 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: D1 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: D1 01 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: D1 01 00 FC 39 00 06 [21:05:48]Write to MH i2c: 01 00 00 FD 39 36 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:49]OFD Sender: No OFD packet to send [21:05:49]*** Cut start [21:05:49]*** Purtial cut [21:05:49]*** Stage 1: CUTSNS_PIN = 1 [21:05:51]Read from MH i2c: 01 [21:05:51]MH_I2C_Read... [21:05:51]*** Stop cut motor [21:05:51]*** Cut end [21:05:51]Read from MH i2c: 01 07 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: 01 07 00 FD 39 00 00 00 00 00 FF 0F 4B [21:05:51]process_action close_receipt done [21:05:51]requested_data is exist [21:05:51]produce_requested_data [21:05:51]requested_item fm.sn is exist - process it [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 11 00 00 [21:05:51]Write to MH i2c: E2 08 00 FE 39 80 11 00 00 00 00 00 00 B1 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 17 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 17 00 FE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 08 [21:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:05:51]wFMCommunicate OK [21:05:51]requested_item fd.num is exist - process it [21:05:51]SAM_PROTO_GetFieldsCounters [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 13 00 00 [21:05:51]Write to MH i2c: E2 08 00 FF 39 80 13 00 00 00 00 00 00 B4 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 62 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 62 00 FF 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7D 69 01 00 0E 04 04 00 FA 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 F5 [21:05:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7D 69 01 00 0E 04 04 00 FA 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 [21:05:51]wFMCommunicate OK [21:05:51]SAM_PROTO_GetFieldsCounters done [21:05:51]requested_item shift.num is exist - process it [21:05:51]requested_item shift.opened is exist - process it [21:05:51]req_shift_opened [21:05:51]FM_GetShiftState [21:05:51]SAM_PROTO_GetShiftState [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 13 01 00 [21:05:51]Write to MH i2c: E2 08 00 00 3A 80 13 01 00 00 00 00 00 B7 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 0E 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 0E 00 00 3A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 51 [21:05:51]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:05:51]wFMCommunicate OK [21:05:51]SAM_PROTO_GetShiftState done [21:05:51]FM_GetShiftState done [21:05:51]req_shift_opened done [21:05:51]requested_item shift.open_date is exist - process it [21:05:51]req_shift_open_date [21:05:51]req_shift_open_date done [21:05:51]produce_requested_data done [21:05:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92541,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:05:51]process_action_free close_receipt [21:05:51]json_value_free [21:05:51]json_value_free done [21:05:51]process_json_proto returns [21:05:51]Send response to host [21:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92541,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:05:51]free response buf [21:05:51]execute_script done [21:05:51]execute_script returns [21:05:51]free content buf [21:05:51]Sock 9.Close socket [21:05:51]Sock 9.Thread stoped [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:13]accept exits with 8 [21:11:13]New connection [21:11:13]New thread 3066658148 created [21:11:13]Thread 3066801508 joined [21:11:13]Waiting for new connection... [21:11:13] Sock 8.Parse request [21:11:13]Sock 8.Check first char [21:11:13]Sock 8.First char is OK [21:11:13]request: POST /json_proto HTTP/1.0 [21:11:13]Method: POST [21:11:13]URL: /json_proto [21:11:13]Method is POST - this is cgi request [21:11:13]url: /json_proto [21:11:13]query_string will be loaded in cgi processing [21:11:13]execute_cgi json_proto POST (null) [21:11:13]execute_cgi path=json_proto method=POST [21:11:13]POST find Content-Length [21:11:13]Host: 172.17.57.71:8080 [21:11:13]Content-Length: 1154 [21:11:13]Content-Type: application/json [21:11:13] [21:11:13]POST finish read [21:11:13]Found Content-Length = 1154 [21:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127444", "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": "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 }]} ,{ "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" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:13]execute_script... [21:11:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127444", "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": "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 }]} ,{ "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" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:13]POST & json_proto [21:11:13]process_json_proto [21:11:13]json parsed OK: [21:11:13]protocol is kg_v1.0 [21:11:13]action value=close_receipt [21:11:13]process_action close_receipt [21:11:13]cmd_close_receipt [21:11:13]MH_GetDate [21:11:13]Write to MH i2c: F0 00 00 01 3A 2A [21:11:13]Write i2c OK [21:11:13]MH_I2C_Read... [21:11:13]Read from MH i2c: F0 [21:11:13]MH_I2C_Read... [21:11:13]Read from MH i2c: F0 09 00 [21:11:13]MH_I2C_Read... [21:11:13]Read from MH i2c: F0 09 00 01 3A 00 F6 FB E5 66 33 3A A4 66 E6 [21:11:13]GetLastDocTimeStamp 1726347951 [21:11:13]current date 1726348278 [21:11:13]FM_GetShiftState [21:11:13]SAM_PROTO_GetShiftState [21:11:13]wFMCommunicate request_size=4 [21:11:13]MH_SAM_APDU [21:11:13]CAPDU: 80 13 01 00 [21:11:13]Write to MH i2c: E2 08 00 02 3A 80 13 01 00 00 00 00 00 B9 [21:11:13]Write i2c OK [21:11:13]MH_I2C_Read... [21:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:13]Read from MH i2c: E2 [21:11:13]MH_I2C_Read... [21:11:13]Read from MH i2c: E2 0E 00 [21:11:13]MH_I2C_Read... [21:11:13]Read from MH i2c: E2 0E 00 02 3A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 53 [21:11:13]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:11:13]wFMCommunicate OK [21:11:13]SAM_PROTO_GetShiftState done [21:11:13]FM_GetShiftState done [21:11:13]opened in 1726273389 [21:11:13]opened+sec_in_day 1726359789 [21:11:13]quantity*price = 15000 [21:11:13]sum+1 = 15001 [21:11:13]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329937 Напиток Lipton IceTea 1л персик Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 193 14.09.2024 21:11 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92542 ФПД: 89115429301210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T211118&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92542&fm=89115429301210&tin=02508201610067®Number=0000000000091423&sum=32000 0 [21:11:14]StoreToDocumentArchive [21:11:14]shift 506 fd 92542 [21:11:14]save to /storage/0506/doc_00092542 [21:11:14]save last doc name /storage/0506/doc_00092542 to /storage/kkm_last_doc_name [21:11:14]save OK [21:11:14]Clear old archive folders... [21:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=500 [21:11:14]tlvbuf is 01053250 [21:11:14]SAM_PROTO_ClearQueue [21:11:14]wFMCommunicate request_size=4 [21:11:14]MH_SAM_APDU [21:11:14]CAPDU: 80 09 00 00 [21:11:14]Write to MH i2c: E2 08 00 0F 3A 80 09 00 00 00 00 00 00 BB [21:11:14]Write i2c OK [21:11:14]MH_I2C_Read... [21:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:14]Read from MH i2c: E2 [21:11:14]MH_I2C_Read... [21:11:14]Read from MH i2c: E2 03 00 [21:11:14]MH_I2C_Read... [21:11:14]Read from MH i2c: E2 03 00 0F 3A 00 90 00 BD [21:11:14]RAPDU: 90 00 [21:11:14]wFMCommunicate OK [21:11:14]SAM_PROTO_ClearQueue done [21:11:14]KKMCreateOFDPacket [21:11:14]OFDProtocolAddRootSTLVToBuf [21:11:14]FM_MakeSignedData [21:11:14]FM_MakeSignedData [21:11:14]SAM_PROTO_SignData [21:11:14]wFMCommunicate request_size=4 [21:11:14]MH_SAM_APDU [21:11:14]CAPDU: 80 0D 01 02 [21:11:14]Write to MH i2c: E2 08 00 10 3A 80 0D 01 02 00 00 00 00 C3 [21:11:15]Write i2c OK [21:11:15]MH_I2C_Read... [21:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:15]Read from MH i2c: E2 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 03 00 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 03 00 10 3A 00 90 00 BE [21:11:15]RAPDU: 90 00 [21:11:15]wFMCommunicate OK [21:11:15]wFMCommunicate request_size=255 [21:11:15]MH_SAM_APDU [21:11:15]CAPDU: 80 0D 02 02 FA 03 00 F4 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 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 23 04 61 00 8A 04 0D 00 34 37 30 30 [21:11:15]Write to MH i2c: E2 02 01 11 3A 80 0D 02 02 FA 00 03 00 F4 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 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 23 04 61 00 8A 04 0D 00 34 37 30 30 00 00 02 [21:11:15]Write i2c OK [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 [21:11:15]MH_I2C_Read... [21:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:15]Read from MH i2c: E2 03 00 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 03 00 11 3A 00 90 00 BF [21:11:15]RAPDU: 90 00 [21:11:15]wFMCommunicate OK [21:11:15]wFMCommunicate request_size=255 [21:11:15]MH_SAM_APDU [21:11:15]CAPDU: 80 0D 02 02 FA 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 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 C1 00 00 00 F4 03 04 00 F6 FB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 69 01 00 35 04 06 00 51 0C [21:11:15]Write to MH i2c: E2 02 01 12 3A 80 0D 02 02 FA 00 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 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 C1 00 00 00 F4 03 04 00 F6 FB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 69 01 00 35 04 06 00 51 0C 00 00 C4 [21:11:15]Write i2c OK [21:11:15]MH_I2C_Read... [21:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:15]Read from MH i2c: E2 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 03 00 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 03 00 12 3A 00 90 00 C0 [21:11:15]RAPDU: 90 00 [21:11:15]wFMCommunicate OK [21:11:15]wFMCommunicate request_size=9 [21:11:15]MH_SAM_APDU [21:11:15]CAPDU: 80 0D 02 02 04 CD 81 EB DA [21:11:15]Write to MH i2c: E2 0C 00 13 3A 80 0D 02 02 04 00 CD 81 EB DA 00 00 E2 [21:11:15]Write i2c OK [21:11:15]MH_I2C_Read... [21:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:15]Read from MH i2c: E2 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 03 00 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 03 00 13 3A 00 90 00 C1 [21:11:15]RAPDU: 90 00 [21:11:15]wFMCommunicate OK [21:11:15]wFMCommunicate request_size=4 [21:11:15]MH_SAM_APDU [21:11:15]CAPDU: 80 0D 03 02 [21:11:15]Write to MH i2c: E2 08 00 14 3A 80 0D 03 02 00 00 00 00 C9 [21:11:15]Write i2c OK [21:11:15]MH_I2C_Read... [21:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:16]Read from MH i2c: E2 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 0B 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 0B 00 14 3A 00 71 28 BC 92 A5 7A FF 95 90 00 64 [21:11:16]RAPDU: 71 28 BC 92 A5 7A FF 95 90 00 [21:11:16]wFMCommunicate OK [21:11:16]SAM_PROTO_SignData done [21:11:16]FM_MakeSignedData done [21:11:16]CreateOFDProtocolMessage [21:11:16]wFMCommunicate request_size=4 [21:11:16]MH_SAM_APDU [21:11:16]CAPDU: 80 11 00 00 [21:11:16]Write to MH i2c: E2 08 00 15 3A 80 11 00 00 00 00 00 00 C9 [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:16]Read from MH i2c: E2 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 17 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 17 00 15 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 20 [21:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:11:16]wFMCommunicate OK [21:11:16]CreateOFDProtocolMessage done [21:11:16]OFDSenderStorePacket 92542 [21:11:16]StoreOFDPacket docnum=92542 [21:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 08 02 00 00 C7 B1 00 02 8E 84 5A 03 01 00 03 00 F4 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 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 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 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 C1 00 00 00 F4 03 04 00 F6 FB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 69 01 00 35 04 06 00 51 0C CD 81 EB DA 71 28 BC 92 A5 7A FF 95 [21:11:16]CheckFolder [21:11:16]dirname=/storage/ofd_packets [21:11:16]CheckFolder done [21:11:16]ProducePacketName [21:11:16]name=ofd_packets/00092542 [21:11:16]NVStorageSaveData ofd_packets/00092542 [21:11:16]File name is /storage/ofd_packets/00092542 [21:11:16]Write 550 bytes [21:11:16]NVStorageSaveData done [21:11:16]OFDSenderStorePacket done [21:11:16]KKMCreateOFDPacket done [21:11:16]NVStorageSaveData kkm_last_timestamp [21:11:16]File name is /storage/kkm_last_timestamp [21:11:16]Write 4 bytes [21:11:16]NVStorageSaveData done [21:11:16]ExternCall_PrintAddStr [21:11:16]wPrintStart [21:11:16]Write to MH i2c: 01 00 00 16 3A 50 [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 07 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 07 00 16 3A 00 00 00 00 00 FF 0F 65 [21:11:16]RasterBufferAndPrint [21:11:16]line Счет N : (3)127444 [21:11:16]line ИНН: 02508201610067 [21:11:16]line Контрольно-Кассовый Чек [21:11:16]line ПРОДАЖА [21:11:16]line Товар: 4640030091645 [21:11:16]line Сигареты ESSE Exchange M [21:11:16]line 1.000 * 150.00 [21:11:16]line = 150.00 [21:11:16]line НДС 12% НСП 1% [21:11:16]line > о реализуемом товаре [21:11:16]line Товар: 4870002329937 [21:11:16]line Напиток Lipton IceTea 1л персик Regular [21:11:16]line 1.000 * 130.00 [21:11:16]line = 130.00 [21:11:16]line НДС 12% НСП 1% [21:11:16]line > о реализуемом товаре [21:11:16]line Товар: 4700000160211 [21:11:16]line Вода Легенда 0,5л [21:11:16]line 1.000 * 40.00 [21:11:16]line = 40.00 [21:11:16]line НДС 12% НСП 1% [21:11:16]line > о реализуемом товаре [21:11:16]line ИТОГО: 320.00 [21:11:16]line НСП 1% : 2.83 [21:11:16]line НДС 12% : 33.98 [21:11:16]line Наличными: 320.00 [21:11:16]line Безнал.: 0.00 [21:11:16]line Место: АЗС № 5 "Партнер Нефть" [21:11:16]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:11:16]line СНО: Общий режим [21:11:16]line Чек 193 14.09.2024 21:11 [21:11:16]line Смена: 506 ФФД: 1.0 [21:11:16]line ЗНМ: 03000000022 [21:11:16]line РНМ: 0000000000091423 [21:11:16]line Версия ККМ: 001 [21:11:16]line ФМ: 0000000000874692 [21:11:16]line ФД: 92542 [21:11:16]line ФПД: 89115429301210 [21:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T211118&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92542&fm=89115429301210&tin=02508201610067®Number=0000000000091423&sum=32000 [21:11:16]line 0 [21:11:16]written 0, free lines is 4095 [21:11:16]OFD Sender: Processing packet 92542 [packets to send 63, broken 62] [21:11:16]ProducePacketName [21:11:16]name=ofd_packets/00092542 [21:11:16]OFD Sender: To server: pG, [21:11:16]CommunicateWithHost lk.salyk.kg:30040 [21:11:16]ConnectInit lk.salyk.kg [21:11:16]Connected sock=10 [21:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 08 02 00 00 C7 B1 00 02 8E 84 5A 03 01 00 03 00 F4 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 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 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 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 C1 00 00 00 F4 03 04 00 F6 FB E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 69 01 00 35 04 06 00 51 0C CD 81 EB DA 71 28 BC 92 A5 7A FF 95 [21:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 2F E3 47 00 0C 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7E 69 01 00 F4 03 04 00 71 A4 E5 66 B6 04 01 00 00 5D E5 1D F5 72 7D 37 84 [21:11:16]CommunicateWithHost err = 0 [21:11:16]CheckOFDResponse [21:11:16]1017 (14) - 77093643461234 [21:11:16]1041 (16) - 0000000000874692 [21:11:16]1040 (4) - 92542 [21:11:16]1012 (4) - 14.09.2024 14:57 [21:11:16]1206 (1) - 0 [21:11:16]OFD Sender: Remove packet 92542 [21:11:16]ProducePacketName [21:11:16]name=ofd_packets/00092542 [21:11:16]NVStorageDeleteData [21:11:16]Write to MH i2c: 01 00 00 4B 3A 85 [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 07 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 07 00 4B 3A 00 00 00 00 00 CA 0C 62 [21:11:16]RasterBufferAndPrint [21:11:16]line [21:11:16]line [21:11:16]line [21:11:16]line [21:11:16]line [21:11:16]written 0, free lines is 3283 [21:11:16]MH_Cut [21:11:16]Write to MH i2c: D1 01 00 52 3A 01 5E [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: D1 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: D1 01 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: D1 01 00 52 3A 00 5D [21:11:16]Write to MH i2c: 01 00 00 53 3A 8D [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]OFD Sender: No OFD packet to send [21:11:17]*** Cut start [21:11:17]*** Purtial cut [21:11:17]*** Stage 1: CUTSNS_PIN = 1 [21:11:19]Read from MH i2c: 01 [21:11:19]MH_I2C_Read... [21:11:19]*** Stop cut motor [21:11:19]*** Cut end [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 53 3A 00 00 00 00 00 FF 0F A2 [21:11:19]process_action close_receipt done [21:11:19]requested_data is exist [21:11:19]produce_requested_data [21:11:19]requested_item fm.sn is exist - process it [21:11:19]wFMCommunicate request_size=4 [21:11:19]MH_SAM_APDU [21:11:19]CAPDU: 80 11 00 00 [21:11:19]Write to MH i2c: E2 08 00 54 3A 80 11 00 00 00 00 00 00 08 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 17 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 17 00 54 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5F [21:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:11:19]wFMCommunicate OK [21:11:19]requested_item fd.num is exist - process it [21:11:19]SAM_PROTO_GetFieldsCounters [21:11:19]wFMCommunicate request_size=4 [21:11:19]MH_SAM_APDU [21:11:19]CAPDU: 80 13 00 00 [21:11:19]Write to MH i2c: E2 08 00 55 3A 80 13 00 00 00 00 00 00 0B [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 62 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 62 00 55 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7E 69 01 00 0E 04 04 00 FA 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 50 [21:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7E 69 01 00 0E 04 04 00 FA 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 [21:11:19]wFMCommunicate OK [21:11:19]SAM_PROTO_GetFieldsCounters done [21:11:19]requested_item shift.num is exist - process it [21:11:19]requested_item shift.opened is exist - process it [21:11:19]req_shift_opened [21:11:19]FM_GetShiftState [21:11:19]SAM_PROTO_GetShiftState [21:11:19]wFMCommunicate request_size=4 [21:11:19]MH_SAM_APDU [21:11:19]CAPDU: 80 13 01 00 [21:11:19]Write to MH i2c: E2 08 00 56 3A 80 13 01 00 00 00 00 00 0D [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 0E 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 0E 00 56 3A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A7 [21:11:19]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:11:19]wFMCommunicate OK [21:11:19]SAM_PROTO_GetShiftState done [21:11:19]FM_GetShiftState done [21:11:19]req_shift_opened done [21:11:19]requested_item shift.open_date is exist - process it [21:11:19]req_shift_open_date [21:11:19]req_shift_open_date done [21:11:19]produce_requested_data done [21:11:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92542,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:11:19]process_action_free close_receipt [21:11:19]json_value_free [21:11:19]json_value_free done [21:11:19]process_json_proto returns [21:11:19]Send response to host [21:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92542,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:11:19]free response buf [21:11:19]execute_script done [21:11:19]execute_script returns [21:11:19]free content buf [21:11:19]Sock 8.Close socket [21:11:19]Sock 8.Thread stoped [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [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:04]accept exits with 9 [21:18:04]New connection [21:18:04]New thread 3066801508 created [21:18:04]Thread 3066658148 joined [21:18:04]Waiting for new connection... [21:18:04] Sock 9.Parse request [21:18:04]Sock 9.Check first char [21:18:04]Sock 9.First char is OK [21:18:04]request: POST /json_proto HTTP/1.0 [21:18:04]Method: POST [21:18:04]URL: /json_proto [21:18:04]Method is POST - this is cgi request [21:18:04]url: /json_proto [21:18:04]query_string will be loaded in cgi processing [21:18:04]execute_cgi json_proto POST (null) [21:18:04]execute_cgi path=json_proto method=POST [21:18:04]POST find Content-Length [21:18:04]Host: 172.17.57.71:8080 [21:18:04]Content-Length: 1404 [21:18:04]Content-Type: application/json [21:18:04] [21:18:04]POST finish read [21:18:04]Found Content-Length = 1404 [21:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127445", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:04]execute_script... [21:18:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127445", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:04]POST & json_proto [21:18:04]process_json_proto [21:18:04]json parsed OK: [21:18:04]protocol is kg_v1.0 [21:18:04]action value=close_receipt [21:18:04]process_action close_receipt [21:18:04]cmd_close_receipt [21:18:04]MH_GetDate [21:18:04]Write to MH i2c: F0 00 00 57 3A 80 [21:18:04]Write i2c OK [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: F0 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: F0 09 00 [21:18:04]MH_I2C_Read... [21:18:04]Read from MH i2c: F0 09 00 57 3A 00 91 FD E5 66 33 3A A4 66 D9 [21:18:04]GetLastDocTimeStamp 1726348278 [21:18:04]current date 1726348689 [21:18:04]FM_GetShiftState [21:18:04]SAM_PROTO_GetShiftState [21:18:04]wFMCommunicate request_size=4 [21:18:04]MH_SAM_APDU [21:18:04]CAPDU: 80 13 01 00 [21:18:04]Write to MH i2c: E2 08 00 58 3A 80 13 01 00 00 00 00 00 0F [21:18:04]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 0E 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 0E 00 58 3A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A9 [21:18:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:18:05]wFMCommunicate OK [21:18:05]SAM_PROTO_GetShiftState done [21:18:05]FM_GetShiftState done [21:18:05]opened in 1726273389 [21:18:05]opened+sec_in_day 1726359789 [21:18:05]quantity*price = 19500 [21:18:05]sum+1 = 19501 [21:18:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46116482 Жев Orbit ягодный микс 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 370.00 НСП 1% : 3.28 НДС 12% : 39.29 Наличными: 0.00 Безнал.: 370.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 194 14.09.2024 21:18 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92543 ФПД: 105567826520974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T211810&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92543&fm=105567826520974&tin=02508201610067®Number=0000000000091423&sum=37000 0 [21:18:06]StoreToDocumentArchive [21:18:06]shift 506 fd 92543 [21:18:06]save to /storage/0506/doc_00092543 [21:18:06]save last doc name /storage/0506/doc_00092543 to /storage/kkm_last_doc_name [21:18:06]save OK [21:18:06]Clear old archive folders... [21:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=502 [21:18:06]tlvbuf is 010E9800 [21:18:06]SAM_PROTO_ClearQueue [21:18:06]wFMCommunicate request_size=4 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 09 00 00 [21:18:06]Write to MH i2c: E2 08 00 65 3A 80 09 00 00 00 00 00 00 11 [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:06]Read from MH i2c: E2 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 65 3A 00 90 00 13 [21:18:06]RAPDU: 90 00 [21:18:06]wFMCommunicate OK [21:18:06]SAM_PROTO_ClearQueue done [21:18:06]KKMCreateOFDPacket [21:18:06]OFDProtocolAddRootSTLVToBuf [21:18:06]FM_MakeSignedData [21:18:06]FM_MakeSignedData [21:18:06]SAM_PROTO_SignData [21:18:06]wFMCommunicate request_size=4 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 0D 01 02 [21:18:06]Write to MH i2c: E2 08 00 66 3A 80 0D 01 02 00 00 00 00 19 [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:06]Read from MH i2c: E2 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 66 3A 00 90 00 14 [21:18:06]RAPDU: 90 00 [21:18:06]wFMCommunicate OK [21:18:06]wFMCommunicate request_size=255 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 23 04 63 00 8A 04 08 00 34 36 31 31 [21:18:06]Write to MH i2c: E2 02 01 67 3A 80 0D 02 02 FA 00 03 00 F6 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 23 04 63 00 8A 04 08 00 34 36 31 31 00 00 B8 [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:06]Read from MH i2c: E2 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 67 3A 00 90 00 15 [21:18:06]RAPDU: 90 00 [21:18:06]wFMCommunicate OK [21:18:06]wFMCommunicate request_size=255 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 0D 02 02 FA 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 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 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 92 FD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 69 01 00 35 04 06 00 [21:18:06]Write to MH i2c: E2 02 01 68 3A 80 0D 02 02 FA 00 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 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 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 92 FD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 69 01 00 35 04 06 00 00 00 2C [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:06]Read from MH i2c: E2 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 68 3A 00 90 00 16 [21:18:06]RAPDU: 90 00 [21:18:06]wFMCommunicate OK [21:18:06]wFMCommunicate request_size=11 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 0D 02 02 06 60 03 6C CC AB 8E [21:18:06]Write to MH i2c: E2 0E 00 69 3A 80 0D 02 02 06 00 60 03 6C CC AB 8E 00 00 FD [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:06]Read from MH i2c: E2 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 69 3A 00 90 00 17 [21:18:06]RAPDU: 90 00 [21:18:06]wFMCommunicate OK [21:18:06]wFMCommunicate request_size=4 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 0D 03 02 [21:18:06]Write to MH i2c: E2 08 00 6A 3A 80 0D 03 02 00 00 00 00 1F [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:06]Read from MH i2c: E2 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 0B 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 0B 00 6A 3A 00 3B C3 D5 55 1A 75 D4 09 90 00 B4 [21:18:06]RAPDU: 3B C3 D5 55 1A 75 D4 09 90 00 [21:18:06]wFMCommunicate OK [21:18:06]SAM_PROTO_SignData done [21:18:06]FM_MakeSignedData done [21:18:06]CreateOFDProtocolMessage [21:18:06]wFMCommunicate request_size=4 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 11 00 00 [21:18:06]Write to MH i2c: E2 08 00 6B 3A 80 11 00 00 00 00 00 00 1F [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 6B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 76 [21:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:18:07]wFMCommunicate OK [21:18:07]CreateOFDProtocolMessage done [21:18:07]OFDSenderStorePacket 92543 [21:18:07]StoreOFDPacket docnum=92543 [21:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0A 02 00 00 AA 05 02 02 92 5D 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 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 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 92 FD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 69 01 00 35 04 06 00 60 03 6C CC AB 8E 3B C3 D5 55 1A 75 D4 09 [21:18:07]CheckFolder [21:18:07]dirname=/storage/ofd_packets [21:18:07]CheckFolder done [21:18:07]ProducePacketName [21:18:07]name=ofd_packets/00092543 [21:18:07]NVStorageSaveData ofd_packets/00092543 [21:18:07]File name is /storage/ofd_packets/00092543 [21:18:07]Write 552 bytes [21:18:07]NVStorageSaveData done [21:18:07]OFDSenderStorePacket done [21:18:07]KKMCreateOFDPacket done [21:18:07]NVStorageSaveData kkm_last_timestamp [21:18:07]File name is /storage/kkm_last_timestamp [21:18:07]Write 4 bytes [21:18:07]NVStorageSaveData done [21:18:07]ExternCall_PrintAddStr [21:18:07]wPrintStart [21:18:07]Write to MH i2c: 01 00 00 6C 3A A6 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 6C 3A 00 00 00 00 00 FF 0F BB [21:18:07]RasterBufferAndPrint [21:18:07]line Счет N : (3)127445 [21:18:07]line ИНН: 02508201610067 [21:18:07]line Контрольно-Кассовый Чек [21:18:07]line ПРОДАЖА [21:18:07]line Товар: 58411125749 [21:18:07]line Те самые макарон [21:18:07]line 1.000 * 195.00 [21:18:07]line = 195.00 [21:18:07]line НДС 12% НСП 1% [21:18:07]line > о реализуемом товаре [21:18:07]line Товар: 2000032780015 [21:18:07]line Слойка DC треугольная курица 110г [21:18:07]line 2.000 * 65.00 [21:18:07]line = 130.00 [21:18:07]line НДС 12% НСП 1% [21:18:07]line > о реализуемом товаре [21:18:07]line Товар: 46116482 [21:18:07]line Жев Orbit ягодный микс [21:18:07]line 1.000 * 45.00 [21:18:07]line = 45.00 [21:18:07]line НДС 12% НСП 1% [21:18:07]line > о реализуемом товаре [21:18:07]line ИТОГО: 370.00 [21:18:07]line НСП 1% : 3.28 [21:18:07]line НДС 12% : 39.29 [21:18:07]line Наличными: 0.00 [21:18:07]line Безнал.: 370.00 [21:18:07]line Место: АЗС № 5 "Партнер Нефть" [21:18:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:18:07]line СНО: Общий режим [21:18:07]line Чек 194 14.09.2024 21:18 [21:18:07]line Смена: 506 ФФД: 1.0 [21:18:07]line ЗНМ: 03000000022 [21:18:07]line РНМ: 0000000000091423 [21:18:07]line Версия ККМ: 001 [21:18:07]line Платежная система: Бакай Банк [21:18:07]line ФМ: 0000000000874692 [21:18:07]line ФД: 92543 [21:18:07]line ФПД: 105567826520974 [21:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T211810&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92543&fm=105567826520974&tin=02508201610067®Number=0000000000091423&sum=37000 [21:18:07]line 0 [21:18:07]OFD Sender: Processing packet 92543 [packets to send 63, broken 62] [21:18:07]ProducePacketName [21:18:07]name=ofd_packets/00092543 [21:18:07]OFD Sender: To server: pG, [21:18:07]CommunicateWithHost lk.salyk.kg:30040 [21:18:07]ConnectInit lk.salyk.kg [21:18:07]written 0, free lines is 4095 [21:18:07]Connected sock=10 [21:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0A 02 00 00 AA 05 02 02 92 5D 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 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 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 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 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 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 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 92 FD E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 69 01 00 35 04 06 00 60 03 6C CC AB 8E 3B C3 D5 55 1A 75 D4 09 [21:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 7E AA 47 00 7E 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 7F 69 01 00 F4 03 04 00 0C A6 E5 66 B6 04 01 00 00 94 1F 9C 80 46 54 2C 25 [21:18:07]CommunicateWithHost err = 0 [21:18:07]CheckOFDResponse [21:18:07]1017 (14) - 77093643461234 [21:18:07]1041 (16) - 0000000000874692 [21:18:07]1040 (4) - 92543 [21:18:07]1012 (4) - 14.09.2024 15:04 [21:18:07]1206 (1) - 0 [21:18:07]OFD Sender: Remove packet 92543 [21:18:07]ProducePacketName [21:18:07]name=ofd_packets/00092543 [21:18:07]NVStorageDeleteData [21:18:07]Write to MH i2c: 01 00 00 A3 3A DD [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 A3 3A 00 00 00 00 00 74 0C 64 [21:18:07]RasterBufferAndPrint [21:18:07]line [21:18:07]line [21:18:07]line [21:18:07]line [21:18:07]line [21:18:07]written 0, free lines is 3198 [21:18:07]MH_Cut [21:18:07]Write to MH i2c: D1 01 00 AA 3A 01 B6 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: D1 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: D1 01 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: D1 01 00 AA 3A 00 B5 [21:18:07]Write to MH i2c: 01 00 00 AB 3A E5 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:08]OFD Sender: No OFD packet to send [21:18:08]*** Cut start [21:18:08]*** Purtial cut [21:18:08]*** Stage 1: CUTSNS_PIN = 1 [21:18:10]Read from MH i2c: 01 [21:18:10]MH_I2C_Read... [21:18:10]*** Stop cut motor [21:18:10]*** Cut end [21:18:10]Read from MH i2c: 01 07 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: 01 07 00 AB 3A 00 00 00 00 00 FF 0F FA [21:18:10]process_action close_receipt done [21:18:10]requested_data is exist [21:18:10]produce_requested_data [21:18:10]requested_item fm.sn is exist - process it [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 11 00 00 [21:18:10]Write to MH i2c: E2 08 00 AC 3A 80 11 00 00 00 00 00 00 60 [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 17 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 17 00 AC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B7 [21:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:18:10]wFMCommunicate OK [21:18:10]requested_item fd.num is exist - process it [21:18:10]SAM_PROTO_GetFieldsCounters [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 13 00 00 [21:18:10]Write to MH i2c: E2 08 00 AD 3A 80 13 00 00 00 00 00 00 63 [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 62 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 62 00 AD 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7F 69 01 00 0E 04 04 00 FA 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 AC [21:18:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 7F 69 01 00 0E 04 04 00 FA 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 [21:18:10]wFMCommunicate OK [21:18:10]SAM_PROTO_GetFieldsCounters done [21:18:10]requested_item shift.num is exist - process it [21:18:10]requested_item shift.opened is exist - process it [21:18:10]req_shift_opened [21:18:10]FM_GetShiftState [21:18:10]SAM_PROTO_GetShiftState [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 13 01 00 [21:18:10]Write to MH i2c: E2 08 00 AE 3A 80 13 01 00 00 00 00 00 65 [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 0E 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 0E 00 AE 3A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 FF [21:18:10]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:18:10]wFMCommunicate OK [21:18:10]SAM_PROTO_GetShiftState done [21:18:10]FM_GetShiftState done [21:18:10]req_shift_opened done [21:18:10]requested_item shift.open_date is exist - process it [21:18:10]req_shift_open_date [21:18:10]req_shift_open_date done [21:18:10]produce_requested_data done [21:18:10]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92543,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:18:10]process_action_free close_receipt [21:18:10]json_value_free [21:18:10]json_value_free done [21:18:10]process_json_proto returns [21:18:10]Send response to host [21:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92543,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:18:10]free response buf [21:18:10]execute_script done [21:18:10]execute_script returns [21:18:10]free content buf [21:18:10]Sock 9.Close socket [21:18:10]Sock 9.Thread stoped [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:45]accept exits with 8 [21:24:45]New connection [21:24:45]New thread 3066658148 created [21:24:45]Thread 3066801508 joined [21:24:45]Waiting for new connection... [21:24:45] Sock 8.Parse request [21:24:45]Sock 8.Check first char [21:24:45]Sock 8.First char is OK [21:24:45]request: POST /json_proto HTTP/1.0 [21:24:45]Method: POST [21:24:45]URL: /json_proto [21:24:45]Method is POST - this is cgi request [21:24:45]url: /json_proto [21:24:45]query_string will be loaded in cgi processing [21:24:45]execute_cgi json_proto POST (null) [21:24:45]execute_cgi path=json_proto method=POST [21:24:45]POST find Content-Length [21:24:45]Host: 172.17.57.71:8080 [21:24:45]Content-Length: 632 [21:24:45]Content-Type: application/json [21:24:45] [21:24:45]POST finish read [21:24:45]Found Content-Length = 632 [21:24:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127446", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:45]execute_script... [21:24: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)127446", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:45]POST & json_proto [21:24:45]process_json_proto [21:24:45]json parsed OK: [21:24:45]protocol is kg_v1.0 [21:24:45]action value=close_receipt [21:24:45]process_action close_receipt [21:24:45]cmd_close_receipt [21:24:45]MH_GetDate [21:24:45]Write to MH i2c: F0 00 00 AF 3A D8 [21:24:45]Write i2c OK [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: F0 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: F0 09 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: F0 09 00 AF 3A 00 22 FF E5 66 33 3A A4 66 C4 [21:24:45]GetLastDocTimeStamp 1726348690 [21:24:45]current date 1726349090 [21:24:45]FM_GetShiftState [21:24:45]SAM_PROTO_GetShiftState [21:24:45]wFMCommunicate request_size=4 [21:24:45]MH_SAM_APDU [21:24:45]CAPDU: 80 13 01 00 [21:24:45]Write to MH i2c: E2 08 00 B0 3A 80 13 01 00 00 00 00 00 67 [21:24:45]Write i2c OK [21:24:45]MH_I2C_Read... [21:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:45]Read from MH i2c: E2 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 0E 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 0E 00 B0 3A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 01 [21:24:45]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:24:45]wFMCommunicate OK [21:24:45]SAM_PROTO_GetShiftState done [21:24:45]FM_GetShiftState done [21:24:45]opened in 1726273389 [21:24:45]opened+sec_in_day 1726359789 [21:24:45]quantity*price = 16000 [21:24:45]sum+1 = 16001 [21:24:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 195 14.09.2024 21:24 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92544 ФПД: 89823759668309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T212450&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92544&fm=89823759668309&tin=02508201610067®Number=0000000000091423&sum=16000 0 [21:24:46]StoreToDocumentArchive [21:24:46]shift 506 fd 92544 [21:24:46]save to /storage/0506/doc_00092544 [21:24:46]save last doc name /storage/0506/doc_00092544 to /storage/kkm_last_doc_name [21:24:46]save OK [21:24:46]Clear old archive folders... [21:24:46]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:24:46]tlvbuf is 0110DBC0 [21:24:46]SAM_PROTO_ClearQueue [21:24:46]wFMCommunicate request_size=4 [21:24:46]MH_SAM_APDU [21:24:46]CAPDU: 80 09 00 00 [21:24:46]Write to MH i2c: E2 08 00 BD 3A 80 09 00 00 00 00 00 00 69 [21:24:46]Write i2c OK [21:24:46]MH_I2C_Read... [21:24:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:46]Read from MH i2c: E2 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 03 00 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 03 00 BD 3A 00 90 00 6B [21:24:46]RAPDU: 90 00 [21:24:46]wFMCommunicate OK [21:24:46]SAM_PROTO_ClearQueue done [21:24:46]KKMCreateOFDPacket [21:24:46]OFDProtocolAddRootSTLVToBuf [21:24:46]FM_MakeSignedData [21:24:46]FM_MakeSignedData [21:24:46]SAM_PROTO_SignData [21:24:46]wFMCommunicate request_size=4 [21:24:46]MH_SAM_APDU [21:24:46]CAPDU: 80 0D 01 02 [21:24:46]Write to MH i2c: E2 08 00 BE 3A 80 0D 01 02 00 00 00 00 71 [21:24:46]Write i2c OK [21:24:46]MH_I2C_Read... [21:24:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:46]Read from MH i2c: E2 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 03 00 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 03 00 BE 3A 00 90 00 6C [21:24:46]RAPDU: 90 00 [21:24:46]wFMCommunicate OK [21:24:46]wFMCommunicate request_size=255 [21:24:46]MH_SAM_APDU [21:24:46]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 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 22 FF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 [21:24:46]Write to MH i2c: E2 02 01 BF 3A 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 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 22 FF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 00 00 BB [21:24:46]Write i2c OK [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 [21:24:46]MH_I2C_Read... [21:24:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:46]Read from MH i2c: E2 03 00 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 03 00 BF 3A 00 90 00 6D [21:24:46]RAPDU: 90 00 [21:24:46]wFMCommunicate OK [21:24:46]wFMCommunicate request_size=35 [21:24:46]MH_SAM_APDU [21:24:46]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 80 69 01 00 35 04 06 00 51 B1 B9 49 94 55 [21:24:46]Write to MH i2c: E2 26 00 C0 3A 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 80 69 01 00 35 04 06 00 51 B1 B9 49 94 55 00 00 42 [21:24:46]Write i2c OK [21:24:46]MH_I2C_Read... [21:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:47]Read from MH i2c: E2 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: E2 03 00 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: E2 03 00 C0 3A 00 90 00 6E [21:24:47]RAPDU: 90 00 [21:24:47]wFMCommunicate OK [21:24:47]wFMCommunicate request_size=4 [21:24:47]MH_SAM_APDU [21:24:47]CAPDU: 80 0D 03 02 [21:24:47]Write to MH i2c: E2 08 00 C1 3A 80 0D 03 02 00 00 00 00 76 [21:24:47]Write i2c OK [21:24:47]MH_I2C_Read... [21:24:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:47]Read from MH i2c: E2 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: E2 0B 00 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: E2 0B 00 C1 3A 00 1F 79 EA F4 FD 4A 3A F8 90 00 66 [21:24:47]RAPDU: 1F 79 EA F4 FD 4A 3A F8 90 00 [21:24:47]wFMCommunicate OK [21:24:47]SAM_PROTO_SignData done [21:24:47]FM_MakeSignedData done [21:24:47]CreateOFDProtocolMessage [21:24:47]wFMCommunicate request_size=4 [21:24:47]MH_SAM_APDU [21:24:47]CAPDU: 80 11 00 00 [21:24:47]Write to MH i2c: E2 08 00 C2 3A 80 11 00 00 00 00 00 00 76 [21:24:47]Write i2c OK [21:24:47]MH_I2C_Read... [21:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:47]Read from MH i2c: E2 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: E2 17 00 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: E2 17 00 C2 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 CD [21:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:24:47]wFMCommunicate OK [21:24:47]CreateOFDProtocolMessage done [21:24:47]OFDSenderStorePacket 92544 [21:24:47]StoreOFDPacket docnum=92544 [21:24:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 BB C3 20 01 92 BE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 22 FF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 80 69 01 00 35 04 06 00 51 B1 B9 49 94 55 1F 79 EA F4 FD 4A 3A F8 [21:24:47]CheckFolder [21:24:47]dirname=/storage/ofd_packets [21:24:47]CheckFolder done [21:24:47]ProducePacketName [21:24:47]name=ofd_packets/00092544 [21:24:47]NVStorageSaveData ofd_packets/00092544 [21:24:47]File name is /storage/ofd_packets/00092544 [21:24:47]Write 326 bytes [21:24:47]NVStorageSaveData done [21:24:47]OFDSenderStorePacket done [21:24:47]KKMCreateOFDPacket done [21:24:47]NVStorageSaveData kkm_last_timestamp [21:24:47]File name is /storage/kkm_last_timestamp [21:24:47]Write 4 bytes [21:24:47]NVStorageSaveData done [21:24:47]ExternCall_PrintAddStr [21:24:47]wPrintStart [21:24:47]Write to MH i2c: 01 00 00 C3 3A FD [21:24:47]Write i2c OK [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: 01 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: 01 07 00 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: 01 07 00 C3 3A 00 00 00 00 00 FF 0F 12 [21:24:47]RasterBufferAndPrint [21:24:47]line Счет N : (3)127446 [21:24:47]line ИНН: 02508201610067 [21:24:47]line Контрольно-Кассовый Чек [21:24:47]line ПРОДАЖА [21:24:47]line Товар: 4780022460452 [21:24:47]line Антифриз Yumiko gold 1кг [21:24:47]line 1.000 * 160.00 [21:24:47]line = 160.00 [21:24:47]line НДС 12% НСП 1% [21:24:47]line > о реализуемом товаре [21:24:47]line ИТОГО: 160.00 [21:24:47]line НСП 1% : 1.42 [21:24:47]line НДС 12% : 16.99 [21:24:47]line Наличными: 160.00 [21:24:47]line Безнал.: 0.00 [21:24:47]line Место: АЗС № 5 "Партнер Нефть" [21:24:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:24:47]line СНО: Общий режим [21:24:47]line Чек 195 14.09.2024 21:24 [21:24:47]line Смена: 506 ФФД: 1.0 [21:24:47]line ЗНМ: 03000000022 [21:24:47]line РНМ: 0000000000091423 [21:24:47]line Версия ККМ: 001 [21:24:47]line ФМ: 0000000000874692 [21:24:47]line ФД: 92544 [21:24:47]line ФПД: 89823759668309 [21:24:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T212450&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92544&fm=89823759668309&tin=02508201610067®Number=0000000000091423&sum=16000 [21:24:47]line 0 [21:24:47]OFD Sender: Processing packet 92544 [packets to send 63, broken 62] [21:24:47]ProducePacketName [21:24:47]name=ofd_packets/00092544 [21:24:47]OFD Sender: To server: pG, [21:24:47]CommunicateWithHost lk.salyk.kg:30040 [21:24:47]ConnectInit lk.salyk.kg [21:24:47]written 0, free lines is 4095 [21:24:47]Connected sock=10 [21:24:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 28 01 00 00 BB C3 20 01 92 BE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 22 FF E5 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 80 69 01 00 35 04 06 00 51 B1 B9 49 94 55 1F 79 EA F4 FD 4A 3A F8 [21:24:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D0 79 47 00 EB E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 80 69 01 00 F4 03 04 00 9C A7 E5 66 B6 04 01 00 00 69 71 29 8C 8C EE BD 93 [21:24:47]CommunicateWithHost err = 0 [21:24:47]CheckOFDResponse [21:24:47]1017 (14) - 77093643461234 [21:24:47]1041 (16) - 0000000000874692 [21:24:47]1040 (4) - 92544 [21:24:47]1012 (4) - 14.09.2024 15:11 [21:24:47]1206 (1) - 0 [21:24:47]OFD Sender: Remove packet 92544 [21:24:47]ProducePacketName [21:24:47]name=ofd_packets/00092544 [21:24:47]NVStorageDeleteData [21:24:47]Write to MH i2c: 01 00 00 EB 3A 25 [21:24:47]Write i2c OK [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: 01 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: 01 07 00 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: 01 07 00 EB 3A 00 00 00 00 00 2D 0D 66 [21:24:47]RasterBufferAndPrint [21:24:47]line [21:24:47]line [21:24:47]line [21:24:47]line [21:24:47]line [21:24:47]written 0, free lines is 3380 [21:24:47]MH_Cut [21:24:47]Write to MH i2c: D1 01 00 F2 3A 01 FE [21:24:47]Write i2c OK [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: D1 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: D1 01 00 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: D1 01 00 F2 3A 00 FD [21:24:47]Write to MH i2c: 01 00 00 F3 3A 2D [21:24:47]Write i2c OK [21:24:47]MH_I2C_Read... [21:24:48]OFD Sender: No OFD packet to send [21:24:48]*** Cut start [21:24:48]*** Purtial cut [21:24:48]*** Stage 1: CUTSNS_PIN = 1 [21:24:50]Read from MH i2c: 01 [21:24:50]MH_I2C_Read... [21:24:50]*** Stop cut motor [21:24:50]*** Cut end [21:24:50]Read from MH i2c: 01 07 00 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: 01 07 00 F3 3A 00 00 00 00 00 FF 0F 42 [21:24:50]process_action close_receipt done [21:24:50]requested_data is exist [21:24:50]produce_requested_data [21:24:50]requested_item fm.sn is exist - process it [21:24:50]wFMCommunicate request_size=4 [21:24:50]MH_SAM_APDU [21:24:50]CAPDU: 80 11 00 00 [21:24:50]Write to MH i2c: E2 08 00 F4 3A 80 11 00 00 00 00 00 00 A8 [21:24:50]Write i2c OK [21:24:50]MH_I2C_Read... [21:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:50]Read from MH i2c: E2 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 17 00 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 17 00 F4 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FF [21:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:24:50]wFMCommunicate OK [21:24:50]requested_item fd.num is exist - process it [21:24:50]SAM_PROTO_GetFieldsCounters [21:24:50]wFMCommunicate request_size=4 [21:24:50]MH_SAM_APDU [21:24:50]CAPDU: 80 13 00 00 [21:24:50]Write to MH i2c: E2 08 00 F5 3A 80 13 00 00 00 00 00 00 AB [21:24:50]Write i2c OK [21:24:50]MH_I2C_Read... [21:24:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:50]Read from MH i2c: E2 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 62 00 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 62 00 F5 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 80 69 01 00 0E 04 04 00 FA 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 F8 [21:24:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 80 69 01 00 0E 04 04 00 FA 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 [21:24:50]wFMCommunicate OK [21:24:50]SAM_PROTO_GetFieldsCounters done [21:24:50]requested_item shift.num is exist - process it [21:24:50]requested_item shift.opened is exist - process it [21:24:50]req_shift_opened [21:24:50]FM_GetShiftState [21:24:50]SAM_PROTO_GetShiftState [21:24:50]wFMCommunicate request_size=4 [21:24:50]MH_SAM_APDU [21:24:50]CAPDU: 80 13 01 00 [21:24:50]Write to MH i2c: E2 08 00 F6 3A 80 13 01 00 00 00 00 00 AD [21:24:50]Write i2c OK [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 0E 00 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 0E 00 F6 3A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 47 [21:24:50]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:24:50]wFMCommunicate OK [21:24:50]SAM_PROTO_GetShiftState done [21:24:50]FM_GetShiftState done [21:24:50]req_shift_opened done [21:24:50]requested_item shift.open_date is exist - process it [21:24:50]req_shift_open_date [21:24:50]req_shift_open_date done [21:24:50]produce_requested_data done [21:24:50]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92544,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:24:50]process_action_free close_receipt [21:24:50]json_value_free [21:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:50]json_value_free done [21:24:50]process_json_proto returns [21:24:50]Send response to host [21:24:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92544,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:24:50]free response buf [21:24:50]execute_script done [21:24:50]execute_script returns [21:24:50]free content buf [21:24:50]Sock 8.Close socket [21:24:50]Sock 8.Thread stoped [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:58]accept exits with 9 [21:42:58]New connection [21:42:58]New thread 3066801508 created [21:42:58]Thread 3066658148 joined [21:42:58]Waiting for new connection... [21:42:58] Sock 9.Parse request [21:42:58]Sock 9.Check first char [21:42:58]Sock 9.First char is OK [21:42:58]request: POST /json_proto HTTP/1.0 [21:42:58]Method: POST [21:42:58]URL: /json_proto [21:42:58]Method is POST - this is cgi request [21:42:58]url: /json_proto [21:42:58]query_string will be loaded in cgi processing [21:42:58]execute_cgi json_proto POST (null) [21:42:58]execute_cgi path=json_proto method=POST [21:42:58]POST find Content-Length [21:42:58]Host: 172.17.57.71:8080 [21:42:58]Content-Length: 1442 [21:42:58]Content-Type: application/json [21:42:58] [21:42:58]POST finish read [21:42:58]Found Content-Length = 1442 [21:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127447", "tax_sys" : 0, "items" : [ { "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001151546", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0437\u0435\u043B.\u044F\u0431\u043B", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607120852494", "name": "\u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 Light 80 \u0433 \u0432\u0435\u0442-\u0441\u044B\u0440", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:58]execute_script... [21:42: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)127447", "tax_sys" : 0, "items" : [ { "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001151546", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0437\u0435\u043B.\u044F\u0431\u043B", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607120852494", "name": "\u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 Light 80 \u0433 \u0432\u0435\u0442-\u0441\u044B\u0440", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:58]POST & json_proto [21:42:58]process_json_proto [21:42:58]json parsed OK: [21:42:58]protocol is kg_v1.0 [21:42:58]action value=close_receipt [21:42:58]process_action close_receipt [21:42:58]cmd_close_receipt [21:42:58]MH_GetDate [21:42:58]Write to MH i2c: F0 00 00 F7 3A 20 [21:42:58]Write i2c OK [21:42:58]MH_I2C_Read... [21:42:58]Read from MH i2c: F0 [21:42:58]MH_I2C_Read... [21:42:58]Read from MH i2c: F0 09 00 [21:42:58]MH_I2C_Read... [21:42:58]Read from MH i2c: F0 09 00 F7 3A 00 67 03 E6 66 33 3A A4 66 56 [21:42:58]GetLastDocTimeStamp 1726349090 [21:42:58]current date 1726350183 [21:42:58]FM_GetShiftState [21:42:58]SAM_PROTO_GetShiftState [21:42:58]wFMCommunicate request_size=4 [21:42:58]MH_SAM_APDU [21:42:58]CAPDU: 80 13 01 00 [21:42:58]Write to MH i2c: E2 08 00 F8 3A 80 13 01 00 00 00 00 00 AF [21:42:58]Write i2c OK [21:42:58]MH_I2C_Read... [21:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:58]Read from MH i2c: E2 [21:42:58]MH_I2C_Read... [21:42:58]Read from MH i2c: E2 0E 00 [21:42:58]MH_I2C_Read... [21:42:58]Read from MH i2c: E2 0E 00 F8 3A 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 49 [21:42:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:42:58]wFMCommunicate OK [21:42:58]SAM_PROTO_GetShiftState done [21:42:58]FM_GetShiftState done [21:42:58]opened in 1726273389 [21:42:58]opened+sec_in_day 1726359789 [21:42:58]quantity*price = 9500 [21:42:58]sum+1 = 9501 [21:42:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001151546 Сок Da-Da 1л зел.ябл 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607084351378 Бисквит Чоко пай 6шт 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120852494 Кириешки Light 80 г вет-сыр 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 196 14.09.2024 21:43 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92545 ФПД: 165078635308265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T214303&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92545&fm=165078635308265&tin=02508201610067®Number=0000000000091423&sum=46000 0 [21:42:59]StoreToDocumentArchive [21:42:59]shift 506 fd 92545 [21:42:59]save to /storage/0506/doc_00092545 [21:42:59]save last doc name /storage/0506/doc_00092545 to /storage/kkm_last_doc_name [21:42:59]save OK [21:42:59]Clear old archive folders... [21:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=604 [21:42:59]tlvbuf is 010ACA70 [21:42:59]SAM_PROTO_ClearQueue [21:42:59]wFMCommunicate request_size=4 [21:42:59]MH_SAM_APDU [21:42:59]CAPDU: 80 09 00 00 [21:42:59]Write to MH i2c: E2 08 00 05 3B 80 09 00 00 00 00 00 00 B2 [21:42:59]Write i2c OK [21:42:59]MH_I2C_Read... [21:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:59]Read from MH i2c: E2 [21:42:59]MH_I2C_Read... [21:42:59]Read from MH i2c: E2 03 00 [21:42:59]MH_I2C_Read... [21:42:59]Read from MH i2c: E2 03 00 05 3B 00 90 00 B4 [21:42:59]RAPDU: 90 00 [21:42:59]wFMCommunicate OK [21:42:59]SAM_PROTO_ClearQueue done [21:42:59]KKMCreateOFDPacket [21:42:59]OFDProtocolAddRootSTLVToBuf [21:42:59]FM_MakeSignedData [21:42:59]FM_MakeSignedData [21:42:59]SAM_PROTO_SignData [21:42:59]wFMCommunicate request_size=4 [21:42:59]MH_SAM_APDU [21:42:59]CAPDU: 80 0D 01 02 [21:42:59]Write to MH i2c: E2 08 00 06 3B 80 0D 01 02 00 00 00 00 BA [21:42:59]Write i2c OK [21:42:59]MH_I2C_Read... [21:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:59]Read from MH i2c: E2 [21:42:59]MH_I2C_Read... [21:42:59]Read from MH i2c: E2 03 00 [21:42:59]MH_I2C_Read... [21:42:59]Read from MH i2c: E2 03 00 06 3B 00 90 00 B5 [21:42:59]RAPDU: 90 00 [21:42:59]wFMCommunicate OK [21:42:59]wFMCommunicate request_size=255 [21:42:59]MH_SAM_APDU [21:42:59]CAPDU: 80 0D 02 02 FA 03 00 5C 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 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 62 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 31 35 34 36 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB 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 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 [21:42:59]Write to MH i2c: E2 02 01 07 3B 80 0D 02 02 FA 00 03 00 5C 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 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 62 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 31 35 34 36 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB 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 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 00 00 F8 [21:42:59]Write i2c OK [21:42:59]MH_I2C_Read... [21:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:59]Read from MH i2c: E2 [21:42:59]MH_I2C_Read... [21:42:59]Read from MH i2c: E2 03 00 [21:42:59]MH_I2C_Read... [21:42:59]Read from MH i2c: E2 03 00 07 3B 00 90 00 B6 [21:42:59]RAPDU: 90 00 [21:42:59]wFMCommunicate OK [21:42:59]wFMCommunicate request_size=255 [21:42:59]MH_SAM_APDU [21:42:59]CAPDU: 80 0D 02 02 FA 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 6E 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 39 34 06 04 2A 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D0 B2 D0 B5 D1 82 2D D1 81 D1 8B D1 80 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 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 [21:42:59]Write to MH i2c: E2 02 01 08 3B 80 0D 02 02 FA 00 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 6E 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 39 34 06 04 2A 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D0 B2 D0 B5 D1 82 2D D1 81 D1 8B D1 80 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 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 00 00 2C [21:42:59]Write i2c OK [21:42:59]MH_I2C_Read... [21:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:00]Read from MH i2c: E2 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: E2 03 00 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: E2 03 00 08 3B 00 90 00 B7 [21:43:00]RAPDU: 90 00 [21:43:00]wFMCommunicate OK [21:43:00]wFMCommunicate request_size=113 [21:43:00]MH_SAM_APDU [21:43:00]CAPDU: 80 0D 02 02 6C B3 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 67 03 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 69 01 00 35 04 06 00 96 23 5D 6A E4 E9 [21:43:00]Write to MH i2c: E2 74 00 09 3B 80 0D 02 02 6C 00 B3 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 67 03 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 69 01 00 35 04 06 00 96 23 5D 6A E4 E9 00 00 1D [21:43:00]Write i2c OK [21:43:00]MH_I2C_Read... [21:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:00]Read from MH i2c: E2 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: E2 03 00 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: E2 03 00 09 3B 00 90 00 B8 [21:43:00]RAPDU: 90 00 [21:43:00]wFMCommunicate OK [21:43:00]wFMCommunicate request_size=4 [21:43:00]MH_SAM_APDU [21:43:00]CAPDU: 80 0D 03 02 [21:43:00]Write to MH i2c: E2 08 00 0A 3B 80 0D 03 02 00 00 00 00 C0 [21:43:00]Write i2c OK [21:43:00]MH_I2C_Read... [21:43:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:00]Read from MH i2c: E2 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: E2 0B 00 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: E2 0B 00 0A 3B 00 AB CF BB 0E C6 48 CA BF 90 00 9B [21:43:00]RAPDU: AB CF BB 0E C6 48 CA BF 90 00 [21:43:00]wFMCommunicate OK [21:43:00]SAM_PROTO_SignData done [21:43:00]FM_MakeSignedData done [21:43:00]CreateOFDProtocolMessage [21:43:00]wFMCommunicate request_size=4 [21:43:00]MH_SAM_APDU [21:43:00]CAPDU: 80 11 00 00 [21:43:00]Write to MH i2c: E2 08 00 0B 3B 80 11 00 00 00 00 00 00 C0 [21:43:00]Write i2c OK [21:43:00]MH_I2C_Read... [21:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:00]Read from MH i2c: E2 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: E2 17 00 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: E2 17 00 0B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 17 [21:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:43:00]wFMCommunicate OK [21:43:00]CreateOFDProtocolMessage done [21:43:00]OFDSenderStorePacket 92545 [21:43:00]StoreOFDPacket docnum=92545 [21:43:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 70 02 00 00 CF F2 68 02 EA 71 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 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 62 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 31 35 34 36 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB 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 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 6E 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 39 34 06 04 2A 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D0 B2 D0 B5 D1 82 2D D1 81 D1 8B D1 80 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 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 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 67 03 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 69 01 00 35 04 06 00 96 23 5D 6A E4 E9 AB CF BB 0E C6 48 CA BF [21:43:00]CheckFolder [21:43:00]dirname=/storage/ofd_packets [21:43:00]CheckFolder done [21:43:00]ProducePacketName [21:43:00]name=ofd_packets/00092545 [21:43:00]NVStorageSaveData ofd_packets/00092545 [21:43:00]File name is /storage/ofd_packets/00092545 [21:43:00]Write 654 bytes [21:43:00]NVStorageSaveData done [21:43:00]OFDSenderStorePacket done [21:43:00]KKMCreateOFDPacket done [21:43:00]NVStorageSaveData kkm_last_timestamp [21:43:00]File name is /storage/kkm_last_timestamp [21:43:00]Write 4 bytes [21:43:00]NVStorageSaveData done [21:43:00]ExternCall_PrintAddStr [21:43:00]wPrintStart [21:43:00]Write to MH i2c: 01 00 00 0C 3B 47 [21:43:00]Write i2c OK [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: 01 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: 01 07 00 [21:43:00]MH_I2C_Read... [21:43:00]Read from MH i2c: 01 07 00 0C 3B 00 00 00 00 00 FF 0F 5C [21:43:00]RasterBufferAndPrint [21:43:00]line Счет N : (3)127447 [21:43:00]line ИНН: 02508201610067 [21:43:00]line Контрольно-Кассовый Чек [21:43:00]line ПРОДАЖА [21:43:00]line Товар: 4680021880490 [21:43:00]line Печ.сд.С каплями 200г/12 [21:43:00]line 1.000 * 95.00 [21:43:00]line = 95.00 [21:43:00]line НДС 12% НСП 1% [21:43:00]line > о реализуемом товаре [21:43:00]line Товар: 4870001151546 [21:43:00]line Сок Da-Da 1л зел.ябл [21:43:00]line 1.000 * 150.00 [21:43:00]line = 150.00 [21:43:00]line НДС 12% НСП 1% [21:43:00]line > о реализуемом товаре [21:43:00]line Товар: 4607084351378 [21:43:00]line Бисквит Чоко пай 6шт [21:43:00]line 1.000 * 175.00 [21:43:00]line = 175.00 [21:43:00]line НДС 12% НСП 1% [21:43:00]line > о реализуемом товаре [21:43:00]line Товар: 4607120852494 [21:43:00]line Кириешки Light 80 г вет-сыр [21:43:00]line 1.000 * 40.00 [21:43:00]line = 40.00 [21:43:00]line НДС 12% НСП 1% [21:43:00]line > о реализуемом товаре [21:43:00]line ИТОГО: 460.00 [21:43:00]line НСП 1% : 4.07 [21:43:00]line НДС 12% : 48.85 [21:43:00]line Наличными: 460.00 [21:43:00]line Безнал.: 0.00 [21:43:00]line Место: АЗС № 5 "Партнер Нефть" [21:43:00]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:43:00]line СНО: Общий режим [21:43:00]line Чек 196 14.09.2024 21:43 [21:43:00]line Смена: 506 ФФД: 1.0 [21:43:00]line ЗНМ: 03000000022 [21:43:00]line РНМ: 0000000000091423 [21:43:00]line Версия ККМ: 001 [21:43:00]line ФМ: 0000000000874692 [21:43:00]line ФД: 92545 [21:43:00]line ФПД: 165078635308265 [21:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T214303&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92545&fm=165078635308265&tin=02508201610067®Number=0000000000091423&sum=46000 [21:43:00]OFD Sender: Processing packet 92545 [packets to send 63, broken 62] [21:43:00]ProducePacketName [21:43:00]name=ofd_packets/00092545 [21:43:00]OFD Sender: To server: pG, [21:43:00]CommunicateWithHost lk.salyk.kg:30040 [21:43:00]ConnectInit lk.salyk.kg [21:43:00]line 0 [21:43:00]written 0, free lines is 4095 [21:43:00]Connected sock=10 [21:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 70 02 00 00 CF F2 68 02 EA 71 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 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 62 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 31 35 34 36 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB 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 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 6E 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 39 34 06 04 2A 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D0 B2 D0 B5 D1 82 2D D1 81 D1 8B D1 80 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 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 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 67 03 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 69 01 00 35 04 06 00 96 23 5D 6A E4 E9 AB CF BB 0E C6 48 CA BF [21:43:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 DB A9 47 00 A0 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 81 69 01 00 F4 03 04 00 E1 AB E5 66 B6 04 01 00 00 EB 29 50 8F 22 18 8A 20 [21:43:01]CommunicateWithHost err = 0 [21:43:01]CheckOFDResponse [21:43:01]1017 (14) - 77093643461234 [21:43:01]1041 (16) - 0000000000874692 [21:43:01]1040 (4) - 92545 [21:43:01]1012 (4) - 14.09.2024 15:29 [21:43:01]1206 (1) - 0 [21:43:01]OFD Sender: Remove packet 92545 [21:43:01]ProducePacketName [21:43:01]name=ofd_packets/00092545 [21:43:01]NVStorageDeleteData [21:43:01]Write to MH i2c: 01 00 00 46 3B 81 [21:43:01]Write i2c OK [21:43:01]MH_I2C_Read... [21:43:01]Read from MH i2c: 01 [21:43:01]MH_I2C_Read... [21:43:01]Read from MH i2c: 01 07 00 [21:43:01]MH_I2C_Read... [21:43:01]Read from MH i2c: 01 07 00 46 3B 00 00 00 00 00 38 0C CC [21:43:01]RasterBufferAndPrint [21:43:01]line [21:43:01]line [21:43:01]line [21:43:01]line [21:43:01]line [21:43:01]written 0, free lines is 3137 [21:43:01]MH_Cut [21:43:01]Write to MH i2c: D1 01 00 4D 3B 01 5A [21:43:01]Write i2c OK [21:43:01]MH_I2C_Read... [21:43:01]Read from MH i2c: D1 [21:43:01]MH_I2C_Read... [21:43:01]Read from MH i2c: D1 01 00 [21:43:01]MH_I2C_Read... [21:43:01]Read from MH i2c: D1 01 00 4D 3B 00 59 [21:43:01]Write to MH i2c: 01 00 00 4E 3B 89 [21:43:01]Write i2c OK [21:43:01]MH_I2C_Read... [21:43:01]OFD Sender: No OFD packet to send [21:43:02]*** Cut start [21:43:02]*** Purtial cut [21:43:02]*** Stage 1: CUTSNS_PIN = 1 [21:43:04]Read from MH i2c: 01 [21:43:04]MH_I2C_Read... [21:43:04]*** Stop cut motor [21:43:04]*** Cut end [21:43:04]Read from MH i2c: 01 07 00 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: 01 07 00 4E 3B 00 00 00 00 00 FF 0F 9E [21:43:04]process_action close_receipt done [21:43:04]requested_data is exist [21:43:04]produce_requested_data [21:43:04]requested_item fm.sn is exist - process it [21:43:04]wFMCommunicate request_size=4 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 11 00 00 [21:43:04]Write to MH i2c: E2 08 00 4F 3B 80 11 00 00 00 00 00 00 04 [21:43:04]Write i2c OK [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 [21:43:04]MH_I2C_Read... [21:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:04]Read from MH i2c: E2 17 00 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 17 00 4F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5B [21:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:43:04]wFMCommunicate OK [21:43:04]requested_item fd.num is exist - process it [21:43:04]SAM_PROTO_GetFieldsCounters [21:43:04]wFMCommunicate request_size=4 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 13 00 00 [21:43:04]Write to MH i2c: E2 08 00 50 3B 80 13 00 00 00 00 00 00 07 [21:43:04]Write i2c OK [21:43:04]MH_I2C_Read... [21:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:04]Read from MH i2c: E2 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 62 00 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 62 00 50 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 81 69 01 00 0E 04 04 00 FA 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 58 [21:43:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 81 69 01 00 0E 04 04 00 FA 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 [21:43:04]wFMCommunicate OK [21:43:04]SAM_PROTO_GetFieldsCounters done [21:43:04]requested_item shift.num is exist - process it [21:43:04]requested_item shift.opened is exist - process it [21:43:04]req_shift_opened [21:43:04]FM_GetShiftState [21:43:04]SAM_PROTO_GetShiftState [21:43:04]wFMCommunicate request_size=4 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 13 01 00 [21:43:04]Write to MH i2c: E2 08 00 51 3B 80 13 01 00 00 00 00 00 09 [21:43:04]Write i2c OK [21:43:04]MH_I2C_Read... [21:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:04]Read from MH i2c: E2 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 0E 00 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 0E 00 51 3B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A3 [21:43:04]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:43:04]wFMCommunicate OK [21:43:04]SAM_PROTO_GetShiftState done [21:43:04]FM_GetShiftState done [21:43:04]req_shift_opened done [21:43:04]requested_item shift.open_date is exist - process it [21:43:04]req_shift_open_date [21:43:04]req_shift_open_date done [21:43:04]produce_requested_data done [21:43:04]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92545,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:43:04]process_action_free close_receipt [21:43:04]json_value_free [21:43:04]json_value_free done [21:43:04]process_json_proto returns [21:43:04]Send response to host [21:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92545,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:43:04]free response buf [21:43:04]execute_script done [21:43:04]execute_script returns [21:43:04]free content buf [21:43:04]Sock 9.Close socket [21:43:04]Sock 9.Thread stoped [21:43:05]accept exits with 8 [21:43:05]New connection [21:43:05]New thread 3066658148 created [21:43:05]Thread 3066801508 joined [21:43:05]Waiting for new connection... [21:43:05] Sock 8.Parse request [21:43:05]Sock 8.Check first char [21:43:05]Sock 8.First char is OK [21:43:05]request: POST /json_proto HTTP/1.0 [21:43:05]Method: POST [21:43:05]URL: /json_proto [21:43:05]Method is POST - this is cgi request [21:43:05]url: /json_proto [21:43:05]query_string will be loaded in cgi processing [21:43:05]execute_cgi json_proto POST (null) [21:43:05]execute_cgi path=json_proto method=POST [21:43:05]POST find Content-Length [21:43:05]Host: 172.17.57.71:8080 [21:43:05]Content-Length: 604 [21:43:05]Content-Type: application/json [21:43:05] [21:43:05]POST finish read [21:43:05]Found Content-Length = 604 [21:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127448", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:05]execute_script... [21:43: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)127448", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:05]POST & json_proto [21:43:05]process_json_proto [21:43:05]json parsed OK: [21:43:05]protocol is kg_v1.0 [21:43:05]action value=close_receipt [21:43:05]process_action close_receipt [21:43:05]cmd_close_receipt [21:43:05]MH_GetDate [21:43:05]Write to MH i2c: F0 00 00 52 3B 7C [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 09 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 09 00 52 3B 00 6E 03 E6 66 33 3A A4 66 B9 [21:43:05]GetLastDocTimeStamp 1726350183 [21:43:05]current date 1726350190 [21:43:05]FM_GetShiftState [21:43:05]SAM_PROTO_GetShiftState [21:43:05]wFMCommunicate request_size=4 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 13 01 00 [21:43:05]Write to MH i2c: E2 08 00 53 3B 80 13 01 00 00 00 00 00 0B [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 0E 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 0E 00 53 3B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A5 [21:43:05]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:43:05]wFMCommunicate OK [21:43:05]SAM_PROTO_GetShiftState done [21:43:05]FM_GetShiftState done [21:43:05]opened in 1726273389 [21:43:05]opened+sec_in_day 1726359789 [21:43:05]quantity*price = 5500 [21:43:05]sum+1 = 5501 [21:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 197 14.09.2024 21:43 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92546 ФПД: 147024552315364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T214310&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92546&fm=147024552315364&tin=02508201610067®Number=0000000000091423&sum=5500 0 [21:43:06]StoreToDocumentArchive [21:43:06]shift 506 fd 92546 [21:43:06]save to /storage/0506/doc_00092546 [21:43:06]save last doc name /storage/0506/doc_00092546 to /storage/kkm_last_doc_name [21:43:06]save OK [21:43:06]Clear old archive folders... [21:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:43:07]tlvbuf is 01022600 [21:43:07]SAM_PROTO_ClearQueue [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 09 00 00 [21:43:07]Write to MH i2c: E2 08 00 60 3B 80 09 00 00 00 00 00 00 0D [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 60 3B 00 90 00 0F [21:43:07]RAPDU: 90 00 [21:43:07]wFMCommunicate OK [21:43:07]SAM_PROTO_ClearQueue done [21:43:07]KKMCreateOFDPacket [21:43:07]OFDProtocolAddRootSTLVToBuf [21:43:07]FM_MakeSignedData [21:43:07]FM_MakeSignedData [21:43:07]SAM_PROTO_SignData [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 0D 01 02 [21:43:07]Write to MH i2c: E2 08 00 61 3B 80 0D 01 02 00 00 00 00 15 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 61 3B 00 90 00 10 [21:43:07]RAPDU: 90 00 [21:43:07]wFMCommunicate OK [21:43:07]wFMCommunicate request_size=255 [21:43:07]MH_SAM_APDU [21:43:07]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 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6E 03 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 [21:43:07]Write to MH i2c: E2 02 01 62 3B 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 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6E 03 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 00 00 E6 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 62 3B 00 90 00 11 [21:43:07]RAPDU: 90 00 [21:43:07]wFMCommunicate OK [21:43:07]wFMCommunicate request_size=34 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 69 01 00 35 04 06 00 85 B7 D2 36 C9 E4 [21:43:07]Write to MH i2c: E2 25 00 63 3B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 69 01 00 35 04 06 00 85 B7 D2 36 C9 E4 00 00 BA [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 63 3B 00 90 00 12 [21:43:07]RAPDU: 90 00 [21:43:07]wFMCommunicate OK [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 0D 03 02 [21:43:07]Write to MH i2c: E2 08 00 64 3B 80 0D 03 02 00 00 00 00 1A [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0B 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0B 00 64 3B 00 1B 15 B1 4B 4B 45 70 AF 90 00 F6 [21:43:07]RAPDU: 1B 15 B1 4B 4B 45 70 AF 90 00 [21:43:07]wFMCommunicate OK [21:43:07]SAM_PROTO_SignData done [21:43:07]FM_MakeSignedData done [21:43:07]CreateOFDProtocolMessage [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 11 00 00 [21:43:07]Write to MH i2c: E2 08 00 65 3B 80 11 00 00 00 00 00 00 1A [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 65 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 71 [21:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:43:07]wFMCommunicate OK [21:43:07]CreateOFDProtocolMessage done [21:43:07]OFDSenderStorePacket 92546 [21:43:07]StoreOFDPacket docnum=92546 [21:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 2C E0 1F 01 2C 1D 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 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6E 03 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 69 01 00 35 04 06 00 85 B7 D2 36 C9 E4 1B 15 B1 4B 4B 45 70 AF [21:43:07]CheckFolder [21:43:07]dirname=/storage/ofd_packets [21:43:07]CheckFolder done [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00092546 [21:43:07]NVStorageSaveData ofd_packets/00092546 [21:43:07]File name is /storage/ofd_packets/00092546 [21:43:07]Write 325 bytes [21:43:07]NVStorageSaveData done [21:43:07]OFDSenderStorePacket done [21:43:07]KKMCreateOFDPacket done [21:43:07]NVStorageSaveData kkm_last_timestamp [21:43:07]File name is /storage/kkm_last_timestamp [21:43:07]Write 4 bytes [21:43:07]NVStorageSaveData done [21:43:07]ExternCall_PrintAddStr [21:43:07]wPrintStart [21:43:07]Write to MH i2c: 01 00 00 66 3B A1 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 66 3B 00 00 00 00 00 FF 0F B6 [21:43:07]RasterBufferAndPrint [21:43:07]line Счет N : (3)127448 [21:43:07]line ИНН: 02508201610067 [21:43:07]line Контрольно-Кассовый Чек [21:43:07]line ПРОДАЖА [21:43:07]line Товар: 4870112003925 [21:43:07]line Конд ULKER-Albeni 40gr (6*24) [21:43:07]line 1.000 * 55.00 [21:43:07]line = 55.00 [21:43:07]line НДС 12% НСП 1% [21:43:07]line > о реализуемом товаре [21:43:07]line ИТОГО: 55.00 [21:43:07]line НСП 1% : 0.49 [21:43:07]line НДС 12% : 5.84 [21:43:07]line Наличными: 55.00 [21:43:07]line Безнал.: 0.00 [21:43:07]line Место: АЗС № 5 "Партнер Нефть" [21:43:07]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:43:07]line СНО: Общий режим [21:43:07]line Чек 197 14.09.2024 21:43 [21:43:07]line Смена: 506 ФФД: 1.0 [21:43:07]line ЗНМ: 03000000022 [21:43:07]line РНМ: 0000000000091423 [21:43:07]line Версия ККМ: 001 [21:43:07]line ФМ: 0000000000874692 [21:43:07]line ФД: 92546 [21:43:07]line ФПД: 147024552315364 [21:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T214310&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92546&fm=147024552315364&tin=02508201610067®Number=0000000000091423&sum=5500 [21:43:07]line 0 [21:43:07]written 0, free lines is 4095 [21:43:07]OFD Sender: Processing packet 92546 [packets to send 63, broken 62] [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00092546 [21:43:07]OFD Sender: To server: pG, [21:43:07]CommunicateWithHost lk.salyk.kg:30040 [21:43:07]ConnectInit lk.salyk.kg [21:43:07]Connected sock=10 [21:43:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 27 01 00 00 2C E0 1F 01 2C 1D 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 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6E 03 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 69 01 00 35 04 06 00 85 B7 D2 36 C9 E4 1B 15 B1 4B 4B 45 70 AF [21:43:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 66 A6 47 00 AF 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 82 69 01 00 F4 03 04 00 E9 AB E5 66 B6 04 01 00 00 C8 46 2C 02 00 21 7F 3F [21:43:08]CommunicateWithHost err = 0 [21:43:08]CheckOFDResponse [21:43:08]1017 (14) - 77093643461234 [21:43:08]1041 (16) - 0000000000874692 [21:43:08]1040 (4) - 92546 [21:43:08]1012 (4) - 14.09.2024 15:29 [21:43:08]1206 (1) - 0 [21:43:08]OFD Sender: Remove packet 92546 [21:43:08]ProducePacketName [21:43:08]name=ofd_packets/00092546 [21:43:08]NVStorageDeleteData [21:43:08]Write to MH i2c: 01 00 00 8E 3B C9 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: 01 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: 01 07 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: 01 07 00 8E 3B 00 00 00 00 00 36 0D 13 [21:43:08]RasterBufferAndPrint [21:43:08]line [21:43:08]line [21:43:08]line [21:43:08]line [21:43:08]line [21:43:08]written 0, free lines is 3400 [21:43:08]MH_Cut [21:43:08]Write to MH i2c: D1 01 00 95 3B 01 A2 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: D1 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: D1 01 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: D1 01 00 95 3B 00 A1 [21:43:08]Write to MH i2c: 01 00 00 96 3B D1 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]OFD Sender: No OFD packet to send [21:43:08]*** Cut start [21:43:08]*** Purtial cut [21:43:08]*** Stage 1: CUTSNS_PIN = 1 [21:43:10]Read from MH i2c: 01 [21:43:10]MH_I2C_Read... [21:43:10]*** Stop cut motor [21:43:10]*** Cut end [21:43:10]Read from MH i2c: 01 07 00 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: 01 07 00 96 3B 00 00 00 00 00 FF 0F E6 [21:43:10]process_action close_receipt done [21:43:10]requested_data is exist [21:43:10]produce_requested_data [21:43:10]requested_item fm.sn is exist - process it [21:43:10]wFMCommunicate request_size=4 [21:43:10]MH_SAM_APDU [21:43:10]CAPDU: 80 11 00 00 [21:43:10]Write to MH i2c: E2 08 00 97 3B 80 11 00 00 00 00 00 00 4C [21:43:10]Write i2c OK [21:43:10]MH_I2C_Read... [21:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:10]Read from MH i2c: E2 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: E2 17 00 [21:43:10]MH_I2C_Read... [21:43:10]Read from MH i2c: E2 17 00 97 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A3 [21:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:43:10]wFMCommunicate OK [21:43:10]requested_item fd.num is exist - process it [21:43:10]SAM_PROTO_GetFieldsCounters [21:43:10]wFMCommunicate request_size=4 [21:43:10]MH_SAM_APDU [21:43:10]CAPDU: 80 13 00 00 [21:43:10]Write to MH i2c: E2 08 00 98 3B 80 13 00 00 00 00 00 00 4F [21:43:10]Write i2c OK [21:43:10]MH_I2C_Read... [21:43:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:11]Read from MH i2c: E2 [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: E2 62 00 [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: E2 62 00 98 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 82 69 01 00 0E 04 04 00 FA 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 A4 [21:43:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 82 69 01 00 0E 04 04 00 FA 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 [21:43:11]wFMCommunicate OK [21:43:11]SAM_PROTO_GetFieldsCounters done [21:43:11]requested_item shift.num is exist - process it [21:43:11]requested_item shift.opened is exist - process it [21:43:11]req_shift_opened [21:43:11]FM_GetShiftState [21:43:11]SAM_PROTO_GetShiftState [21:43:11]wFMCommunicate request_size=4 [21:43:11]MH_SAM_APDU [21:43:11]CAPDU: 80 13 01 00 [21:43:11]Write to MH i2c: E2 08 00 99 3B 80 13 01 00 00 00 00 00 51 [21:43:11]Write i2c OK [21:43:11]MH_I2C_Read... [21:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:11]Read from MH i2c: E2 [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: E2 0E 00 [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: E2 0E 00 99 3B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 EB [21:43:11]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:43:11]wFMCommunicate OK [21:43:11]SAM_PROTO_GetShiftState done [21:43:11]FM_GetShiftState done [21:43:11]req_shift_opened done [21:43:11]requested_item shift.open_date is exist - process it [21:43:11]req_shift_open_date [21:43:11]req_shift_open_date done [21:43:11]produce_requested_data done [21:43:11]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92546,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:43:11]process_action_free close_receipt [21:43:11]json_value_free [21:43:11]json_value_free done [21:43:11]process_json_proto returns [21:43:11]Send response to host [21:43:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92546,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:43:11]free response buf [21:43:11]execute_script done [21:43:11]execute_script returns [21:43:11]free content buf [21:43:11]Sock 8.Close socket [21:43:11]Sock 8.Thread stoped [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:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]accept exits with 9 [21:47:38]New connection [21:47:38]New thread 3066801508 created [21:47:38]Thread 3066658148 joined [21:47:38]Waiting for new connection... [21:47:38] Sock 9.Parse request [21:47:38]Sock 9.Check first char [21:47:38]Sock 9.First char is OK [21:47:38]request: POST /json_proto HTTP/1.0 [21:47:38]Method: POST [21:47:38]URL: /json_proto [21:47:38]Method is POST - this is cgi request [21:47:38]url: /json_proto [21:47:38]query_string will be loaded in cgi processing [21:47:38]execute_cgi json_proto POST (null) [21:47:38]execute_cgi path=json_proto method=POST [21:47:38]POST find Content-Length [21:47:38]Host: 172.17.57.71:8080 [21:47:38]Content-Length: 682 [21:47:38]Content-Type: application/json [21:47:38] [21:47:38]POST finish read [21:47:38]Found Content-Length = 682 [21:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648032", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:38]execute_script... [21:47:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648032", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:38]POST & json_proto [21:47:38]process_json_proto [21:47:38]json parsed OK: [21:47:38]protocol is kg_v1.0 [21:47:38]action value=close_receipt [21:47:38]process_action close_receipt [21:47:38]cmd_close_receipt [21:47:38]MH_GetDate [21:47:38]Write to MH i2c: F0 00 00 9A 3B C4 [21:47:38]Write i2c OK [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: F0 [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: F0 09 00 [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: F0 09 00 9A 3B 00 7F 04 E6 66 33 3A A4 66 13 [21:47:38]GetLastDocTimeStamp 1726350190 [21:47:38]current date 1726350463 [21:47:38]FM_GetShiftState [21:47:38]SAM_PROTO_GetShiftState [21:47:38]wFMCommunicate request_size=4 [21:47:38]MH_SAM_APDU [21:47:38]CAPDU: 80 13 01 00 [21:47:38]Write to MH i2c: E2 08 00 9B 3B 80 13 01 00 00 00 00 00 53 [21:47:38]Write i2c OK [21:47:38]MH_I2C_Read... [21:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:38]Read from MH i2c: E2 [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: E2 0E 00 [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: E2 0E 00 9B 3B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 ED [21:47:38]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:47:38]wFMCommunicate OK [21:47:38]SAM_PROTO_GetShiftState done [21:47:38]FM_GetShiftState done [21:47:38]opened in 1726273389 [21:47:38]opened+sec_in_day 1726359789 [21:47:38]quantity*price = 100015 [21:47:38]sum+1 = 100017 [21:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 198 14.09.2024 21:47 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92547 ФПД: 23757128248571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T214743&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92547&fm=23757128248571&tin=02508201610067®Number=0000000000091423&sum=100000 [21:47:39]StoreToDocumentArchive [21:47:39]shift 506 fd 92547 [21:47:39]save to /storage/0506/doc_00092547 [21:47:39]save last doc name /storage/0506/doc_00092547 to /storage/kkm_last_doc_name [21:47:39]save OK [21:47:39]Clear old archive folders... [21:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:39]tlvbuf is 00F927E0 [21:47:39]SAM_PROTO_ClearQueue [21:47:39]wFMCommunicate request_size=4 [21:47:39]MH_SAM_APDU [21:47:39]CAPDU: 80 09 00 00 [21:47:39]Write to MH i2c: E2 08 00 A8 3B 80 09 00 00 00 00 00 00 55 [21:47:39]Write i2c OK [21:47:39]MH_I2C_Read... [21:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:39]Read from MH i2c: E2 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 03 00 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 03 00 A8 3B 00 90 00 57 [21:47:39]RAPDU: 90 00 [21:47:39]wFMCommunicate OK [21:47:39]SAM_PROTO_ClearQueue done [21:47:39]KKMCreateOFDPacket [21:47:39]OFDProtocolAddRootSTLVToBuf [21:47:39]FM_MakeSignedData [21:47:39]FM_MakeSignedData [21:47:39]SAM_PROTO_SignData [21:47:39]wFMCommunicate request_size=4 [21:47:39]MH_SAM_APDU [21:47:39]CAPDU: 80 0D 01 02 [21:47:39]Write to MH i2c: E2 08 00 A9 3B 80 0D 01 02 00 00 00 00 5D [21:47:39]Write i2c OK [21:47:39]MH_I2C_Read... [21:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:39]Read from MH i2c: E2 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 03 00 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 03 00 A9 3B 00 90 00 58 [21:47:39]RAPDU: 90 00 [21:47:39]wFMCommunicate OK [21:47:39]wFMCommunicate request_size=255 [21:47:39]MH_SAM_APDU [21:47:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 7F 04 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 69 01 00 35 04 06 00 15 [21:47:39]Write to MH i2c: E2 02 01 AA 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 7F 04 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 69 01 00 35 04 06 00 15 00 00 76 [21:47:39]Write i2c OK [21:47:39]MH_I2C_Read... [21:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:39]Read from MH i2c: E2 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 03 00 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 03 00 AA 3B 00 90 00 59 [21:47:39]RAPDU: 90 00 [21:47:39]wFMCommunicate OK [21:47:39]wFMCommunicate request_size=10 [21:47:39]MH_SAM_APDU [21:47:39]CAPDU: 80 0D 02 02 05 9B 63 30 AC FB [21:47:39]Write to MH i2c: E2 0D 00 AB 3B 80 0D 02 02 05 00 9B 63 30 AC FB 00 00 3F [21:47:39]Write i2c OK [21:47:39]MH_I2C_Read... [21:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:39]Read from MH i2c: E2 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 03 00 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 03 00 AB 3B 00 90 00 5A [21:47:39]RAPDU: 90 00 [21:47:39]wFMCommunicate OK [21:47:39]wFMCommunicate request_size=4 [21:47:39]MH_SAM_APDU [21:47:39]CAPDU: 80 0D 03 02 [21:47:39]Write to MH i2c: E2 08 00 AC 3B 80 0D 03 02 00 00 00 00 62 [21:47:39]Write i2c OK [21:47:39]MH_I2C_Read... [21:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:39]Read from MH i2c: E2 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 0B 00 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 0B 00 AC 3B 00 DA D7 49 8B 8B 81 76 79 90 00 E3 [21:47:39]RAPDU: DA D7 49 8B 8B 81 76 79 90 00 [21:47:39]wFMCommunicate OK [21:47:39]SAM_PROTO_SignData done [21:47:39]FM_MakeSignedData done [21:47:39]CreateOFDProtocolMessage [21:47:39]wFMCommunicate request_size=4 [21:47:39]MH_SAM_APDU [21:47:39]CAPDU: 80 11 00 00 [21:47:39]Write to MH i2c: E2 08 00 AD 3B 80 11 00 00 00 00 00 00 62 [21:47:39]Write i2c OK [21:47:39]MH_I2C_Read... [21:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:40]Read from MH i2c: E2 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 17 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 17 00 AD 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 B9 [21:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:47:40]wFMCommunicate OK [21:47:40]CreateOFDProtocolMessage done [21:47:40]OFDSenderStorePacket 92547 [21:47:40]StoreOFDPacket docnum=92547 [21:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 CD 1A 07 01 71 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 7F 04 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 69 01 00 35 04 06 00 15 9B 63 30 AC FB DA D7 49 8B 8B 81 76 79 [21:47:40]CheckFolder [21:47:40]dirname=/storage/ofd_packets [21:47:40]CheckFolder done [21:47:40]ProducePacketName [21:47:40]name=ofd_packets/00092547 [21:47:40]NVStorageSaveData ofd_packets/00092547 [21:47:40]File name is /storage/ofd_packets/00092547 [21:47:40]Write 301 bytes [21:47:40]NVStorageSaveData done [21:47:40]OFDSenderStorePacket done [21:47:40]KKMCreateOFDPacket done [21:47:40]NVStorageSaveData kkm_last_timestamp [21:47:40]File name is /storage/kkm_last_timestamp [21:47:40]Write 4 bytes [21:47:40]NVStorageSaveData done [21:47:40]ExternCall_PrintAddStr [21:47:40]wPrintStart [21:47:40]Write to MH i2c: 01 00 00 AE 3B E9 [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 07 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 07 00 AE 3B 00 00 00 00 00 FF 0F FE [21:47:40]RasterBufferAndPrint [21:47:40]line Счет N : (1)648032 [21:47:40]line ИНН: 02508201610067 [21:47:40]line Контрольно-Кассовый Чек [21:47:40]line ПРОДАЖА [21:47:40]line ТРК (МРК, ГНК) : 33 [21:47:40]line Товар: 2710124130 [21:47:40]line Аи-92-К-5 [21:47:40]line 14.950 * 66.90 [21:47:40]line = 1000.16 [21:47:40]line НДС 12% НСП 1% [21:47:40]line > о реализуемом товаре [21:47:40]line ОКРУГЛЕНИЕ: -0.16 [21:47:40]line ИТОГО: 1000.00 [21:47:40]line Внесено: 1000.00 [21:47:40]line СДАЧА: 0.00 [21:47:40]line НСП 1% : 8.85 [21:47:40]line НДС 12% : 106.21 [21:47:40]line Наличными: 1000.00 [21:47:40]line Безнал.: 0.00 [21:47:40]line Место: АЗС № 5 "Партнер Нефть" [21:47:40]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:47:40]line СНО: Общий режим [21:47:40]line Чек 198 14.09.2024 21:47 [21:47:40]line Смена: 506 ФФД: 1.0 [21:47:40]line ЗНМ: 03000000022 [21:47:40]line РНМ: 0000000000091423 [21:47:40]line Версия ККМ: 001 [21:47:40]line ФМ: 0000000000874692 [21:47:40]line ФД: 92547 [21:47:40]line ФПД: 23757128248571 [21:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T214743&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92547&fm=23757128248571&tin=02508201610067®Number=0000000000091423&sum=100000 [21:47:40]OFD Sender: Processing packet 92547 [packets to send 63, broken 62] [21:47:40]ProducePacketName [21:47:40]name=ofd_packets/00092547 [21:47:40]OFD Sender: To server: pG, [21:47:40]CommunicateWithHost lk.salyk.kg:30040 [21:47:40]ConnectInit lk.salyk.kg [21:47:40]written 0, free lines is 4095 [21:47:40]Connected sock=10 [21:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 CD 1A 07 01 71 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 7F 04 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 69 01 00 35 04 06 00 15 9B 63 30 AC FB DA D7 49 8B 8B 81 76 79 [21:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 6D A4 47 00 D7 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 83 69 01 00 F4 03 04 00 F9 AC E5 66 B6 04 01 00 00 91 96 FF 55 EC CE 9F 9C [21:47:40]CommunicateWithHost err = 0 [21:47:40]CheckOFDResponse [21:47:40]1017 (14) - 77093643461234 [21:47:40]1041 (16) - 0000000000874692 [21:47:40]1040 (4) - 92547 [21:47:40]1012 (4) - 14.09.2024 15:34 [21:47:40]1206 (1) - 0 [21:47:40]OFD Sender: Remove packet 92547 [21:47:40]ProducePacketName [21:47:40]name=ofd_packets/00092547 [21:47:40]NVStorageDeleteData [21:47:40]Write to MH i2c: 01 00 00 D9 3B 14 [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 07 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 07 00 D9 3B 00 00 00 00 00 03 0D 2B [21:47:40]RasterBufferAndPrint [21:47:40]line [21:47:40]line [21:47:40]line [21:47:40]line [21:47:40]line [21:47:40]written 0, free lines is 3338 [21:47:40]MH_Cut [21:47:40]Write to MH i2c: D1 01 00 E0 3B 01 ED [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: D1 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: D1 01 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: D1 01 00 E0 3B 00 EC [21:47:40]Write to MH i2c: 01 00 00 E1 3B 1C [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:41]OFD Sender: No OFD packet to send [21:47:41]*** Cut start [21:47:41]*** Purtial cut [21:47:41]*** Stage 1: CUTSNS_PIN = 1 [21:47:43]Read from MH i2c: 01 [21:47:43]MH_I2C_Read... [21:47:43]*** Stop cut motor [21:47:43]*** Cut end [21:47:43]Read from MH i2c: 01 07 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: 01 07 00 E1 3B 00 00 00 00 00 FF 0F 31 [21:47:43]process_action close_receipt done [21:47:43]requested_data is exist [21:47:43]produce_requested_data [21:47:43]requested_item fm.sn is exist - process it [21:47:43]wFMCommunicate request_size=4 [21:47:43]MH_SAM_APDU [21:47:43]CAPDU: 80 11 00 00 [21:47:43]Write to MH i2c: E2 08 00 E2 3B 80 11 00 00 00 00 00 00 97 [21:47:43]Write i2c OK [21:47:43]MH_I2C_Read... [21:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:43]Read from MH i2c: E2 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 17 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 17 00 E2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EE [21:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:47:43]wFMCommunicate OK [21:47:43]requested_item fd.num is exist - process it [21:47:43]SAM_PROTO_GetFieldsCounters [21:47:43]wFMCommunicate request_size=4 [21:47:43]MH_SAM_APDU [21:47:43]CAPDU: 80 13 00 00 [21:47:43]Write to MH i2c: E2 08 00 E3 3B 80 13 00 00 00 00 00 00 9A [21:47:43]Write i2c OK [21:47:43]MH_I2C_Read... [21:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:43]Read from MH i2c: E2 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 62 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 62 00 E3 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 83 69 01 00 0E 04 04 00 FA 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 F3 [21:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 83 69 01 00 0E 04 04 00 FA 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 [21:47:43]wFMCommunicate OK [21:47:43]SAM_PROTO_GetFieldsCounters done [21:47:43]requested_item shift.num is exist - process it [21:47:43]requested_item shift.opened is exist - process it [21:47:43]req_shift_opened [21:47:43]FM_GetShiftState [21:47:43]SAM_PROTO_GetShiftState [21:47:43]wFMCommunicate request_size=4 [21:47:43]MH_SAM_APDU [21:47:43]CAPDU: 80 13 01 00 [21:47:43]Write to MH i2c: E2 08 00 E4 3B 80 13 01 00 00 00 00 00 9C [21:47:43]Write i2c OK [21:47:43]MH_I2C_Read... [21:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:43]Read from MH i2c: E2 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 0E 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 0E 00 E4 3B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 36 [21:47:43]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:47:43]wFMCommunicate OK [21:47:43]SAM_PROTO_GetShiftState done [21:47:43]FM_GetShiftState done [21:47:43]req_shift_opened done [21:47:43]requested_item shift.open_date is exist - process it [21:47:43]req_shift_open_date [21:47:43]req_shift_open_date done [21:47:43]produce_requested_data done [21:47:43]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92547,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:47:43]process_action_free close_receipt [21:47:43]json_value_free [21:47:43]json_value_free done [21:47:43]process_json_proto returns [21:47:43]Send response to host [21:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92547,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:47:43]free response buf [21:47:43]execute_script done [21:47:43]execute_script returns [21:47:43]free content buf [21:47:43]Sock 9.Close socket [21:47:43]Sock 9.Thread stoped [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:33]accept exits with 8 [21:48:33]New connection [21:48:33]New thread 3066658148 created [21:48:33]Thread 3066801508 joined [21:48:33]Waiting for new connection... [21:48:33] Sock 8.Parse request [21:48:33]Sock 8.Check first char [21:48:33]Sock 8.First char is OK [21:48:33]request: POST /json_proto HTTP/1.0 [21:48:33]Method: POST [21:48:33]URL: /json_proto [21:48:33]Method is POST - this is cgi request [21:48:33]url: /json_proto [21:48:33]query_string will be loaded in cgi processing [21:48:33]execute_cgi json_proto POST (null) [21:48:33]execute_cgi path=json_proto method=POST [21:48:33]POST find Content-Length [21:48:33]Host: 172.17.57.71:8080 [21:48:33]Content-Length: 977 [21:48:33]Content-Type: application/json [21:48:33] [21:48:33]POST finish read [21:48:33]Found Content-Length = 977 [21:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127449", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:33]execute_script... [21:48:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127449", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:33]POST & json_proto [21:48:33]process_json_proto [21:48:33]json parsed OK: [21:48:33]protocol is kg_v1.0 [21:48:33]action value=close_receipt [21:48:33]process_action close_receipt [21:48:33]cmd_close_receipt [21:48:33]MH_GetDate [21:48:33]Write to MH i2c: F0 00 00 E5 3B 0F [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: F0 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: F0 09 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: F0 09 00 E5 3B 00 B6 04 E6 66 33 3A A4 66 95 [21:48:33]GetLastDocTimeStamp 1726350463 [21:48:33]current date 1726350518 [21:48:33]FM_GetShiftState [21:48:33]SAM_PROTO_GetShiftState [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 13 01 00 [21:48:33]Write to MH i2c: E2 08 00 E6 3B 80 13 01 00 00 00 00 00 9E [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 0E 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 0E 00 E6 3B 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 38 [21:48:33]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:48:33]wFMCommunicate OK [21:48:33]SAM_PROTO_GetShiftState done [21:48:33]FM_GetShiftState done [21:48:33]opened in 1726273389 [21:48:33]opened+sec_in_day 1726359789 [21:48:33]quantity*price = 9500 [21:48:33]sum+1 = 9501 [21:48:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 234.00 НСП 1% : 2.07 НДС 12% : 24.85 Наличными: 234.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 199 14.09.2024 21:48 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92548 ФПД: 66002420961120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T214838&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92548&fm=66002420961120&tin=02508201610067®Number=0000000000091423&sum=23400 0 [21:48:34]StoreToDocumentArchive [21:48:34]shift 506 fd 92548 [21:48:34]save to /storage/0506/doc_00092548 [21:48:34]save last doc name /storage/0506/doc_00092548 to /storage/kkm_last_doc_name [21:48:34]save OK [21:48:34]Clear old archive folders... [21:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=413 [21:48:34]tlvbuf is 010E71E0 [21:48:34]SAM_PROTO_ClearQueue [21:48:34]wFMCommunicate request_size=4 [21:48:34]MH_SAM_APDU [21:48:34]CAPDU: 80 09 00 00 [21:48:34]Write to MH i2c: E2 08 00 F3 3B 80 09 00 00 00 00 00 00 A0 [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:34]Read from MH i2c: E2 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 03 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 03 00 F3 3B 00 90 00 A2 [21:48:34]RAPDU: 90 00 [21:48:34]wFMCommunicate OK [21:48:34]SAM_PROTO_ClearQueue done [21:48:34]KKMCreateOFDPacket [21:48:34]OFDProtocolAddRootSTLVToBuf [21:48:34]FM_MakeSignedData [21:48:34]FM_MakeSignedData [21:48:34]SAM_PROTO_SignData [21:48:34]wFMCommunicate request_size=4 [21:48:34]MH_SAM_APDU [21:48:34]CAPDU: 80 0D 01 02 [21:48:34]Write to MH i2c: E2 08 00 F4 3B 80 0D 01 02 00 00 00 00 A8 [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:34]Read from MH i2c: E2 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 03 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 03 00 F4 3B 00 90 00 A3 [21:48:34]RAPDU: 90 00 [21:48:34]wFMCommunicate OK [21:48:34]wFMCommunicate request_size=255 [21:48:34]MH_SAM_APDU [21:48:34]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 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 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 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 [21:48:34]Write to MH i2c: E2 02 01 F5 3B 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 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 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 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 00 90 [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:35]Read from MH i2c: E2 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: E2 03 00 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: E2 03 00 F5 3B 00 90 00 A4 [21:48:35]RAPDU: 90 00 [21:48:35]wFMCommunicate OK [21:48:35]wFMCommunicate request_size=172 [21:48:35]MH_SAM_APDU [21:48:35]CAPDU: 80 0D 02 02 A7 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 C7 00 00 00 F4 03 04 00 B6 04 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 69 01 00 35 04 06 00 3C 07 62 DB 0F 60 [21:48:35]Write to MH i2c: E2 AF 00 F6 3B 80 0D 02 02 A7 00 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 C7 00 00 00 F4 03 04 00 B6 04 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 69 01 00 35 04 06 00 3C 07 62 DB 0F 60 00 00 F2 [21:48:35]Write i2c OK [21:48:35]MH_I2C_Read... [21:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:35]Read from MH i2c: E2 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: E2 03 00 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: E2 03 00 F6 3B 00 90 00 A5 [21:48:35]RAPDU: 90 00 [21:48:35]wFMCommunicate OK [21:48:35]wFMCommunicate request_size=4 [21:48:35]MH_SAM_APDU [21:48:35]CAPDU: 80 0D 03 02 [21:48:35]Write to MH i2c: E2 08 00 F7 3B 80 0D 03 02 00 00 00 00 AD [21:48:35]Write i2c OK [21:48:35]MH_I2C_Read... [21:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:35]Read from MH i2c: E2 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: E2 0B 00 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: E2 0B 00 F7 3B 00 F3 3B 8A 9A 3F A2 EA C4 90 00 8F [21:48:35]RAPDU: F3 3B 8A 9A 3F A2 EA C4 90 00 [21:48:35]wFMCommunicate OK [21:48:35]SAM_PROTO_SignData done [21:48:35]FM_MakeSignedData done [21:48:35]CreateOFDProtocolMessage [21:48:35]wFMCommunicate request_size=4 [21:48:35]MH_SAM_APDU [21:48:35]CAPDU: 80 11 00 00 [21:48:35]Write to MH i2c: E2 08 00 F8 3B 80 11 00 00 00 00 00 00 AD [21:48:35]Write i2c OK [21:48:35]MH_I2C_Read... [21:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:35]Read from MH i2c: E2 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: E2 17 00 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: E2 17 00 F8 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 04 [21:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:48:35]wFMCommunicate OK [21:48:35]CreateOFDProtocolMessage done [21:48:35]OFDSenderStorePacket 92548 [21:48:35]StoreOFDPacket docnum=92548 [21:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B1 01 00 00 97 F4 A9 01 0F 64 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 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 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 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 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 C7 00 00 00 F4 03 04 00 B6 04 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 69 01 00 35 04 06 00 3C 07 62 DB 0F 60 F3 3B 8A 9A 3F A2 EA C4 [21:48:35]CheckFolder [21:48:35]dirname=/storage/ofd_packets [21:48:35]CheckFolder done [21:48:35]ProducePacketName [21:48:35]name=ofd_packets/00092548 [21:48:35]NVStorageSaveData ofd_packets/00092548 [21:48:35]File name is /storage/ofd_packets/00092548 [21:48:35]Write 463 bytes [21:48:35]NVStorageSaveData done [21:48:35]OFDSenderStorePacket done [21:48:35]KKMCreateOFDPacket done [21:48:35]NVStorageSaveData kkm_last_timestamp [21:48:35]File name is /storage/kkm_last_timestamp [21:48:35]Write 4 bytes [21:48:35]NVStorageSaveData done [21:48:35]ExternCall_PrintAddStr [21:48:35]wPrintStart [21:48:35]Write to MH i2c: 01 00 00 F9 3B 34 [21:48:35]Write i2c OK [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: 01 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: 01 07 00 [21:48:35]MH_I2C_Read... [21:48:35]OFD Sender: Processing packet 92548 [packets to send 63, broken 62] [21:48:35]ProducePacketName [21:48:35]name=ofd_packets/00092548 [21:48:35]Read from MH i2c: OFD Sender: To server: pG, [21:48:35]01 CommunicateWithHost lk.salyk.kg:30040 [21:48:35]07 ConnectInit lk.salyk.kg [21:48:35]00 F9 3B 00 00 00 00 00 FF 0F 49 [21:48:35]RasterBufferAndPrint [21:48:35]line Счет N : (3)127449 [21:48:35]line ИНН: 02508201610067 [21:48:35]line Контрольно-Кассовый Чек [21:48:35]line ПРОДАЖА [21:48:35]line Товар: 4700000481972 [21:48:35]line Напиток энерг Nitro грейпфрут-маракуйя 0 [21:48:35]line 1.000 * 95.00 [21:48:35]line = 95.00 [21:48:35]line НДС 12% НСП 1% [21:48:35]line > о реализуемом товаре [21:48:35]line Товар: 48745000 [21:48:35]line Сигареты Winston Purple Mix [21:48:35]line 1.000 * 139.00 [21:48:35]line = 139.00 [21:48:35]line НДС 12% НСП 1% [21:48:35]line > о реализуемом товаре [21:48:35]line ИТОГО: 234.00 [21:48:35]line НСП 1% : 2.07 [21:48:35]line НДС 12% : 24.85 [21:48:35]line Наличными: 234.00 [21:48:35]line Безнал.: 0.00 [21:48:35]line Место: АЗС № 5 "Партнер Нефть" [21:48:35]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:48:35]line СНО: Общий режим [21:48:35]line Чек 199 14.09.2024 21:48 [21:48:35]line Смена: 506 ФФД: 1.0 [21:48:35]line ЗНМ: 03000000022 [21:48:35]line РНМ: 0000000000091423 [21:48:35]line Версия ККМ: 001 [21:48:35]line ФМ: 0000000000874692 [21:48:35]line ФД: 92548 [21:48:35]line ФПД: 66002420961120 [21:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T214838&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92548&fm=66002420961120&tin=02508201610067®Number=0000000000091423&sum=23400 [21:48:35]line 0 [21:48:35]written 0, free lines is 4095 [21:48:35]Connected sock=11 [21:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 B1 01 00 00 97 F4 A9 01 0F 64 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 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 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 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 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 C7 00 00 00 F4 03 04 00 B6 04 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 69 01 00 35 04 06 00 3C 07 62 DB 0F 60 F3 3B 8A 9A 3F A2 EA C4 [21:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 07 68 47 00 3B A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 84 69 01 00 F4 03 04 00 30 AD E5 66 B6 04 01 00 00 91 5E D6 5B EF 5D 76 29 [21:48:35]CommunicateWithHost err = 0 [21:48:35]CheckOFDResponse [21:48:35]1017 (14) - 77093643461234 [21:48:35]1041 (16) - 0000000000874692 [21:48:35]1040 (4) - 92548 [21:48:35]1012 (4) - 14.09.2024 15:35 [21:48:35]1206 (1) - 0 [21:48:35]OFD Sender: Remove packet 92548 [21:48:35]ProducePacketName [21:48:35]name=ofd_packets/00092548 [21:48:35]NVStorageDeleteData [21:48:36]Write to MH i2c: 01 00 00 28 3C 64 [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: 01 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: 01 07 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: 01 07 00 28 3C 00 00 00 00 00 CD 0C 44 [21:48:36]RasterBufferAndPrint [21:48:36]line [21:48:36]line [21:48:36]line [21:48:36]line [21:48:36]line [21:48:36]written 0, free lines is 3284 [21:48:36]MH_Cut [21:48:36]Write to MH i2c: D1 01 00 2F 3C 01 3D [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: D1 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: D1 01 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: D1 01 00 2F 3C 00 3C [21:48:36]Write to MH i2c: 01 00 00 30 3C 6C [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]OFD Sender: No OFD packet to send [21:48:36]*** Cut start [21:48:36]*** Purtial cut [21:48:36]*** Stage 1: CUTSNS_PIN = 1 [21:48:38]Read from MH i2c: 01 [21:48:38]MH_I2C_Read... [21:48:38]*** Stop cut motor [21:48:38]*** Cut end [21:48:38]Read from MH i2c: 01 07 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: 01 07 00 30 3C 00 00 00 00 00 FF 0F 81 [21:48:38]process_action close_receipt done [21:48:38]requested_data is exist [21:48:38]produce_requested_data [21:48:38]requested_item fm.sn is exist - process it [21:48:38]wFMCommunicate request_size=4 [21:48:38]MH_SAM_APDU [21:48:38]CAPDU: 80 11 00 00 [21:48:38]Write to MH i2c: E2 08 00 31 3C 80 11 00 00 00 00 00 00 E7 [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:38]Read from MH i2c: E2 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 17 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 17 00 31 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3E [21:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:48:38]wFMCommunicate OK [21:48:38]requested_item fd.num is exist - process it [21:48:38]SAM_PROTO_GetFieldsCounters [21:48:38]wFMCommunicate request_size=4 [21:48:38]MH_SAM_APDU [21:48:38]CAPDU: 80 13 00 00 [21:48:38]Write to MH i2c: E2 08 00 32 3C 80 13 00 00 00 00 00 00 EA [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:39]Read from MH i2c: E2 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 62 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 62 00 32 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 84 69 01 00 0E 04 04 00 FA 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 47 [21:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 84 69 01 00 0E 04 04 00 FA 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 [21:48:39]wFMCommunicate OK [21:48:39]SAM_PROTO_GetFieldsCounters done [21:48:39]requested_item shift.num is exist - process it [21:48:39]requested_item shift.opened is exist - process it [21:48:39]req_shift_opened [21:48:39]FM_GetShiftState [21:48:39]SAM_PROTO_GetShiftState [21:48:39]wFMCommunicate request_size=4 [21:48:39]MH_SAM_APDU [21:48:39]CAPDU: 80 13 01 00 [21:48:39]Write to MH i2c: E2 08 00 33 3C 80 13 01 00 00 00 00 00 EC [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:39]Read from MH i2c: E2 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 0E 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 0E 00 33 3C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 86 [21:48:39]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:48:39]wFMCommunicate OK [21:48:39]SAM_PROTO_GetShiftState done [21:48:39]FM_GetShiftState done [21:48:39]req_shift_opened done [21:48:39]requested_item shift.open_date is exist - process it [21:48:39]req_shift_open_date [21:48:39]req_shift_open_date done [21:48:39]produce_requested_data done [21:48:39]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92548,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:48:39]process_action_free close_receipt [21:48:39]json_value_free [21:48:39]json_value_free done [21:48:39]process_json_proto returns [21:48:39]Send response to host [21:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92548,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:48:39]free response buf [21:48:39]execute_script done [21:48:39]execute_script returns [21:48:39]free content buf [21:48:39]Sock 8.Close socket [21:48:39]Sock 8.Thread stoped [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:50:58]accept exits with 9 [21:50:58]New connection [21:50:58]New thread 3066801508 created [21:50:58]Thread 3066658148 joined [21:50:58]Waiting for new connection... [21:50:58] Sock 9.Parse request [21:50:58]Sock 9.Check first char [21:50:58]Sock 9.First char is OK [21:50:58]request: POST /json_proto HTTP/1.0 [21:50:58]Method: POST [21:50:58]URL: /json_proto [21:50:58]Method is POST - this is cgi request [21:50:58]url: /json_proto [21:50:58]query_string will be loaded in cgi processing [21:50:58]execute_cgi json_proto POST (null) [21:50:58]execute_cgi path=json_proto method=POST [21:50:58]POST find Content-Length [21:50:58]Host: 172.17.57.71:8080 [21:50:58]Content-Length: 215 [21:50:58]Content-Type: application/json [21:50:58] [21:50:58]POST finish read [21:50:58]Found Content-Length = 215 [21:50:58]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" ] } } [21:50:58]execute_script... [21:50:58]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" ] } } [21:50:58]POST & json_proto [21:50:58]process_json_proto [21:50:58]json parsed OK: [21:50:58]protocol is kg_v1.0 [21:50:58]action value=get_value [21:50:58]process_action get_value [21:50:58]cmd_get_value [21:50:58]process_action get_value done [21:50:58]requested_data is exist [21:50:58]produce_requested_data [21:50:58]requested_item kkm.sn is exist - process it [21:50:58]requested_item kkm.ver is exist - process it [21:50:58]requested_item fm.sn is exist - process it [21:50:58]wFMCommunicate request_size=4 [21:50:58]MH_SAM_APDU [21:50:58]CAPDU: 80 11 00 00 [21:50:58]Write to MH i2c: E2 08 00 34 3C 80 11 00 00 00 00 00 00 EA [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:58]Read from MH i2c: E2 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 17 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 17 00 34 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 41 [21:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:50:58]wFMCommunicate OK [21:50:58]requested_item fd.num is exist - process it [21:50:58]SAM_PROTO_GetFieldsCounters [21:50:58]wFMCommunicate request_size=4 [21:50:58]MH_SAM_APDU [21:50:58]CAPDU: 80 13 00 00 [21:50:58]Write to MH i2c: E2 08 00 35 3C 80 13 00 00 00 00 00 00 ED [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:58]Read from MH i2c: E2 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 62 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 62 00 35 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 84 69 01 00 0E 04 04 00 FA 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 4A [21:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 84 69 01 00 0E 04 04 00 FA 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 [21:50:58]wFMCommunicate OK [21:50:58]SAM_PROTO_GetFieldsCounters done [21:50:58]requested_item shift.num is exist - process it [21:50:58]requested_item shift.opened is exist - process it [21:50:58]req_shift_opened [21:50:58]FM_GetShiftState [21:50:58]SAM_PROTO_GetShiftState [21:50:58]wFMCommunicate request_size=4 [21:50:58]MH_SAM_APDU [21:50:58]CAPDU: 80 13 01 00 [21:50:58]Write to MH i2c: E2 08 00 36 3C 80 13 01 00 00 00 00 00 EF [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:58]Read from MH i2c: E2 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 0E 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 0E 00 36 3C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 89 [21:50:58]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:50:58]wFMCommunicate OK [21:50:58]SAM_PROTO_GetShiftState done [21:50:58]FM_GetShiftState done [21:50:58]req_shift_opened done [21:50:58]requested_item shift.open_date is exist - process it [21:50:58]req_shift_open_date [21:50:58]req_shift_open_date done [21:50:58]produce_requested_data done [21:50:58]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92548,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:50:58]process_action_free get_value [21:50:58]json_value_free [21:50:58]json_value_free done [21:50:58]process_json_proto returns [21:50:58]Send response to host [21:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92548,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:50:58]free response buf [21:50:58]execute_script done [21:50:58]execute_script returns [21:50:58]free content buf [21:50:58]Sock 9.Close socket [21:50:58]Sock 9.Thread stoped [21:50:58]accept exits with 8 [21:50:58]New connection [21:50:58]New thread 3066658148 created [21:50:58]Thread 3066801508 joined [21:50:58]Waiting for new connection... [21:50:58] Sock 8.Parse request [21:50:58]Sock 8.Check first char [21:50:58]Sock 8.First char is OK [21:50:58]request: POST /json_proto HTTP/1.0 [21:50:58]Method: POST [21:50:58]URL: /json_proto [21:50:58]Method is POST - this is cgi request [21:50:58]url: /json_proto [21:50:58]query_string will be loaded in cgi processing [21:50:58]execute_cgi json_proto POST (null) [21:50:58]execute_cgi path=json_proto method=POST [21:50:58]POST find Content-Length [21:50:58]Host: 172.17.57.71:8080 [21:50:58]Content-Length: 331 [21:50:58]Content-Type: application/json [21:50:58] [21:50:58]POST finish read [21:50:58]Found Content-Length = 331 [21:50:58]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" ] } } [21:50:58]execute_script... [21:50:58]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" ] } } [21:50:58]POST & json_proto [21:50:58]process_json_proto [21:50:58]json parsed OK: [21:50:58]protocol is kg_v1.0 [21:50:58]action value=get_value [21:50:58]process_action get_value [21:50:58]cmd_get_value [21:50:58]process_action get_value done [21:50:58]requested_data is exist [21:50:58]produce_requested_data [21:50:58]requested_item fm.sale.total is exist - process it [21:50:58]SAM_PROTO_GetFMData [21:50:58]wFMCommunicate request_size=4 [21:50:58]MH_SAM_APDU [21:50:58]CAPDU: 80 13 03 00 [21:50:58]Write to MH i2c: E2 08 00 37 3C 80 13 03 00 00 00 00 00 F2 [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 FD 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 FD 00 37 3C 00 C5 04 85 04 C1 04 6E 04 04 00 90 65 01 00 69 04 A1 00 6F 04 04 00 3E 62 01 00 B1 04 04 00 09 12 CB B2 70 04 04 00 20 E6 52 83 72 04 04 00 E9 2B 78 2F 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 8F F9 FC 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4F EE 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 3F [21:50:59]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 90 65 01 00 69 04 A1 00 6F 04 04 00 3E 62 01 00 B1 04 04 00 09 12 CB B2 70 04 04 00 20 E6 52 83 72 04 04 00 E9 2B 78 2F 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 8F F9 FC 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4F EE 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [21:50:59]wFMCommunicate OK [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 17 00 00 [21:50:59]Write to MH i2c: E2 08 00 38 3C 80 17 00 00 00 00 00 00 F4 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 FD 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 FD 00 38 3C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 54 [21:50:59]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [21:50:59]wFMCommunicate OK [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 17 00 00 [21:50:59]Write to MH i2c: E2 08 00 39 3C 80 17 00 00 00 00 00 00 F5 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 FD 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 FD 00 39 3C 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 07 [21:50:59]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 [21:50:59]wFMCommunicate OK [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 17 00 00 [21:50:59]Write to MH i2c: E2 08 00 3A 3C 80 17 00 00 00 00 00 00 F6 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 FD 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 FD 00 3A 3C 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 82 [21:50:59]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 [21:50:59]wFMCommunicate OK [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 17 00 00 [21:50:59]Write to MH i2c: E2 08 00 3B 3C 80 17 00 00 00 00 00 00 F7 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:51:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [21:51:00]Read from MH i2c: E2 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: E2 E2 00 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: E2 E2 00 3B 3C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D5 [21:51:00]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 [21:51:00]wFMCommunicate OK [21:51:00]SAM_PROTO_GetFMData done [21:51:00]requested_item fm.sale_refund.total is exist - process it [21:51:00]requested_item fm.buy.total is exist - process it [21:51:00]requested_item shift.sale.total is exist - process it [21:51:00]SAM_PROTO_GetShiftData [21:51:00]wFMCommunicate request_size=4 [21:51:00]MH_SAM_APDU [21:51:00]CAPDU: 80 13 02 00 [21:51:00]Write to MH i2c: E2 08 00 3C 3C 80 13 02 00 00 00 00 00 F6 [21:51:00]Write i2c OK [21:51:00]MH_I2C_Read... [21:51:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:51:00]Read from MH i2c: E2 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: E2 FD 00 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: E2 FD 00 3C 3C 00 BA 04 AA 04 B6 04 6E 04 04 00 C7 00 00 00 69 04 9B 00 6F 04 04 00 C3 00 00 00 B1 04 03 00 AC 21 4F 70 04 03 00 18 3B 34 72 04 03 00 94 E6 1A 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 62 67 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 39 B3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 BE [21:51:00]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C7 00 00 00 69 04 9B 00 6F 04 04 00 C3 00 00 00 B1 04 03 00 AC 21 4F 70 04 03 00 18 3B 34 72 04 03 00 94 E6 1A 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 62 67 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 39 B3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [21:51:00]wFMCommunicate OK [21:51:00]wFMCommunicate request_size=4 [21:51:00]MH_SAM_APDU [21:51:00]CAPDU: 80 17 00 00 [21:51:00]Write to MH i2c: E2 08 00 3D 3C 80 17 00 00 00 00 00 00 F9 [21:51:00]Write i2c OK [21:51:00]MH_I2C_Read... [21:51:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:00]Read from MH i2c: E2 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: E2 FD 00 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: E2 FD 00 3D 3C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 0A [21:51:00]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 [21:51:00]wFMCommunicate OK [21:51:00]wFMCommunicate request_size=4 [21:51:00]MH_SAM_APDU [21:51:00]CAPDU: 80 17 00 00 [21:51:00]Write to MH i2c: E2 08 00 3E 3C 80 17 00 00 00 00 00 00 FA [21:51:00]Write i2c OK [21:51:00]MH_I2C_Read... [21:51:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:01]Read from MH i2c: E2 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 FD 00 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 FD 00 3E 3C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [21:51:01]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:51:01]wFMCommunicate OK [21:51:01]wFMCommunicate request_size=4 [21:51:01]MH_SAM_APDU [21:51:01]CAPDU: 80 17 00 00 [21:51:01]Write to MH i2c: E2 08 00 3F 3C 80 17 00 00 00 00 00 00 FB [21:51:01]Write i2c OK [21:51:01]MH_I2C_Read... [21:51:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:01]Read from MH i2c: E2 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 FD 00 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 FD 00 3F 3C 00 00 EF 03 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 90 00 73 [21:51:01]RAPDU: 00 EF 03 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 90 00 [21:51:01]wFMCommunicate OK [21:51:01]wFMCommunicate request_size=4 [21:51:01]MH_SAM_APDU [21:51:01]CAPDU: 80 17 00 00 [21:51:01]Write to MH i2c: E2 08 00 40 3C 80 17 00 00 00 00 00 00 FC [21:51:01]Write i2c OK [21:51:01]MH_I2C_Read... [21:51:01]OFD Sender: No OFD packet to send [21:51:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [21:51:01]Read from MH i2c: E2 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 D7 00 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 D7 00 40 3C 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 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 DF [21:51:01]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 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:51:01]wFMCommunicate OK [21:51:01]SAM_PROTO_GetShiftData done [21:51:01]requested_item shift.sale.total_cash is exist - process it [21:51:01]requested_item shift.sale_refund.total is exist - process it [21:51:01]requested_item shift.sale_refund.total_cash is exist - process it [21:51:01]requested_item shift.buy.total is exist - process it [21:51:01]requested_item shift.buy.total_cash is exist - process it [21:51:01]produce_requested_data done [21:51:01]produce_requested_data return {"fm.sale.total":29996528.73,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":51859.64,"shift.sale.total_cash":34230.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:51:01]process_action_free get_value [21:51:01]json_value_free [21:51:01]json_value_free done [21:51:01]process_json_proto returns [21:51:01]Send response to host [21:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29996528.73,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":51859.64,"shift.sale.total_cash":34230.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:51:01]free response buf [21:51:01]execute_script done [21:51:01]execute_script returns [21:51:01]free content buf [21:51:01]Sock 8.Close socket [21:51:01]Sock 8.Thread stoped [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]accept exits with 9 [21:52:26]New connection [21:52:26]New thread 3066801508 created [21:52:26]Thread 3066658148 joined [21:52:26]Waiting for new connection... [21:52:26] Sock 9.Parse request [21:52:26]Sock 9.Check first char [21:52:26]Sock 9.First char is OK [21:52:26]request: POST /json_proto HTTP/1.0 [21:52:26]Method: POST [21:52:26]URL: /json_proto [21:52:26]Method is POST - this is cgi request [21:52:26]url: /json_proto [21:52:26]query_string will be loaded in cgi processing [21:52:26]execute_cgi json_proto POST (null) [21:52:26]execute_cgi path=json_proto method=POST [21:52:26]POST find Content-Length [21:52:26]Host: 172.17.57.71:8080 [21:52:26]Content-Length: 822 [21:52:26]Content-Type: application/json [21:52:26] [21:52:26]POST finish read [21:52:26]Found Content-Length = 822 [21:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648035", "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" : 36.90, "quantity" : 37.950, "sum" : 1400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1400.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:26]execute_script... [21:52: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)648035", "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" : 36.90, "quantity" : 37.950, "sum" : 1400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1400.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:26]POST & json_proto [21:52:26]process_json_proto [21:52:26]json parsed OK: [21:52:26]protocol is kg_v1.0 [21:52:26]action value=close_receipt [21:52:26]process_action close_receipt [21:52:26]cmd_close_receipt [21:52:26]MH_GetDate [21:52:26]Write to MH i2c: F0 00 00 41 3C 6C [21:52:26]Write i2c OK [21:52:26]MH_I2C_Read... [21:52:26]Read from MH i2c: F0 [21:52:26]MH_I2C_Read... [21:52:26]Read from MH i2c: F0 09 00 [21:52:26]MH_I2C_Read... [21:52:26]Read from MH i2c: F0 09 00 41 3C 00 9F 05 E6 66 33 3A A4 66 DC [21:52:26]GetLastDocTimeStamp 1726350518 [21:52:26]current date 1726350751 [21:52:26]FM_GetShiftState [21:52:26]SAM_PROTO_GetShiftState [21:52:26]wFMCommunicate request_size=4 [21:52:26]MH_SAM_APDU [21:52:26]CAPDU: 80 13 01 00 [21:52:26]Write to MH i2c: E2 08 00 42 3C 80 13 01 00 00 00 00 00 FB [21:52:26]Write i2c OK [21:52:26]MH_I2C_Read... [21:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:26]Read from MH i2c: E2 [21:52:26]MH_I2C_Read... [21:52:26]Read from MH i2c: E2 0E 00 [21:52:26]MH_I2C_Read... [21:52:26]Read from MH i2c: E2 0E 00 42 3C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 95 [21:52:26]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:52:26]wFMCommunicate OK [21:52:26]SAM_PROTO_GetShiftState done [21:52:26]FM_GetShiftState done [21:52:26]opened in 1726273389 [21:52:26]opened+sec_in_day 1726359789 [21:52:26]quantity*price = 140035 [21:52:26]sum+1 = 140037 [21:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.36 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 0.00 Безнал.: 1400.36 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 200 14.09.2024 21:52 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874692 ФД: 92549 ФПД: 11646618871006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T215231&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92549&fm=11646618871006&tin=02508201610067®Number=0000000000091423&sum=140036 [21:52:27]StoreToDocumentArchive [21:52:27]shift 506 fd 92549 [21:52:27]save to /storage/0506/doc_00092549 [21:52:27]save last doc name /storage/0506/doc_00092549 to /storage/kkm_last_doc_name [21:52:27]save OK [21:52:27]Clear old archive folders... [21:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:52:27]tlvbuf is 0101E340 [21:52:27]SAM_PROTO_ClearQueue [21:52:27]wFMCommunicate request_size=4 [21:52:27]MH_SAM_APDU [21:52:27]CAPDU: 80 09 00 00 [21:52:27]Write to MH i2c: E2 08 00 4F 3C 80 09 00 00 00 00 00 00 FD [21:52:27]Write i2c OK [21:52:27]MH_I2C_Read... [21:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:27]Read from MH i2c: E2 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 03 00 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 03 00 4F 3C 00 90 00 FF [21:52:27]RAPDU: 90 00 [21:52:27]wFMCommunicate OK [21:52:27]SAM_PROTO_ClearQueue done [21:52:27]KKMCreateOFDPacket [21:52:27]OFDProtocolAddRootSTLVToBuf [21:52:27]FM_MakeSignedData [21:52:27]FM_MakeSignedData [21:52:27]SAM_PROTO_SignData [21:52:27]wFMCommunicate request_size=4 [21:52:27]MH_SAM_APDU [21:52:27]CAPDU: 80 0D 01 02 [21:52:27]Write to MH i2c: E2 08 00 50 3C 80 0D 01 02 00 00 00 00 05 [21:52:27]Write i2c OK [21:52:27]MH_I2C_Read... [21:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:27]Read from MH i2c: E2 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 03 00 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 03 00 50 3C 00 90 00 00 [21:52:27]RAPDU: 90 00 [21:52:27]wFMCommunicate OK [21:52:27]wFMCommunicate request_size=255 [21:52:27]MH_SAM_APDU [21:52:27]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 3E 94 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 04 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 9F 05 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 69 01 00 35 04 06 00 0A 97 [21:52:27]Write to MH i2c: E2 02 01 51 3C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 3E 94 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 04 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 9F 05 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 69 01 00 35 04 06 00 0A 97 00 00 E8 [21:52:27]Write i2c OK [21:52:27]MH_I2C_Read... [21:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:27]Read from MH i2c: E2 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 03 00 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 03 00 51 3C 00 90 00 01 [21:52:27]RAPDU: 90 00 [21:52:27]wFMCommunicate OK [21:52:27]wFMCommunicate request_size=9 [21:52:27]MH_SAM_APDU [21:52:27]CAPDU: 80 0D 02 02 04 B0 94 A4 DE [21:52:27]Write to MH i2c: E2 0C 00 52 3C 80 0D 02 02 04 00 B0 94 A4 DE 00 00 D6 [21:52:27]Write i2c OK [21:52:27]MH_I2C_Read... [21:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:27]Read from MH i2c: E2 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 03 00 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 03 00 52 3C 00 90 00 02 [21:52:27]RAPDU: 90 00 [21:52:27]wFMCommunicate OK [21:52:27]wFMCommunicate request_size=4 [21:52:27]MH_SAM_APDU [21:52:27]CAPDU: 80 0D 03 02 [21:52:27]Write to MH i2c: E2 08 00 53 3C 80 0D 03 02 00 00 00 00 0A [21:52:27]Write i2c OK [21:52:27]MH_I2C_Read... [21:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:27]Read from MH i2c: E2 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 0B 00 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 0B 00 53 3C 00 B1 01 A7 A5 CE 4B FC A2 90 00 C0 [21:52:27]RAPDU: B1 01 A7 A5 CE 4B FC A2 90 00 [21:52:27]wFMCommunicate OK [21:52:27]SAM_PROTO_SignData done [21:52:27]FM_MakeSignedData done [21:52:27]CreateOFDProtocolMessage [21:52:27]wFMCommunicate request_size=4 [21:52:27]MH_SAM_APDU [21:52:27]CAPDU: 80 11 00 00 [21:52:27]Write to MH i2c: E2 08 00 54 3C 80 11 00 00 00 00 00 00 0A [21:52:27]Write i2c OK [21:52:27]MH_I2C_Read... [21:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:27]Read from MH i2c: E2 [21:52:27]MH_I2C_Read... [21:52:27]Read from MH i2c: E2 17 00 [21:52:27]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 17 00 54 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 61 [21:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:52:28]wFMCommunicate OK [21:52:28]CreateOFDProtocolMessage done [21:52:28]OFDSenderStorePacket 92549 [21:52:28]StoreOFDPacket docnum=92549 [21:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 50 EA 06 01 3F 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 3E 94 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 04 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 9F 05 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 69 01 00 35 04 06 00 0A 97 B0 94 A4 DE B1 01 A7 A5 CE 4B FC A2 [21:52:28]CheckFolder [21:52:28]dirname=/storage/ofd_packets [21:52:28]CheckFolder done [21:52:28]ProducePacketName [21:52:28]name=ofd_packets/00092549 [21:52:28]NVStorageSaveData ofd_packets/00092549 [21:52:28]File name is /storage/ofd_packets/00092549 [21:52:28]Write 300 bytes [21:52:28]NVStorageSaveData done [21:52:28]OFDSenderStorePacket done [21:52:28]KKMCreateOFDPacket done [21:52:28]NVStorageSaveData kkm_last_timestamp [21:52:28]File name is /storage/kkm_last_timestamp [21:52:28]Write 4 bytes [21:52:28]NVStorageSaveData done [21:52:28]ExternCall_PrintAddStr [21:52:28]wPrintStart [21:52:28]Write to MH i2c: 01 00 00 55 3C 91 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 07 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 07 00 55 3C 00 00 00 00 00 FF 0F A6 [21:52:28]RasterBufferAndPrint [21:52:28]line Счет N : (1)648035 [21:52:28]line ИНН: 02508201610067 [21:52:28]line Контрольно-Кассовый Чек [21:52:28]line ПРОДАЖА [21:52:28]line ТРК (МРК, ГНК) : 71 [21:52:28]line Товар: 2711190000 [21:52:28]line ГАЗ-К-5 [21:52:28]line 37.950 * 36.90 [21:52:28]line = 1400.36 [21:52:28]line НДС 12% НСП 1% [21:52:28]line > о реализуемом товаре [21:52:28]line ИТОГО: 1400.36 [21:52:28]line НСП 1% : 12.39 [21:52:28]line НДС 12% : 148.71 [21:52:28]line Наличными: 0.00 [21:52:28]line Безнал.: 1400.36 [21:52:28]line Место: АЗС № 5 "Партнер Нефть" [21:52:28]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [21:52:28]line СНО: Общий режим [21:52:28]line Чек 200 14.09.2024 21:52 [21:52:28]line Смена: 506 ФФД: 1.0 [21:52:28]line ЗНМ: 03000000022 [21:52:28]line РНМ: 0000000000091423 [21:52:28]line Версия ККМ: 001 [21:52:28]line Платежная система: Бакай Банк [21:52:28]line ФМ: 0000000000874692 [21:52:28]line ФД: 92549 [21:52:28]line ФПД: 11646618871006 [21:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T215231&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92549&fm=11646618871006&tin=02508201610067®Number=0000000000091423&sum=140036 [21:52:28]OFD Sender: Processing packet 92549 [packets to send 63, broken 62] [21:52:28]ProducePacketName [21:52:28]name=ofd_packets/00092549 [21:52:28]OFD Sender: To server: pG, [21:52:28]CommunicateWithHost lk.salyk.kg:30040 [21:52:28]ConnectInit lk.salyk.kg [21:52:28]written 0, free lines is 4095 [21:52:28]Connected sock=8 [21:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 50 EA 06 01 3F 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 3E 94 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 04 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 9F 05 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 69 01 00 35 04 06 00 0A 97 B0 94 A4 DE B1 01 A7 A5 CE 4B FC A2 [21:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 01 C4 47 00 65 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 85 69 01 00 F4 03 04 00 19 AE E5 66 B6 04 01 00 00 C7 BF 48 F3 C4 8F 78 72 [21:52:28]CommunicateWithHost err = 0 [21:52:28]CheckOFDResponse [21:52:28]1017 (14) - 77093643461234 [21:52:28]1041 (16) - 0000000000874692 [21:52:28]1040 (4) - 92549 [21:52:28]1012 (4) - 14.09.2024 15:39 [21:52:28]1206 (1) - 0 [21:52:28]OFD Sender: Remove packet 92549 [21:52:28]ProducePacketName [21:52:28]name=ofd_packets/00092549 [21:52:28]NVStorageDeleteData [21:52:28]Write to MH i2c: 01 00 00 7F 3C BB [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 07 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 07 00 7F 3C 00 00 00 00 00 FD 0C CB [21:52:28]RasterBufferAndPrint [21:52:28]line [21:52:28]line [21:52:28]line [21:52:28]line [21:52:28]line [21:52:28]written 0, free lines is 3333 [21:52:28]MH_Cut [21:52:28]Write to MH i2c: D1 01 00 86 3C 01 94 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: D1 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: D1 01 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: D1 01 00 86 3C 00 93 [21:52:28]Write to MH i2c: 01 00 00 87 3C C3 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:29]OFD Sender: No OFD packet to send [21:52:29]*** Cut start [21:52:29]*** Purtial cut [21:52:29]*** Stage 1: CUTSNS_PIN = 1 [21:52:31]Read from MH i2c: 01 [21:52:31]MH_I2C_Read... [21:52:31]*** Stop cut motor [21:52:31]*** Cut end [21:52:31]Read from MH i2c: 01 07 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: 01 07 00 87 3C 00 00 00 00 00 FF 0F D8 [21:52:31]process_action close_receipt done [21:52:31]requested_data is exist [21:52:31]produce_requested_data [21:52:31]requested_item fm.sn is exist - process it [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 11 00 00 [21:52:31]Write to MH i2c: E2 08 00 88 3C 80 11 00 00 00 00 00 00 3E [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 17 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 17 00 88 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 95 [21:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [21:52:31]wFMCommunicate OK [21:52:31]requested_item fd.num is exist - process it [21:52:31]SAM_PROTO_GetFieldsCounters [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 13 00 00 [21:52:31]Write to MH i2c: E2 08 00 89 3C 80 13 00 00 00 00 00 00 41 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 62 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 62 00 89 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 85 69 01 00 0E 04 04 00 FA 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 A2 [21:52:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 85 69 01 00 0E 04 04 00 FA 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 [21:52:31]wFMCommunicate OK [21:52:31]SAM_PROTO_GetFieldsCounters done [21:52:31]requested_item shift.num is exist - process it [21:52:31]requested_item shift.opened is exist - process it [21:52:31]req_shift_opened [21:52:31]FM_GetShiftState [21:52:31]SAM_PROTO_GetShiftState [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 13 01 00 [21:52:31]Write to MH i2c: E2 08 00 8A 3C 80 13 01 00 00 00 00 00 43 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 0E 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 0E 00 8A 3C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DD [21:52:31]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [21:52:31]wFMCommunicate OK [21:52:31]SAM_PROTO_GetShiftState done [21:52:31]FM_GetShiftState done [21:52:31]req_shift_opened done [21:52:31]requested_item shift.open_date is exist - process it [21:52:31]req_shift_open_date [21:52:31]req_shift_open_date done [21:52:31]produce_requested_data done [21:52:31]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92549,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [21:52:31]process_action_free close_receipt [21:52:31]json_value_free [21:52:31]json_value_free done [21:52:31]process_json_proto returns [21:52:31]Send response to host [21:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92549,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [21:52:31]free response buf [21:52:31]execute_script done [21:52:31]execute_script returns [21:52:31]free content buf [21:52:31]Sock 9.Close socket [21:52:31]Sock 9.Thread stoped [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:23]accept exits with 10 [22:03:23]New connection [22:03:23]New thread 3066658148 created [22:03:23]Thread 3066801508 joined [22:03:23]Waiting for new connection... [22:03:23] Sock 10.Parse request [22:03:23]Sock 10.Check first char [22:03:23]Sock 10.First char is OK [22:03:23]request: POST /json_proto HTTP/1.0 [22:03:23]Method: POST [22:03:23]URL: /json_proto [22:03:23]Method is POST - this is cgi request [22:03:23]url: /json_proto [22:03:23]query_string will be loaded in cgi processing [22:03:23]execute_cgi json_proto POST (null) [22:03:23]execute_cgi path=json_proto method=POST [22:03:23]POST find Content-Length [22:03:23]Host: 172.17.57.71:8080 [22:03:23]Content-Length: 642 [22:03:23]Content-Type: application/json [22:03:23] [22:03:23]POST finish read [22:03:23]Found Content-Length = 642 [22:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127450", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.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" ] } } [22:03:23]execute_script... [22: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)127450", "tax_sys" : 0, "items" : [ { "code": "58411125749", "name": "\u0422\u0435 \u0441\u0430\u043C\u044B\u0435 \u043C\u0430\u043A\u0430\u0440\u043E\u043D", "price" : 195.00, "quantity" : 1.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" ] } } [22:03:23]POST & json_proto [22:03:23]process_json_proto [22:03:23]json parsed OK: [22:03:23]protocol is kg_v1.0 [22:03:23]action value=close_receipt [22:03:23]process_action close_receipt [22:03:23]cmd_close_receipt [22:03:23]MH_GetDate [22:03:23]Write to MH i2c: F0 00 00 8B 3C B6 [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: F0 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: F0 09 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: F0 09 00 8B 3C 00 30 08 E6 66 33 3A A4 66 BA [22:03:23]GetLastDocTimeStamp 1726350751 [22:03:23]current date 1726351408 [22:03:23]FM_GetShiftState [22:03:23]SAM_PROTO_GetShiftState [22:03:23]wFMCommunicate request_size=4 [22:03:23]MH_SAM_APDU [22:03:23]CAPDU: 80 13 01 00 [22:03:23]Write to MH i2c: E2 08 00 8C 3C 80 13 01 00 00 00 00 00 45 [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:23]Read from MH i2c: E2 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 0E 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 0E 00 8C 3C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 DF [22:03:23]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [22:03:23]wFMCommunicate OK [22:03:23]SAM_PROTO_GetShiftState done [22:03:23]FM_GetShiftState done [22:03:23]opened in 1726273389 [22:03:23]opened+sec_in_day 1726359789 [22:03:23]quantity*price = 19500 [22:03:23]sum+1 = 19501 [22:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 201 14.09.2024 22:03 Смена: 506 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92550 ФПД: 105431570329066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T220328&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92550&fm=105431570329066&tin=02508201610067®Number=0000000000091423&sum=19500 0 [22:03:24]StoreToDocumentArchive [22:03:24]shift 506 fd 92550 [22:03:24]save to /storage/0506/doc_00092550 [22:03:24]save last doc name /storage/0506/doc_00092550 to /storage/kkm_last_doc_name [22:03:24]save OK [22:03:24]Clear old archive folders... [22:03:24]ProcessDocumentItem done err = 0, tmpTLVsize=270 [22:03:24]tlvbuf is 010E96E0 [22:03:24]SAM_PROTO_ClearQueue [22:03:24]wFMCommunicate request_size=4 [22:03:24]MH_SAM_APDU [22:03:24]CAPDU: 80 09 00 00 [22:03:24]Write to MH i2c: E2 08 00 99 3C 80 09 00 00 00 00 00 00 47 [22:03:24]Write i2c OK [22:03:24]MH_I2C_Read... [22:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:24]Read from MH i2c: E2 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: E2 03 00 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: E2 03 00 99 3C 00 90 00 49 [22:03:24]RAPDU: 90 00 [22:03:24]wFMCommunicate OK [22:03:24]SAM_PROTO_ClearQueue done [22:03:24]KKMCreateOFDPacket [22:03:24]OFDProtocolAddRootSTLVToBuf [22:03:24]FM_MakeSignedData [22:03:24]FM_MakeSignedData [22:03:24]SAM_PROTO_SignData [22:03:24]wFMCommunicate request_size=4 [22:03:24]MH_SAM_APDU [22:03:24]CAPDU: 80 0D 01 02 [22:03:24]Write to MH i2c: E2 08 00 9A 3C 80 0D 01 02 00 00 00 00 4F [22:03:24]Write i2c OK [22:03:24]MH_I2C_Read... [22:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:24]Read from MH i2c: E2 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: E2 03 00 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: E2 03 00 9A 3C 00 90 00 4A [22:03:24]RAPDU: 90 00 [22:03:24]wFMCommunicate OK [22:03:24]wFMCommunicate request_size=255 [22:03:24]MH_SAM_APDU [22:03:24]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 C9 00 00 00 F4 03 04 00 30 08 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [22:03:24]Write to MH i2c: E2 02 01 9B 3C 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 C9 00 00 00 F4 03 04 00 30 08 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 9E [22:03:24]Write i2c OK [22:03:24]MH_I2C_Read... [22:03:24]OFD Sender: No OFD packet to send [22:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:24]Read from MH i2c: E2 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: E2 03 00 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: E2 03 00 9B 3C 00 90 00 4B [22:03:24]RAPDU: 90 00 [22:03:24]wFMCommunicate OK [22:03:24]wFMCommunicate request_size=29 [22:03:24]MH_SAM_APDU [22:03:24]CAPDU: 80 0D 02 02 18 38 37 34 36 39 32 10 04 04 00 86 69 01 00 35 04 06 00 5F E3 B3 4C 2D EA [22:03:24]Write to MH i2c: E2 20 00 9C 3C 80 0D 02 02 18 00 38 37 34 36 39 32 10 04 04 00 86 69 01 00 35 04 06 00 5F E3 B3 4C 2D EA 00 00 65 [22:03:24]Write i2c OK [22:03:24]MH_I2C_Read... [22:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:24]Read from MH i2c: E2 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: E2 03 00 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: E2 03 00 9C 3C 00 90 00 4C [22:03:24]RAPDU: 90 00 [22:03:24]wFMCommunicate OK [22:03:24]wFMCommunicate request_size=4 [22:03:24]MH_SAM_APDU [22:03:24]CAPDU: 80 0D 03 02 [22:03:24]Write to MH i2c: E2 08 00 9D 3C 80 0D 03 02 00 00 00 00 54 [22:03:24]Write i2c OK [22:03:24]MH_I2C_Read... [22:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:25]Read from MH i2c: E2 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: E2 0B 00 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: E2 0B 00 9D 3C 00 CC 57 D7 7B 29 20 AB A8 90 00 66 [22:03:25]RAPDU: CC 57 D7 7B 29 20 AB A8 90 00 [22:03:25]wFMCommunicate OK [22:03:25]SAM_PROTO_SignData done [22:03:25]FM_MakeSignedData done [22:03:25]CreateOFDProtocolMessage [22:03:25]wFMCommunicate request_size=4 [22:03:25]MH_SAM_APDU [22:03:25]CAPDU: 80 11 00 00 [22:03:25]Write to MH i2c: E2 08 00 9E 3C 80 11 00 00 00 00 00 00 54 [22:03:25]Write i2c OK [22:03:25]MH_I2C_Read... [22:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:25]Read from MH i2c: E2 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: E2 17 00 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: E2 17 00 9E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 AB [22:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:03:25]wFMCommunicate OK [22:03:25]CreateOFDProtocolMessage done [22:03:25]OFDSenderStorePacket 92550 [22:03:25]StoreOFDPacket docnum=92550 [22:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 22 01 00 00 5D 25 1A 01 7F BE 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 C9 00 00 00 F4 03 04 00 30 08 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 86 69 01 00 35 04 06 00 5F E3 B3 4C 2D EA CC 57 D7 7B 29 20 AB A8 [22:03:25]CheckFolder [22:03:25]dirname=/storage/ofd_packets [22:03:25]CheckFolder done [22:03:25]ProducePacketName [22:03:25]name=ofd_packets/00092550 [22:03:25]NVStorageSaveData ofd_packets/00092550 [22:03:25]File name is /storage/ofd_packets/00092550 [22:03:25]Write 320 bytes [22:03:25]NVStorageSaveData done [22:03:25]OFDSenderStorePacket done [22:03:25]KKMCreateOFDPacket done [22:03:25]NVStorageSaveData kkm_last_timestamp [22:03:25]File name is /storage/kkm_last_timestamp [22:03:25]Write 4 bytes [22:03:25]NVStorageSaveData done [22:03:25]ExternCall_PrintAddStr [22:03:25]wPrintStart [22:03:25]Write to MH i2c: 01 00 00 9F 3C DB [22:03:25]Write i2c OK [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: 01 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: 01 07 00 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: 01 07 00 9F 3C 00 00 00 00 00 FF 0F F0 [22:03:25]RasterBufferAndPrint [22:03:25]line Счет N : (3)127450 [22:03:25]line ИНН: 02508201610067 [22:03:25]line Контрольно-Кассовый Чек [22:03:25]line ПРОДАЖА [22:03:25]line Товар: 58411125749 [22:03:25]line Те самые макарон [22:03:25]line 1.000 * 195.00 [22:03:25]line = 195.00 [22:03:25]line НДС 12% НСП 1% [22:03:25]line > о реализуемом товаре [22:03:25]line ИТОГО: 195.00 [22:03:25]line НСП 1% : 1.73 [22:03:25]line НДС 12% : 20.71 [22:03:25]line Наличными: 195.00 [22:03:25]line Безнал.: 0.00 [22:03:25]line Место: АЗС № 5 "Партнер Нефть" [22:03:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [22:03:25]line СНО: Общий режим [22:03:25]line Чек 201 14.09.2024 22:03 [22:03:25]line Смена: 506 ФФД: 1.0 [22:03:25]line ЗНМ: 03000000022 [22:03:25]line РНМ: 0000000000091423 [22:03:25]line Версия ККМ: 001 [22:03:25]line ФМ: 0000000000874692 [22:03:25]line ФД: 92550 [22:03:25]line ФПД: 105431570329066 [22:03:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240914T220328&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92550&fm=105431570329066&tin=02508201610067®Number=0000000000091423&sum=19500 [22:03:25]line 0 [22:03:25]OFD Sender: Processing packet 92550 [packets to send 63, broken 62] [22:03:25]ProducePacketName [22:03:25]name=ofd_packets/00092550 [22:03:25]OFD Sender: To server: pG, [22:03:25]CommunicateWithHost lk.salyk.kg:30040 [22:03:25]ConnectInit lk.salyk.kg [22:03:25]written 0, free lines is 4095 [22:03:25]Connected sock=11 [22: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 34 36 39 32 22 01 00 00 5D 25 1A 01 7F BE 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0B 00 35 38 34 31 31 31 32 35 37 34 39 06 04 1E 00 D0 A2 D0 B5 20 D1 81 D0 B0 D0 BC D1 8B D0 B5 20 D0 BC D0 B0 D0 BA D0 B0 D1 80 D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 4C 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 C9 00 00 00 F4 03 04 00 30 08 E6 66 0E 04 04 00 FA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 86 69 01 00 35 04 06 00 5F E3 B3 4C 2D EA CC 57 D7 7B 29 20 AB A8 [22:03:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 A1 E6 47 00 0A 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 34 36 39 32 10 04 04 00 86 69 01 00 F4 03 04 00 AA B0 E5 66 B6 04 01 00 00 16 CF 3F 93 4A 0B 0D D0 [22:03:25]CommunicateWithHost err = 0 [22:03:25]CheckOFDResponse [22:03:25]1017 (14) - 77093643461234 [22:03:25]1041 (16) - 0000000000874692 [22:03:25]1040 (4) - 92550 [22:03:25]1012 (4) - 14.09.2024 15:50 [22:03:25]1206 (1) - 0 [22:03:25]OFD Sender: Remove packet 92550 [22:03:25]ProducePacketName [22:03:25]name=ofd_packets/00092550 [22:03:25]NVStorageDeleteData [22:03:25]Write to MH i2c: 01 00 00 C7 3C 03 [22:03:25]Write i2c OK [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: 01 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: 01 07 00 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: 01 07 00 C7 3C 00 00 00 00 00 18 0D 2F [22:03:25]RasterBufferAndPrint [22:03:25]line [22:03:25]line [22:03:25]line [22:03:25]line [22:03:25]line [22:03:25]written 0, free lines is 3360 [22:03:25]MH_Cut [22:03:25]Write to MH i2c: D1 01 00 CE 3C 01 DC [22:03:25]Write i2c OK [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: D1 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: D1 01 00 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: D1 01 00 CE 3C 00 DB [22:03:25]Write to MH i2c: 01 00 00 CF 3C 0B [22:03:25]Write i2c OK [22:03:25]MH_I2C_Read... [22:03:26]OFD Sender: No OFD packet to send [22:03:26]*** Cut start [22:03:26]*** Purtial cut [22:03:26]*** Stage 1: CUTSNS_PIN = 1 [22:03:28]Read from MH i2c: 01 [22:03:28]MH_I2C_Read... [22:03:28]*** Stop cut motor [22:03:28]*** Cut end [22:03:28]Read from MH i2c: 01 07 00 [22:03:28]MH_I2C_Read... [22:03:28]Read from MH i2c: 01 07 00 CF 3C 00 00 00 00 00 FF 0F 20 [22:03:28]process_action close_receipt done [22:03:28]requested_data is exist [22:03:28]produce_requested_data [22:03:28]requested_item fm.sn is exist - process it [22:03:28]wFMCommunicate request_size=4 [22:03:28]MH_SAM_APDU [22:03:28]CAPDU: 80 11 00 00 [22:03:28]Write to MH i2c: E2 08 00 D0 3C 80 11 00 00 00 00 00 00 86 [22:03:28]Write i2c OK [22:03:28]MH_I2C_Read... [22:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:28]Read from MH i2c: E2 [22:03:28]MH_I2C_Read... [22:03:28]Read from MH i2c: E2 17 00 [22:03:28]MH_I2C_Read... [22:03:28]Read from MH i2c: E2 17 00 D0 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DD [22:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [22:03:28]wFMCommunicate OK [22:03:28]requested_item fd.num is exist - process it [22:03:28]SAM_PROTO_GetFieldsCounters [22:03:28]wFMCommunicate request_size=4 [22:03:28]MH_SAM_APDU [22:03:28]CAPDU: 80 13 00 00 [22:03:28]Write to MH i2c: E2 08 00 D1 3C 80 13 00 00 00 00 00 00 89 [22:03:28]Write i2c OK [22:03:28]MH_I2C_Read... [22:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:28]Read from MH i2c: E2 [22:03:28]MH_I2C_Read... [22:03:28]Read from MH i2c: E2 62 00 [22:03:28]MH_I2C_Read... [22:03:28]Read from MH i2c: E2 62 00 D1 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 EE [22:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:28]wFMCommunicate OK [22:03:28]SAM_PROTO_GetFieldsCounters done [22:03:28]requested_item shift.num is exist - process it [22:03:28]requested_item shift.opened is exist - process it [22:03:28]req_shift_opened [22:03:28]FM_GetShiftState [22:03:28]SAM_PROTO_GetShiftState [22:03:28]wFMCommunicate request_size=4 [22:03:28]MH_SAM_APDU [22:03:28]CAPDU: 80 13 01 00 [22:03:28]Write to MH i2c: E2 08 00 D2 3C 80 13 01 00 00 00 00 00 8B [22:03:28]Write i2c OK [22:03:28]MH_I2C_Read... [22:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:28]Read from MH i2c: E2 [22:03:28]MH_I2C_Read... [22:03:28]Read from MH i2c: E2 0E 00 [22:03:28]MH_I2C_Read... [22:03:28]Read from MH i2c: E2 0E 00 D2 3C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 25 [22:03:28]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [22:03:28]wFMCommunicate OK [22:03:28]SAM_PROTO_GetShiftState done [22:03:28]FM_GetShiftState done [22:03:28]req_shift_opened done [22:03:28]requested_item shift.open_date is exist - process it [22:03:28]req_shift_open_date [22:03:28]req_shift_open_date done [22:03:28]produce_requested_data done [22:03:28]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92550,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [22:03:28]process_action_free close_receipt [22:03:28]json_value_free [22:03:28]json_value_free done [22:03:28]process_json_proto returns [22:03:28]Send response to host [22:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92550,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [22:03:28]free response buf [22:03:28]execute_script done [22:03:28]execute_script returns [22:03:28]free content buf [22:03:28]Sock 10.Close socket [22:03:28]Sock 10.Thread stoped [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]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:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]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:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26: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:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:40]accept exits with 8 [00:06:40]New connection [00:06:40]New thread 3066801508 created [00:06:40]Thread 3066658148 joined [00:06:40]Waiting for new connection... [00:06:40] Sock 8.Parse request [00:06:40]Sock 8.Check first char [00:06:40]Sock 8.First char is OK [00:06:40]request: POST /json_proto HTTP/1.0 [00:06:40]Method: POST [00:06:40]URL: /json_proto [00:06:40]Method is POST - this is cgi request [00:06:40]url: /json_proto [00:06:40]query_string will be loaded in cgi processing [00:06:40]execute_cgi json_proto POST (null) [00:06:40]execute_cgi path=json_proto method=POST [00:06:40]POST find Content-Length [00:06:40]Host: 172.17.57.71:8080 [00:06:40]Content-Length: 215 [00:06:40]Content-Type: application/json [00:06:40] [00:06:40]POST finish read [00:06:40]Found Content-Length = 215 [00:06:40]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:06:40]execute_script... [00:06:40]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:06:40]POST & json_proto [00:06:40]process_json_proto [00:06:40]json parsed OK: [00:06:40]protocol is kg_v1.0 [00:06:40]action value=get_value [00:06:40]process_action get_value [00:06:40]cmd_get_value [00:06:40]process_action get_value done [00:06:40]requested_data is exist [00:06:40]produce_requested_data [00:06:40]requested_item kkm.sn is exist - process it [00:06:40]requested_item kkm.ver is exist - process it [00:06:40]requested_item fm.sn is exist - process it [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 11 00 00 [00:06:40]Write to MH i2c: E2 08 00 D3 3C 80 11 00 00 00 00 00 00 89 [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 17 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 17 00 D3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 E0 [00:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:06:40]wFMCommunicate OK [00:06:40]requested_item fd.num is exist - process it [00:06:40]SAM_PROTO_GetFieldsCounters [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 13 00 00 [00:06:40]Write to MH i2c: E2 08 00 D4 3C 80 13 00 00 00 00 00 00 8C [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 62 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 62 00 D4 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 F1 [00:06:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 [00:06:40]wFMCommunicate OK [00:06:40]SAM_PROTO_GetFieldsCounters done [00:06:40]requested_item shift.num is exist - process it [00:06:40]requested_item shift.opened is exist - process it [00:06:40]req_shift_opened [00:06:40]FM_GetShiftState [00:06:40]SAM_PROTO_GetShiftState [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 13 01 00 [00:06:40]Write to MH i2c: E2 08 00 D5 3C 80 13 01 00 00 00 00 00 8E [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 0E 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 0E 00 D5 3C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 28 [00:06:40]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:06:40]wFMCommunicate OK [00:06:40]SAM_PROTO_GetShiftState done [00:06:40]FM_GetShiftState done [00:06:40]req_shift_opened done [00:06:40]requested_item shift.open_date is exist - process it [00:06:40]req_shift_open_date [00:06:40]req_shift_open_date done [00:06:40]produce_requested_data done [00:06:40]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92550,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:06:40]process_action_free get_value [00:06:40]json_value_free [00:06:40]json_value_free done [00:06:40]process_json_proto returns [00:06:40]Send response to host [00:06:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92550,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:06:40]free response buf [00:06:40]execute_script done [00:06:40]execute_script returns [00:06:40]free content buf [00:06:40]Sock 8.Close socket [00:06:40]Sock 8.Thread stoped [00:06:40]accept exits with 10 [00:06:40]New connection [00:06:40]New thread 3066658148 created [00:06:40]Thread 3066801508 joined [00:06:40]Waiting for new connection... [00:06:40] Sock 10.Parse request [00:06:40]Sock 10.Check first char [00:06:40]Sock 10.First char is OK [00:06:40]request: POST /json_proto HTTP/1.0 [00:06:40]Method: POST [00:06:40]URL: /json_proto [00:06:40]Method is POST - this is cgi request [00:06:40]url: /json_proto [00:06:40]query_string will be loaded in cgi processing [00:06:40]execute_cgi json_proto POST (null) [00:06:40]execute_cgi path=json_proto method=POST [00:06:40]POST find Content-Length [00:06:40]Host: 172.17.57.71:8080 [00:06:40]Content-Length: 331 [00:06:40]Content-Type: application/json [00:06:40] [00:06:40]POST finish read [00:06:40]Found Content-Length = 331 [00:06:40]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:06:40]execute_script... [00:06:40]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:06:40]POST & json_proto [00:06:40]process_json_proto [00:06:40]json parsed OK: [00:06:40]protocol is kg_v1.0 [00:06:41]action value=get_value [00:06:41]process_action get_value [00:06:41]cmd_get_value [00:06:41]process_action get_value done [00:06:41]requested_data is exist [00:06:41]produce_requested_data [00:06:41]requested_item fm.sale.total is exist - process it [00:06:41]SAM_PROTO_GetFMData [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 13 03 00 [00:06:41]Write to MH i2c: E2 08 00 D6 3C 80 13 03 00 00 00 00 00 91 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 D6 3C 00 C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 1F [00:06:41]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [00:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 D7 3C 80 17 00 00 00 00 00 00 93 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 D7 3C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 [00:06:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 D8 3C 80 17 00 00 00 00 00 00 94 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 D8 3C 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 A6 [00:06:42]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:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 D9 3C 80 17 00 00 00 00 00 00 95 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 D9 3C 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 21 [00:06:42]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:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 DA 3C 80 17 00 00 00 00 00 00 96 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 E2 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 E2 00 DA 3C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [00:06:42]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:06:42]wFMCommunicate OK [00:06:42]SAM_PROTO_GetFMData done [00:06:42]requested_item fm.sale_refund.total is exist - process it [00:06:42]requested_item fm.buy.total is exist - process it [00:06:42]requested_item shift.sale.total is exist - process it [00:06:42]SAM_PROTO_GetShiftData [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 13 02 00 [00:06:42]Write to MH i2c: E2 08 00 DB 3C 80 13 02 00 00 00 00 00 95 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 DB 3C 00 BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 9D [00:06:43]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 DC 3C 80 17 00 00 00 00 00 00 98 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]OFD Sender: No OFD packet to send [00:06:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 DC 3C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 A9 [00:06:43]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 DD 3C 80 17 00 00 00 00 00 00 99 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 DD 3C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [00:06:43]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 DE 3C 80 17 00 00 00 00 00 00 9A [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 DE 3C 00 00 EF 03 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 90 00 12 [00:06:44]RAPDU: 00 EF 03 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 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 17 00 00 [00:06:44]Write to MH i2c: E2 08 00 DF 3C 80 17 00 00 00 00 00 00 9B [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 D7 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 D7 00 DF 3C 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 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 7E [00:06:44]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 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:06:44]wFMCommunicate OK [00:06:44]SAM_PROTO_GetShiftData done [00:06:44]requested_item shift.sale.total_cash is exist - process it [00:06:44]requested_item shift.sale_refund.total is exist - process it [00:06:44]requested_item shift.sale_refund.total_cash is exist - process it [00:06:44]requested_item shift.buy.total is exist - process it [00:06:44]requested_item shift.buy.total_cash is exist - process it [00:06:44]produce_requested_data done [00:06:44]produce_requested_data return {"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:44]process_action_free get_value [00:06:44]json_value_free [00:06:44]json_value_free done [00:06:44]process_json_proto returns [00:06:44]Send response to host [00:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:44]free response buf [00:06:44]execute_script done [00:06:44]execute_script returns [00:06:44]free content buf [00:06:44]Sock 10.Close socket [00:06:44]Sock 10.Thread stoped [00:06:44]accept exits with 8 [00:06:44]New connection [00:06:44]New thread 3066801508 created [00:06:44]Thread 3066658148 joined [00:06:44]Waiting for new connection... [00:06:44] Sock 8.Parse request [00:06:44]Sock 8.Check first char [00:06:44]Sock 8.First char is OK [00:06:44]request: POST /json_proto HTTP/1.0 [00:06:44]Method: POST [00:06:44]URL: /json_proto [00:06:44]Method is POST - this is cgi request [00:06:44]url: /json_proto [00:06:44]query_string will be loaded in cgi processing [00:06:44]execute_cgi json_proto POST (null) [00:06:44]execute_cgi path=json_proto method=POST [00:06:44]POST find Content-Length [00:06:44]Host: 172.17.57.71:8080 [00:06:44]Content-Length: 331 [00:06:44]Content-Type: application/json [00:06:44] [00:06:44]POST finish read [00:06:44]Found Content-Length = 331 [00:06: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" ] } } [00:06:44]execute_script... [00:06: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" ] } } [00:06:44]POST & json_proto [00:06:44]process_json_proto [00:06:44]json parsed OK: [00:06:44]protocol is kg_v1.0 [00:06:44]action value=get_value [00:06:44]process_action get_value [00:06:44]cmd_get_value [00:06:44]process_action get_value done [00:06:44]requested_data is exist [00:06:44]produce_requested_data [00:06:44]requested_item fm.sale.total is exist - process it [00:06:44]SAM_PROTO_GetFMData [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 13 03 00 [00:06:44]Write to MH i2c: E2 08 00 E0 3C 80 13 03 00 00 00 00 00 9B [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 E0 3C 00 C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 29 [00:06:45]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 17 00 00 [00:06:45]Write to MH i2c: E2 08 00 E1 3C 80 17 00 00 00 00 00 00 9D [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 E1 3C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [00:06: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 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 17 00 00 [00:06:45]Write to MH i2c: E2 08 00 E2 3C 80 17 00 00 00 00 00 00 9E [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 E2 3C 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 B0 [00:06: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 [00:06:46]wFMCommunicate OK [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 17 00 00 [00:06:46]Write to MH i2c: E2 08 00 E3 3C 80 17 00 00 00 00 00 00 9F [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:46]Read from MH i2c: E2 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 FD 00 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 FD 00 E3 3C 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 2B [00:06:46]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:06:46]wFMCommunicate OK [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 17 00 00 [00:06:46]Write to MH i2c: E2 08 00 E4 3C 80 17 00 00 00 00 00 00 A0 [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:46]Read from MH i2c: E2 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 E2 00 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 E2 00 E4 3C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7E [00:06: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 [00:06:46]wFMCommunicate OK [00:06:46]SAM_PROTO_GetFMData done [00:06:46]requested_item fm.sale_refund.total is exist - process it [00:06:46]requested_item fm.buy.total is exist - process it [00:06:46]requested_item shift.sale.total is exist - process it [00:06:46]SAM_PROTO_GetShiftData [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 13 02 00 [00:06:46]Write to MH i2c: E2 08 00 E5 3C 80 13 02 00 00 00 00 00 9F [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 E5 3C 00 BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A7 [00:06:47]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:47]wFMCommunicate OK [00:06:47]wFMCommunicate request_size=4 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 17 00 00 [00:06:47]Write to MH i2c: E2 08 00 E6 3C 80 17 00 00 00 00 00 00 A2 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 E6 3C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 B3 [00:06:47]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 [00:06:47]wFMCommunicate OK [00:06:47]wFMCommunicate request_size=4 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 17 00 00 [00:06:47]Write to MH i2c: E2 08 00 E7 3C 80 17 00 00 00 00 00 00 A3 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:48]Read from MH i2c: E2 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 FD 00 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 FD 00 E7 3C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CF [00:06:48]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:48]wFMCommunicate OK [00:06:48]wFMCommunicate request_size=4 [00:06:48]MH_SAM_APDU [00:06:48]CAPDU: 80 17 00 00 [00:06:48]Write to MH i2c: E2 08 00 E8 3C 80 17 00 00 00 00 00 00 A4 [00:06:48]Write i2c OK [00:06:48]MH_I2C_Read... [00:06:48]OFD Sender: No OFD packet to send [00:06:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:48]Read from MH i2c: E2 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 FD 00 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 FD 00 E8 3C 00 00 EF 03 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 90 00 1C [00:06:48]RAPDU: 00 EF 03 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 90 00 [00:06:48]wFMCommunicate OK [00:06:48]wFMCommunicate request_size=4 [00:06:48]MH_SAM_APDU [00:06:48]CAPDU: 80 17 00 00 [00:06:48]Write to MH i2c: E2 08 00 E9 3C 80 17 00 00 00 00 00 00 A5 [00:06:48]Write i2c OK [00:06:48]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 D7 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 D7 00 E9 3C 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 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 88 [00:06:49]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 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:06:49]wFMCommunicate OK [00:06:49]SAM_PROTO_GetShiftData done [00:06:49]requested_item shift.sale.total_cash is exist - process it [00:06:49]requested_item shift.sale_refund.total is exist - process it [00:06:49]requested_item shift.sale_refund.total_cash is exist - process it [00:06:49]requested_item shift.buy.total is exist - process it [00:06:49]requested_item shift.buy.total_cash is exist - process it [00:06:49]produce_requested_data done [00:06:49]produce_requested_data return {"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:49]process_action_free get_value [00:06:49]json_value_free [00:06:49]json_value_free done [00:06:49]process_json_proto returns [00:06:49]Send response to host [00:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:49]free response buf [00:06:49]execute_script done [00:06:49]execute_script returns [00:06:49]free content buf [00:06:49]Sock 8.Close socket [00:06:49]Sock 8.Thread stoped [00:06:49]accept exits with 9 [00:06:49]New connection [00:06:49]New thread 3066658148 created [00:06:49]Thread 3066801508 joined [00:06:49]Waiting for new connection... [00:06:49] Sock 9.Parse request [00:06:49]Sock 9.Check first char [00:06:49]Sock 9.First char is OK [00:06:49]request: POST /json_proto HTTP/1.0 [00:06:49]Method: POST [00:06:49]URL: /json_proto [00:06:49]Method is POST - this is cgi request [00:06:49]url: /json_proto [00:06:49]query_string will be loaded in cgi processing [00:06:49]execute_cgi json_proto POST (null) [00:06:49]execute_cgi path=json_proto method=POST [00:06:49]POST find Content-Length [00:06:49]Host: 172.17.57.71:8080 [00:06:49]Content-Length: 275 [00:06:49]Content-Type: application/json [00:06:49] [00:06:49]POST finish read [00:06:49]Found Content-Length = 275 [00:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u043E\u043B\u0434\u043E\u043A\u0443\u043B\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:49]execute_script... [00:06:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u043E\u043B\u0434\u043E\u043A\u0443\u043B\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:49]POST & json_proto [00:06:49]process_json_proto [00:06:49]json parsed OK: [00:06:49]protocol is kg_v1.0 [00:06:49]action value=x_report [00:06:49]process_action x_report [00:06:49]cmd_x_report [00:06:49]MH_GetDate [00:06:49]Write to MH i2c: F0 00 00 EA 3C 15 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: F0 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: F0 09 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: F0 09 00 EA 3C 00 1F 25 E6 66 33 3A A4 66 25 [00:06:49]GetLastDocTimeStamp 1726351408 [00:06:49]current date 1726358815 [00:06:49]FM_GetShiftState [00:06:49]SAM_PROTO_GetShiftState [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 13 01 00 [00:06:49]Write to MH i2c: E2 08 00 EB 3C 80 13 01 00 00 00 00 00 A4 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 0E 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 0E 00 EB 3C 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 3E [00:06:49]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:06:49]wFMCommunicate OK [00:06:49]SAM_PROTO_GetShiftState done [00:06:49]FM_GetShiftState done [00:06:49]KKMCreateXReportDocument [00:06:49]Load OK [00:06:49]Malloc new data [00:06:49]MH_GetDate [00:06:49]Write to MH i2c: F0 00 00 EC 3C 17 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: F0 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: F0 09 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: F0 09 00 EC 3C 00 1F 25 E6 66 33 3A A4 66 27 [00:06:49]Malloc new data [00:06:49]Malloc new data [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 11 00 00 [00:06:49]Write to MH i2c: E2 08 00 ED 3C 80 11 00 00 00 00 00 00 A3 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 17 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 17 00 ED 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 FA [00:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:06:49]wFMCommunicate OK [00:06:49]SAM_PROTO_GetFieldsCounters [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 13 00 00 [00:06:49]Write to MH i2c: E2 08 00 EE 3C 80 13 00 00 00 00 00 00 A6 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 62 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 62 00 EE 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 0B [00:06:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 [00:06:49]wFMCommunicate OK [00:06:49]SAM_PROTO_GetFieldsCounters done [00:06:49]Malloc new data [00:06:49]Malloc new data [00:06:49]Malloc new data [00:06:49]KKMCreateXReportDocument OK [00:06:49]KKMSetXReportData OK [00:06:49]KKMPrepareXReportFMData [00:06:49]SAM_PROTO_GetShiftData [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 13 02 00 [00:06:49]Write to MH i2c: E2 08 00 EF 3C 80 13 02 00 00 00 00 00 A9 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:50]Read from MH i2c: E2 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 EF 3C 00 BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 B1 [00:06:50]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:50]wFMCommunicate OK [00:06:50]wFMCommunicate request_size=4 [00:06:50]MH_SAM_APDU [00:06:50]CAPDU: 80 17 00 00 [00:06:50]Write to MH i2c: E2 08 00 F0 3C 80 17 00 00 00 00 00 00 AC [00:06:50]Write i2c OK [00:06:50]MH_I2C_Read... [00:06:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:50]Read from MH i2c: E2 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 F0 3C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 BD [00:06:50]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 [00:06:50]wFMCommunicate OK [00:06:50]wFMCommunicate request_size=4 [00:06:50]MH_SAM_APDU [00:06:50]CAPDU: 80 17 00 00 [00:06:50]Write to MH i2c: E2 08 00 F1 3C 80 17 00 00 00 00 00 00 AD [00:06:50]Write i2c OK [00:06:50]MH_I2C_Read... [00:06:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:51]Read from MH i2c: E2 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 F1 3C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [00:06:51]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:51]wFMCommunicate OK [00:06:51]wFMCommunicate request_size=4 [00:06:51]MH_SAM_APDU [00:06:51]CAPDU: 80 17 00 00 [00:06:51]Write to MH i2c: E2 08 00 F2 3C 80 17 00 00 00 00 00 00 AE [00:06:51]Write i2c OK [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 [00:06:51]MH_I2C_Read... [00:06:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:51]Read from MH i2c: E2 FD 00 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 F2 3C 00 00 EF 03 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 90 00 26 [00:06:51]RAPDU: 00 EF 03 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 90 00 [00:06:52]wFMCommunicate OK [00:06:52]wFMCommunicate request_size=4 [00:06:52]MH_SAM_APDU [00:06:52]CAPDU: 80 17 00 00 [00:06:52]Write to MH i2c: E2 08 00 F3 3C 80 17 00 00 00 00 00 00 AF [00:06:52]Write i2c OK [00:06:52]MH_I2C_Read... [00:06:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:06:52]Read from MH i2c: E2 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 D7 00 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 D7 00 F3 3C 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 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 92 [00:06:52]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 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:06:52]wFMCommunicate OK [00:06:52]SAM_PROTO_GetShiftData done [00:06:52]1194 (1206) - счетчики итогов смены [00:06:52] 1134 (4) - 201 - количество чеков со всеми признаками расчетов [00:06:52] 1129 (155) - счетчики операций «приход» [00:06:52] 1135 (4) - 197 - количество чеков по признаку расчетов [00:06:52] 1201 (3) - 53455.00 - общая итоговая сумма в чеках [00:06:52] 1136 (3) - 34425.00 - итоговая сумма в чеках наличными [00:06:52] 1138 (3) - 19030.00 - итоговая сумма в чеках безналичными [00:06:52] 1024 (122) - суммы налогов [00:06:52] 1006 (9) - суммы НДС [00:06:52] 1010 (1) - 0% - код ставки НДС [00:06:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:52] 1006 (12) - суммы НДС [00:06:52] 1010 (1) - 12% - код ставки НДС [00:06:52] 1011 (3) - 5676.96 - сумма НДС по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 0% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (11) - суммы НСП [00:06:52] 1014 (1) - 1% - код ставки НСП [00:06:52] 1015 (2) - 472.93 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 2% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 3% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 5% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 0,50% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 1,50% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1130 (153) - счетчики операций «возврат прихода» [00:06:52] 1135 (4) - 4 - количество чеков по признаку расчетов [00:06:52] 1201 (3) - 981.00 - общая итоговая сумма в чеках [00:06:52] 1136 (2) - 86.00 - итоговая сумма в чеках наличными [00:06:52] 1138 (3) - 895.00 - итоговая сумма в чеках безналичными [00:06:52] 1024 (121) - суммы налогов [00:06:52] 1006 (9) - суммы НДС [00:06:52] 1010 (1) - 0% - код ставки НДС [00:06:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:52] 1006 (11) - суммы НДС [00:06:52] 1010 (1) - 12% - код ставки НДС [00:06:52] 1011 (2) - 104.15 - сумма НДС по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 0% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (11) - суммы НСП [00:06:52] 1014 (1) - 1% - код ставки НСП [00:06:52] 1015 (2) - 8.68 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 2% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 3% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 5% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 0,50% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 1,50% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1131 (141) - счетчики операций «расход» [00:06:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:52] 1024 (117) - суммы налогов [00:06:52] 1006 (9) - суммы НДС [00:06:52] 1010 (1) - 0% - код ставки НДС [00:06:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:52] 1006 (9) - суммы НДС [00:06:52] 1010 (1) - 12% - код ставки НДС [00:06:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 0% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 1% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 2% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 3% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 5% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 0,50% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 1,50% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1132 (141) - счетчики операций «возврат расхода» [00:06:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:52] 1024 (117) - суммы налогов [00:06:52] 1006 (9) - суммы НДС [00:06:52] 1010 (1) - 0% - код ставки НДС [00:06:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:52] 1006 (9) - суммы НДС [00:06:52] 1010 (1) - 12% - код ставки НДС [00:06:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 0% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 1% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 2% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 3% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 5% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 0,50% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1007 (9) - суммы НСП [00:06:52] 1014 (1) - 1,50% - код ставки НСП [00:06:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:52] 1133 (588) - - счетчики коррекции - не используются [00:06:52]SetTLVBufToDocument [00:06:52]Processing tag 1194 (04AA) [00:06:52]Load OK [00:06:52]SetTLVBufToDocument [00:06:52]Processing tag 1134 (046E) [00:06:52]Malloc new data [00:06:52]Processing tag 1129 (0469) [00:06:52]Load OK [00:06:52]SetTLVBufToDocument [00:06:52]Processing tag 1135 (046F) [00:06:52]Malloc new data [00:06:52]Processing tag 1201 (04B1) [00:06:52]Malloc new data [00:06:52]Processing tag 1136 (0470) [00:06:52]Malloc new data [00:06:52]Processing tag 1138 (0472) [00:06:52]Malloc new data [00:06:52]Processing tag 1024 (0400) [00:06:52]Load OK [00:06:52]SetTLVBufToDocument [00:06:52]Processing tag 1006 (03EE) [00:06:52]Load OK [00:06:52]SetTLVBufToDocument [00:06:52]Processing tag 1010 (03F2) [00:06:52]Malloc new data [00:06:52]Processing tag 1011 (03F3) [00:06:52]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1006 (03EE) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1010 (03F2) [00:06:53]Malloc new data [00:06:53]Processing tag 1011 (03F3) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1130 (046A) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1135 (046F) [00:06:53]Malloc new data [00:06:53]Processing tag 1201 (04B1) [00:06:53]Malloc new data [00:06:53]Processing tag 1136 (0470) [00:06:53]Malloc new data [00:06:53]Processing tag 1138 (0472) [00:06:53]Malloc new data [00:06:53]Processing tag 1024 (0400) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1006 (03EE) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1010 (03F2) [00:06:53]Malloc new data [00:06:53]Processing tag 1011 (03F3) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1006 (03EE) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1010 (03F2) [00:06:53]Malloc new data [00:06:53]Processing tag 1011 (03F3) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1131 (046B) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1135 (046F) [00:06:53]Malloc new data [00:06:53]Processing tag 1201 (04B1) [00:06:53]Malloc new data [00:06:53]Processing tag 1136 (0470) [00:06:53]Malloc new data [00:06:53]Processing tag 1138 (0472) [00:06:53]Malloc new data [00:06:53]Processing tag 1024 (0400) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1006 (03EE) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1010 (03F2) [00:06:53]Malloc new data [00:06:53]Processing tag 1011 (03F3) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1006 (03EE) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1010 (03F2) [00:06:53]Malloc new data [00:06:53]Processing tag 1011 (03F3) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1132 (046C) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1135 (046F) [00:06:53]Malloc new data [00:06:53]Processing tag 1201 (04B1) [00:06:53]Malloc new data [00:06:53]Processing tag 1136 (0470) [00:06:53]Malloc new data [00:06:53]Processing tag 1138 (0472) [00:06:53]Malloc new data [00:06:53]Processing tag 1024 (0400) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1006 (03EE) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1010 (03F2) [00:06:53]Malloc new data [00:06:53]Processing tag 1011 (03F3) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1006 (03EE) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1010 (03F2) [00:06:53]Malloc new data [00:06:53]Processing tag 1011 (03F3) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1007 (03EF) [00:06:53]Load OK [00:06:53]SetTLVBufToDocument [00:06:53]Processing tag 1014 (03F6) [00:06:53]Malloc new data [00:06:53]Processing tag 1015 (03F7) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Processing tag 1133 (046D) [00:06:53]Malloc new data [00:06:53]SetTLVBufToDocument err=0 [00:06:53]SetTLVBufToDocument err=0 [00:06:53]Malloc new data [00:06:53]SAM_PROTO_GetFMData [00:06:53]wFMCommunicate request_size=4 [00:06:53]MH_SAM_APDU [00:06:53]CAPDU: 80 13 03 00 [00:06:53]Write to MH i2c: E2 08 00 F4 3C 80 13 03 00 OFD Sender: No OFD packet to send [00:06:53]00 00 00 00 AF [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:54]Read from MH i2c: E2 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 F4 3C 00 C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 3D [00:06:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [00:06:54]wFMCommunicate OK [00:06:54]wFMCommunicate request_size=4 [00:06:54]MH_SAM_APDU [00:06:54]CAPDU: 80 17 00 00 [00:06:54]Write to MH i2c: E2 08 00 F5 3C 80 17 00 00 00 00 00 00 B1 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:54]Read from MH i2c: E2 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 F5 3C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 11 [00:06: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 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:54]wFMCommunicate OK [00:06:54]wFMCommunicate request_size=4 [00:06:54]MH_SAM_APDU [00:06:54]CAPDU: 80 17 00 00 [00:06:54]Write to MH i2c: E2 08 00 F6 3C 80 17 00 00 00 00 00 00 B2 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 F6 3C 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 C4 [00:06:55]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:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 17 00 00 [00:06:55]Write to MH i2c: E2 08 00 F7 3C 80 17 00 00 00 00 00 00 B3 [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 F7 3C 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 3F [00:06: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 [00:06:56]wFMCommunicate OK [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 17 00 00 [00:06:56]Write to MH i2c: E2 08 00 F8 3C 80 17 00 00 00 00 00 00 B4 [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 E2 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 E2 00 F8 3C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 92 [00:06:56]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:06:56]wFMCommunicate OK [00:06:56]SAM_PROTO_GetFMData done [00:06:56]FM_GetFMData:85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 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 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:57]oper:6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:57]total:39 81 CD B2 [00:06:57]Malloc new data [00:06:57]oper:6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 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 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:57]total:70 E1 77 04 [00:06:57]Malloc new data [00:06:57]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:06:57]total: [00:06:57]Malloc new data [00:06:57]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:06:57]total: [00:06:57]Malloc new data [00:06:57]KKMPrepareXReportFMData err=0 [00:06:57]Х отчет ИНН: 02508201610067 Кассир: Молдокулова А. 15.09.2024 00:06 Смена: 266 РНМ: 0000000000091423 ЗНМ: 03000000022 СНО: Общий режим Всего чеков: 201 ИТОГИ ПРИХОД Чеков: 197 Общий итог: 53455.00 Итого наличными: 34425.00 Итого безнал.: 19030.00 НДС 0% : 0.00 НДС 12% : 5676.96 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 472.93 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 981.00 Итого наличными: 86.00 Итого безнал.: 895.00 НДС 0% : 0.00 НДС 12% : 104.15 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 8.68 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 34339.00 НС Приход: 29998124.09 НС Возвр.Прихода: 749653.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874692 [00:06:57]StoreToDocumentArchive [00:06:57]MH_GetDate [00:06:57]Write to MH i2c: F0 00 00 F9 3C 24 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: F0 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: F0 09 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: F0 09 00 F9 3C 00 27 25 E6 66 33 3A A4 66 3C [00:06:57]shift 266 fd 1726358823 [00:06:57]Create dir for shift 0266 [00:06:57]save to /storage/0266/doc_1726358823 [00:06:57]save last doc name /storage/0266/doc_1726358823 to /storage/kkm_last_doc_name [00:06:57]save OK [00:06:57]Clear old archive folders... [00:06:57]NVStorageSaveData kkm_last_timestamp [00:06:57]File name is /storage/kkm_last_timestamp [00:06:57]Write 4 bytes [00:06:57]NVStorageSaveData done [00:06:57]ExternCall_PrintAddStr [00:06:57]wPrintStart [00:06:57]Write to MH i2c: 01 00 00 FA 3C 36 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 07 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 07 00 FA 3C 00 00 00 00 00 FF 0F 4B [00:06:57]RasterBufferAndPrint [00:06:57]line Х отчет [00:06:57]line ИНН: 02508201610067 [00:06:57]line Кассир: Молдокулова А. [00:06:57]line 15.09.2024 00:06 [00:06:57]line Смена: 266 [00:06:57]line РНМ: 0000000000091423 [00:06:57]line ЗНМ: 03000000022 [00:06:57]line СНО: Общий режим [00:06:57]line Всего чеков: 201 [00:06:57]line ИТОГИ ПРИХОД [00:06:57]line Чеков: 197 [00:06:57]line Общий итог: 53455.00 [00:06:57]line Итого наличными: 34425.00 [00:06:57]line Итого безнал.: 19030.00 [00:06:57]line НДС 0% : 0.00 [00:06:57]line НДС 12% : 5676.96 [00:06:57]line НСП 0% : 0.00 [00:06:57]line НСП 1,50% : 0.00 [00:06:57]line НСП 0,50% : 0.00 [00:06:57]line НСП 5% : 0.00 [00:06:57]line НСП 3% : 0.00 [00:06:57]line НСП 2% : 0.00 [00:06:57]line НСП 1% : 472.93 [00:06:57]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:57]line Чеков: 4 [00:06:57]line Общий итог: 981.00 [00:06:57]line Итого наличными: 86.00 [00:06:57]line Итого безнал.: 895.00 [00:06:57]line НДС 0% : 0.00 [00:06:57]line НДС 12% : 104.15 [00:06:57]line НСП 0% : 0.00 [00:06:57]line НСП 1,50% : 0.00 [00:06:57]line НСП 0,50% : 0.00 [00:06:57]line НСП 5% : 0.00 [00:06:57]line НСП 3% : 0.00 [00:06:57]line НСП 2% : 0.00 [00:06:57]line НСП 1% : 8.68 [00:06:57]line ИТОГИ РАСХОД [00:06:57]line Чеков: 0 [00:06:57]line Общий итог: 0.00 [00:06:57]line Итого наличными: 0.00 [00:06:57]line Итого безнал.: 0.00 [00:06:57]line НДС 0% : 0.00 [00:06:57]line НДС 12% : 0.00 [00:06:57]line НСП 0% : 0.00 [00:06:57]line НСП 1,50% : 0.00 [00:06:57]line НСП 0,50% : 0.00 [00:06:57]line НСП 5% : 0.00 [00:06:57]line НСП 3% : 0.00 [00:06:57]line НСП 2% : 0.00 [00:06:57]line НСП 1% : 0.00 [00:06:57]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:57]line Чеков: 0 [00:06:57]line Общий итог: 0.00 [00:06:57]line Итого наличными: 0.00 [00:06:57]line Итого безнал.: 0.00 [00:06:57]line НДС 0% : 0.00 [00:06:57]line НДС 12% : 0.00 [00:06:57]line НСП 0% : 0.00 [00:06:57]line НСП 1,50% : 0.00 [00:06:57]line НСП 0,50% : 0.00 [00:06:57]line НСП 5% : 0.00 [00:06:57]line НСП 3% : 0.00 [00:06:57]line НСП 2% : 0.00 [00:06:57]line НСП 1% : 0.00 [00:06:57]line Сумма внесений: 0.00 [00:06:57]line Сумма выплат: 0.00 [00:06:57]line Нал. в кассе: 34339.00 [00:06:57]line НС Приход: 29998124.09 [00:06:57]line НС Возвр.Прихода: 749653.60 [00:06:57]line НС Расход: 0.00 [00:06:57]line НС Возвр.Расхода: 0.00 [00:06:57]line ФМ: 0000000000874692 [00:06:57]written 0, free lines is 4095 [00:06:58]Write to MH i2c: 01 00 00 45 3D 82 [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: 01 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: 01 07 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: 01 07 00 45 3D 00 00 00 00 00 09 0B 9D [00:06:58]RasterBufferAndPrint [00:06:58]line [00:06:58]line [00:06:58]line [00:06:58]line [00:06:58]line [00:06:58]written 0, free lines is 2866 [00:06:58]MH_Cut [00:06:58]Write to MH i2c: D1 01 00 4C 3D 01 5B [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: D1 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: D1 01 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: D1 01 00 4C 3D 00 5A [00:06:58]Write to MH i2c: 01 00 00 4D 3D 8A [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]OFD Sender: No OFD packet to send [00:06:59]*** Cut start [00:06:59]*** Purtial cut [00:06:59]*** Stage 1: CUTSNS_PIN = 1 [00:07:01]Read from MH i2c: 01 [00:07:01]MH_I2C_Read... [00:07:01]*** Stop cut motor [00:07:01]*** Cut end [00:07:01]Read from MH i2c: 01 07 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: 01 07 00 4D 3D 00 00 00 00 00 FF 0F 9F [00:07:01]process_action x_report done [00:07:01]requested_data is exist [00:07:01]produce_requested_data [00:07:01]requested_item fd.num is exist - process it [00:07:01]SAM_PROTO_GetFieldsCounters [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 13 00 00 [00:07:01]Write to MH i2c: E2 08 00 4E 3D 80 13 00 00 00 00 00 00 07 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 62 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 62 00 4E 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 6C [00:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 [00:07:01]wFMCommunicate OK [00:07:01]SAM_PROTO_GetFieldsCounters done [00:07:01]requested_item shift.num is exist - process it [00:07:01]requested_item shift.opened is exist - process it [00:07:01]req_shift_opened [00:07:01]FM_GetShiftState [00:07:01]SAM_PROTO_GetShiftState [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 13 01 00 [00:07:01]Write to MH i2c: E2 08 00 4F 3D 80 13 01 00 00 00 00 00 09 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 0E 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 0E 00 4F 3D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A3 [00:07:01]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:07:01]wFMCommunicate OK [00:07:01]SAM_PROTO_GetShiftState done [00:07:01]FM_GetShiftState done [00:07:01]req_shift_opened done [00:07:01]requested_item shift.open_date is exist - process it [00:07:01]req_shift_open_date [00:07:01]req_shift_open_date done [00:07:01]produce_requested_data done [00:07:01]produce_requested_data return {"fd.num":92550,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:07:01]process_action_free x_report [00:07:01]json_value_free [00:07:01]json_value_free done [00:07:01]process_json_proto returns [00:07:01]Send response to host [00:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92550,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:07:01]free response buf [00:07:01]execute_script done [00:07:01]execute_script returns [00:07:01]free content buf [00:07:01]Sock 9.Close socket [00:07:01]Sock 9.Thread stoped [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:32]accept exits with 8 [00:07:32]New connection [00:07:32]New thread 3066801508 created [00:07:32]Thread 3066658148 joined [00:07:32]Waiting for new connection... [00:07:32] Sock 8.Parse request [00:07:32]Sock 8.Check first char [00:07:32]Sock 8.First char is OK [00:07:32]request: POST /json_proto HTTP/1.0 [00:07:32]Method: POST [00:07:32]URL: /json_proto [00:07:32]Method is POST - this is cgi request [00:07:32]url: /json_proto [00:07:32]query_string will be loaded in cgi processing [00:07:32]execute_cgi json_proto POST (null) [00:07:32]execute_cgi path=json_proto method=POST [00:07:32]POST find Content-Length [00:07:32]Host: 172.17.57.71:8080 [00:07:32]Content-Length: 215 [00:07:32]Content-Type: application/json [00:07:32] [00:07:32]POST finish read [00:07:32]Found Content-Length = 215 [00:07:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:32]execute_script... [00:07:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:32]POST & json_proto [00:07:32]process_json_proto [00:07:32]json parsed OK: [00:07:32]protocol is kg_v1.0 [00:07:32]action value=get_value [00:07:32]process_action get_value [00:07:32]cmd_get_value [00:07:32]process_action get_value done [00:07:32]requested_data is exist [00:07:32]produce_requested_data [00:07:32]requested_item kkm.sn is exist - process it [00:07:32]requested_item kkm.ver is exist - process it [00:07:32]requested_item fm.sn is exist - process it [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 11 00 00 [00:07:32]Write to MH i2c: E2 08 00 50 3D 80 11 00 00 00 00 00 00 07 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 17 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 17 00 50 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5E [00:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:07:32]wFMCommunicate OK [00:07:32]requested_item fd.num is exist - process it [00:07:32]SAM_PROTO_GetFieldsCounters [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 13 00 00 [00:07:32]Write to MH i2c: E2 08 00 51 3D 80 13 00 00 00 00 00 00 0A [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 62 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 62 00 51 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 6F [00:07:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 86 69 01 00 0E 04 04 00 FA 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 [00:07:32]wFMCommunicate OK [00:07:32]SAM_PROTO_GetFieldsCounters done [00:07:32]requested_item shift.num is exist - process it [00:07:32]requested_item shift.opened is exist - process it [00:07:32]req_shift_opened [00:07:32]FM_GetShiftState [00:07:32]SAM_PROTO_GetShiftState [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 13 01 00 [00:07:32]Write to MH i2c: E2 08 00 52 3D 80 13 01 00 00 00 00 00 0C [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:32]Read from MH i2c: E2 0E 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 0E 00 52 3D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 A6 [00:07:32]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:07:32]wFMCommunicate OK [00:07:32]SAM_PROTO_GetShiftState done [00:07:32]FM_GetShiftState done [00:07:32]req_shift_opened done [00:07:32]requested_item shift.open_date is exist - process it [00:07:32]req_shift_open_date [00:07:32]req_shift_open_date done [00:07:32]produce_requested_data done [00:07:32]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92550,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389} [00:07:32]process_action_free get_value [00:07:32]json_value_free [00:07:32]json_value_free done [00:07:32]process_json_proto returns [00:07:32]Send response to host [00:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92550,"shift.num":506,"shift.opened":1,"shift.open_date":1726273389}}} [00:07:32]free response buf [00:07:32]execute_script done [00:07:32]execute_script returns [00:07:32]free content buf [00:07:32]Sock 8.Close socket [00:07:32]Sock 8.Thread stoped [00:07:32]accept exits with 9 [00:07:32]New connection [00:07:32]New thread 3066658148 created [00:07:32]Thread 3066801508 joined [00:07:32]Waiting for new connection... [00:07:32] Sock 9.Parse request [00:07:32]Sock 9.Check first char [00:07:32]Sock 9.First char is OK [00:07:32]request: POST /json_proto HTTP/1.0 [00:07:32]Method: POST [00:07:32]URL: /json_proto [00:07:32]Method is POST - this is cgi request [00:07:32]url: /json_proto [00:07:32]query_string will be loaded in cgi processing [00:07:32]execute_cgi json_proto POST (null) [00:07:32]execute_cgi path=json_proto method=POST [00:07:32]POST find Content-Length [00:07:32]Host: 172.17.57.71:8080 [00:07:32]Content-Length: 331 [00:07:32]Content-Type: application/json [00:07:32] [00:07:32]POST finish read [00:07:32]Found Content-Length = 331 [00:07:32]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:07:32]execute_script... [00:07:32]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:07:32]POST & json_proto [00:07:32]process_json_proto [00:07:32]json parsed OK: [00:07:32]protocol is kg_v1.0 [00:07:32]action value=get_value [00:07:32]process_action get_value [00:07:32]cmd_get_value [00:07:32]process_action get_value done [00:07:32]requested_data is exist [00:07:32]produce_requested_data [00:07:32]requested_item fm.sale.total is exist - process it [00:07:32]SAM_PROTO_GetFMData [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 13 03 00 [00:07:32]Write to MH i2c: E2 08 00 53 3D 80 13 03 00 00 00 00 00 0F [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 53 3D 00 C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 9D [00:07:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 17 00 00 [00:07:33]Write to MH i2c: E2 08 00 54 3D 80 17 00 00 00 00 00 00 11 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 54 3D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 [00:07:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 17 00 00 [00:07:33]Write to MH i2c: E2 08 00 55 3D 80 17 00 00 00 00 00 00 12 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]OFD Sender: No OFD packet to send [00:07:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 55 3D 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 24 [00:07:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 56 3D 80 17 00 00 00 00 00 00 13 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 56 3D 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 9F [00:07:34]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 57 3D 80 17 00 00 00 00 00 00 14 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 E2 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 E2 00 57 3D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [00:07:34]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:34]wFMCommunicate OK [00:07:34]SAM_PROTO_GetFMData done [00:07:34]requested_item fm.sale_refund.total is exist - process it [00:07:34]requested_item fm.buy.total is exist - process it [00:07:34]requested_item shift.sale.total is exist - process it [00:07:34]SAM_PROTO_GetShiftData [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 13 02 00 [00:07:34]Write to MH i2c: E2 08 00 58 3D 80 13 02 00 00 00 00 00 13 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 58 3D 00 BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 1B [00:07:35]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 59 3D 80 17 00 00 00 00 00 00 16 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 59 3D 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 27 [00:07:35]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 5A 3D 80 17 00 00 00 00 00 00 17 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 5A 3D 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [00:07:35]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 5B 3D 80 17 00 00 00 00 00 00 18 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 5B 3D 00 00 EF 03 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 90 00 90 [00:07:36]RAPDU: 00 EF 03 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 90 00 [00:07:36]wFMCommunicate OK [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 17 00 00 [00:07:36]Write to MH i2c: E2 08 00 5C 3D 80 17 00 00 00 00 00 00 19 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 D7 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 D7 00 5C 3D 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 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 FC [00:07:36]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 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:07:36]wFMCommunicate OK [00:07:36]SAM_PROTO_GetShiftData done [00:07:36]requested_item shift.sale.total_cash is exist - process it [00:07:36]requested_item shift.sale_refund.total is exist - process it [00:07:36]requested_item shift.sale_refund.total_cash is exist - process it [00:07:36]requested_item shift.buy.total is exist - process it [00:07:36]requested_item shift.buy.total_cash is exist - process it [00:07:36]produce_requested_data done [00:07:36]produce_requested_data return {"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:36]process_action_free get_value [00:07:36]json_value_free [00:07:36]json_value_free done [00:07:36]process_json_proto returns [00:07:36]Send response to host [00:07:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:36]free response buf [00:07:36]execute_script done [00:07:36]execute_script returns [00:07:36]free content buf [00:07:36]Sock 9.Close socket [00:07:36]Sock 9.Thread stoped [00:07:36]accept exits with 8 [00:07:36]New connection [00:07:36]New thread 3066801508 created [00:07:36]Thread 3066658148 joined [00:07:36]Waiting for new connection... [00:07:36] Sock 8.Parse request [00:07:36]Sock 8.Check first char [00:07:36]Sock 8.First char is OK [00:07:36]request: POST /json_proto HTTP/1.0 [00:07:36]Method: POST [00:07:36]URL: /json_proto [00:07:36]Method is POST - this is cgi request [00:07:36]url: /json_proto [00:07:36]query_string will be loaded in cgi processing [00:07:36]execute_cgi json_proto POST (null) [00:07:36]execute_cgi path=json_proto method=POST [00:07:36]POST find Content-Length [00:07:36]Host: 172.17.57.71:8080 [00:07:36]Content-Length: 331 [00:07:36]Content-Type: application/json [00:07:36] [00:07:36]POST finish read [00:07:36]Found Content-Length = 331 [00:07:36]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:07:36]execute_script... [00:07:36]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:07:36]POST & json_proto [00:07:36]process_json_proto [00:07:36]json parsed OK: [00:07:36]protocol is kg_v1.0 [00:07:36]action value=get_value [00:07:36]process_action get_value [00:07:36]cmd_get_value [00:07:36]process_action get_value done [00:07:36]requested_data is exist [00:07:36]produce_requested_data [00:07:36]requested_item fm.sale.total is exist - process it [00:07:36]SAM_PROTO_GetFMData [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 13 03 00 [00:07:36]Write to MH i2c: E2 08 00 5D 3D 80 13 03 00 00 00 00 00 19 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 5D 3D 00 C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 A7 [00:07:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [00:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 17 00 00 [00:07:37]Write to MH i2c: E2 08 00 5E 3D 80 17 00 00 00 00 00 00 1B [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 5E 3D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7B [00:07:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 17 00 00 [00:07:37]Write to MH i2c: E2 08 00 5F 3D 80 17 00 00 00 00 00 00 1C [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 5F 3D 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 2E [00:07:38]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:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 17 00 00 [00:07:38]Write to MH i2c: E2 08 00 60 3D 80 17 00 00 00 00 00 00 1D [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 60 3D 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 A9 [00:07:38]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:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 17 00 00 [00:07:38]Write to MH i2c: E2 08 00 61 3D 80 17 00 00 00 00 00 00 1E [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]OFD Sender: No OFD packet to send [00:07:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 E2 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 E2 00 61 3D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [00:07:39]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:07:39]wFMCommunicate OK [00:07:39]SAM_PROTO_GetFMData done [00:07:39]requested_item fm.sale_refund.total is exist - process it [00:07:39]requested_item fm.buy.total is exist - process it [00:07:39]requested_item shift.sale.total is exist - process it [00:07:39]SAM_PROTO_GetShiftData [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 13 02 00 [00:07:39]Write to MH i2c: E2 08 00 62 3D 80 13 02 00 00 00 00 00 1D [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 62 3D 00 BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 25 [00:07:39]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:39]wFMCommunicate OK [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 17 00 00 [00:07:39]Write to MH i2c: E2 08 00 63 3D 80 17 00 00 00 00 00 00 20 [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 63 3D 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 31 [00:07:40]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 [00:07:40]wFMCommunicate OK [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 17 00 00 [00:07:40]Write to MH i2c: E2 08 00 64 3D 80 17 00 00 00 00 00 00 21 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 64 3D 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [00:07:40]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:40]wFMCommunicate OK [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 17 00 00 [00:07:40]Write to MH i2c: E2 08 00 65 3D 80 17 00 00 00 00 00 00 22 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 65 3D 00 00 EF 03 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 90 00 9A [00:07:41]RAPDU: 00 EF 03 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 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 66 3D 80 17 00 00 00 00 00 00 23 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 D7 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 D7 00 66 3D 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 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 06 [00:07:41]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 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:07:41]wFMCommunicate OK [00:07:41]SAM_PROTO_GetShiftData done [00:07:41]requested_item shift.sale.total_cash is exist - process it [00:07:41]requested_item shift.sale_refund.total is exist - process it [00:07:41]requested_item shift.sale_refund.total_cash is exist - process it [00:07:41]requested_item shift.buy.total is exist - process it [00:07:41]requested_item shift.buy.total_cash is exist - process it [00:07:41]produce_requested_data done [00:07:41]produce_requested_data return {"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:41]process_action_free get_value [00:07:41]json_value_free [00:07:41]json_value_free done [00:07:41]process_json_proto returns [00:07:41]Send response to host [00:07:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:41]free response buf [00:07:41]execute_script done [00:07:41]execute_script returns [00:07:41]free content buf [00:07:41]Sock 8.Close socket [00:07:41]Sock 8.Thread stoped [00:07:41]accept exits with 9 [00:07:41]New connection [00:07:41]New thread 3066658148 created [00:07:41]Thread 3066801508 joined [00:07:41]Waiting for new connection... [00:07:41] Sock 9.Parse request [00:07:41]Sock 9.Check first char [00:07:41]Sock 9.First char is OK [00:07:41]request: POST /json_proto HTTP/1.0 [00:07:41]Method: POST [00:07:41]URL: /json_proto [00:07:41]Method is POST - this is cgi request [00:07:41]url: /json_proto [00:07:41]query_string will be loaded in cgi processing [00:07:41]execute_cgi json_proto POST (null) [00:07:41]execute_cgi path=json_proto method=POST [00:07:41]POST find Content-Length [00:07:41]Host: 172.17.57.71:8080 [00:07:41]Content-Length: 278 [00:07:41]Content-Type: application/json [00:07:41] [00:07:41]POST finish read [00:07:41]Found Content-Length = 278 [00:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u043E\u043B\u0434\u043E\u043A\u0443\u043B\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:41]execute_script... [00:07:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u043E\u043B\u0434\u043E\u043A\u0443\u043B\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:41]POST & json_proto [00:07:41]process_json_proto [00:07:41]json parsed OK: [00:07:41]protocol is kg_v1.0 [00:07:41]action value=close_shift [00:07:41]process_action close_shift [00:07:41]cmd_close_shift [00:07:41]MH_GetDate [00:07:41]Write to MH i2c: F0 00 00 67 3D 93 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 09 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 09 00 67 3D 00 53 25 E6 66 33 3A A4 66 D7 [00:07:41]GetLastDocTimeStamp 1726358815 [00:07:41]current date 1726358867 [00:07:41]FM_GetShiftState [00:07:41]SAM_PROTO_GetShiftState [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 13 01 00 [00:07:41]Write to MH i2c: E2 08 00 68 3D 80 13 01 00 00 00 00 00 22 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 0E 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 0E 00 68 3D 00 09 00 01 6D D7 E4 66 00 00 00 00 90 00 BC [00:07:41]RAPDU: 09 00 01 6D D7 E4 66 00 00 00 00 90 00 [00:07:41]wFMCommunicate OK [00:07:41]SAM_PROTO_GetShiftState done [00:07:41]FM_GetShiftState done [00:07:41]KKMCreateCloseShiftDocument [00:07:41]Load OK [00:07:41]Malloc new data [00:07:41]MH_GetDate [00:07:41]Write to MH i2c: F0 00 00 69 3D 95 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 09 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 09 00 69 3D 00 53 25 E6 66 33 3A A4 66 D9 [00:07:41]Malloc new data [00:07:41]Malloc new data [00:07:41]Malloc new data [00:07:41]Malloc new data [00:07:41]KKMCreateCloseShiftDocument OK [00:07:41]KKMSetCloseShiftData OK [00:07:41]ProcessDocumentItem done err = 0, tmpTLVsize=77 [00:07:41]tlvbuf is 0112ED20 [00:07:41]KKMLoadAndSignCloseShiftData [00:07:41]SAM_PROTO_ProcessDocument [00:07:41]wFMCommunicate request_size=9 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 15 01 00 04 05 00 4D 00 [00:07:42]Write to MH i2c: E2 0C 00 6A 3D 80 15 01 00 04 00 05 00 4D 00 00 00 80 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 6A 3D 00 90 00 1B [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=23 [00:07:42]MH_SAM_APDU [00:07:42]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:07:42]Write to MH i2c: E2 1A 00 6B 3D 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 1D [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 6B 3D 00 90 00 1C [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=36 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [00:07:42]Write to MH i2c: E2 27 00 6C 3D 80 15 02 00 1F 00 FD 03 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 E0 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 6C 3D 00 90 00 1D [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=13 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 15 02 00 08 F4 03 04 00 53 25 E6 66 [00:07:42]Write to MH i2c: E2 10 00 6D 3D 80 15 02 00 08 00 F4 03 04 00 53 25 E6 66 00 00 F9 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 6D 3D 00 90 00 1E [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=25 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [00:07:42]Write to MH i2c: E2 1C 00 6E 3D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 87 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 6E 3D 00 90 00 1F [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 15 03 00 [00:07:42]Write to MH i2c: E2 08 00 6F 3D 80 15 03 00 00 00 00 00 2D [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 6F 3D 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 87 69 01 00 0E 04 04 00 FA 01 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 90 00 AA [00:07:43]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 87 69 01 00 0E 04 04 00 FA 01 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 90 00 [00:07:43]wFMCommunicate OK [00:07:43]SAM_PROTO_ProcessDocument answer len = 1277 [00:07:43]SAM_PROTO_ProcessDocument remain to read = 1029 [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 70 3D 80 17 00 00 00 00 00 00 2D [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 70 3D 00 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 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 64 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 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 90 00 8A [00:07:43]RAPDU: 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 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 64 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 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 90 00 [00:07:43]wFMCommunicate OK [00:07:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:43]SAM_PROTO_ProcessDocument remain to read = 779 [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 71 3D 80 17 00 00 00 00 00 00 2E [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]OFD Sender: No OFD packet to send [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 71 3D 00 00 04 F7 03 00 00 EF 03 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 90 00 94 [00:07:44]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:44]wFMCommunicate OK [00:07:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:44]SAM_PROTO_ProcessDocument remain to read = 529 [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 17 00 00 [00:07:44]Write to MH i2c: E2 08 00 72 3D 80 17 00 00 00 00 00 00 2F [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 72 3D 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3E [00:07:44]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:45]wFMCommunicate OK [00:07:45]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:45]SAM_PROTO_ProcessDocument remain to read = 279 [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 73 3D 80 17 00 00 00 00 00 00 30 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 73 3D 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [00:07:45]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:45]wFMCommunicate OK [00:07:45]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:45]SAM_PROTO_ProcessDocument remain to read = 29 [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 74 3D 80 17 00 00 00 00 00 00 31 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 20 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 20 00 74 3D 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 8F 91 7F 10 4C 3B 90 00 AB [00:07:45]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 8F 91 7F 10 4C 3B 90 00 [00:07:45]wFMCommunicate OK [00:07:45]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [00:07:45]SAM_PROTO_ProcessDocument done [00:07:45]1209 (1) - 1.0 - номер версии ФФД [00:07:45]1041 (16) - 0000000000874692 - номер ФМ [00:07:45]1040 (4) - 92551 - номер ФД [00:07:45]1038 (4) - 506 - номер смены [00:07:45]1118 (4) - 201 - количество кассовых чеков за смену [00:07:45]1111 (4) - 203 - общее количество ФД за смену [00:07:45]1194 (1206) - счетчики итогов смены [00:07:45] 1134 (4) - 201 - количество чеков со всеми признаками расчетов [00:07:45] 1129 (155) - счетчики операций «приход» [00:07:45] 1135 (4) - 197 - количество чеков по признаку расчетов [00:07:45] 1201 (3) - 53455.00 - общая итоговая сумма в чеках [00:07:45] 1136 (3) - 34425.00 - итоговая сумма в чеках наличными [00:07:45] 1138 (3) - 19030.00 - итоговая сумма в чеках безналичными [00:07:45] 1024 (122) - суммы налогов [00:07:45] 1006 (9) - суммы НДС [00:07:45] 1010 (1) - 0% - код ставки НДС [00:07:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:45] 1006 (12) - суммы НДС [00:07:45] 1010 (1) - 12% - код ставки НДС [00:07:45] 1011 (3) - 5676.96 - сумма НДС по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:45] 1014 (1) - 0% - код ставки НСП [00:07:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:45] 1007 (11) - суммы НСП [00:07:45] 1014 (1) - 1% - код ставки НСП [00:07:45] 1015 (2) - 472.93 - сумма НСП по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:45] 1014 (1) - 2% - код ставки НСП [00:07:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:45] 1014 (1) - 3% - код ставки НСП [00:07:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:45] 1014 (1) - 5% - код ставки НСП [00:07:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:45] 1014 (1) - 0,50% - код ставки НСП [00:07:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:45] 1014 (1) - 1,50% - код ставки НСП [00:07:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:45] 1130 (153) - счетчики операций «возврат прихода» [00:07:45] 1135 (4) - 4 - количество чеков по признаку расчетов [00:07:45] 1201 (3) - 981.00 - общая итоговая сумма в чеках [00:07:45] 1136 (2) - 86.00 - итоговая сумма в чеках наличными [00:07:45] 1138 (3) - 895.00 - итоговая сумма в чеках безналичными [00:07:45] 1024 (121) - суммы налогов [00:07:45] 1006 (9) - суммы НДС [00:07:45] 1010 (1) - 0% - код ставки НДС [00:07:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:45] 1006 (11) - суммы НДС [00:07:45] 1010 (1) - 12% - код ставки НДС [00:07:45] 1011 (2) - 104.15 - сумма НДС по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:45] 1014 (1) - 0% - код ставки НСП [00:07:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:45] 1007 (11) - суммы НСП [00:07:45] 1014 (1) - 1% - код ставки НСП [00:07:45] 1015 (2) - 8.68 - сумма НСП по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:45] 1014 (1) - 2% - код ставки НСП [00:07:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:45] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 3% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 5% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 0,50% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 1,50% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1131 (141) - счетчики операций «расход» [00:07:46] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:46] 1024 (117) - суммы налогов [00:07:46] 1006 (9) - суммы НДС [00:07:46] 1010 (1) - 0% - код ставки НДС [00:07:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:46] 1006 (9) - суммы НДС [00:07:46] 1010 (1) - 12% - код ставки НДС [00:07:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 0% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 1% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 2% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 3% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 5% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 0,50% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 1,50% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1132 (141) - счетчики операций «возврат расхода» [00:07:46] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:46] 1024 (117) - суммы налогов [00:07:46] 1006 (9) - суммы НДС [00:07:46] 1010 (1) - 0% - код ставки НДС [00:07:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:46] 1006 (9) - суммы НДС [00:07:46] 1010 (1) - 12% - код ставки НДС [00:07:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 0% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 1% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 2% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 3% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 5% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 0,50% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1007 (9) - суммы НСП [00:07:46] 1014 (1) - 1,50% - код ставки НСП [00:07:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:46] 1133 (588) - - счетчики коррекции - не используются [00:07:46]1077 (6) - 157855064804411 - ФПД [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1209 (04B9) [00:07:46]Malloc new data [00:07:46]Processing tag 1041 (0411) [00:07:46]Processing tag 1040 (0410) [00:07:46]Malloc new data [00:07:46]Processing tag 1038 (040E) [00:07:46]Malloc new data [00:07:46]Processing tag 1118 (045E) [00:07:46]Malloc new data [00:07:46]Processing tag 1111 (0457) [00:07:46]Malloc new data [00:07:46]Processing tag 1194 (04AA) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1134 (046E) [00:07:46]Malloc new data [00:07:46]Processing tag 1129 (0469) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1135 (046F) [00:07:46]Malloc new data [00:07:46]Processing tag 1201 (04B1) [00:07:46]Malloc new data [00:07:46]Processing tag 1136 (0470) [00:07:46]Malloc new data [00:07:46]Processing tag 1138 (0472) [00:07:46]Malloc new data [00:07:46]Processing tag 1024 (0400) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1006 (03EE) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1010 (03F2) [00:07:46]Malloc new data [00:07:46]Processing tag 1011 (03F3) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1006 (03EE) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1010 (03F2) [00:07:46]Malloc new data [00:07:46]Processing tag 1011 (03F3) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]SetTLVBufToDocument err=0 [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1130 (046A) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1135 (046F) [00:07:46]Malloc new data [00:07:46]Processing tag 1201 (04B1) [00:07:46]Malloc new data [00:07:46]Processing tag 1136 (0470) [00:07:46]Malloc new data [00:07:46]Processing tag 1138 (0472) [00:07:46]Malloc new data [00:07:46]Processing tag 1024 (0400) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1006 (03EE) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1010 (03F2) [00:07:46]Malloc new data [00:07:46]Processing tag 1011 (03F3) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1006 (03EE) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1010 (03F2) [00:07:46]Malloc new data [00:07:46]Processing tag 1011 (03F3) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]SetTLVBufToDocument err=0 [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1131 (046B) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1135 (046F) [00:07:46]Malloc new data [00:07:46]Processing tag 1201 (04B1) [00:07:46]Malloc new data [00:07:46]Processing tag 1136 (0470) [00:07:46]Malloc new data [00:07:46]Processing tag 1138 (0472) [00:07:46]Malloc new data [00:07:46]Processing tag 1024 (0400) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1006 (03EE) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1010 (03F2) [00:07:46]Malloc new data [00:07:46]Processing tag 1011 (03F3) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1006 (03EE) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1010 (03F2) [00:07:46]Malloc new data [00:07:46]Processing tag 1011 (03F3) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]SetTLVBufToDocument err=0 [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1132 (046C) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1135 (046F) [00:07:46]Malloc new data [00:07:46]Processing tag 1201 (04B1) [00:07:46]Malloc new data [00:07:46]Processing tag 1136 (0470) [00:07:46]Malloc new data [00:07:46]Processing tag 1138 (0472) [00:07:46]Malloc new data [00:07:46]Processing tag 1024 (0400) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1006 (03EE) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1010 (03F2) [00:07:46]Malloc new data [00:07:46]Processing tag 1011 (03F3) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1006 (03EE) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1010 (03F2) [00:07:46]Malloc new data [00:07:46]Processing tag 1011 (03F3) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1007 (03EF) [00:07:46]Load OK [00:07:46]SetTLVBufToDocument [00:07:46]Processing tag 1014 (03F6) [00:07:46]Malloc new data [00:07:46]Processing tag 1015 (03F7) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]SetTLVBufToDocument err=0 [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1133 (046D) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Processing tag 1077 (0435) [00:07:46]Malloc new data [00:07:46]SetTLVBufToDocument err=0 [00:07:46]Malloc new data [00:07:46]SAM_PROTO_GetFMData [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 13 03 00 [00:07:46]Write to MH i2c: E2 08 00 75 3D 80 13 03 00 00 00 00 00 31 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 75 3D 00 C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 BF [00:07:47]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 76 3D 80 17 00 00 00 00 00 00 33 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 76 3D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 93 [00:07:48]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 77 3D 80 17 00 00 00 00 00 00 34 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 77 3D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 46 [00:07:48]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:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 78 3D 80 17 00 00 00 00 00 00 35 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]OFD Sender: No OFD packet to send [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 78 3D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C1 [00:07:49]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:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 79 3D 80 17 00 00 00 00 00 00 36 [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 E2 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 E2 00 79 3D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 14 [00:07:50]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:07:50]wFMCommunicate OK [00:07:50]SAM_PROTO_GetFMData done [00:07:50]Malloc new data [00:07:50]Malloc new data [00:07:50]Malloc new data [00:07:50]Malloc new data [00:07:50]KKMLoadAndSignCloseShiftData err=0 [00:07:50]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Молдокулова А. 15.09.2024 00:07 Смена: 506 РНМ: 0000000000091423 ЗНМ: 03000000022 СНО: Общий режим Чеков за смену: 201 ФД за смену: 203 Всего чеков: 201 ИТОГИ ПРИХОД Чеков: 197 Общий итог: 53455.00 Итого наличными: 34425.00 Итого безнал.: 19030.00 НДС 0% : 0.00 НДС 12% : 5676.96 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 472.93 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 981.00 Итого наличными: 86.00 Итого безнал.: 895.00 НДС 0% : 0.00 НДС 12% : 104.15 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 8.68 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 34339.00 НС Приход: 29998124.09 НС Возвр.Прихода: 749653.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 92551 ФМ: 0000000000874692 ФПД: 157855064804411 [00:07:50]StoreToDocumentArchive [00:07:50]shift 506 fd 92551 [00:07:50]save to /storage/0506/doc_00092551 [00:07:50]save last doc name /storage/0506/doc_00092551 to /storage/kkm_last_doc_name [00:07:50]save OK [00:07:50]Clear old archive folders... [00:07:50]Remove dir /storage/0266 [00:07:50]opendir ok [00:07:50]file . [00:07:50]file .. [00:07:50]file doc_1726358823 [00:07:50]remove file /storage/0266/doc_1726358823 [00:07:50]remove dir /storage/0266 [00:07:50]NVStorageSaveData kkm_registers [00:07:50]File name is /storage/kkm_registers [00:07:50]Write 24 bytes [00:07:50]NVStorageSaveData done [00:07:50]NVStorageSaveData kkm_registers [00:07:50]File name is /storage/kkm_registers [00:07:50]Write 24 bytes [00:07:50]NVStorageSaveData done [00:07:50]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [00:07:50]tlvbuf is 011ABEC0 [00:07:50]SAM_PROTO_ClearQueue [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 09 00 00 [00:07:50]Write to MH i2c: E2 08 00 7A 3D 80 09 00 00 00 00 00 00 29 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 03 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 03 00 7A 3D 00 90 00 2B [00:07:50]RAPDU: 90 00 [00:07:50]wFMCommunicate OK [00:07:50]SAM_PROTO_ClearQueue done [00:07:50]KKMCreateOFDPacket [00:07:50]OFDProtocolAddRootSTLVToBuf [00:07:50]FM_MakeSignedData [00:07:50]FM_MakeSignedData [00:07:50]SAM_PROTO_SignData [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 0D 01 02 [00:07:50]Write to MH i2c: E2 08 00 7B 3D 80 0D 01 02 00 00 00 00 31 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:50]Read from MH i2c: E2 03 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 03 00 7B 3D 00 90 00 2C [00:07:50]RAPDU: 90 00 [00:07:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=255 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 0D 02 02 FA 05 00 70 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 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 53 25 E6 66 0E 04 04 00 FA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 DC 04 6E 04 04 00 C9 00 00 00 69 04 A2 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 90 A9 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:07:50]Write to MH i2c: E2 02 01 7C 3D 80 0D 02 02 FA 00 05 00 70 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 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 53 25 E6 66 0E 04 04 00 FA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 DC 04 6E 04 04 00 C9 00 00 00 69 04 A2 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 90 A9 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 A2 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 03 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 03 00 7C 3D 00 90 00 2D [00:07:51]RAPDU: 90 00 [00:07:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=255 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BD B8 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 AF 28 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 03 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:07:51]Write to MH i2c: E2 02 01 7D 3D 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BD B8 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 AF 28 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 03 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 00 E7 [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 03 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 03 00 7D 3D 00 90 00 2E [00:07:51]RAPDU: 90 00 [00:07:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=255 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 0D 02 02 FA 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:07:51]Write to MH i2c: E2 02 01 7E 3D 80 0D 02 02 FA 00 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 F3 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 03 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 03 00 7E 3D 00 90 00 2F [00:07:52]RAPDU: 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=255 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 0D 02 02 FA 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 [00:07:52]Write to MH i2c: E2 02 01 7F 3D 80 0D 02 02 FA 00 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 00 00 F9 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 7F 3D 00 90 00 30 [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=255 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 [00:07:53]Write to MH i2c: E2 02 01 80 3D 80 0D 02 02 FA 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 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 00 D4 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 80 3D 00 90 00 31 [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=151 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 8F 91 7F 10 4C 3B [00:07:53]Write to MH i2c: E2 9A 00 81 3D 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 8F 91 7F 10 4C 3B 00 00 9E [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]OFD Sender: No OFD packet to send [00:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 03 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 03 00 81 3D 00 90 00 32 [00:07:54]RAPDU: 90 00 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 0D 03 02 [00:07:54]Write to MH i2c: E2 08 00 82 3D 80 0D 03 02 00 00 00 00 3A [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 0B 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 0B 00 82 3D 00 63 AF C6 B3 91 17 D1 B8 90 00 F7 [00:07:54]RAPDU: 63 AF C6 B3 91 17 D1 B8 90 00 [00:07:54]wFMCommunicate OK [00:07:54]SAM_PROTO_SignData done [00:07:54]FM_MakeSignedData done [00:07:54]CreateOFDProtocolMessage [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 11 00 00 [00:07:54]Write to MH i2c: E2 08 00 83 3D 80 11 00 00 00 00 00 00 3A [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 17 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 17 00 83 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 91 [00:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:07:54]wFMCommunicate OK [00:07:54]CreateOFDProtocolMessage done [00:07:54]OFDSenderStorePacket 92551 [00:07:54]StoreOFDPacket docnum=92551 [00:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 84 05 00 00 1B D3 7C 05 3A C2 5A 05 01 00 05 00 70 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 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 53 25 E6 66 0E 04 04 00 FA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 DC 04 6E 04 04 00 C9 00 00 00 69 04 A2 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 90 A9 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BD B8 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 AF 28 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 03 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 87 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 8F 91 7F 10 4C 3B 63 AF C6 B3 91 17 D1 B8 [00:07:54]CheckFolder [00:07:54]dirname=/storage/ofd_packets [00:07:54]CheckFolder done [00:07:54]ProducePacketName [00:07:54]name=ofd_packets/00092551 [00:07:54]NVStorageSaveData ofd_packets/00092551 [00:07:54]File name is /storage/ofd_packets/00092551 [00:07:54]Write 1442 bytes [00:07:54]NVStorageSaveData done [00:07:54]OFDSenderStorePacket done [00:07:54]KKMCreateOFDPacket done [00:07:54]NVStorageSaveData kkm_last_timestamp [00:07:54]File name is /storage/kkm_last_timestamp [00:07:54]Write 4 bytes [00:07:54]NVStorageSaveData done [00:07:54]ExternCall_PrintAddStr [00:07:54]wPrintStart [00:07:54]Write to MH i2c: 01 00 00 84 3D C1 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: 01 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: 01 07 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: 01 07 00 84 3D 00 00 00 00 00 FF 0F D6 [00:07:54]RasterBufferAndPrint [00:07:54]line Отчет о закрытии смены [00:07:54]line ФФД: 1.0 [00:07:54]line ИНН: 02508201610067 [00:07:54]line Кассир: Молдокулова А. [00:07:54]line 15.09.2024 00:07 [00:07:54]line Смена: 506 [00:07:54]line РНМ: 0000000000091423 [00:07:54]line ЗНМ: 03000000022 [00:07:54]line СНО: Общий режим [00:07:54]line Чеков за смену: 201 [00:07:54]line ФД за смену: 203 [00:07:54]line Всего чеков: 201 [00:07:54]line ИТОГИ ПРИХОД [00:07:54]line Чеков: 197 [00:07:54]line Общий итог: 53455.00 [00:07:54]line Итого наличными: 34425.00 [00:07:54]line Итого безнал.: 19030.00 [00:07:54]line НДС 0% : 0.00 [00:07:54]line НДС 12% : 5676.96 [00:07:54]line НСП 0% : 0.00 [00:07:54]line НСП 1,50% : 0.00 [00:07:54]line НСП 0,50% : 0.00 [00:07:54]line НСП 5% : 0.00 [00:07:54]line НСП 3% : 0.00 [00:07:54]line НСП 2% : 0.00 [00:07:54]line НСП 1% : 472.93 [00:07:54]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:54]line Чеков: 4 [00:07:54]line Общий итог: 981.00 [00:07:54]line Итого наличными: 86.00 [00:07:54]line Итого безнал.: 895.00 [00:07:54]line НДС 0% : 0.00 [00:07:54]line НДС 12% : 104.15 [00:07:54]line НСП 0% : 0.00 [00:07:54]line НСП 1,50% : 0.00 [00:07:54]line НСП 0,50% : 0.00 [00:07:54]line НСП 5% : 0.00 [00:07:54]line НСП 3% : 0.00 [00:07:54]line НСП 2% : 0.00 [00:07:54]line НСП 1% : 8.68 [00:07:54]line ИТОГИ РАСХОД [00:07:54]line Чеков: 0 [00:07:54]line Общий итог: 0.00 [00:07:54]line Итого наличными: 0.00 [00:07:54]line Итого безнал.: 0.00 [00:07:54]line НДС 0% : 0.00 [00:07:54]line НДС 12% : 0.00 [00:07:54]line НСП 0% : 0.00 [00:07:54]line НСП 1,50% : 0.00 [00:07:54]line НСП 0,50% : 0.00 [00:07:54]OFD Sender: Processing packet 92551 [packets to send 63, broken 62] [00:07:54]ProducePacketName [00:07:54]name=ofd_packets/00092551 [00:07:54]OFD Sender: To server: pG, [00:07:54]CommunicateWithHost lk.salyk.kg:30040 [00:07:54]ConnectInit lk.salyk.kg [00:07:54]line НСП 5% : 0.00 [00:07:54]line НСП 3% : 0.00 [00:07:54]line НСП 2% : 0.00 [00:07:54]line НСП 1% : 0.00 [00:07:54]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:54]line Чеков: 0 [00:07:54]line Общий итог: 0.00 [00:07:54]line Итого наличными: 0.00 [00:07:54]line Итого безнал.: 0.00 [00:07:54]line НДС 0% : 0.00 [00:07:54]line НДС 12% : 0.00 [00:07:54]line НСП 0% : 0.00 [00:07:54]line НСП 1,50% : 0.00 [00:07:54]line НСП 0,50% : 0.00 [00:07:54]line НСП 5% : 0.00 [00:07:54]line НСП 3% : 0.00 [00:07:54]line НСП 2% : 0.00 [00:07:54]line НСП 1% : 0.00 [00:07:54]line Сумма внесений: 0.00 [00:07:54]line Сумма выплат: 0.00 [00:07:54]line Нал. в кассе: 34339.00 [00:07:54]line НС Приход: 29998124.09 [00:07:54]line НС Возвр.Прихода: 749653.60 [00:07:54]line НС Расход: 0.00 [00:07:54]line НС Возвр.Расхода: 0.00 [00:07:54]line ФД: 92551 [00:07:54]line ФМ: 0000000000874692 [00:07:54]line ФПД: 157855064804411 [00:07:54]written 0, free lines is 4095 [00:07:54]Connected sock=10 [00:07:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 84 05 00 00 1B D3 7C 05 3A C2 5A 05 01 00 05 00 70 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 1B 00 D0 9C D0 BE D0 BB D0 B4 D0 BE D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 53 25 E6 66 0E 04 04 00 FA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 DC 04 6E 04 04 00 C9 00 00 00 69 04 A2 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 90 A9 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BD B8 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 AF 28 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 03 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 Write to MH i2c: 04 01 01 00 00 00 00 D4 00 3D 04 11 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 [00:07:55]00 Write i2c OK [00:07:55]00 MH_I2C_Read... [00:07:55]EE Read from MH i2c: 03 01 0A [00:07:55]00 MH_I2C_Read... [00:07:55]F2 03 01 00 01 F3 03 01 00 00 EF 03 Read from MH i2c: 0A 01 00 07 F6 00 03 [00:07:55]01 MH_I2C_Read... [00:07:55]00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 Read from MH i2c: F7 01 03 07 01 00 00 D4 00 3D EF 00 03 00 0A 00 00 00 F6 00 03 3B 01 0B 00 5E 05 [00:07:55]F7 RasterBufferAndPrint [00:07:55]03 line [00:07:55]01 line [00:07:55]00 line [00:07:55]00 line [00:07:55]EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 line [00:07:55]EF 03 written 0, free lines is 3040 [00:07:55]0A 00 F6 03 01 00 03 F7 03 01 00 00 EF MH_Cut [00:07:55]03 0A Write to MH i2c: 00 D1 F6 01 03 00 01 DB 3D 01 EA [00:07:55]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 Write i2c OK [00:07:56]00 MH_I2C_Read... [00:07:56]EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 D1 03 [00:07:56]01 MH_I2C_Read... [00:07:56]00 Read from MH i2c: 04 D1 F7 01 03 00 00 [00:07:56]00 MH_I2C_Read... [00:07:56]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 Read from MH i2c: 00 D1 06 01 F7 00 DB 03 3D 00 00 00 E9 7A [00:07:56]04 Write to MH i2c: 8D 01 00 00 6F 00 DC 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 3D 00 19 72 [00:07:56]04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE Write i2c OK [00:07:56]03 MH_I2C_Read... [00:07:56]09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 69 01 00 11 04 10 00 30 30 30 30 30 30 30 *** Cut start [00:07:56]30 30 30 38 37 34 36 39 32 35 04 06 00 8F 91 7F 10 4C 3B *** Purtial cut [00:07:56]63 *** Stage 1: CUTSNS_PIN = 1 [00:07:56]AF C6 B3 91 17 D1 B8 [00:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 AE C8 47 00 CB 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 87 69 01 00 F4 03 04 00 DA CD E5 66 B6 04 01 00 00 D1 20 70 68 A1 95 53 0E [00:07:57]CommunicateWithHost err = 0 [00:07:57]CheckOFDResponse [00:07:57]1017 (14) - 77093643461234 [00:07:57]1041 (16) - 0000000000874692 [00:07:57]1040 (4) - 92551 [00:07:57]1012 (4) - 14.09.2024 17:54 [00:07:57]1206 (1) - 0 [00:07:57]OFD Sender: Remove packet 92551 [00:07:57]ProducePacketName [00:07:57]name=ofd_packets/00092551 [00:07:57]NVStorageDeleteData [00:07:57]OFD Sender: No OFD packet to send [00:07:58]Read from MH i2c: *** Stop cut motor [00:07:58]01 *** Cut end [00:07:58] [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: 01 07 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: 01 07 00 DC 3D 00 00 00 00 00 FF 0F 2E [00:07:58]process_action close_shift done [00:07:58]requested_data is exist [00:07:58]produce_requested_data [00:07:58]requested_item fd.num is exist - process it [00:07:58]SAM_PROTO_GetFieldsCounters [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 13 00 00 [00:07:58]Write to MH i2c: E2 08 00 DD 3D 80 13 00 00 00 00 00 00 96 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 62 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 62 00 DD 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 87 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [00:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 87 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetFieldsCounters done [00:07:59]requested_item shift.num is exist - process it [00:07:59]requested_item shift.opened is exist - process it [00:07:59]req_shift_opened [00:07:59]FM_GetShiftState [00:07:59]SAM_PROTO_GetShiftState [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 01 00 [00:07:59]Write to MH i2c: E2 08 00 DE 3D 80 13 01 00 00 00 00 00 98 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 0E 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 0E 00 DE 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A3 [00:07:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetShiftState done [00:07:59]FM_GetShiftState done [00:07:59]req_shift_opened done [00:07:59]requested_item shift.open_date is exist - process it [00:07:59]req_shift_open_date [00:07:59]FM_GetShiftState [00:07:59]SAM_PROTO_GetShiftState [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 01 00 [00:07:59]Write to MH i2c: E2 08 00 DF 3D 80 13 01 00 00 00 00 00 99 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 0E 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 0E 00 DF 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A4 [00:07:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetShiftState done [00:07:59]FM_GetShiftState done [00:07:59]req_shift_open_date done [00:07:59]produce_requested_data done [00:07:59]produce_requested_data return {"fd.num":92551,"shift.num":506,"shift.opened":0,"shift.open_date":0} [00:07:59]process_action_free close_shift [00:07:59]json_value_free [00:07:59]json_value_free done [00:07:59]process_json_proto returns [00:07:59]Send response to host [00:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92551,"shift.num":506,"shift.opened":0,"shift.open_date":0}}} [00:07:59]free response buf [00:07:59]execute_script done [00:07:59]execute_script returns [00:07:59]free content buf [00:07:59]Sock 9.Close socket [00:07:59]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]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:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:19]accept exits with 8 [00:23:19]New connection [00:23:19]New thread 3066801508 created [00:23:19]Thread 3066658148 joined [00:23:19]Waiting for new connection... [00:23:19] Sock 8.Parse request [00:23:19]Sock 8.Check first char [00:23:19]Sock 8.First char is OK [00:23:19]request: POST /json_proto HTTP/1.0 [00:23:19]Method: POST [00:23:19]URL: /json_proto [00:23:19]Method is POST - this is cgi request [00:23:19]url: /json_proto [00:23:19]query_string will be loaded in cgi processing [00:23:19]execute_cgi json_proto POST (null) [00:23:19]execute_cgi path=json_proto method=POST [00:23:19]POST find Content-Length [00:23:19]Host: 172.17.57.71:8080 [00:23:19]Content-Length: 215 [00:23:19]Content-Type: application/json [00:23:19] [00:23:19]POST finish read [00:23:19]Found Content-Length = 215 [00:23:19]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:23:19]execute_script... [00:23:19]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:23:19]POST & json_proto [00:23:19]process_json_proto [00:23:19]json parsed OK: [00:23:19]protocol is kg_v1.0 [00:23:19]action value=get_value [00:23:19]process_action get_value [00:23:19]cmd_get_value [00:23:19]process_action get_value done [00:23:19]requested_data is exist [00:23:19]produce_requested_data [00:23:19]requested_item kkm.sn is exist - process it [00:23:19]requested_item kkm.ver is exist - process it [00:23:19]requested_item fm.sn is exist - process it [00:23:19]wFMCommunicate request_size=4 [00:23:19]MH_SAM_APDU [00:23:19]CAPDU: 80 11 00 00 [00:23:19]Write to MH i2c: E2 08 00 E0 3D 80 11 00 00 00 00 00 00 97 [00:23:19]Write i2c OK [00:23:19]MH_I2C_Read... [00:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:19]Read from MH i2c: E2 [00:23:19]MH_I2C_Read... [00:23:19]Read from MH i2c: E2 17 00 [00:23:19]MH_I2C_Read... [00:23:19]Read from MH i2c: E2 17 00 E0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EE [00:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:23:19]wFMCommunicate OK [00:23:19]requested_item fd.num is exist - process it [00:23:19]SAM_PROTO_GetFieldsCounters [00:23:19]wFMCommunicate request_size=4 [00:23:19]MH_SAM_APDU [00:23:19]CAPDU: 80 13 00 00 [00:23:19]Write to MH i2c: E2 08 00 E1 3D 80 13 00 00 00 00 00 00 9A [00:23:19]Write i2c OK [00:23:19]MH_I2C_Read... [00:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:20]Read from MH i2c: E2 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 62 00 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 62 00 E1 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 87 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [00:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 87 69 01 00 0E 04 04 00 FA 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:20]wFMCommunicate OK [00:23:20]SAM_PROTO_GetFieldsCounters done [00:23:20]requested_item shift.num is exist - process it [00:23:20]requested_item shift.opened is exist - process it [00:23:20]req_shift_opened [00:23:20]FM_GetShiftState [00:23:20]SAM_PROTO_GetShiftState [00:23:20]wFMCommunicate request_size=4 [00:23:20]MH_SAM_APDU [00:23:20]CAPDU: 80 13 01 00 [00:23:20]Write to MH i2c: E2 08 00 E2 3D 80 13 01 00 00 00 00 00 9C [00:23:20]Write i2c OK [00:23:20]MH_I2C_Read... [00:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:20]Read from MH i2c: E2 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 0E 00 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 0E 00 E2 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A7 [00:23:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:20]wFMCommunicate OK [00:23:20]SAM_PROTO_GetShiftState done [00:23:20]FM_GetShiftState done [00:23:20]req_shift_opened done [00:23:20]requested_item shift.open_date is exist - process it [00:23:20]req_shift_open_date [00:23:20]FM_GetShiftState [00:23:20]SAM_PROTO_GetShiftState [00:23:20]wFMCommunicate request_size=4 [00:23:20]MH_SAM_APDU [00:23:20]CAPDU: 80 13 01 00 [00:23:20]Write to MH i2c: E2 08 00 E3 3D 80 13 01 00 00 00 00 00 9D [00:23:20]Write i2c OK [00:23:20]MH_I2C_Read... [00:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:20]Read from MH i2c: E2 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 0E 00 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 0E 00 E3 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A8 [00:23:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:20]wFMCommunicate OK [00:23:20]SAM_PROTO_GetShiftState done [00:23:20]FM_GetShiftState done [00:23:20]req_shift_open_date done [00:23:20]produce_requested_data done [00:23:20]produce_requested_data return {"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92551,"shift.num":506,"shift.opened":0,"shift.open_date":0} [00:23:20]process_action_free get_value [00:23:20]json_value_free [00:23:20]json_value_free done [00:23:20]process_json_proto returns [00:23:20]Send response to host [00:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"03000000022","kkm.ver":"001","fm.sn":"0000000000874692","fd.num":92551,"shift.num":506,"shift.opened":0,"shift.open_date":0}}} [00:23:20]free response buf [00:23:20]execute_script done [00:23:20]execute_script returns [00:23:20]free content buf [00:23:20]Sock 8.Close socket [00:23:20]Sock 8.Thread stoped [00:23:20]accept exits with 9 [00:23:20]New connection [00:23:20]New thread 3066658148 created [00:23:20]Thread 3066801508 joined [00:23:20]Waiting for new connection... [00:23:20] Sock 9.Parse request [00:23:20]Sock 9.Check first char [00:23:20]Sock 9.First char is OK [00:23:20]request: POST /json_proto HTTP/1.0 [00:23:20]Method: POST [00:23:20]URL: /json_proto [00:23:20]Method is POST - this is cgi request [00:23:20]url: /json_proto [00:23:20]query_string will be loaded in cgi processing [00:23:20]execute_cgi json_proto POST (null) [00:23:20]execute_cgi path=json_proto method=POST [00:23:20]POST find Content-Length [00:23:20]Host: 172.17.57.71:8080 [00:23:20]Content-Length: 331 [00:23:20]Content-Type: application/json [00:23:20] [00:23:20]POST finish read [00:23:20]Found Content-Length = 331 [00:23:20]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:23:20]execute_script... [00:23:20]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:23:20]POST & json_proto [00:23:20]process_json_proto [00:23:20]json parsed OK: [00:23:20]protocol is kg_v1.0 [00:23:20]action value=get_value [00:23:20]process_action get_value [00:23:20]cmd_get_value [00:23:20]process_action get_value done [00:23:20]requested_data is exist [00:23:20]produce_requested_data [00:23:20]requested_item fm.sale.total is exist - process it [00:23:20]SAM_PROTO_GetFMData [00:23:20]wFMCommunicate request_size=4 [00:23:20]MH_SAM_APDU [00:23:20]CAPDU: 80 13 03 00 [00:23:20]Write to MH i2c: E2 08 00 E4 3D 80 13 03 00 00 00 00 00 A0 [00:23:20]Write i2c OK [00:23:20]MH_I2C_Read... [00:23:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:20]Read from MH i2c: E2 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 FD 00 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 FD 00 E4 3D 00 C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 2E [00:23:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [00:23:20]wFMCommunicate OK [00:23:20]wFMCommunicate request_size=4 [00:23:20]MH_SAM_APDU [00:23:20]CAPDU: 80 17 00 00 [00:23:20]Write to MH i2c: E2 08 00 E5 3D 80 17 00 00 00 00 00 00 A2 [00:23:20]Write i2c OK [00:23:20]MH_I2C_Read... [00:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:21]Read from MH i2c: E2 [00:23:21]MH_I2C_Read... [00:23:21]Read from MH i2c: E2 FD 00 [00:23:21]MH_I2C_Read... [00:23:21]Read from MH i2c: E2 FD 00 E5 3D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:23: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 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:23:21]wFMCommunicate OK [00:23:21]wFMCommunicate request_size=4 [00:23:21]MH_SAM_APDU [00:23:21]CAPDU: 80 17 00 00 [00:23:21]Write to MH i2c: E2 08 00 E6 3D 80 17 00 00 00 00 00 00 A3 [00:23:21]Write i2c OK [00:23:21]MH_I2C_Read... [00:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:21]Read from MH i2c: E2 [00:23:21]MH_I2C_Read... [00:23:21]Read from MH i2c: E2 FD 00 [00:23:21]MH_I2C_Read... [00:23:21]Read from MH i2c: E2 FD 00 E6 3D 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 B5 [00:23:21]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:23:21]wFMCommunicate OK [00:23:21]wFMCommunicate request_size=4 [00:23:21]MH_SAM_APDU [00:23:21]CAPDU: 80 17 00 00 [00:23:21]Write to MH i2c: E2 08 00 E7 3D 80 17 00 00 00 00 00 00 A4 [00:23:21]Write i2c OK [00:23:21]MH_I2C_Read... [00:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:21]Read from MH i2c: E2 [00:23:21]MH_I2C_Read... [00:23:21]Read from MH i2c: E2 FD 00 [00:23:21]MH_I2C_Read... [00:23:21]Read from MH i2c: E2 FD 00 E7 3D 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 30 [00:23:21]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:23:21]wFMCommunicate OK [00:23:21]wFMCommunicate request_size=4 [00:23:21]MH_SAM_APDU [00:23:21]CAPDU: 80 17 00 00 [00:23:21]Write to MH i2c: E2 08 00 E8 3D 80 17 00 00 00 00 00 00 A5 [00:23:21]Write i2c OK [00:23:21]MH_I2C_Read... [00:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:23:21]Read from MH i2c: E2 [00:23:21]MH_I2C_Read... [00:23:21]Read from MH i2c: E2 E2 00 [00:23:21]MH_I2C_Read... [00:23:21]Read from MH i2c: E2 E2 00 E8 3D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 83 [00:23:21]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:23:21]wFMCommunicate OK [00:23:21]SAM_PROTO_GetFMData done [00:23:21]requested_item fm.sale_refund.total is exist - process it [00:23:21]requested_item fm.buy.total is exist - process it [00:23:21]requested_item shift.sale.total is exist - process it [00:23:21]SAM_PROTO_GetShiftData [00:23:21]wFMCommunicate request_size=4 [00:23:21]MH_SAM_APDU [00:23:21]CAPDU: 80 13 02 00 [00:23:21]Write to MH i2c: E2 08 00 E9 3D 80 13 02 00 00 00 00 00 A4 [00:23:21]Write i2c OK [00:23:21]MH_I2C_Read... [00:23:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:22]Read from MH i2c: E2 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 FD 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 FD 00 E9 3D 00 BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AC [00:23:22]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9B 00 6F 04 04 00 C5 00 00 00 B1 04 03 00 DC 90 51 70 04 03 00 44 87 34 72 04 03 00 98 09 1D 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 90 A9 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 BD B8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 04 00 00 00 B1 04 03 00 34 7F 01 70 04 02 00 98 21 72 04 03 00 9C 5D 01 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 AF 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:23:22]wFMCommunicate OK [00:23:22]wFMCommunicate request_size=4 [00:23:22]MH_SAM_APDU [00:23:22]CAPDU: 80 17 00 00 [00:23:22]Write to MH i2c: E2 08 00 EA 3D 80 17 00 00 00 00 00 00 A7 [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:22]Read from MH i2c: E2 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 FD 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 FD 00 EA 3D 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 B8 [00:23:22]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 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 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 90 00 [00:23:22]wFMCommunicate OK [00:23:22]wFMCommunicate request_size=4 [00:23:22]MH_SAM_APDU [00:23:22]CAPDU: 80 17 00 00 [00:23:22]Write to MH i2c: E2 08 00 EB 3D 80 17 00 00 00 00 00 00 A8 [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:23]Read from MH i2c: E2 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: E2 FD 00 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: E2 FD 00 EB 3D 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:23:23]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:23]wFMCommunicate OK [00:23:23]wFMCommunicate request_size=4 [00:23:23]MH_SAM_APDU [00:23:23]CAPDU: 80 17 00 00 [00:23:23]Write to MH i2c: E2 08 00 EC 3D 80 17 00 00 00 00 00 00 A9 [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:23]Read from MH i2c: E2 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: E2 FD 00 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: E2 FD 00 EC 3D 00 00 EF 03 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 90 00 21 [00:23:23]RAPDU: 00 EF 03 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 90 00 [00:23:23]wFMCommunicate OK [00:23:23]wFMCommunicate request_size=4 [00:23:23]MH_SAM_APDU [00:23:23]CAPDU: 80 17 00 00 [00:23:23]Write to MH i2c: E2 08 00 ED 3D 80 17 00 00 00 00 00 00 AA [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:23:23]Read from MH i2c: E2 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: E2 D7 00 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: E2 D7 00 ED 3D 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 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 8D [00:23:23]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 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:23:23]wFMCommunicate OK [00:23:23]SAM_PROTO_GetShiftData done [00:23:23]requested_item shift.sale.total_cash is exist - process it [00:23:23]requested_item shift.sale_refund.total is exist - process it [00:23:23]requested_item shift.sale_refund.total_cash is exist - process it [00:23:23]requested_item shift.buy.total is exist - process it [00:23:23]requested_item shift.buy.total_cash is exist - process it [00:23:23]produce_requested_data done [00:23:23]produce_requested_data return {"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:23:23]process_action_free get_value [00:23:23]json_value_free [00:23:23]json_value_free done [00:23:23]process_json_proto returns [00:23:23]Send response to host [00:23:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"fm.buy.total":0.00,"shift.sale.total":53455.00,"shift.sale.total_cash":34425.00,"shift.sale_refund.total":981.00,"shift.sale_refund.total_cash":86.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:23:23]free response buf [00:23:23]execute_script done [00:23:23]execute_script returns [00:23:23]free content buf [00:23:23]Sock 9.Close socket [00:23:23]Sock 9.Thread stoped [00:23:23]OFD Sender: No OFD packet to send [00:23:23]accept exits with 8 [00:23:23]New connection [00:23:23]New thread 3066801508 created [00:23:23]Thread 3066658148 joined [00:23:23]Waiting for new connection... [00:23:23] Sock 8.Parse request [00:23:23]Sock 8.Check first char [00:23:23]Sock 8.First char is OK [00:23:23]request: POST /json_proto HTTP/1.0 [00:23:23]Method: POST [00:23:23]URL: /json_proto [00:23:23]Method is POST - this is cgi request [00:23:23]url: /json_proto [00:23:23]query_string will be loaded in cgi processing [00:23:23]execute_cgi json_proto POST (null) [00:23:23]execute_cgi path=json_proto method=POST [00:23:23]POST find Content-Length [00:23:23]Host: 172.17.57.71:8080 [00:23:23]Content-Length: 277 [00:23:23]Content-Type: application/json [00:23:23] [00:23:23]POST finish read [00:23:23]Found Content-Length = 277 [00:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:23]execute_script... [00:23:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0431\u0434\u0430\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:23]POST & json_proto [00:23:23]process_json_proto [00:23:23]json parsed OK: [00:23:23]protocol is kg_v1.0 [00:23:23]action value=open_shift [00:23:23]process_action open_shift [00:23:23]cmd_open_shift [00:23:23]MH_GetDate [00:23:23]Write to MH i2c: F0 00 00 EE 3D 1A [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: F0 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: F0 09 00 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: F0 09 00 EE 3D 00 01 29 E6 66 33 3A A4 66 10 [00:23:23]GetLastDocTimeStamp 1726358867 [00:23:23]current date 1726359809 [00:23:23]FM_GetShiftState [00:23:23]SAM_PROTO_GetShiftState [00:23:23]wFMCommunicate request_size=4 [00:23:23]MH_SAM_APDU [00:23:23]CAPDU: 80 13 01 00 [00:23:23]Write to MH i2c: E2 08 00 EF 3D 80 13 01 00 00 00 00 00 A9 [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:23]Read from MH i2c: E2 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: E2 0E 00 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: E2 0E 00 EF 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B4 [00:23:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:23]wFMCommunicate OK [00:23:23]SAM_PROTO_GetShiftState done [00:23:23]FM_GetShiftState done [00:23:23]KKMCreateOpenShiftDocument [00:23:23]Load OK [00:23:23]Malloc new data [00:23:23]MH_GetDate [00:23:23]Write to MH i2c: F0 00 00 F0 3D 1C [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: F0 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: F0 09 00 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: F0 09 00 F0 3D 00 01 29 E6 66 33 3A A4 66 12 [00:23:23]Malloc new data [00:23:23]KKMCreateOpenShiftDocument OK [00:23:23]KKMSetOpenShiftData OK [00:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=211 [00:23:23]tlvbuf is 00FF2700 [00:23:23]KKMLoadAndSignOpenShiftData [00:23:23]SAM_PROTO_ProcessDocument [00:23:23]wFMCommunicate request_size=9 [00:23:23]MH_SAM_APDU [00:23:23]CAPDU: 80 15 01 00 04 02 00 D3 00 [00:23:23]Write to MH i2c: E2 0C 00 F1 3D 80 15 01 00 04 00 02 00 D3 00 00 00 8A [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 F1 3D 00 90 00 A2 [00:23:24]RAPDU: 90 00 [00:23:24]wFMCommunicate OK [00:23:24]wFMCommunicate request_size=23 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:23:24]Write to MH i2c: E2 1A 00 F2 3D 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 A4 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 F2 3D 00 90 00 A3 [00:23:24]RAPDU: 90 00 [00:23:24]wFMCommunicate OK [00:23:24]wFMCommunicate request_size=36 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [00:23:24]Write to MH i2c: E2 27 00 F3 3D 80 15 02 00 1F 00 FD 03 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 67 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 F3 3D 00 90 00 A4 [00:23:24]RAPDU: 90 00 [00:23:24]wFMCommunicate OK [00:23:24]wFMCommunicate request_size=95 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 15 02 00 5A F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 [00:23:24]Write to MH i2c: E2 62 00 F4 3D 80 15 02 00 5A 00 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 00 00 12 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 F4 3D 00 90 00 A5 [00:23:24]RAPDU: 90 00 [00:23:24]wFMCommunicate OK [00:23:24]wFMCommunicate request_size=49 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 15 02 00 2C A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:23:24]Write to MH i2c: E2 34 00 F5 3D 80 15 02 00 2C 00 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 F3 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 F5 3D 00 90 00 A6 [00:23:24]RAPDU: 90 00 [00:23:24]wFMCommunicate OK [00:23:24]wFMCommunicate request_size=13 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 15 02 00 08 F4 03 04 00 01 29 E6 66 [00:23:24]Write to MH i2c: E2 10 00 F6 3D 80 15 02 00 08 00 F4 03 04 00 01 29 E6 66 00 00 34 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 F6 3D 00 90 00 A7 [00:23:24]RAPDU: 90 00 [00:23:24]wFMCommunicate OK [00:23:24]wFMCommunicate request_size=25 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 [00:23:24]Write to MH i2c: E2 1C 00 F7 3D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 00 00 10 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 03 00 F7 3D 00 90 00 A8 [00:23:24]RAPDU: 90 00 [00:23:24]wFMCommunicate OK [00:23:24]wFMCommunicate request_size=4 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 15 03 00 [00:23:24]Write to MH i2c: E2 08 00 F8 3D 80 15 03 00 00 00 00 00 B6 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 38 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 38 00 F8 3D 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 88 69 01 00 0E 04 04 00 FB 01 00 00 35 04 06 00 42 22 0D 32 A7 15 90 00 D3 [00:23:24]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 88 69 01 00 0E 04 04 00 FB 01 00 00 35 04 06 00 42 22 0D 32 A7 15 90 00 [00:23:24]wFMCommunicate OK [00:23:24]SAM_PROTO_ProcessDocument answer len = 51 [00:23:24]SAM_PROTO_ProcessDocument done [00:23:24]SetTLVBufToDocument [00:23:24]Processing tag 1209 (04B9) [00:23:24]Malloc new data [00:23:24]Processing tag 1041 (0411) [00:23:24]Processing tag 1040 (0410) [00:23:24]Malloc new data [00:23:24]Processing tag 1038 (040E) [00:23:24]Malloc new data [00:23:24]Processing tag 1077 (0435) [00:23:24]Malloc new data [00:23:24]SetTLVBufToDocument err=0 [00:23:24]KKMLoadAndSignOpenShiftData store KKM data [00:23:24]KKMLoadAndSignOpenShiftData err=0 [00:23:24]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Абдалбекова А. Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 Место: АЗС № 5 "Партнер Нефть" 15.09.2024 00:23 Смена: 507 РНМ: 0000000000091423 ЗНМ: 03000000022 ФД: 92552 ФМ: 0000000000874692 ФПД: 72714017744661 [00:23:24]StoreToDocumentArchive [00:23:24]shift 507 fd 92552 [00:23:24]Create dir for shift 0507 [00:23:24]save to /storage/0507/doc_00092552 [00:23:24]save last doc name /storage/0507/doc_00092552 to /storage/kkm_last_doc_name [00:23:24]save OK [00:23:24]Clear old archive folders... [00:23:24]Remove dir /storage/0506 [00:23:24]opendir ok [00:23:24]file . [00:23:24]file .. [00:23:24]file doc_00092349 [00:23:24]remove file /storage/0506/doc_00092349 [00:23:24]file doc_00092350 [00:23:24]remove file /storage/0506/doc_00092350 [00:23:24]file doc_00092351 [00:23:24]remove file /storage/0506/doc_00092351 [00:23:24]file doc_00092352 [00:23:24]remove file /storage/0506/doc_00092352 [00:23:24]file doc_00092353 [00:23:24]remove file /storage/0506/doc_00092353 [00:23:24]file doc_00092354 [00:23:24]remove file /storage/0506/doc_00092354 [00:23:24]file doc_00092355 [00:23:24]remove file /storage/0506/doc_00092355 [00:23:24]file doc_00092356 [00:23:24]remove file /storage/0506/doc_00092356 [00:23:24]file doc_00092357 [00:23:24]remove file /storage/0506/doc_00092357 [00:23:24]file doc_00092358 [00:23:24]remove file /storage/0506/doc_00092358 [00:23:24]file doc_00092359 [00:23:24]remove file /storage/0506/doc_00092359 [00:23:24]file doc_00092360 [00:23:24]remove file /storage/0506/doc_00092360 [00:23:24]file doc_00092361 [00:23:24]remove file /storage/0506/doc_00092361 [00:23:24]file doc_00092362 [00:23:24]remove file /storage/0506/doc_00092362 [00:23:24]file doc_00092363 [00:23:24]remove file /storage/0506/doc_00092363 [00:23:24]file doc_00092364 [00:23:24]remove file /storage/0506/doc_00092364 [00:23:24]file doc_00092365 [00:23:24]remove file /storage/0506/doc_00092365 [00:23:24]file doc_00092366 [00:23:24]remove file /storage/0506/doc_00092366 [00:23:24]file doc_00092367 [00:23:24]remove file /storage/0506/doc_00092367 [00:23:24]file doc_00092368 [00:23:24]remove file /storage/0506/doc_00092368 [00:23:24]file doc_00092369 [00:23:24]remove file /storage/0506/doc_00092369 [00:23:24]file doc_00092370 [00:23:24]remove file /storage/0506/doc_00092370 [00:23:24]file doc_00092371 [00:23:24]remove file /storage/0506/doc_00092371 [00:23:24]file doc_00092372 [00:23:24]remove file /storage/0506/doc_00092372 [00:23:24]file doc_00092373 [00:23:24]remove file /storage/0506/doc_00092373 [00:23:24]file doc_00092374 [00:23:24]remove file /storage/0506/doc_00092374 [00:23:24]file doc_00092375 [00:23:24]remove file /storage/0506/doc_00092375 [00:23:24]file doc_00092376 [00:23:24]remove file /storage/0506/doc_00092376 [00:23:24]file doc_00092377 [00:23:24]remove file /storage/0506/doc_00092377 [00:23:24]file doc_00092378 [00:23:24]remove file /storage/0506/doc_00092378 [00:23:24]file doc_00092379 [00:23:24]remove file /storage/0506/doc_00092379 [00:23:24]file doc_00092380 [00:23:24]remove file /storage/0506/doc_00092380 [00:23:24]file doc_00092381 [00:23:24]remove file /storage/0506/doc_00092381 [00:23:24]file doc_00092382 [00:23:24]remove file /storage/0506/doc_00092382 [00:23:24]file doc_00092383 [00:23:24]remove file /storage/0506/doc_00092383 [00:23:24]file doc_00092384 [00:23:24]remove file /storage/0506/doc_00092384 [00:23:24]file doc_00092385 [00:23:24]remove file /storage/0506/doc_00092385 [00:23:24]file doc_00092386 [00:23:24]remove file /storage/0506/doc_00092386 [00:23:24]file doc_00092387 [00:23:24]remove file /storage/0506/doc_00092387 [00:23:24]file doc_00092388 [00:23:24]remove file /storage/0506/doc_00092388 [00:23:24]file doc_00092389 [00:23:24]remove file /storage/0506/doc_00092389 [00:23:24]file doc_00092390 [00:23:24]remove file /storage/0506/doc_00092390 [00:23:24]file doc_00092391 [00:23:24]remove file /storage/0506/doc_00092391 [00:23:24]file doc_00092392 [00:23:24]remove file /storage/0506/doc_00092392 [00:23:24]file doc_00092393 [00:23:24]remove file /storage/0506/doc_00092393 [00:23:24]file doc_00092394 [00:23:24]remove file /storage/0506/doc_00092394 [00:23:24]file doc_00092395 [00:23:24]remove file /storage/0506/doc_00092395 [00:23:24]file doc_00092396 [00:23:24]remove file /storage/0506/doc_00092396 [00:23:24]file doc_00092397 [00:23:24]remove file /storage/0506/doc_00092397 [00:23:24]file doc_00092398 [00:23:24]remove file /storage/0506/doc_00092398 [00:23:24]file doc_00092399 [00:23:24]remove file /storage/0506/doc_00092399 [00:23:24]file doc_00092400 [00:23:24]remove file /storage/0506/doc_00092400 [00:23:24]file doc_00092401 [00:23:24]remove file /storage/0506/doc_00092401 [00:23:24]file doc_00092402 [00:23:24]remove file /storage/0506/doc_00092402 [00:23:24]file doc_00092403 [00:23:24]remove file /storage/0506/doc_00092403 [00:23:24]file doc_00092404 [00:23:24]remove file /storage/0506/doc_00092404 [00:23:24]file doc_00092405 [00:23:24]remove file /storage/0506/doc_00092405 [00:23:24]file doc_00092406 [00:23:24]remove file /storage/0506/doc_00092406 [00:23:24]file doc_00092407 [00:23:24]remove file /storage/0506/doc_00092407 [00:23:24]file doc_00092408 [00:23:24]remove file /storage/0506/doc_00092408 [00:23:24]file doc_00092409 [00:23:24]remove file /storage/0506/doc_00092409 [00:23:24]file doc_00092410 [00:23:24]remove file /storage/0506/doc_00092410 [00:23:24]file doc_00092411 [00:23:24]remove file /storage/0506/doc_00092411 [00:23:24]file doc_00092412 [00:23:24]remove file /storage/0506/doc_00092412 [00:23:24]file doc_00092413 [00:23:24]remove file /storage/0506/doc_00092413 [00:23:24]file doc_00092414 [00:23:24]remove file /storage/0506/doc_00092414 [00:23:24]file doc_00092415 [00:23:24]remove file /storage/0506/doc_00092415 [00:23:24]file doc_00092416 [00:23:24]remove file /storage/0506/doc_00092416 [00:23:24]file doc_00092417 [00:23:24]remove file /storage/0506/doc_00092417 [00:23:24]file doc_00092418 [00:23:24]remove file /storage/0506/doc_00092418 [00:23:24]file doc_00092419 [00:23:24]remove file /storage/0506/doc_00092419 [00:23:24]file doc_00092420 [00:23:24]remove file /storage/0506/doc_00092420 [00:23:24]file doc_00092421 [00:23:24]remove file /storage/0506/doc_00092421 [00:23:24]file doc_00092422 [00:23:24]remove file /storage/0506/doc_00092422 [00:23:24]file doc_00092423 [00:23:24]remove file /storage/0506/doc_00092423 [00:23:24]file doc_00092424 [00:23:24]remove file /storage/0506/doc_00092424 [00:23:24]file doc_00092425 [00:23:24]remove file /storage/0506/doc_00092425 [00:23:24]file doc_00092426 [00:23:25]remove file /storage/0506/doc_00092426 [00:23:25]file doc_00092427 [00:23:25]remove file /storage/0506/doc_00092427 [00:23:25]file doc_00092428 [00:23:25]remove file /storage/0506/doc_00092428 [00:23:25]file doc_00092429 [00:23:25]remove file /storage/0506/doc_00092429 [00:23:25]file doc_00092430 [00:23:25]remove file /storage/0506/doc_00092430 [00:23:25]file doc_00092431 [00:23:25]remove file /storage/0506/doc_00092431 [00:23:25]file doc_00092432 [00:23:25]remove file /storage/0506/doc_00092432 [00:23:25]file doc_00092433 [00:23:25]remove file /storage/0506/doc_00092433 [00:23:25]file doc_00092434 [00:23:25]remove file /storage/0506/doc_00092434 [00:23:25]file doc_00092435 [00:23:25]remove file /storage/0506/doc_00092435 [00:23:25]file doc_00092436 [00:23:25]remove file /storage/0506/doc_00092436 [00:23:25]file doc_00092437 [00:23:25]remove file /storage/0506/doc_00092437 [00:23:25]file doc_00092438 [00:23:25]remove file /storage/0506/doc_00092438 [00:23:25]file doc_00092439 [00:23:25]remove file /storage/0506/doc_00092439 [00:23:25]file doc_00092440 [00:23:25]remove file /storage/0506/doc_00092440 [00:23:25]file doc_00092441 [00:23:25]remove file /storage/0506/doc_00092441 [00:23:25]file doc_00092442 [00:23:25]remove file /storage/0506/doc_00092442 [00:23:25]file doc_00092443 [00:23:25]remove file /storage/0506/doc_00092443 [00:23:25]file doc_00092444 [00:23:25]remove file /storage/0506/doc_00092444 [00:23:25]file doc_00092445 [00:23:25]remove file /storage/0506/doc_00092445 [00:23:25]file doc_00092446 [00:23:25]remove file /storage/0506/doc_00092446 [00:23:25]file doc_00092447 [00:23:25]remove file /storage/0506/doc_00092447 [00:23:25]file doc_00092448 [00:23:25]remove file /storage/0506/doc_00092448 [00:23:25]file doc_00092449 [00:23:25]remove file /storage/0506/doc_00092449 [00:23:25]file doc_00092450 [00:23:25]remove file /storage/0506/doc_00092450 [00:23:25]file doc_00092451 [00:23:25]remove file /storage/0506/doc_00092451 [00:23:25]file doc_00092452 [00:23:25]remove file /storage/0506/doc_00092452 [00:23:25]file doc_00092453 [00:23:25]remove file /storage/0506/doc_00092453 [00:23:25]file doc_00092454 [00:23:25]remove file /storage/0506/doc_00092454 [00:23:25]file doc_00092455 [00:23:25]remove file /storage/0506/doc_00092455 [00:23:25]file doc_00092456 [00:23:25]remove file /storage/0506/doc_00092456 [00:23:25]file doc_00092457 [00:23:25]remove file /storage/0506/doc_00092457 [00:23:25]file doc_00092458 [00:23:25]remove file /storage/0506/doc_00092458 [00:23:25]file doc_00092459 [00:23:25]remove file /storage/0506/doc_00092459 [00:23:25]file doc_00092460 [00:23:25]remove file /storage/0506/doc_00092460 [00:23:25]file doc_00092461 [00:23:25]remove file /storage/0506/doc_00092461 [00:23:25]file doc_00092462 [00:23:25]remove file /storage/0506/doc_00092462 [00:23:25]file doc_00092463 [00:23:25]remove file /storage/0506/doc_00092463 [00:23:25]file doc_00092464 [00:23:25]remove file /storage/0506/doc_00092464 [00:23:25]file doc_00092465 [00:23:25]remove file /storage/0506/doc_00092465 [00:23:25]file doc_00092466 [00:23:25]remove file /storage/0506/doc_00092466 [00:23:25]file doc_00092467 [00:23:25]remove file /storage/0506/doc_00092467 [00:23:25]file doc_00092468 [00:23:25]remove file /storage/0506/doc_00092468 [00:23:25]file doc_00092469 [00:23:25]remove file /storage/0506/doc_00092469 [00:23:25]file doc_00092470 [00:23:25]remove file /storage/0506/doc_00092470 [00:23:25]file doc_00092471 [00:23:25]remove file /storage/0506/doc_00092471 [00:23:25]file doc_00092472 [00:23:25]remove file /storage/0506/doc_00092472 [00:23:25]file doc_00092473 [00:23:25]remove file /storage/0506/doc_00092473 [00:23:25]file doc_00092474 [00:23:25]remove file /storage/0506/doc_00092474 [00:23:25]file doc_00092475 [00:23:25]remove file /storage/0506/doc_00092475 [00:23:25]file doc_00092476 [00:23:25]remove file /storage/0506/doc_00092476 [00:23:25]file doc_00092477 [00:23:25]remove file /storage/0506/doc_00092477 [00:23:25]file doc_00092478 [00:23:25]remove file /storage/0506/doc_00092478 [00:23:25]file doc_00092479 [00:23:25]remove file /storage/0506/doc_00092479 [00:23:25]file doc_00092480 [00:23:25]remove file /storage/0506/doc_00092480 [00:23:25]file doc_00092481 [00:23:25]remove file /storage/0506/doc_00092481 [00:23:25]file doc_00092482 [00:23:25]remove file /storage/0506/doc_00092482 [00:23:25]file doc_00092483 [00:23:25]remove file /storage/0506/doc_00092483 [00:23:25]file doc_00092484 [00:23:25]remove file /storage/0506/doc_00092484 [00:23:25]file doc_00092485 [00:23:25]remove file /storage/0506/doc_00092485 [00:23:25]file doc_00092486 [00:23:25]remove file /storage/0506/doc_00092486 [00:23:25]file doc_00092487 [00:23:25]remove file /storage/0506/doc_00092487 [00:23:25]file doc_00092488 [00:23:25]remove file /storage/0506/doc_00092488 [00:23:25]file doc_00092489 [00:23:25]remove file /storage/0506/doc_00092489 [00:23:25]file doc_00092490 [00:23:25]remove file /storage/0506/doc_00092490 [00:23:25]file doc_00092491 [00:23:25]remove file /storage/0506/doc_00092491 [00:23:25]file doc_00092492 [00:23:25]remove file /storage/0506/doc_00092492 [00:23:25]file doc_00092493 [00:23:25]remove file /storage/0506/doc_00092493 [00:23:25]file doc_00092494 [00:23:25]remove file /storage/0506/doc_00092494 [00:23:25]file doc_00092495 [00:23:25]remove file /storage/0506/doc_00092495 [00:23:25]file doc_00092496 [00:23:25]remove file /storage/0506/doc_00092496 [00:23:25]file doc_00092497 [00:23:25]remove file /storage/0506/doc_00092497 [00:23:25]file doc_00092498 [00:23:25]remove file /storage/0506/doc_00092498 [00:23:25]file doc_00092499 [00:23:25]remove file /storage/0506/doc_00092499 [00:23:25]file doc_00092500 [00:23:25]remove file /storage/0506/doc_00092500 [00:23:25]file doc_00092501 [00:23:25]remove file /storage/0506/doc_00092501 [00:23:25]file doc_00092502 [00:23:25]remove file /storage/0506/doc_00092502 [00:23:25]file doc_00092503 [00:23:25]remove file /storage/0506/doc_00092503 [00:23:25]file doc_00092504 [00:23:25]remove file /storage/0506/doc_00092504 [00:23:25]file doc_00092505 [00:23:25]remove file /storage/0506/doc_00092505 [00:23:25]file doc_00092506 [00:23:25]remove file /storage/0506/doc_00092506 [00:23:25]file doc_00092507 [00:23:25]remove file /storage/0506/doc_00092507 [00:23:25]file doc_00092508 [00:23:25]remove file /storage/0506/doc_00092508 [00:23:25]file doc_00092509 [00:23:25]remove file /storage/0506/doc_00092509 [00:23:25]file doc_00092510 [00:23:25]remove file /storage/0506/doc_00092510 [00:23:25]file doc_00092511 [00:23:25]remove file /storage/0506/doc_00092511 [00:23:25]file doc_00092512 [00:23:25]remove file /storage/0506/doc_00092512 [00:23:25]file doc_00092513 [00:23:25]remove file /storage/0506/doc_00092513 [00:23:25]file doc_00092514 [00:23:25]remove file /storage/0506/doc_00092514 [00:23:25]file doc_00092515 [00:23:25]remove file /storage/0506/doc_00092515 [00:23:25]file doc_00092516 [00:23:25]remove file /storage/0506/doc_00092516 [00:23:25]file doc_00092517 [00:23:25]remove file /storage/0506/doc_00092517 [00:23:25]file doc_00092518 [00:23:25]remove file /storage/0506/doc_00092518 [00:23:25]file doc_00092519 [00:23:25]remove file /storage/0506/doc_00092519 [00:23:25]file doc_00092520 [00:23:25]remove file /storage/0506/doc_00092520 [00:23:25]file doc_00092521 [00:23:25]remove file /storage/0506/doc_00092521 [00:23:25]file doc_00092522 [00:23:25]remove file /storage/0506/doc_00092522 [00:23:25]file doc_00092523 [00:23:25]remove file /storage/0506/doc_00092523 [00:23:25]file doc_00092524 [00:23:25]remove file /storage/0506/doc_00092524 [00:23:25]file doc_00092525 [00:23:25]remove file /storage/0506/doc_00092525 [00:23:25]file doc_00092526 [00:23:25]remove file /storage/0506/doc_00092526 [00:23:25]file doc_00092527 [00:23:25]remove file /storage/0506/doc_00092527 [00:23:25]file doc_00092528 [00:23:25]remove file /storage/0506/doc_00092528 [00:23:25]file doc_00092529 [00:23:25]remove file /storage/0506/doc_00092529 [00:23:25]file doc_00092530 [00:23:25]remove file /storage/0506/doc_00092530 [00:23:25]file doc_00092531 [00:23:25]remove file /storage/0506/doc_00092531 [00:23:25]file doc_00092532 [00:23:25]remove file /storage/0506/doc_00092532 [00:23:25]file doc_00092533 [00:23:25]remove file /storage/0506/doc_00092533 [00:23:25]file doc_00092534 [00:23:25]remove file /storage/0506/doc_00092534 [00:23:25]file doc_00092535 [00:23:25]remove file /storage/0506/doc_00092535 [00:23:25]file doc_00092536 [00:23:25]remove file /storage/0506/doc_00092536 [00:23:25]file doc_00092537 [00:23:25]remove file /storage/0506/doc_00092537 [00:23:25]file doc_00092538 [00:23:25]remove file /storage/0506/doc_00092538 [00:23:25]file doc_00092539 [00:23:25]remove file /storage/0506/doc_00092539 [00:23:25]file doc_00092540 [00:23:25]remove file /storage/0506/doc_00092540 [00:23:25]file doc_00092541 [00:23:25]remove file /storage/0506/doc_00092541 [00:23:25]file doc_00092542 [00:23:25]remove file /storage/0506/doc_00092542 [00:23:25]file doc_00092543 [00:23:25]remove file /storage/0506/doc_00092543 [00:23:25]file doc_00092544 [00:23:25]remove file /storage/0506/doc_00092544 [00:23:25]file doc_00092545 [00:23:25]remove file /storage/0506/doc_00092545 [00:23:25]file doc_00092546 [00:23:25]remove file /storage/0506/doc_00092546 [00:23:25]file doc_00092547 [00:23:25]remove file /storage/0506/doc_00092547 [00:23:25]file doc_00092548 [00:23:25]remove file /storage/0506/doc_00092548 [00:23:25]file doc_00092549 [00:23:25]remove file /storage/0506/doc_00092549 [00:23:25]file doc_00092550 [00:23:25]remove file /storage/0506/doc_00092550 [00:23:25]file doc_00092551 [00:23:25]remove file /storage/0506/doc_00092551 [00:23:25]remove dir /storage/0506 [00:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=262 [00:23:25]tlvbuf is 0108A440 [00:23:25]SAM_PROTO_ClearQueue [00:23:25]wFMCommunicate request_size=4 [00:23:25]MH_SAM_APDU [00:23:25]CAPDU: 80 09 00 00 [00:23:25]Write to MH i2c: E2 08 00 F9 3D 80 09 00 00 00 00 00 00 A8 [00:23:25]Write i2c OK [00:23:25]MH_I2C_Read... [00:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:25]Read from MH i2c: E2 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 03 00 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 03 00 F9 3D 00 90 00 AA [00:23:25]RAPDU: 90 00 [00:23:25]wFMCommunicate OK [00:23:25]SAM_PROTO_ClearQueue done [00:23:25]KKMCreateOFDPacket [00:23:25]OFDProtocolAddRootSTLVToBuf [00:23:25]FM_MakeSignedData [00:23:25]FM_MakeSignedData [00:23:25]SAM_PROTO_SignData [00:23:25]wFMCommunicate request_size=4 [00:23:25]MH_SAM_APDU [00:23:25]CAPDU: 80 0D 01 02 [00:23:25]Write to MH i2c: E2 08 00 FA 3D 80 0D 01 02 00 00 00 00 B0 [00:23:25]Write i2c OK [00:23:25]MH_I2C_Read... [00:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:25]Read from MH i2c: E2 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 03 00 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 03 00 FA 3D 00 90 00 AB [00:23:25]RAPDU: 90 00 [00:23:25]wFMCommunicate OK [00:23:25]wFMCommunicate request_size=255 [00:23:25]MH_SAM_APDU [00:23:25]CAPDU: 80 0D 02 02 FA 02 00 06 01 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 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 01 29 E6 66 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 88 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:23:26]Write to MH i2c: E2 02 01 FB 3D 80 0D 02 02 FA 00 02 00 06 01 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 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 01 29 E6 66 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 88 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 15 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 FB 3D 00 90 00 AC [00:23:26]RAPDU: 90 00 [00:23:26]wFMCommunicate OK [00:23:26]wFMCommunicate request_size=21 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 0D 02 02 10 38 37 34 36 39 32 35 04 06 00 42 22 0D 32 A7 15 [00:23:26]Write to MH i2c: E2 18 00 FC 3D 80 0D 02 02 10 00 38 37 34 36 39 32 35 04 06 00 42 22 0D 32 A7 15 00 00 B5 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 FC 3D 00 90 00 AD [00:23:26]RAPDU: 90 00 [00:23:26]wFMCommunicate OK [00:23:26]wFMCommunicate request_size=4 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 0D 03 02 [00:23:26]Write to MH i2c: E2 08 00 FD 3D 80 0D 03 02 00 00 00 00 B5 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 0B 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 0B 00 FD 3D 00 80 91 28 76 92 17 5F CF 90 00 3C [00:23:26]RAPDU: 80 91 28 76 92 17 5F CF 90 00 [00:23:26]wFMCommunicate OK [00:23:26]SAM_PROTO_SignData done [00:23:26]FM_MakeSignedData done [00:23:26]CreateOFDProtocolMessage [00:23:26]wFMCommunicate request_size=4 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 11 00 00 [00:23:26]Write to MH i2c: E2 08 00 FE 3D 80 11 00 00 00 00 00 00 B5 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 17 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 17 00 FE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 0C [00:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:23:26]wFMCommunicate OK [00:23:26]CreateOFDProtocolMessage done [00:23:26]OFDSenderStorePacket 92552 [00:23:26]StoreOFDPacket docnum=92552 [00:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1A 01 00 00 F5 19 12 01 AC A7 5A 02 01 00 02 00 06 01 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 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 01 29 E6 66 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 88 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 42 22 0D 32 A7 15 80 91 28 76 92 17 5F CF [00:23:26]CheckFolder [00:23:26]dirname=/storage/ofd_packets [00:23:26]CheckFolder done [00:23:26]ProducePacketName [00:23:26]name=ofd_packets/00092552 [00:23:26]NVStorageSaveData ofd_packets/00092552 [00:23:26]File name is /storage/ofd_packets/00092552 [00:23:26]Write 312 bytes [00:23:26]NVStorageSaveData done [00:23:26]OFDSenderStorePacket done [00:23:26]KKMCreateOFDPacket done [00:23:26]NVStorageSaveData kkm_last_timestamp [00:23:26]File name is /storage/kkm_last_timestamp [00:23:26]Write 4 bytes [00:23:26]NVStorageSaveData done [00:23:26]ExternCall_PrintAddStr [00:23:26]wPrintStart [00:23:26]Write to MH i2c: 01 00 00 FF 3D 3C [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 07 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 07 00 FF 3D 00 00 00 00 00 FF 0F 51 [00:23:26]RasterBufferAndPrint [00:23:26]line Отчет об открытии смены [00:23:26]line ФФД: 1.0 [00:23:26]line ИНН: 02508201610067 [00:23:26]line Кассир: Абдалбекова А. [00:23:26]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:23:26]line Место: АЗС № 5 "Партнер Нефть" [00:23:26]line 15.09.2024 00:23 [00:23:26]line Смена: 507 [00:23:26]line РНМ: 0000000000091423 [00:23:26]line ЗНМ: 03000000022 [00:23:26]line ФД: 92552 [00:23:26]line ФМ: 0000000000874692 [00:23:26]line ФПД: 72714017744661 [00:23:26]written 0, free lines is 4095 [00:23:26]OFD Sender: Processing packet 92552 [packets to send 63, broken 62] [00:23:26]ProducePacketName [00:23:26]name=ofd_packets/00092552 [00:23:26]OFD Sender: To server: pG, [00:23:26]CommunicateWithHost lk.salyk.kg:30040 [00:23:26]ConnectInit lk.salyk.kg [00:23:26]Connected sock=9 [00:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 1A 01 00 00 F5 19 12 01 AC A7 5A 02 01 00 02 00 06 01 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 1B 00 D0 90 D0 B1 D0 B4 D0 B0 D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 56 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 BE D0 BA 20 D0 96 D0 B0 D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A8 D0 B0 D0 B1 D0 B4 D0 B0 D0 BD 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 32 2F 31 2C 20 34 32 2E 38 30 32 34 30 34 2C 20 37 34 2E 36 34 38 34 39 38 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 01 29 E6 66 0E 04 04 00 FB 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 88 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 35 04 06 00 42 22 0D 32 A7 15 80 91 28 76 92 17 5F CF [00:23:26]Write to MH i2c: 01 00 00 11 3E 4F [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 07 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 07 00 11 3E 00 00 00 00 00 D4 0E 38 [00:23:26]RasterBufferAndPrint [00:23:26]line [00:23:26]line [00:23:26]line [00:23:26]line [00:23:26]line [00:23:26]written 0, free lines is 3819 [00:23:26]MH_Cut [00:23:26]Write to MH i2c: D1 01 00 18 3E 01 28 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: D1 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: D1 01 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: D1 01 00 18 3E 00 27 [00:23:26]Write to MH i2c: 01 00 00 19 3E 57 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D5 D5 47 00 11 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 88 69 01 00 F4 03 04 00 7C D1 E5 66 B6 04 01 00 00 59 4F 71 B8 D0 83 0F B1 [00:23:27]CommunicateWithHost err = 0 [00:23:27]CheckOFDResponse [00:23:27]1017 (14) - 77093643461234 [00:23:27]1041 (16) - 0000000000874692 [00:23:27]1040 (4) - 92552 [00:23:27]1012 (4) - 14.09.2024 18:10 [00:23:27]1206 (1) - 0 [00:23:27]OFD Sender: Remove packet 92552 [00:23:27]ProducePacketName [00:23:27]name=ofd_packets/00092552 [00:23:27]NVStorageDeleteData [00:23:27]*** Cut start [00:23:27]*** Purtial cut [00:23:27]*** Stage 1: CUTSNS_PIN = 1 [00:23:27]OFD Sender: No OFD packet to send [00:23:29]Read from MH i2c: 01 [00:23:29]MH_I2C_Read... [00:23:29]*** Stop cut motor [00:23:29]*** Cut end [00:23:29]Read from MH i2c: 01 07 00 [00:23:29]MH_I2C_Read... [00:23:29]Read from MH i2c: 01 07 00 19 3E 00 00 00 00 00 FF 0F 6C [00:23:29]process_action open_shift done [00:23:29]requested_data is exist [00:23:29]produce_requested_data [00:23:29]requested_item fd.num is exist - process it [00:23:29]SAM_PROTO_GetFieldsCounters [00:23:29]wFMCommunicate request_size=4 [00:23:29]MH_SAM_APDU [00:23:29]CAPDU: 80 13 00 00 [00:23:29]Write to MH i2c: E2 08 00 1A 3E 80 13 00 00 00 00 00 00 D4 [00:23:29]Write i2c OK [00:23:29]MH_I2C_Read... [00:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:29]Read from MH i2c: E2 [00:23:29]MH_I2C_Read... [00:23:29]Read from MH i2c: E2 62 00 [00:23:29]MH_I2C_Read... [00:23:29]Read from MH i2c: E2 62 00 1A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 88 69 01 00 0E 04 04 00 FB 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 E1 [00:23:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 88 69 01 00 0E 04 04 00 FB 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:23:29]wFMCommunicate OK [00:23:29]SAM_PROTO_GetFieldsCounters done [00:23:29]requested_item shift.num is exist - process it [00:23:29]requested_item shift.opened is exist - process it [00:23:29]req_shift_opened [00:23:29]FM_GetShiftState [00:23:29]SAM_PROTO_GetShiftState [00:23:29]wFMCommunicate request_size=4 [00:23:29]MH_SAM_APDU [00:23:29]CAPDU: 80 13 01 00 [00:23:29]Write to MH i2c: E2 08 00 1B 3E 80 13 01 00 00 00 00 00 D6 [00:23:29]Write i2c OK [00:23:29]MH_I2C_Read... [00:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:29]Read from MH i2c: E2 [00:23:29]MH_I2C_Read... [00:23:29]Read from MH i2c: E2 0E 00 [00:23:29]MH_I2C_Read... [00:23:29]Read from MH i2c: E2 0E 00 1B 3E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 58 [00:23:29]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:23:29]wFMCommunicate OK [00:23:29]SAM_PROTO_GetShiftState done [00:23:29]FM_GetShiftState done [00:23:29]req_shift_opened done [00:23:29]requested_item shift.open_date is exist - process it [00:23:29]req_shift_open_date [00:23:29]req_shift_open_date done [00:23:29]produce_requested_data done [00:23:29]produce_requested_data return {"fd.num":92552,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:23:29]process_action_free open_shift [00:23:29]json_value_free [00:23:29]json_value_free done [00:23:29]process_json_proto returns [00:23:29]Send response to host [00:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":92552,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:23:29]free response buf [00:23:29]execute_script done [00:23:29]execute_script returns [00:23:29]free content buf [00:23:29]Sock 8.Close socket [00:23:29]Sock 8.Thread stoped [00:23:29]accept exits with 10 [00:23:29]New connection [00:23:29]New thread 3066658148 created [00:23:29]Thread 3066801508 joined [00:23:29]Waiting for new connection... [00:23:29] Sock 10.Parse request [00:23:29]Sock 10.Check first char [00:23:29]Sock 10.First char is OK [00:23:29]request: POST /json_proto HTTP/1.0 [00:23:29]Method: POST [00:23:29]URL: /json_proto [00:23:29]Method is POST - this is cgi request [00:23:29]url: /json_proto [00:23:29]query_string will be loaded in cgi processing [00:23:29]execute_cgi json_proto POST (null) [00:23:29]execute_cgi path=json_proto method=POST [00:23:29]POST find Content-Length [00:23:29]Host: 172.17.57.71:8080 [00:23:29]Content-Length: 331 [00:23:29]Content-Type: application/json [00:23:29] [00:23:29]POST finish read [00:23:29]Found Content-Length = 331 [00:23:29]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:23:29]execute_script... [00:23:29]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:23:29]POST & json_proto [00:23:29]process_json_proto [00:23:29]json parsed OK: [00:23:29]protocol is kg_v1.0 [00:23:29]action value=get_value [00:23:29]process_action get_value [00:23:29]cmd_get_value [00:23:29]process_action get_value done [00:23:29]requested_data is exist [00:23:29]produce_requested_data [00:23:29]requested_item fm.sale.total is exist - process it [00:23:29]SAM_PROTO_GetFMData [00:23:29]wFMCommunicate request_size=4 [00:23:29]MH_SAM_APDU [00:23:29]CAPDU: 80 13 03 00 [00:23:29]Write to MH i2c: E2 08 00 1C 3E 80 13 03 00 00 00 00 00 D9 [00:23:29]Write i2c OK [00:23:29]MH_I2C_Read... [00:23:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:29]Read from MH i2c: E2 [00:23:29]MH_I2C_Read... [00:23:29]Read from MH i2c: E2 FD 00 [00:23:29]MH_I2C_Read... [00:23:30]Read from MH i2c: E2 FD 00 1C 3E 00 C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 67 [00:23:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 92 65 01 00 69 04 A1 00 6F 04 04 00 40 62 01 00 B1 04 04 00 39 81 CD B2 70 04 04 00 4C 32 53 83 72 04 04 00 ED 4E 7A 2F 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 BD 3B FD 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D3 F3 94 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 9E 00 6F 04 04 00 52 03 00 00 B1 04 04 00 70 E1 77 04 70 04 04 00 1C 00 3F 04 72 04 03 00 54 E1 38 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 1A 7E 79 EF 03 09 90 00 [00:23:30]wFMCommunicate OK [00:23:30]wFMCommunicate request_size=4 [00:23:30]MH_SAM_APDU [00:23:30]CAPDU: 80 17 00 00 [00:23:30]Write to MH i2c: E2 08 00 1D 3E 80 17 00 00 00 00 00 00 DB [00:23:30]Write i2c OK [00:23:30]MH_I2C_Read... [00:23:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:30]Read from MH i2c: E2 [00:23:30]MH_I2C_Read... [00:23:30]Read from MH i2c: E2 FD 00 [00:23:30]MH_I2C_Read... [00:23:30]Read from MH i2c: E2 FD 00 1D 3E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [00:23:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 1F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:23:30]wFMCommunicate OK [00:23:30]wFMCommunicate request_size=4 [00:23:30]MH_SAM_APDU [00:23:30]CAPDU: 80 17 00 00 [00:23:30]Write to MH i2c: E2 08 00 1E 3E 80 17 00 00 00 00 00 00 DC [00:23:30]Write i2c OK [00:23:30]MH_I2C_Read... [00:23:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:30]Read from MH i2c: E2 [00:23:30]MH_I2C_Read... [00:23:30]Read from MH i2c: E2 FD 00 [00:23:30]MH_I2C_Read... [00:23:30]Read from MH i2c: E2 FD 00 1E 3E 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 EE [00:23:30]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:23:30]wFMCommunicate OK [00:23:30]wFMCommunicate request_size=4 [00:23:30]MH_SAM_APDU [00:23:30]CAPDU: 80 17 00 00 [00:23:30]Write to MH i2c: E2 08 00 1F 3E 80 17 00 00 00 00 00 00 DD [00:23:30]Write i2c OK [00:23:30]MH_I2C_Read... [00:23:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:31]Read from MH i2c: E2 [00:23:31]MH_I2C_Read... [00:23:31]Read from MH i2c: E2 FD 00 [00:23:31]MH_I2C_Read... [00:23:31]Read from MH i2c: E2 FD 00 1F 3E 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 69 [00:23:31]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:23:31]wFMCommunicate OK [00:23:31]wFMCommunicate request_size=4 [00:23:31]MH_SAM_APDU [00:23:31]CAPDU: 80 17 00 00 [00:23:31]Write to MH i2c: E2 08 00 20 3E 80 17 00 00 00 00 00 00 DE [00:23:31]Write i2c OK [00:23:31]MH_I2C_Read... [00:23:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:23:31]Read from MH i2c: E2 [00:23:31]MH_I2C_Read... [00:23:31]Read from MH i2c: E2 E2 00 [00:23:31]MH_I2C_Read... [00:23:31]Read from MH i2c: E2 E2 00 20 3E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC [00:23:31]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:23:31]wFMCommunicate OK [00:23:31]SAM_PROTO_GetFMData done [00:23:31]requested_item fm.sale_refund.total is exist - process it [00:23:31]requested_item fm.buy.total is exist - process it [00:23:31]requested_item shift.sale.total is exist - process it [00:23:31]SAM_PROTO_GetShiftData [00:23:31]wFMCommunicate request_size=4 [00:23:31]MH_SAM_APDU [00:23:31]CAPDU: 80 13 02 00 [00:23:31]Write to MH i2c: E2 08 00 21 3E 80 13 02 00 00 00 00 00 DD [00:23:31]Write i2c OK [00:23:31]MH_I2C_Read... [00:23:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:32]Read from MH i2c: E2 [00:23:32]MH_I2C_Read... [00:23:32]Read from MH i2c: E2 FD 00 [00:23:32]MH_I2C_Read... [00:23:32]Read from MH i2c: E2 FD 00 21 3E 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 50 [00:23:32]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:23:32]wFMCommunicate OK [00:23:32]wFMCommunicate request_size=4 [00:23:32]MH_SAM_APDU [00:23:32]CAPDU: 80 17 00 00 [00:23:32]Write to MH i2c: E2 08 00 22 3E 80 17 00 00 00 00 00 00 E0 [00:23:32]Write i2c OK [00:23:32]MH_I2C_Read... [00:23:32]OFD Sender: No OFD packet to send [00:23:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:32]Read from MH i2c: E2 [00:23:32]MH_I2C_Read... [00:23:32]Read from MH i2c: E2 FD 00 [00:23:32]MH_I2C_Read... [00:23:32]Read from MH i2c: E2 FD 00 22 3E 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 E8 [00:23:32]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:23:32]wFMCommunicate OK [00:23:32]wFMCommunicate request_size=4 [00:23:32]MH_SAM_APDU [00:23:32]CAPDU: 80 17 00 00 [00:23:32]Write to MH i2c: E2 08 00 23 3E 80 17 00 00 00 00 00 00 E1 [00:23:32]Write i2c OK [00:23:32]MH_I2C_Read... [00:23:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:33]Read from MH i2c: E2 [00:23:33]MH_I2C_Read... [00:23:33]Read from MH i2c: E2 FD 00 [00:23:33]MH_I2C_Read... [00:23:33]Read from MH i2c: E2 FD 00 23 3E 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 B3 [00:23:33]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:23:33]wFMCommunicate OK [00:23:33]wFMCommunicate request_size=4 [00:23:33]MH_SAM_APDU [00:23:33]CAPDU: 80 17 00 00 [00:23:33]Write to MH i2c: E2 08 00 24 3E 80 17 00 00 00 00 00 00 E2 [00:23:33]Write i2c OK [00:23:33]MH_I2C_Read... [00:23:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:33]Read from MH i2c: E2 [00:23:33]MH_I2C_Read... [00:23:33]Read from MH i2c: E2 FD 00 [00:23:33]MH_I2C_Read... [00:23:33]Read from MH i2c: E2 FD 00 24 3E 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 54 [00:23:33]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:23:33]wFMCommunicate OK [00:23:33]wFMCommunicate request_size=4 [00:23:33]MH_SAM_APDU [00:23:33]CAPDU: 80 17 00 00 [00:23:33]Write to MH i2c: E2 08 00 25 3E 80 17 00 00 00 00 00 00 E3 [00:23:33]Write i2c OK [00:23:33]MH_I2C_Read... [00:23:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:23:34]Read from MH i2c: E2 [00:23:34]MH_I2C_Read... [00:23:34]Read from MH i2c: E2 BD 00 [00:23:34]MH_I2C_Read... [00:23:34]Read from MH i2c: E2 BD 00 25 3E 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 C9 [00:23:34]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:23:34]wFMCommunicate OK [00:23:34]SAM_PROTO_GetShiftData done [00:23:34]requested_item shift.sale.total_cash is exist - process it [00:23:34]requested_item shift.sale_refund.total is exist - process it [00:23:34]requested_item shift.sale_refund.total_cash is exist - process it [00:23:34]requested_item shift.buy.total is exist - process it [00:23:34]requested_item shift.buy.total_cash is exist - process it [00:23:34]produce_requested_data done [00:23:34]produce_requested_data return {"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"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:23:34]process_action_free get_value [00:23:34]json_value_free [00:23:34]json_value_free done [00:23:34]process_json_proto returns [00:23:34]Send response to host [00:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29998124.09,"fm.sale_refund.total":749653.60,"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:23:34]free response buf [00:23:34]execute_script done [00:23:34]execute_script returns [00:23:34]free content buf [00:23:34]Sock 10.Close socket [00:23:34]Sock 10.Thread stoped [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:45]accept exits with 8 [00:26:45]New connection [00:26:45]New thread 3066801508 created [00:26:45]Thread 3066658148 joined [00:26:45]Waiting for new connection... [00:26:45] Sock 8.Parse request [00:26:45]Sock 8.Check first char [00:26:45]Sock 8.First char is OK [00:26:45]request: POST /json_proto HTTP/1.0 [00:26:45]Method: POST [00:26:45]URL: /json_proto [00:26:45]Method is POST - this is cgi request [00:26:45]url: /json_proto [00:26:45]query_string will be loaded in cgi processing [00:26:45]execute_cgi json_proto POST (null) [00:26:45]execute_cgi path=json_proto method=POST [00:26:45]POST find Content-Length [00:26:45]Host: 172.17.57.71:8080 [00:26:45]Content-Length: 678 [00:26:45]Content-Type: application/json [00:26:45] [00:26:45]POST finish read [00:26:45]Found Content-Length = 678 [00:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:45]execute_script... [00:26:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:45]POST & json_proto [00:26:45]process_json_proto [00:26:45]json parsed OK: [00:26:45]protocol is kg_v1.0 [00:26:45]action value=close_receipt [00:26:45]process_action close_receipt [00:26:45]cmd_close_receipt [00:26:45]MH_GetDate [00:26:45]Write to MH i2c: F0 00 00 26 3E 53 [00:26:45]Write i2c OK [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: F0 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: F0 09 00 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: F0 09 00 26 3E 00 CB 29 E6 66 33 3A A4 66 13 [00:26:45]GetLastDocTimeStamp 1726359809 [00:26:45]current date 1726360011 [00:26:45]FM_GetShiftState [00:26:45]SAM_PROTO_GetShiftState [00:26:45]wFMCommunicate request_size=4 [00:26:45]MH_SAM_APDU [00:26:45]CAPDU: 80 13 01 00 [00:26:45]Write to MH i2c: E2 08 00 27 3E 80 13 01 00 00 00 00 00 E2 [00:26:45]Write i2c OK [00:26:45]MH_I2C_Read... [00:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:45]Read from MH i2c: E2 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: E2 0E 00 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: E2 0E 00 27 3E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 64 [00:26:45]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:26:45]wFMCommunicate OK [00:26:45]SAM_PROTO_GetShiftState done [00:26:45]FM_GetShiftState done [00:26:45]opened in 1726359809 [00:26:45]opened+sec_in_day 1726446209 [00:26:45]quantity*price = 70044 [00:26:45]sum+1 = 70045 [00:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 1 15.09.2024 00:26 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92553 ФПД: 28002105083888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002651&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92553&fm=28002105083888&tin=02508201610067®Number=0000000000091423&sum=70000 [00:26:46]StoreToDocumentArchive [00:26:46]shift 507 fd 92553 [00:26:46]save to /storage/0507/doc_00092553 [00:26:46]save last doc name /storage/0507/doc_00092553 to /storage/kkm_last_doc_name [00:26:46]save OK [00:26:46]Clear old archive folders... [00:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:26:46]tlvbuf is 01013EF0 [00:26:46]SAM_PROTO_ClearQueue [00:26:46]wFMCommunicate request_size=4 [00:26:46]MH_SAM_APDU [00:26:46]CAPDU: 80 09 00 00 [00:26:46]Write to MH i2c: E2 08 00 34 3E 80 09 00 00 00 00 00 00 E4 [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:46]Read from MH i2c: E2 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: E2 03 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: E2 03 00 34 3E 00 90 00 E6 [00:26:46]RAPDU: 90 00 [00:26:46]wFMCommunicate OK [00:26:46]SAM_PROTO_ClearQueue done [00:26:46]KKMCreateOFDPacket [00:26:46]OFDProtocolAddRootSTLVToBuf [00:26:46]FM_MakeSignedData [00:26:46]FM_MakeSignedData [00:26:46]SAM_PROTO_SignData [00:26:46]wFMCommunicate request_size=4 [00:26:46]MH_SAM_APDU [00:26:46]CAPDU: 80 0D 01 02 [00:26:46]Write to MH i2c: E2 08 00 35 3E 80 0D 01 02 00 00 00 00 EC [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:46]Read from MH i2c: E2 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: E2 03 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: E2 03 00 35 3E 00 90 00 E7 [00:26:46]RAPDU: 90 00 [00:26:46]wFMCommunicate OK [00:26:46]wFMCommunicate request_size=255 [00:26:46]MH_SAM_APDU [00:26:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CB 29 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 69 01 00 35 04 06 00 19 [00:26:46]Write to MH i2c: E2 02 01 36 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CB 29 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 69 01 00 35 04 06 00 19 00 00 D2 [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 36 3E 00 90 00 E8 [00:26:47]RAPDU: 90 00 [00:26:47]wFMCommunicate OK [00:26:47]wFMCommunicate request_size=10 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 0D 02 02 05 77 BF 86 C7 F0 [00:26:47]Write to MH i2c: E2 0D 00 37 3E 80 0D 02 02 05 00 77 BF 86 C7 F0 00 00 6C [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 03 00 37 3E 00 90 00 E9 [00:26:47]RAPDU: 90 00 [00:26:47]wFMCommunicate OK [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 0D 03 02 [00:26:47]Write to MH i2c: E2 08 00 38 3E 80 0D 03 02 00 00 00 00 F1 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0B 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0B 00 38 3E 00 21 8F 6A B1 99 44 05 BF 90 00 5E [00:26:47]RAPDU: 21 8F 6A B1 99 44 05 BF 90 00 [00:26:47]wFMCommunicate OK [00:26:47]SAM_PROTO_SignData done [00:26:47]FM_MakeSignedData done [00:26:47]CreateOFDProtocolMessage [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 11 00 00 [00:26:47]Write to MH i2c: E2 08 00 39 3E 80 11 00 00 00 00 00 00 F1 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 17 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 17 00 39 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 48 [00:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:26:47]wFMCommunicate OK [00:26:47]CreateOFDProtocolMessage done [00:26:47]OFDSenderStorePacket 92553 [00:26:47]StoreOFDPacket docnum=92553 [00:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 ED 78 07 01 D3 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CB 29 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 69 01 00 35 04 06 00 19 77 BF 86 C7 F0 21 8F 6A B1 99 44 05 BF [00:26:47]CheckFolder [00:26:47]dirname=/storage/ofd_packets [00:26:47]CheckFolder done [00:26:47]ProducePacketName [00:26:47]name=ofd_packets/00092553 [00:26:47]NVStorageSaveData ofd_packets/00092553 [00:26:47]File name is /storage/ofd_packets/00092553 [00:26:47]Write 301 bytes [00:26:47]NVStorageSaveData done [00:26:47]OFDSenderStorePacket done [00:26:47]KKMCreateOFDPacket done [00:26:47]NVStorageSaveData kkm_last_timestamp [00:26:47]File name is /storage/kkm_last_timestamp [00:26:47]Write 4 bytes [00:26:47]NVStorageSaveData done [00:26:47]ExternCall_PrintAddStr [00:26:47]wPrintStart [00:26:47]Write to MH i2c: 01 00 00 3A 3E 78 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: 01 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: 01 07 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: 01 07 00 3A 3E 00 00 00 00 00 FF 0F 8D [00:26:47]RasterBufferAndPrint [00:26:47]line Счет N : (1)648105 [00:26:47]line ИНН: 02508201610067 [00:26:47]line Контрольно-Кассовый Чек [00:26:47]line ПРОДАЖА [00:26:47]line ТРК (МРК, ГНК) : 13 [00:26:47]line Товар: 2710124130 [00:26:47]line Аи-92-К-5 [00:26:47]line 10.470 * 66.90 [00:26:47]line = 700.44 [00:26:47]line НДС 12% НСП 1% [00:26:47]line > о реализуемом товаре [00:26:47]line ОКРУГЛЕНИЕ: -0.44 [00:26:47]line ИТОГО: 700.00 [00:26:47]line Внесено: 700.00 [00:26:47]line СДАЧА: 0.00 [00:26:47]line НСП 1% : 6.20 [00:26:47]line НДС 12% : 74.38 [00:26:47]line Наличными: 700.00 [00:26:47]line Безнал.: 0.00 [00:26:47]line Место: АЗС № 5 "Партнер Нефть" [00:26:47]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:26:47]line СНО: Общий режим [00:26:47]line Чек 1 15.09.2024 00:26 [00:26:47]line Смена: 507 ФФД: 1.0 [00:26:47]line ЗНМ: 03000000022 [00:26:47]line РНМ: 0000000000091423 [00:26:47]line Версия ККМ: 001 [00:26:47]line ФМ: 0000000000874692 [00:26:47]line ФД: 92553 [00:26:47]line ФПД: 28002105083888 [00:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002651&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92553&fm=28002105083888&tin=02508201610067®Number=0000000000091423&sum=70000 [00:26:47]OFD Sender: Processing packet 92553 [packets to send 63, broken 62] [00:26:47]ProducePacketName [00:26:47]name=ofd_packets/00092553 [00:26:47]OFD Sender: To server: pG, [00:26:47]CommunicateWithHost lk.salyk.kg:30040 [00:26:47]ConnectInit lk.salyk.kg [00:26:47]written 0, free lines is 4095 [00:26:47]Connected sock=10 [00: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 34 36 39 32 0F 01 00 00 ED 78 07 01 D3 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CB 29 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 69 01 00 35 04 06 00 19 77 BF 86 C7 F0 21 8F 6A B1 99 44 05 BF [00:26:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 BA 1C 47 00 2E A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 89 69 01 00 F4 03 04 00 45 D2 E5 66 B6 04 01 00 00 FE CB 65 70 B6 01 8A 4B [00:26:47]CommunicateWithHost err = 0 [00:26:47]CheckOFDResponse [00:26:47]1017 (14) - 77093643461234 [00:26:47]1041 (16) - 0000000000874692 [00:26:47]1040 (4) - 92553 [00:26:47]1012 (4) - 14.09.2024 18:13 [00:26:47]1206 (1) - 0 [00:26:47]OFD Sender: Remove packet 92553 [00:26:47]ProducePacketName [00:26:47]name=ofd_packets/00092553 [00:26:47]NVStorageDeleteData [00:26:48]Write to MH i2c: 01 00 00 65 3E A3 [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: 01 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: 01 07 00 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: 01 07 00 65 3E 00 00 00 00 00 E6 0C 9C [00:26:48]RasterBufferAndPrint [00:26:48]line [00:26:48]line [00:26:48]line [00:26:48]line [00:26:48]line [00:26:48]written 0, free lines is 3307 [00:26:48]MH_Cut [00:26:48]Write to MH i2c: D1 01 00 6C 3E 01 7C [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: D1 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: D1 01 00 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: D1 01 00 6C 3E 00 7B [00:26:48]Write to MH i2c: 01 00 00 6D 3E AB [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]OFD Sender: No OFD packet to send [00:26:48]*** Cut start [00:26:48]*** Purtial cut [00:26:48]*** Stage 1: CUTSNS_PIN = 1 [00:26:50]Read from MH i2c: 01 [00:26:50]MH_I2C_Read... [00:26:50]*** Stop cut motor [00:26:50]*** Cut end [00:26:50]Read from MH i2c: 01 07 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: 01 07 00 6D 3E 00 00 00 00 00 FF 0F C0 [00:26:50]process_action close_receipt done [00:26:50]requested_data is exist [00:26:50]produce_requested_data [00:26:50]requested_item fm.sn is exist - process it [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 11 00 00 [00:26:50]Write to MH i2c: E2 08 00 6E 3E 80 11 00 00 00 00 00 00 26 [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 17 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 17 00 6E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 7D [00:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:26:50]wFMCommunicate OK [00:26:50]requested_item fd.num is exist - process it [00:26:50]SAM_PROTO_GetFieldsCounters [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 13 00 00 [00:26:50]Write to MH i2c: E2 08 00 6F 3E 80 13 00 00 00 00 00 00 29 [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 62 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 62 00 6F 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 89 69 01 00 0E 04 04 00 FB 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 3A [00:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 89 69 01 00 0E 04 04 00 FB 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:26:51]wFMCommunicate OK [00:26:51]SAM_PROTO_GetFieldsCounters done [00:26:51]requested_item shift.num is exist - process it [00:26:51]requested_item shift.opened is exist - process it [00:26:51]req_shift_opened [00:26:51]FM_GetShiftState [00:26:51]SAM_PROTO_GetShiftState [00:26:51]wFMCommunicate request_size=4 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 13 01 00 [00:26:51]Write to MH i2c: E2 08 00 70 3E 80 13 01 00 00 00 00 00 2B [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 0E 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 0E 00 70 3E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 AD [00:26:51]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:26:51]wFMCommunicate OK [00:26:51]SAM_PROTO_GetShiftState done [00:26:51]FM_GetShiftState done [00:26:51]req_shift_opened done [00:26:51]requested_item shift.open_date is exist - process it [00:26:51]req_shift_open_date [00:26:51]req_shift_open_date done [00:26:51]produce_requested_data done [00:26:51]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92553,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:26:51]process_action_free close_receipt [00:26:51]json_value_free [00:26:51]json_value_free done [00:26:51]process_json_proto returns [00:26:51]Send response to host [00:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92553,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:26:51]free response buf [00:26:51]execute_script done [00:26:51]execute_script returns [00:26:51]free content buf [00:26:51]Sock 8.Close socket [00:26:51]Sock 8.Thread stoped [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:13]accept exits with 9 [00:27:13]New connection [00:27:13]New thread 3066658148 created [00:27:13]Thread 3066801508 joined [00:27:13]Waiting for new connection... [00:27:13] Sock 9.Parse request [00:27:13]Sock 9.Check first char [00:27:13]Sock 9.First char is OK [00:27:13]request: POST /json_proto HTTP/1.0 [00:27:13]Method: POST [00:27:13]URL: /json_proto [00:27:13]Method is POST - this is cgi request [00:27:13]url: /json_proto [00:27:13]query_string will be loaded in cgi processing [00:27:13]execute_cgi json_proto POST (null) [00:27:13]execute_cgi path=json_proto method=POST [00:27:13]POST find Content-Length [00:27:13]Host: 172.17.57.71:8080 [00:27:13]Content-Length: 632 [00:27:13]Content-Type: application/json [00:27:13] [00:27:13]POST finish read [00:27:13]Found Content-Length = 632 [00:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:13]execute_script... [00:27: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)648106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:13]POST & json_proto [00:27:13]process_json_proto [00:27:13]json parsed OK: [00:27:13]protocol is kg_v1.0 [00:27:13]action value=close_receipt [00:27:13]process_action close_receipt [00:27:13]cmd_close_receipt [00:27:13]MH_GetDate [00:27:13]Write to MH i2c: F0 00 00 71 3E 9E [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: F0 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: F0 09 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: F0 09 00 71 3E 00 E7 29 E6 66 33 3A A4 66 7A [00:27:13]GetLastDocTimeStamp 1726360011 [00:27:13]current date 1726360039 [00:27:13]FM_GetShiftState [00:27:13]SAM_PROTO_GetShiftState [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 13 01 00 [00:27:13]Write to MH i2c: E2 08 00 72 3E 80 13 01 00 00 00 00 00 2D [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 0E 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 0E 00 72 3E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 AF [00:27:13]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:27:13]wFMCommunicate OK [00:27:13]SAM_PROTO_GetShiftState done [00:27:13]FM_GetShiftState done [00:27:13]opened in 1726359809 [00:27:13]opened+sec_in_day 1726446209 [00:27:13]quantity*price = 50000 [00:27:13]sum+1 = 50001 [00:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 2 15.09.2024 00:27 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92554 ФПД: 85313533350618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002719&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92554&fm=85313533350618&tin=02508201610067®Number=0000000000091423&sum=50000 [00:27:14]StoreToDocumentArchive [00:27:14]shift 507 fd 92554 [00:27:14]save to /storage/0507/doc_00092554 [00:27:14]save last doc name /storage/0507/doc_00092554 to /storage/kkm_last_doc_name [00:27:14]save OK [00:27:14]Clear old archive folders... [00:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:27:14]tlvbuf is B6F33A10 [00:27:14]SAM_PROTO_ClearQueue [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 09 00 00 [00:27:14]Write to MH i2c: E2 08 00 7F 3E 80 09 00 00 00 00 00 00 2F [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 7F 3E 00 90 00 31 [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]SAM_PROTO_ClearQueue done [00:27:15]KKMCreateOFDPacket [00:27:15]OFDProtocolAddRootSTLVToBuf [00:27:15]FM_MakeSignedData [00:27:15]FM_MakeSignedData [00:27:15]SAM_PROTO_SignData [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 0D 01 02 [00:27:15]Write to MH i2c: E2 08 00 80 3E 80 0D 01 02 00 00 00 00 37 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 80 3E 00 90 00 32 [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=255 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 02 00 00 00 F4 03 04 00 E7 29 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 69 01 00 35 04 06 00 [00:27:15]Write to MH i2c: E2 02 01 81 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 02 00 00 00 F4 03 04 00 E7 29 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 69 01 00 35 04 06 00 00 00 6C [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 81 3E 00 90 00 33 [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=11 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 0D 02 02 06 4D 97 9A D9 92 DA [00:27:15]Write to MH i2c: E2 0E 00 82 3E 80 0D 02 02 06 00 4D 97 9A D9 92 DA 00 00 09 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 82 3E 00 90 00 34 [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 0D 03 02 [00:27:15]Write to MH i2c: E2 08 00 83 3E 80 0D 03 02 00 00 00 00 3C [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 0B 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 0B 00 83 3E 00 16 5D B9 B0 0B 82 3F AB 90 00 90 [00:27:15]RAPDU: 16 5D B9 B0 0B 82 3F AB 90 00 [00:27:15]wFMCommunicate OK [00:27:15]SAM_PROTO_SignData done [00:27:15]FM_MakeSignedData done [00:27:15]CreateOFDProtocolMessage [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 11 00 00 [00:27:15]Write to MH i2c: E2 08 00 84 3E 80 11 00 00 00 00 00 00 3C [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 17 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 17 00 84 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 93 [00:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:27:15]wFMCommunicate OK [00:27:15]CreateOFDProtocolMessage done [00:27:15]OFDSenderStorePacket 92554 [00:27:15]StoreOFDPacket docnum=92554 [00:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 01 00 00 E0 4B 08 01 70 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 02 00 00 00 F4 03 04 00 E7 29 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 69 01 00 35 04 06 00 4D 97 9A D9 92 DA 16 5D B9 B0 0B 82 3F AB [00:27:15]CheckFolder [00:27:15]dirname=/storage/ofd_packets [00:27:15]CheckFolder done [00:27:15]ProducePacketName [00:27:15]name=ofd_packets/00092554 [00:27:15]NVStorageSaveData ofd_packets/00092554 [00:27:15]File name is /storage/ofd_packets/00092554 [00:27:15]Write 302 bytes [00:27:15]NVStorageSaveData done [00:27:15]OFDSenderStorePacket done [00:27:15]KKMCreateOFDPacket done [00:27:15]NVStorageSaveData kkm_last_timestamp [00:27:15]File name is /storage/kkm_last_timestamp [00:27:15]Write 4 bytes [00:27:15]NVStorageSaveData done [00:27:15]ExternCall_PrintAddStr [00:27:15]wPrintStart [00:27:15]Write to MH i2c: 01 00 00 85 3E C3 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: 01 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: 01 07 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: 01 07 00 85 3E 00 00 00 00 00 FF 0F D8 [00:27:15]RasterBufferAndPrint [00:27:15]line Счет N : (1)648106 [00:27:15]line ИНН: 02508201610067 [00:27:15]line Контрольно-Кассовый Чек [00:27:15]line ПРОДАЖА [00:27:15]line ТРК (МРК, ГНК) : 21 [00:27:15]line Товар: 2710124130 [00:27:15]line SUPER 92-К-5 [00:27:15]line 7.310 * 68.40 [00:27:15]line = 500.00 [00:27:15]line НДС 12% НСП 1% [00:27:15]line > о реализуемом товаре [00:27:15]line ИТОГО: 500.00 [00:27:15]line НСП 1% : 4.42 [00:27:15]line НДС 12% : 53.10 [00:27:15]line Наличными: 500.00 [00:27:15]line Безнал.: 0.00 [00:27:15]line Место: АЗС № 5 "Партнер Нефть" [00:27:15]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:27:15]line СНО: Общий режим [00:27:15]line Чек 2 15.09.2024 00:27 [00:27:15]line Смена: 507 ФФД: 1.0 [00:27:15]line ЗНМ: 03000000022 [00:27:15]line РНМ: 0000000000091423 [00:27:15]line Версия ККМ: 001 [00:27:15]line ФМ: 0000000000874692 [00:27:15]line ФД: 92554 [00:27:15]line ФПД: 85313533350618 [00:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002719&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92554&fm=85313533350618&tin=02508201610067®Number=0000000000091423&sum=50000 [00:27:15]OFD Sender: Processing packet 92554 [packets to send 63, broken 62] [00:27:15]ProducePacketName [00:27:15]name=ofd_packets/00092554 [00:27:15]OFD Sender: To server: pG, [00:27:15]CommunicateWithHost lk.salyk.kg:30040 [00:27:15]ConnectInit lk.salyk.kg [00:27:15]written 0, free lines is 4095 [00:27:16]Write to MH i2c: 01 00 00 AD 3E EB [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: 01 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: 01 07 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: 01 07 00 AD 3E 00 00 00 00 00 13 0D 12 [00:27:16]RasterBufferAndPrint [00:27:16]line [00:27:16]line [00:27:16]line [00:27:16]line [00:27:16]line [00:27:16]written 0, free lines is 3354 [00:27:16]MH_Cut [00:27:16]Write to MH i2c: D1 01 00 B4 3E 01 C4 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: D1 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: D1 01 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: D1 01 00 B4 3E 00 C3 [00:27:16]Write to MH i2c: 01 00 00 B5 3E F3 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** Cut start [00:27:16]*** Purtial cut [00:27:16]*** Stage 1: CUTSNS_PIN = 1 [00:27:18]Read from MH i2c: 01 [00:27:18]MH_I2C_Read... [00:27:18]*** Stop cut motor [00:27:18]*** Cut end [00:27:18]Read from MH i2c: 01 07 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: 01 07 00 B5 3E 00 00 00 00 00 FF 0F 08 [00:27:18]process_action close_receipt done [00:27:18]requested_data is exist [00:27:18]produce_requested_data [00:27:18]requested_item fm.sn is exist - process it [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 11 00 00 [00:27:18]Write to MH i2c: E2 08 00 B6 3E 80 11 00 00 00 00 00 00 6E [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 17 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 17 00 B6 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 C5 [00:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:27:18]wFMCommunicate OK [00:27:18]requested_item fd.num is exist - process it [00:27:18]SAM_PROTO_GetFieldsCounters [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 13 00 00 [00:27:18]Write to MH i2c: E2 08 00 B7 3E 80 13 00 00 00 00 00 00 71 [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 62 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 62 00 B7 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8A 69 01 00 0E 04 04 00 FB 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 86 [00:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8A 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:19]wFMCommunicate OK [00:27:19]SAM_PROTO_GetFieldsCounters done [00:27:19]requested_item shift.num is exist - process it [00:27:19]requested_item shift.opened is exist - process it [00:27:19]req_shift_opened [00:27:19]FM_GetShiftState [00:27:19]SAM_PROTO_GetShiftState [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 13 01 00 [00:27:19]Write to MH i2c: E2 08 00 B8 3E 80 13 01 00 00 00 00 00 73 [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 0E 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 0E 00 B8 3E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 F5 [00:27:19]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:27:19]wFMCommunicate OK [00:27:19]SAM_PROTO_GetShiftState done [00:27:19]FM_GetShiftState done [00:27:19]req_shift_opened done [00:27:19]requested_item shift.open_date is exist - process it [00:27:19]req_shift_open_date [00:27:19]req_shift_open_date done [00:27:19]produce_requested_data done [00:27:19]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92554,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:27:19]process_action_free close_receipt [00:27:19]json_value_free [00:27:19]json_value_free done [00:27:19]process_json_proto returns [00:27:19]Send response to host [00:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92554,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:27:19]free response buf [00:27:19]execute_script done [00:27:19]execute_script returns [00:27:19]free content buf [00:27:19]Sock 9.Close socket [00:27:19]Sock 9.Thread stoped [00:27:42]accept exits with 8 [00:27:42]New connection [00:27:42]New thread 3066801508 created [00:27:42]Thread 3066658148 joined [00:27:42]Waiting for new connection... [00:27:42] Sock 8.Parse request [00:27:42]Sock 8.Check first char [00:27:42]Sock 8.First char is OK [00:27:42]request: POST /json_proto HTTP/1.0 [00:27:42]Method: POST [00:27:42]URL: /json_proto [00:27:42]Method is POST - this is cgi request [00:27:42]url: /json_proto [00:27:42]query_string will be loaded in cgi processing [00:27:42]execute_cgi json_proto POST (null) [00:27:42]execute_cgi path=json_proto method=POST [00:27:42]POST find Content-Length [00:27:42]Host: 172.17.57.71:8080 [00:27:42]Content-Length: 682 [00:27:42]Content-Type: application/json [00:27:42] [00:27:42]POST finish read [00:27:42]Found Content-Length = 682 [00:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648108", "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" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:42]execute_script... [00:27:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648108", "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" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:42]POST & json_proto [00:27:42]process_json_proto [00:27:42]json parsed OK: [00:27:42]protocol is kg_v1.0 [00:27:42]action value=close_receipt [00:27:42]process_action close_receipt [00:27:42]cmd_close_receipt [00:27:42]MH_GetDate [00:27:42]Write to MH i2c: F0 00 00 B9 3E E6 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: F0 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: F0 09 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: F0 09 00 B9 3E 00 04 2A E6 66 33 3A A4 66 E0 [00:27:42]GetLastDocTimeStamp 1726360039 [00:27:42]current date 1726360068 [00:27:42]FM_GetShiftState [00:27:42]SAM_PROTO_GetShiftState [00:27:42]wFMCommunicate request_size=4 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 13 01 00 [00:27:42]Write to MH i2c: E2 08 00 BA 3E 80 13 01 00 00 00 00 00 75 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 0E 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 0E 00 BA 3E 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 F7 [00:27:42]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:27:42]wFMCommunicate OK [00:27:42]SAM_PROTO_GetShiftState done [00:27:42]FM_GetShiftState done [00:27:42]opened in 1726359809 [00:27:42]opened+sec_in_day 1726446209 [00:27:42]quantity*price = 150056 [00:27:42]sum+1 = 150058 [00:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 3 15.09.2024 00:27 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92555 ФПД: 270321704549489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002748&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92555&fm=270321704549489&tin=02508201610067®Number=0000000000091423&sum=150000 [00:27:43]StoreToDocumentArchive [00:27:43]shift 507 fd 92555 [00:27:43]save to /storage/0507/doc_00092555 [00:27:43]save last doc name /storage/0507/doc_00092555 to /storage/kkm_last_doc_name [00:27:43]save OK [00:27:43]Clear old archive folders... [00:27:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:27:43]tlvbuf is 00F9F980 [00:27:43]SAM_PROTO_ClearQueue [00:27:43]wFMCommunicate request_size=4 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 09 00 00 [00:27:43]Write to MH i2c: E2 08 00 C7 3E 80 09 00 00 00 00 00 00 77 [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:43]Read from MH i2c: E2 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 03 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 03 00 C7 3E 00 90 00 79 [00:27:43]RAPDU: 90 00 [00:27:43]wFMCommunicate OK [00:27:43]SAM_PROTO_ClearQueue done [00:27:43]KKMCreateOFDPacket [00:27:43]OFDProtocolAddRootSTLVToBuf [00:27:43]FM_MakeSignedData [00:27:43]FM_MakeSignedData [00:27:43]SAM_PROTO_SignData [00:27:43]wFMCommunicate request_size=4 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 0D 01 02 [00:27:43]Write to MH i2c: E2 08 00 C8 3E 80 0D 01 02 00 00 00 00 7F [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:43]Read from MH i2c: E2 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 03 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 03 00 C8 3E 00 90 00 7A [00:27:43]RAPDU: 90 00 [00:27:43]wFMCommunicate OK [00:27:43]wFMCommunicate request_size=255 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 04 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8B 69 01 00 35 04 06 00 F5 [00:27:43]Write to MH i2c: E2 02 01 C9 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 04 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8B 69 01 00 35 04 06 00 F5 00 00 B8 [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:43]Read from MH i2c: E2 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 03 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 03 00 C9 3E 00 90 00 7B [00:27:43]RAPDU: 90 00 [00:27:43]wFMCommunicate OK [00:27:43]wFMCommunicate request_size=10 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 0D 02 02 05 DB 2D 2C BC 71 [00:27:43]Write to MH i2c: E2 0D 00 CA 3E 80 0D 02 02 05 00 DB 2D 2C BC 71 00 00 ED [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:43]Read from MH i2c: E2 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 03 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 03 00 CA 3E 00 90 00 7C [00:27:43]RAPDU: 90 00 [00:27:43]wFMCommunicate OK [00:27:43]wFMCommunicate request_size=4 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 0D 03 02 [00:27:43]Write to MH i2c: E2 08 00 CB 3E 80 0D 03 02 00 00 00 00 84 [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 0B 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 0B 00 CB 3E 00 EB 4F 9E C3 B7 7C 20 19 90 00 8C [00:27:44]RAPDU: EB 4F 9E C3 B7 7C 20 19 90 00 [00:27:44]wFMCommunicate OK [00:27:44]SAM_PROTO_SignData done [00:27:44]FM_MakeSignedData done [00:27:44]CreateOFDProtocolMessage [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 11 00 00 [00:27:44]Write to MH i2c: E2 08 00 CC 3E 80 11 00 00 00 00 00 00 84 [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 17 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 17 00 CC 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 DB [00:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:27:44]wFMCommunicate OK [00:27:44]CreateOFDProtocolMessage done [00:27:44]OFDSenderStorePacket 92555 [00:27:44]StoreOFDPacket docnum=92555 [00:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 A0 5C 07 01 C4 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 04 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8B 69 01 00 35 04 06 00 F5 DB 2D 2C BC 71 EB 4F 9E C3 B7 7C 20 19 [00:27:44]CheckFolder [00:27:44]dirname=/storage/ofd_packets [00:27:44]CheckFolder done [00:27:44]ProducePacketName [00:27:44]name=ofd_packets/00092555 [00:27:44]NVStorageSaveData ofd_packets/00092555 [00:27:44]File name is /storage/ofd_packets/00092555 [00:27:44]Write 301 bytes [00:27:44]NVStorageSaveData done [00:27:44]OFDSenderStorePacket done [00:27:44]KKMCreateOFDPacket done [00:27:44]NVStorageSaveData kkm_last_timestamp [00:27:44]File name is /storage/kkm_last_timestamp [00:27:44]Write 4 bytes [00:27:44]NVStorageSaveData done [00:27:44]ExternCall_PrintAddStr [00:27:44]wPrintStart [00:27:44]Write to MH i2c: 01 00 00 CD 3E 0B [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: 01 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: 01 07 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: 01 07 00 CD 3E 00 00 00 00 00 FF 0F 20 [00:27:44]RasterBufferAndPrint [00:27:44]line Счет N : (1)648108 [00:27:44]line ИНН: 02508201610067 [00:27:44]line Контрольно-Кассовый Чек [00:27:44]line ПРОДАЖА [00:27:44]line ТРК (МРК, ГНК) : 63 [00:27:44]line Товар: 2710124130 [00:27:44]line Аи-92-К-5 [00:27:44]line 22.430 * 66.90 [00:27:44]line = 1500.57 [00:27:44]line НДС 12% НСП 1% [00:27:44]line > о реализуемом товаре [00:27:44]line ОКРУГЛЕНИЕ: -0.57 [00:27:44]line ИТОГО: 1500.00 [00:27:44]line Внесено: 1500.00 [00:27:44]line СДАЧА: 0.00 [00:27:44]line НСП 1% : 13.28 [00:27:44]line НДС 12% : 159.35 [00:27:44]line Наличными: 1500.00 [00:27:44]line Безнал.: 0.00 [00:27:44]line Место: АЗС № 5 "Партнер Нефть" [00:27:44]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:27:44]line СНО: Общий режим [00:27:44]line Чек 3 15.09.2024 00:27 [00:27:44]line Смена: 507 ФФД: 1.0 [00:27:44]line ЗНМ: 03000000022 [00:27:44]line РНМ: 0000000000091423 [00:27:44]line Версия ККМ: 001 [00:27:44]line ФМ: 0000000000874692 [00:27:44]line ФД: 92555 [00:27:44]line ФПД: 270321704549489 [00:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002748&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92555&fm=270321704549489&tin=02508201610067®Number=0000000000091423&sum=150000 [00:27:44]written 0, free lines is 4095 [00:27:44]Write to MH i2c: 01 00 00 F8 3E 36 [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: 01 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: 01 07 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: 01 07 00 F8 3E 00 00 00 00 00 E8 0C 31 [00:27:44]RasterBufferAndPrint [00:27:44]line [00:27:44]line [00:27:44]line [00:27:44]line [00:27:44]line [00:27:44]written 0, free lines is 3310 [00:27:44]MH_Cut [00:27:44]Write to MH i2c: D1 01 00 FF 3E 01 0F [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: D1 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: D1 01 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: D1 01 00 FF 3E 00 0E [00:27:44]Write to MH i2c: 01 00 00 00 3F 3F [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:45]*** Cut start [00:27:45]*** Purtial cut [00:27:45]*** Stage 1: CUTSNS_PIN = 1 [00:27:47]Read from MH i2c: 01 [00:27:47]MH_I2C_Read... [00:27:47]*** Stop cut motor [00:27:47]Read from MH i2c: 01 07 00 [00:27:47]MH_I2C_Read... [00:27:47]*** Cut end [00:27:47]Read from MH i2c: 01 07 00 00 3F 00 00 00 00 00 FF 0F 54 [00:27:47]process_action close_receipt done [00:27:47]requested_data is exist [00:27:47]produce_requested_data [00:27:47]requested_item fm.sn is exist - process it [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 11 00 00 [00:27:47]Write to MH i2c: E2 08 00 01 3F 80 11 00 00 00 00 00 00 BA [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 17 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 17 00 01 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 11 [00:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:27:47]wFMCommunicate OK [00:27:47]requested_item fd.num is exist - process it [00:27:47]SAM_PROTO_GetFieldsCounters [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 13 00 00 [00:27:47]Write to MH i2c: E2 08 00 02 3F 80 13 00 00 00 00 00 00 BD [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 62 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 62 00 02 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8B 69 01 00 0E 04 04 00 FB 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 D6 [00:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8B 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:47]wFMCommunicate OK [00:27:47]SAM_PROTO_GetFieldsCounters done [00:27:47]requested_item shift.num is exist - process it [00:27:47]requested_item shift.opened is exist - process it [00:27:47]req_shift_opened [00:27:47]FM_GetShiftState [00:27:47]SAM_PROTO_GetShiftState [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 13 01 00 [00:27:47]Write to MH i2c: E2 08 00 03 3F 80 13 01 00 00 00 00 00 BF [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 0E 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 0E 00 03 3F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 41 [00:27:47]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:27:47]wFMCommunicate OK [00:27:47]SAM_PROTO_GetShiftState done [00:27:47]FM_GetShiftState done [00:27:47]req_shift_opened done [00:27:47]requested_item shift.open_date is exist - process it [00:27:47]req_shift_open_date [00:27:47]req_shift_open_date done [00:27:47]produce_requested_data done [00:27:47]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92555,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:27:47]process_action_free close_receipt [00:27:47]json_value_free [00:27:47]json_value_free done [00:27:47]process_json_proto returns [00:27:47]Send response to host [00:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92555,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:27:47]free response buf [00:27:47]execute_script done [00:27:47]execute_script returns [00:27:47]free content buf [00:27:47]Sock 8.Close socket [00:27:47]Sock 8.Thread stoped [00:28:11]accept exits with 9 [00:28:11]New connection [00:28:11]New thread 3066658148 created [00:28:11]Thread 3066801508 joined [00:28:11]Waiting for new connection... [00:28:11] Sock 9.Parse request [00:28:11]Sock 9.Check first char [00:28:11]Sock 9.First char is OK [00:28:11]request: POST /json_proto HTTP/1.0 [00:28:11]Method: POST [00:28:11]URL: /json_proto [00:28:11]Method is POST - this is cgi request [00:28:11]url: /json_proto [00:28:11]query_string will be loaded in cgi processing [00:28:11]execute_cgi json_proto POST (null) [00:28:11]execute_cgi path=json_proto method=POST [00:28:11]POST find Content-Length [00:28:11]Host: 172.17.57.71:8080 [00:28:11]Content-Length: 805 [00:28:11]Content-Type: application/json [00:28:11] [00:28:11]POST finish read [00:28:11]Found Content-Length = 805 [00:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648107", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:11]execute_script... [00:28: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)648107", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:11]POST & json_proto [00:28:11]process_json_proto [00:28:11]json parsed OK: [00:28:11]protocol is kg_v1.0 [00:28:11]action value=close_receipt [00:28:11]process_action close_receipt [00:28:11]cmd_close_receipt [00:28:11]MH_GetDate [00:28:11]Write to MH i2c: F0 00 00 04 3F 32 [00:28:11]Write i2c OK [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: F0 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: F0 09 00 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: F0 09 00 04 3F 00 21 2A E6 66 33 3A A4 66 49 [00:28:11]GetLastDocTimeStamp 1726360068 [00:28:11]current date 1726360097 [00:28:11]FM_GetShiftState [00:28:11]SAM_PROTO_GetShiftState [00:28:11]wFMCommunicate request_size=4 [00:28:11]MH_SAM_APDU [00:28:11]CAPDU: 80 13 01 00 [00:28:11]Write to MH i2c: E2 08 00 05 3F 80 13 01 00 00 00 00 00 C1 [00:28:11]Write i2c OK [00:28:11]MH_I2C_Read... [00:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:11]Read from MH i2c: E2 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: E2 0E 00 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: E2 0E 00 05 3F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 43 [00:28:11]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:28:11]wFMCommunicate OK [00:28:11]SAM_PROTO_GetShiftState done [00:28:11]FM_GetShiftState done [00:28:11]opened in 1726359809 [00:28:11]opened+sec_in_day 1726446209 [00:28:11]quantity*price = 50041 [00:28:11]sum+1 = 50042 [00:28:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 4 15.09.2024 00:28 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92556 ФПД: 210355949945701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002817&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92556&fm=210355949945701&tin=02508201610067®Number=0000000000091423&sum=50041 [00:28:12]StoreToDocumentArchive [00:28:12]shift 507 fd 92556 [00:28:12]save to /storage/0507/doc_00092556 [00:28:12]save last doc name /storage/0507/doc_00092556 to /storage/kkm_last_doc_name [00:28:12]save OK [00:28:12]Clear old archive folders... [00:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:28:12]tlvbuf is 00FF4BD0 [00:28:12]SAM_PROTO_ClearQueue [00:28:12]wFMCommunicate request_size=4 [00:28:12]MH_SAM_APDU [00:28:12]CAPDU: 80 09 00 00 [00:28:12]Write to MH i2c: E2 08 00 12 3F 80 09 00 00 00 00 00 00 C3 [00:28:12]Write i2c OK [00:28:12]MH_I2C_Read... [00:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:12]Read from MH i2c: E2 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 03 00 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 03 00 12 3F 00 90 00 C5 [00:28:12]RAPDU: 90 00 [00:28:12]wFMCommunicate OK [00:28:12]SAM_PROTO_ClearQueue done [00:28:12]KKMCreateOFDPacket [00:28:12]OFDProtocolAddRootSTLVToBuf [00:28:12]FM_MakeSignedData [00:28:12]FM_MakeSignedData [00:28:12]SAM_PROTO_SignData [00:28:12]wFMCommunicate request_size=4 [00:28:12]MH_SAM_APDU [00:28:12]CAPDU: 80 0D 01 02 [00:28:12]Write to MH i2c: E2 08 00 13 3F 80 0D 01 02 00 00 00 00 CB [00:28:12]Write i2c OK [00:28:12]MH_I2C_Read... [00:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:12]Read from MH i2c: E2 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 03 00 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: E2 03 00 13 3F 00 90 00 C6 [00:28:12]RAPDU: 90 00 [00:28:12]wFMCommunicate OK [00:28:12]wFMCommunicate request_size=255 [00:28:12]MH_SAM_APDU [00:28:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 21 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 69 01 00 35 04 06 00 BF [00:28:12]Write to MH i2c: E2 02 01 14 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 21 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 69 01 00 35 04 06 00 BF 00 00 F6 [00:28:12]Write i2c OK [00:28:12]MH_I2C_Read... [00:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:13]Read from MH i2c: E2 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: E2 03 00 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: E2 03 00 14 3F 00 90 00 C7 [00:28:13]RAPDU: 90 00 [00:28:13]wFMCommunicate OK [00:28:13]wFMCommunicate request_size=10 [00:28:13]MH_SAM_APDU [00:28:13]CAPDU: 80 0D 02 02 05 51 4F AC 43 65 [00:28:13]Write to MH i2c: E2 0D 00 15 3F 80 0D 02 02 05 00 51 4F AC 43 65 00 00 CC [00:28:13]Write i2c OK [00:28:13]MH_I2C_Read... [00:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:13]Read from MH i2c: E2 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: E2 03 00 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: E2 03 00 15 3F 00 90 00 C8 [00:28:13]RAPDU: 90 00 [00:28:13]wFMCommunicate OK [00:28:13]wFMCommunicate request_size=4 [00:28:13]MH_SAM_APDU [00:28:13]CAPDU: 80 0D 03 02 [00:28:13]Write to MH i2c: E2 08 00 16 3F 80 0D 03 02 00 00 00 00 D0 [00:28:13]Write i2c OK [00:28:13]MH_I2C_Read... [00:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:13]Read from MH i2c: E2 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: E2 0B 00 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: E2 0B 00 16 3F 00 B5 50 5E F7 E1 10 3C 92 90 00 EA [00:28:13]RAPDU: B5 50 5E F7 E1 10 3C 92 90 00 [00:28:13]wFMCommunicate OK [00:28:13]SAM_PROTO_SignData done [00:28:13]FM_MakeSignedData done [00:28:13]CreateOFDProtocolMessage [00:28:13]wFMCommunicate request_size=4 [00:28:13]MH_SAM_APDU [00:28:13]CAPDU: 80 11 00 00 [00:28:13]Write to MH i2c: E2 08 00 17 3F 80 11 00 00 00 00 00 00 D0 [00:28:13]Write i2c OK [00:28:13]MH_I2C_Read... [00:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:13]Read from MH i2c: E2 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: E2 17 00 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: E2 17 00 17 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 27 [00:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:28:13]wFMCommunicate OK [00:28:13]CreateOFDProtocolMessage done [00:28:13]OFDSenderStorePacket 92556 [00:28:13]StoreOFDPacket docnum=92556 [00:28:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 30 EE 07 01 44 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 21 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 69 01 00 35 04 06 00 BF 51 4F AC 43 65 B5 50 5E F7 E1 10 3C 92 [00:28:13]CheckFolder [00:28:13]dirname=/storage/ofd_packets [00:28:13]CheckFolder done [00:28:13]ProducePacketName [00:28:13]name=ofd_packets/00092556 [00:28:13]NVStorageSaveData ofd_packets/00092556 [00:28:13]File name is /storage/ofd_packets/00092556 [00:28:13]Write 301 bytes [00:28:13]NVStorageSaveData done [00:28:13]OFDSenderStorePacket done [00:28:13]KKMCreateOFDPacket done [00:28:13]NVStorageSaveData kkm_last_timestamp [00:28:13]File name is /storage/kkm_last_timestamp [00:28:13]Write 4 bytes [00:28:13]NVStorageSaveData done [00:28:13]ExternCall_PrintAddStr [00:28:13]wPrintStart [00:28:13]Write to MH i2c: 01 00 00 18 3F 57 [00:28:13]Write i2c OK [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: 01 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: 01 07 00 [00:28:13]MH_I2C_Read... [00:28:13]Read from MH i2c: 01 07 00 18 3F 00 00 00 00 00 FF 0F 6C [00:28:13]RasterBufferAndPrint [00:28:13]line Счет N : (1)648107 [00:28:13]line ИНН: 02508201610067 [00:28:13]line Контрольно-Кассовый Чек [00:28:13]line ПРОДАЖА [00:28:13]line ТРК (МРК, ГНК) : 43 [00:28:13]line Товар: 2710124130 [00:28:13]line Аи-92-К-5 [00:28:13]line 7.480 * 66.90 [00:28:13]line = 500.41 [00:28:13]line НДС 12% НСП 1% [00:28:13]line > о реализуемом товаре [00:28:13]line ИТОГО: 500.41 [00:28:13]line НСП 1% : 4.43 [00:28:13]line НДС 12% : 53.14 [00:28:13]line Наличными: 0.00 [00:28:13]line Безнал.: 500.41 [00:28:13]line Место: АЗС № 5 "Партнер Нефть" [00:28:13]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:28:13]line СНО: Общий режим [00:28:13]line Чек 4 15.09.2024 00:28 [00:28:13]line Смена: 507 ФФД: 1.0 [00:28:13]line ЗНМ: 03000000022 [00:28:13]line РНМ: 0000000000091423 [00:28:13]line Версия ККМ: 001 [00:28:13]line Платежная система: О! деньги [00:28:13]line ФМ: 0000000000874692 [00:28:13]line ФД: 92556 [00:28:13]line ФПД: 210355949945701 [00:28:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002817&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92556&fm=210355949945701&tin=02508201610067®Number=0000000000091423&sum=50041 [00:28:13]written 0, free lines is 4095 [00:28:14]Write to MH i2c: 01 00 00 42 3F 81 [00:28:14]Write i2c OK [00:28:14]MH_I2C_Read... [00:28:14]Read from MH i2c: 01 [00:28:14]MH_I2C_Read... [00:28:14]Read from MH i2c: 01 07 00 [00:28:14]MH_I2C_Read... [00:28:14]Read from MH i2c: 01 07 00 42 3F 00 00 00 00 00 F3 0C 87 [00:28:14]RasterBufferAndPrint [00:28:14]line [00:28:14]line [00:28:14]line [00:28:14]line [00:28:14]line [00:28:14]written 0, free lines is 3321 [00:28:14]MH_Cut [00:28:14]Write to MH i2c: D1 01 00 49 3F 01 5A [00:28:14]Write i2c OK [00:28:14]MH_I2C_Read... [00:28:14]Read from MH i2c: D1 [00:28:14]MH_I2C_Read... [00:28:14]Read from MH i2c: D1 01 00 [00:28:14]MH_I2C_Read... [00:28:14]Read from MH i2c: D1 01 00 49 3F 00 59 [00:28:14]Write to MH i2c: 01 00 00 4A 3F 89 [00:28:14]Write i2c OK [00:28:14]MH_I2C_Read... [00:28:14]*** Cut start [00:28:14]*** Purtial cut [00:28:14]*** Stage 1: CUTSNS_PIN = 1 [00:28:16]Read from MH i2c: 01 [00:28:16]MH_I2C_Read... [00:28:16]*** Stop cut motor [00:28:16]*** Cut end [00:28:16]Read from MH i2c: 01 07 00 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: 01 07 00 4A 3F 00 00 00 00 00 FF 0F 9E [00:28:16]process_action close_receipt done [00:28:16]requested_data is exist [00:28:16]produce_requested_data [00:28:16]requested_item fm.sn is exist - process it [00:28:16]wFMCommunicate request_size=4 [00:28:16]MH_SAM_APDU [00:28:16]CAPDU: 80 11 00 00 [00:28:16]Write to MH i2c: E2 08 00 4B 3F 80 11 00 00 00 00 00 00 04 [00:28:16]Write i2c OK [00:28:16]MH_I2C_Read... [00:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:16]Read from MH i2c: E2 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 17 00 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 17 00 4B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 5B [00:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:28:16]wFMCommunicate OK [00:28:16]requested_item fd.num is exist - process it [00:28:16]SAM_PROTO_GetFieldsCounters [00:28:16]wFMCommunicate request_size=4 [00:28:16]MH_SAM_APDU [00:28:16]CAPDU: 80 13 00 00 [00:28:16]Write to MH i2c: E2 08 00 4C 3F 80 13 00 00 00 00 00 00 07 [00:28:16]Write i2c OK [00:28:16]MH_I2C_Read... [00:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:16]Read from MH i2c: E2 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 62 00 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 62 00 4C 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8C 69 01 00 0E 04 04 00 FB 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 24 [00:28:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8C 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:16]wFMCommunicate OK [00:28:16]SAM_PROTO_GetFieldsCounters done [00:28:16]requested_item shift.num is exist - process it [00:28:16]requested_item shift.opened is exist - process it [00:28:16]req_shift_opened [00:28:16]FM_GetShiftState [00:28:16]SAM_PROTO_GetShiftState [00:28:16]wFMCommunicate request_size=4 [00:28:16]MH_SAM_APDU [00:28:16]CAPDU: 80 13 01 00 [00:28:16]Write to MH i2c: E2 08 00 4D 3F 80 13 01 00 00 00 00 00 09 [00:28:16]Write i2c OK [00:28:16]MH_I2C_Read... [00:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:16]Read from MH i2c: E2 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 0E 00 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 0E 00 4D 3F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 8B [00:28:16]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:28:16]wFMCommunicate OK [00:28:16]SAM_PROTO_GetShiftState done [00:28:16]FM_GetShiftState done [00:28:16]req_shift_opened done [00:28:16]requested_item shift.open_date is exist - process it [00:28:16]req_shift_open_date [00:28:16]req_shift_open_date done [00:28:16]produce_requested_data done [00:28:16]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92556,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:28:16]process_action_free close_receipt [00:28:16]json_value_free [00:28:16]json_value_free done [00:28:16]process_json_proto returns [00:28:16]Send response to host [00:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92556,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:28:16]free response buf [00:28:16]execute_script done [00:28:16]execute_script returns [00:28:16]free content buf [00:28:16]Sock 9.Close socket [00:28:16]Sock 9.Thread stoped [00:28:31]accept exits with 8 [00:28:31]New connection [00:28:31]New thread 3066801508 created [00:28:31]Thread 3066658148 joined [00:28:31]Waiting for new connection... [00:28:31] Sock 8.Parse request [00:28:31]Sock 8.Check first char [00:28:31]Sock 8.First char is OK [00:28:31]request: POST /json_proto HTTP/1.0 [00:28:31]Method: POST [00:28:31]URL: /json_proto [00:28:31]Method is POST - this is cgi request [00:28:31]url: /json_proto [00:28:31]query_string will be loaded in cgi processing [00:28:31]execute_cgi json_proto POST (null) [00:28:31]execute_cgi path=json_proto method=POST [00:28:31]POST find Content-Length [00:28:31]Host: 172.17.57.71:8080 [00:28:31]Content-Length: 805 [00:28:31]Content-Type: application/json [00:28:31] [00:28:31]POST finish read [00:28:31]Found Content-Length = 805 [00:28:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648109", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:31]execute_script... [00:28:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648109", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:31]POST & json_proto [00:28:31]process_json_proto [00:28:31]json parsed OK: [00:28:31]protocol is kg_v1.0 [00:28:31]action value=close_receipt [00:28:31]process_action close_receipt [00:28:31]cmd_close_receipt [00:28:31]MH_GetDate [00:28:31]Write to MH i2c: F0 00 00 4E 3F 7C [00:28:31]Write i2c OK [00:28:31]MH_I2C_Read... [00:28:31]Read from MH i2c: F0 [00:28:31]MH_I2C_Read... [00:28:31]Read from MH i2c: F0 09 00 [00:28:31]MH_I2C_Read... [00:28:31]Read from MH i2c: F0 09 00 4E 3F 00 35 2A E6 66 33 3A A4 66 A7 [00:28:31]GetLastDocTimeStamp 1726360097 [00:28:31]current date 1726360117 [00:28:31]FM_GetShiftState [00:28:31]SAM_PROTO_GetShiftState [00:28:31]wFMCommunicate request_size=4 [00:28:31]MH_SAM_APDU [00:28:31]CAPDU: 80 13 01 00 [00:28:31]Write to MH i2c: E2 08 00 4F 3F 80 13 01 00 00 00 00 00 0B [00:28:31]Write i2c OK [00:28:31]MH_I2C_Read... [00:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:31]Read from MH i2c: E2 [00:28:31]MH_I2C_Read... [00:28:31]Read from MH i2c: E2 0E 00 [00:28:31]MH_I2C_Read... [00:28:31]Read from MH i2c: E2 0E 00 4F 3F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 8D [00:28:31]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:28:31]wFMCommunicate OK [00:28:31]SAM_PROTO_GetShiftState done [00:28:31]FM_GetShiftState done [00:28:31]opened in 1726359809 [00:28:31]opened+sec_in_day 1726446209 [00:28:31]quantity*price = 60009 [00:28:31]sum+1 = 60010 [00:28:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 5 15.09.2024 00:28 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92557 ФПД: 177360717700863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002837&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92557&fm=177360717700863&tin=02508201610067®Number=0000000000091423&sum=60009 [00:28:32]StoreToDocumentArchive [00:28:32]shift 507 fd 92557 [00:28:32]save to /storage/0507/doc_00092557 [00:28:32]save last doc name /storage/0507/doc_00092557 to /storage/kkm_last_doc_name [00:28:32]save OK [00:28:32]Clear old archive folders... [00:28:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:28:32]tlvbuf is 01032DA0 [00:28:32]SAM_PROTO_ClearQueue [00:28:32]wFMCommunicate request_size=4 [00:28:32]MH_SAM_APDU [00:28:32]CAPDU: 80 09 00 00 [00:28:32]Write to MH i2c: E2 08 00 5C 3F 80 09 00 00 00 00 00 00 0D [00:28:32]Write i2c OK [00:28:32]MH_I2C_Read... [00:28:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:32]Read from MH i2c: E2 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 03 00 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 03 00 5C 3F 00 90 00 0F [00:28:32]RAPDU: 90 00 [00:28:32]wFMCommunicate OK [00:28:32]SAM_PROTO_ClearQueue done [00:28:32]KKMCreateOFDPacket [00:28:32]OFDProtocolAddRootSTLVToBuf [00:28:32]FM_MakeSignedData [00:28:32]FM_MakeSignedData [00:28:32]SAM_PROTO_SignData [00:28:32]wFMCommunicate request_size=4 [00:28:32]MH_SAM_APDU [00:28:32]CAPDU: 80 0D 01 02 [00:28:32]Write to MH i2c: E2 08 00 5D 3F 80 0D 01 02 00 00 00 00 15 [00:28:32]Write i2c OK [00:28:32]MH_I2C_Read... [00:28:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:32]Read from MH i2c: E2 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 03 00 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 03 00 5D 3F 00 90 00 10 [00:28:32]RAPDU: 90 00 [00:28:32]wFMCommunicate OK [00:28:32]wFMCommunicate request_size=255 [00:28:32]MH_SAM_APDU [00:28:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 35 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 69 01 00 35 04 06 00 A1 [00:28:32]Write to MH i2c: E2 02 01 5E 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 35 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 69 01 00 35 04 06 00 A1 00 00 D5 [00:28:32]Write i2c OK [00:28:32]MH_I2C_Read... [00:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:32]Read from MH i2c: E2 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 03 00 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 03 00 5E 3F 00 90 00 11 [00:28:32]RAPDU: 90 00 [00:28:32]wFMCommunicate OK [00:28:32]wFMCommunicate request_size=10 [00:28:32]MH_SAM_APDU [00:28:32]CAPDU: 80 0D 02 02 05 4F 02 93 5E FF [00:28:32]Write to MH i2c: E2 0D 00 5F 3F 80 0D 02 02 05 00 4F 02 93 5E FF 00 00 63 [00:28:32]Write i2c OK [00:28:32]MH_I2C_Read... [00:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:32]Read from MH i2c: E2 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 03 00 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 03 00 5F 3F 00 90 00 12 [00:28:32]RAPDU: 90 00 [00:28:32]wFMCommunicate OK [00:28:32]wFMCommunicate request_size=4 [00:28:32]MH_SAM_APDU [00:28:32]CAPDU: 80 0D 03 02 [00:28:32]Write to MH i2c: E2 08 00 60 3F 80 0D 03 02 00 00 00 00 1A [00:28:32]Write i2c OK [00:28:32]MH_I2C_Read... [00:28:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:32]Read from MH i2c: E2 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 0B 00 [00:28:32]MH_I2C_Read... [00:28:32]Read from MH i2c: E2 0B 00 60 3F 00 01 10 00 77 A9 DB A4 31 90 00 FC [00:28:32]RAPDU: 01 10 00 77 A9 DB A4 31 90 00 [00:28:32]wFMCommunicate OK [00:28:32]SAM_PROTO_SignData done [00:28:32]FM_MakeSignedData done [00:28:32]CreateOFDProtocolMessage [00:28:32]wFMCommunicate request_size=4 [00:28:32]MH_SAM_APDU [00:28:32]CAPDU: 80 11 00 00 [00:28:32]Write to MH i2c: E2 08 00 61 3F 80 11 00 00 00 00 00 00 1A [00:28:32]Write i2c OK [00:28:32]MH_I2C_Read... [00:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:33]Read from MH i2c: E2 [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: E2 17 00 [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: E2 17 00 61 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 71 [00:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:28:33]wFMCommunicate OK [00:28:33]CreateOFDProtocolMessage done [00:28:33]OFDSenderStorePacket 92557 [00:28:33]StoreOFDPacket docnum=92557 [00:28:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 25 68 07 01 1F 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 35 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 69 01 00 35 04 06 00 A1 4F 02 93 5E FF 01 10 00 77 A9 DB A4 31 [00:28:33]CheckFolder [00:28:33]dirname=/storage/ofd_packets [00:28:33]CheckFolder done [00:28:33]ProducePacketName [00:28:33]name=ofd_packets/00092557 [00:28:33]NVStorageSaveData ofd_packets/00092557 [00:28:33]File name is /storage/ofd_packets/00092557 [00:28:33]Write 301 bytes [00:28:33]NVStorageSaveData done [00:28:33]OFDSenderStorePacket done [00:28:33]KKMCreateOFDPacket done [00:28:33]NVStorageSaveData kkm_last_timestamp [00:28:33]File name is /storage/kkm_last_timestamp [00:28:33]Write 4 bytes [00:28:33]NVStorageSaveData done [00:28:33]ExternCall_PrintAddStr [00:28:33]wPrintStart [00:28:33]Write to MH i2c: 01 00 00 62 3F A1 [00:28:33]Write i2c OK [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: 01 [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: 01 07 00 [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: 01 07 00 62 3F 00 00 00 00 00 FF 0F B6 [00:28:33]RasterBufferAndPrint [00:28:33]line Счет N : (1)648109 [00:28:33]line ИНН: 02508201610067 [00:28:33]line Контрольно-Кассовый Чек [00:28:33]line ПРОДАЖА [00:28:33]line ТРК (МРК, ГНК) : 33 [00:28:33]line Товар: 2710124130 [00:28:33]line Аи-92-К-5 [00:28:33]line 8.970 * 66.90 [00:28:33]line = 600.09 [00:28:33]line НДС 12% НСП 1% [00:28:33]line > о реализуемом товаре [00:28:33]line ИТОГО: 600.09 [00:28:33]line НСП 1% : 5.31 [00:28:33]line НДС 12% : 63.73 [00:28:33]line Наличными: 0.00 [00:28:33]line Безнал.: 600.09 [00:28:33]line Место: АЗС № 5 "Партнер Нефть" [00:28:33]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [00:28:33]line СНО: Общий режим [00:28:33]line Чек 5 15.09.2024 00:28 [00:28:33]line Смена: 507 ФФД: 1.0 [00:28:33]line ЗНМ: 03000000022 [00:28:33]line РНМ: 0000000000091423 [00:28:33]line Версия ККМ: 001 [00:28:33]line Платежная система: О! деньги [00:28:33]line ФМ: 0000000000874692 [00:28:33]line ФД: 92557 [00:28:33]line ФПД: 177360717700863 [00:28:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T002837&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92557&fm=177360717700863&tin=02508201610067®Number=0000000000091423&sum=60009 [00:28:33]written 0, free lines is 4095 [00:28:33]Write to MH i2c: 01 00 00 8C 3F CB [00:28:33]Write i2c OK [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: 01 [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: 01 07 00 [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: 01 07 00 8C 3F 00 00 00 00 00 F8 0C D6 [00:28:33]RasterBufferAndPrint [00:28:33]line [00:28:33]line [00:28:33]line [00:28:33]line [00:28:33]line [00:28:33]written 0, free lines is 3327 [00:28:33]MH_Cut [00:28:33]Write to MH i2c: D1 01 00 93 3F 01 A4 [00:28:33]Write i2c OK [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: D1 [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: D1 01 00 [00:28:33]MH_I2C_Read... [00:28:33]Read from MH i2c: D1 01 00 93 3F 00 A3 [00:28:33]Write to MH i2c: 01 00 00 94 3F D3 [00:28:33]Write i2c OK [00:28:33]MH_I2C_Read... [00:28:34]*** Cut start [00:28:34]*** Purtial cut [00:28:34]*** Stage 1: CUTSNS_PIN = 1 [00:28:36]Read from MH i2c: 01 [00:28:36]MH_I2C_Read... [00:28:36]*** Stop cut motor [00:28:36]*** Cut end [00:28:36]Read from MH i2c: 01 07 00 [00:28:36]MH_I2C_Read... [00:28:36]Read from MH i2c: 01 07 00 94 3F 00 00 00 00 00 FF 0F E8 [00:28:36]process_action close_receipt done [00:28:36]requested_data is exist [00:28:36]produce_requested_data [00:28:36]requested_item fm.sn is exist - process it [00:28:36]wFMCommunicate request_size=4 [00:28:36]MH_SAM_APDU [00:28:36]CAPDU: 80 11 00 00 [00:28:36]Write to MH i2c: E2 08 00 95 3F 80 11 00 00 00 00 00 00 4E [00:28:36]Write i2c OK [00:28:36]MH_I2C_Read... [00:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:36]Read from MH i2c: E2 [00:28:36]MH_I2C_Read... [00:28:36]Read from MH i2c: E2 17 00 [00:28:36]MH_I2C_Read... [00:28:36]Read from MH i2c: E2 17 00 95 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 A5 [00:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [00:28:36]wFMCommunicate OK [00:28:36]requested_item fd.num is exist - process it [00:28:36]SAM_PROTO_GetFieldsCounters [00:28:36]wFMCommunicate request_size=4 [00:28:36]MH_SAM_APDU [00:28:36]CAPDU: 80 13 00 00 [00:28:36]Write to MH i2c: E2 08 00 96 3F 80 13 00 00 00 00 00 00 51 [00:28:36]Write i2c OK [00:28:36]MH_I2C_Read... [00:28:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:36]Read from MH i2c: E2 [00:28:36]MH_I2C_Read... [00:28:36]Read from MH i2c: E2 62 00 [00:28:36]MH_I2C_Read... [00:28:36]Read from MH i2c: E2 62 00 96 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8D 69 01 00 0E 04 04 00 FB 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 72 [00:28:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8D 69 01 00 0E 04 04 00 FB 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:36]wFMCommunicate OK [00:28:36]SAM_PROTO_GetFieldsCounters done [00:28:36]requested_item shift.num is exist - process it [00:28:36]requested_item shift.opened is exist - process it [00:28:36]req_shift_opened [00:28:36]FM_GetShiftState [00:28:36]SAM_PROTO_GetShiftState [00:28:36]wFMCommunicate request_size=4 [00:28:36]MH_SAM_APDU [00:28:36]CAPDU: 80 13 01 00 [00:28:36]Write to MH i2c: E2 08 00 97 3F 80 13 01 00 00 00 00 00 53 [00:28:36]Write i2c OK [00:28:36]MH_I2C_Read... [00:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:36]Read from MH i2c: E2 [00:28:36]MH_I2C_Read... [00:28:36]Read from MH i2c: E2 0E 00 [00:28:36]MH_I2C_Read... [00:28:36]Read from MH i2c: E2 0E 00 97 3F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D5 [00:28:36]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [00:28:36]wFMCommunicate OK [00:28:36]SAM_PROTO_GetShiftState done [00:28:36]FM_GetShiftState done [00:28:36]req_shift_opened done [00:28:36]requested_item shift.open_date is exist - process it [00:28:36]req_shift_open_date [00:28:36]req_shift_open_date done [00:28:36]produce_requested_data done [00:28:36]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92557,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [00:28:36]process_action_free close_receipt [00:28:36]json_value_free [00:28:36]json_value_free done [00:28:36]process_json_proto returns [00:28:36]Send response to host [00:28:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92557,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [00:28:36]free response buf [00:28:36]execute_script done [00:28:36]execute_script returns [00:28:36]free content buf [00:28:36]Sock 8.Close socket [00:28:36]Sock 8.Thread stoped [00:29:25]ConnectInit Can't connect to host [00:29:25]CommunicateWithHost connect error [00:29:25]CommunicateWithHost err = -1 [00:29:25]OFD Sender: Server communicate error [00:29:25]OFD Sender: Processing packet 92554 [packets to send 66, broken 62] [00:29:25]ProducePacketName [00:29:25]name=ofd_packets/00092554 [00:29:25]OFD Sender: To server: pG, [00:29:25]CommunicateWithHost lk.salyk.kg:30040 [00:29:25]ConnectInit lk.salyk.kg [00:29:25]Connected sock=8 [00:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 01 00 00 E0 4B 08 01 70 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 02 00 00 00 F4 03 04 00 E7 29 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 69 01 00 35 04 06 00 4D 97 9A D9 92 DA 16 5D B9 B0 0B 82 3F AB [00:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FA AC 47 00 55 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8A 69 01 00 F4 03 04 00 E2 D2 E5 66 B6 04 01 00 00 FC EB 71 EF 1E 95 50 4E [00:29:25]CommunicateWithHost err = 0 [00:29:25]CheckOFDResponse [00:29:25]1017 (14) - 77093643461234 [00:29:25]1041 (16) - 0000000000874692 [00:29:25]1040 (4) - 92554 [00:29:25]1012 (4) - 14.09.2024 18:16 [00:29:25]1206 (1) - 0 [00:29:25]OFD Sender: Remove packet 92554 [00:29:25]ProducePacketName [00:29:25]name=ofd_packets/00092554 [00:29:25]NVStorageDeleteData [00:29:26]OFD Sender: Processing packet 92555 [packets to send 65, broken 62] [00:29:26]ProducePacketName [00:29:26]name=ofd_packets/00092555 [00:29:26]OFD Sender: To server: pG, [00:29:26]CommunicateWithHost lk.salyk.kg:30040 [00:29:26]ConnectInit lk.salyk.kg [00:29:26]Connected sock=8 [00:29:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 A0 5C 07 01 C4 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 04 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8B 69 01 00 35 04 06 00 F5 DB 2D 2C BC 71 EB 4F 9E C3 B7 7C 20 19 [00:29:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 F2 91 47 00 6F 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 34 36 39 32 10 04 04 00 8B 69 01 00 F4 03 04 00 E3 D2 E5 66 B6 04 01 00 00 BF EC 4E 73 34 57 D2 01 [00:29:26]CommunicateWithHost err = 0 [00:29:26]CheckOFDResponse [00:29:26]1017 (14) - 77093643461234 [00:29:26]1041 (16) - 0000000000874692 [00:29:26]1040 (4) - 92555 [00:29:26]1012 (4) - 14.09.2024 18:16 [00:29:26]1206 (1) - 0 [00:29:26]OFD Sender: Remove packet 92555 [00:29:26]ProducePacketName [00:29:26]name=ofd_packets/00092555 [00:29:26]NVStorageDeleteData [00:29:26]OFD Sender: Processing packet 92556 [packets to send 64, broken 62] [00:29:26]ProducePacketName [00:29:26]name=ofd_packets/00092556 [00:29:26]OFD Sender: To server: pG, [00:29:26]CommunicateWithHost lk.salyk.kg:30040 [00:29:26]ConnectInit lk.salyk.kg [00:29:26]Connected sock=8 [00:29:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 30 EE 07 01 44 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 21 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 69 01 00 35 04 06 00 BF 51 4F AC 43 65 B5 50 5E F7 E1 10 3C 92 [00:29:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 62 54 47 00 1D 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8C 69 01 00 F4 03 04 00 E4 D2 E5 66 B6 04 01 00 00 4B D7 CB 77 EA 39 29 1C [00:29:27]CommunicateWithHost err = 0 [00:29:27]CheckOFDResponse [00:29:27]1017 (14) - 77093643461234 [00:29:27]1041 (16) - 0000000000874692 [00:29:27]1040 (4) - 92556 [00:29:27]1012 (4) - 14.09.2024 18:16 [00:29:27]1206 (1) - 0 [00:29:27]OFD Sender: Remove packet 92556 [00:29:27]ProducePacketName [00:29:27]name=ofd_packets/00092556 [00:29:27]NVStorageDeleteData [00:29:27]OFD Sender: Processing packet 92557 [packets to send 63, broken 62] [00:29:27]ProducePacketName [00:29:27]name=ofd_packets/00092557 [00:29:27]OFD Sender: To server: pG, [00:29:27]CommunicateWithHost lk.salyk.kg:30040 [00:29:27]ConnectInit lk.salyk.kg [00:29:27]Connected sock=8 [00:29:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 25 68 07 01 1F 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 35 2A E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 69 01 00 35 04 06 00 A1 4F 02 93 5E FF 01 10 00 77 A9 DB A4 31 [00:29:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 64 5D 47 00 14 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8D 69 01 00 F4 03 04 00 E5 D2 E5 66 B6 04 01 00 00 40 6F 9D 99 1F 70 14 B3 [00:29:27]CommunicateWithHost err = 0 [00:29:27]CheckOFDResponse [00:29:27]1017 (14) - 77093643461234 [00:29:27]1041 (16) - 0000000000874692 [00:29:27]1040 (4) - 92557 [00:29:27]1012 (4) - 14.09.2024 18:16 [00:29:27]1206 (1) - 0 [00:29:27]OFD Sender: Remove packet 92557 [00:29:27]ProducePacketName [00:29:27]name=ofd_packets/00092557 [00:29:27]NVStorageDeleteData [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]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:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]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:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:23]accept exits with 9 [01:49:23]New connection [01:49:23]New thread 3066658148 created [01:49:23]Thread 3066801508 joined [01:49:23]Waiting for new connection... [01:49:23] Sock 9.Parse request [01:49:23]Sock 9.Check first char [01:49:23]Sock 9.First char is OK [01:49:23]request: POST /json_proto HTTP/1.0 [01:49:23]Method: POST [01:49:23]URL: /json_proto [01:49:23]Method is POST - this is cgi request [01:49:23]url: /json_proto [01:49:23]query_string will be loaded in cgi processing [01:49:23]execute_cgi json_proto POST (null) [01:49:23]execute_cgi path=json_proto method=POST [01:49:23]POST find Content-Length [01:49:23]Host: 172.17.57.71:8080 [01:49:23]Content-Length: 677 [01:49:23]Content-Type: application/json [01:49:23] [01:49:23]POST finish read [01:49:23]Found Content-Length = 677 [01:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648153", "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" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:49:23]execute_script... [01:49:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648153", "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" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:49:23]POST & json_proto [01:49:23]process_json_proto [01:49:23]json parsed OK: [01:49:23]protocol is kg_v1.0 [01:49:23]action value=close_receipt [01:49:23]process_action close_receipt [01:49:23]cmd_close_receipt [01:49:23]MH_GetDate [01:49:23]Write to MH i2c: F0 00 00 98 3F C6 [01:49:23]Write i2c OK [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: F0 [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: F0 09 00 [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: F0 09 00 98 3F 00 29 3D E6 66 33 3A A4 66 F8 [01:49:23]GetLastDocTimeStamp 1726360117 [01:49:23]current date 1726364969 [01:49:23]FM_GetShiftState [01:49:23]SAM_PROTO_GetShiftState [01:49:23]wFMCommunicate request_size=4 [01:49:23]MH_SAM_APDU [01:49:23]CAPDU: 80 13 01 00 [01:49:23]Write to MH i2c: E2 08 00 99 3F 80 13 01 00 00 00 00 00 55 [01:49:23]Write i2c OK [01:49:23]MH_I2C_Read... [01:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:23]Read from MH i2c: E2 [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: E2 0E 00 [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: E2 0E 00 99 3F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 D7 [01:49:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [01:49:23]wFMCommunicate OK [01:49:23]SAM_PROTO_GetShiftState done [01:49:23]FM_GetShiftState done [01:49:23]opened in 1726359809 [01:49:23]opened+sec_in_day 1726446209 [01:49:23]quantity*price = 50030 [01:49:23]sum+1 = 50031 [01:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 6 15.09.2024 01:49 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92558 ФПД: 234599549746524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T014929&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92558&fm=234599549746524&tin=02508201610067®Number=0000000000091423&sum=50000 [01:49:24]StoreToDocumentArchive [01:49:24]shift 507 fd 92558 [01:49:24]save to /storage/0507/doc_00092558 [01:49:24]save last doc name /storage/0507/doc_00092558 to /storage/kkm_last_doc_name [01:49:24]save OK [01:49:24]Clear old archive folders... [01:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:49:24]tlvbuf is 00FD8E10 [01:49:24]SAM_PROTO_ClearQueue [01:49:24]wFMCommunicate request_size=4 [01:49:24]MH_SAM_APDU [01:49:24]CAPDU: 80 09 00 00 [01:49:24]Write to MH i2c: E2 08 00 A6 3F 80 09 00 00 00 00 00 00 57 [01:49:24]Write i2c OK [01:49:24]MH_I2C_Read... [01:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:49:24]Read from MH i2c: E2 [01:49:24]MH_I2C_Read... [01:49:24]Read from MH i2c: E2 03 00 [01:49:24]MH_I2C_Read... [01:49:24]Read from MH i2c: E2 03 00 A6 3F 00 90 00 59 [01:49:24]RAPDU: 90 00 [01:49:24]wFMCommunicate OK [01:49:24]SAM_PROTO_ClearQueue done [01:49:24]KKMCreateOFDPacket [01:49:24]OFDProtocolAddRootSTLVToBuf [01:49:24]FM_MakeSignedData [01:49:24]FM_MakeSignedData [01:49:24]SAM_PROTO_SignData [01:49:24]wFMCommunicate request_size=4 [01:49:24]MH_SAM_APDU [01:49:24]CAPDU: 80 0D 01 02 [01:49:24]Write to MH i2c: E2 08 00 A7 3F 80 0D 01 02 00 00 00 00 5F [01:49:24]Write i2c OK [01:49:24]MH_I2C_Read... [01:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:49:24]Read from MH i2c: E2 [01:49:24]MH_I2C_Read... [01:49:24]Read from MH i2c: E2 03 00 [01:49:24]MH_I2C_Read... [01:49:24]Read from MH i2c: E2 03 00 A7 3F 00 90 00 5A [01:49:24]RAPDU: 90 00 [01:49:24]wFMCommunicate OK [01:49:24]wFMCommunicate request_size=255 [01:49:24]MH_SAM_APDU [01:49:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 29 3D E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8E 69 01 00 35 04 06 00 D5 [01:49:24]Write to MH i2c: E2 02 01 A8 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 29 3D E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8E 69 01 00 35 04 06 00 D5 00 00 5A [01:49:24]Write i2c OK [01:49:24]MH_I2C_Read... [01:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:49:25]Read from MH i2c: E2 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 03 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 03 00 A8 3F 00 90 00 5B [01:49:25]RAPDU: 90 00 [01:49:25]wFMCommunicate OK [01:49:25]wFMCommunicate request_size=10 [01:49:25]MH_SAM_APDU [01:49:25]CAPDU: 80 0D 02 02 05 5D F6 D3 BD 5C [01:49:25]Write to MH i2c: E2 0D 00 A9 3F 80 0D 02 02 05 00 5D F6 D3 BD 5C 00 00 AB [01:49:25]Write i2c OK [01:49:25]MH_I2C_Read... [01:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:49:25]Read from MH i2c: E2 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 03 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 03 00 A9 3F 00 90 00 5C [01:49:25]RAPDU: 90 00 [01:49:25]wFMCommunicate OK [01:49:25]wFMCommunicate request_size=4 [01:49:25]MH_SAM_APDU [01:49:25]CAPDU: 80 0D 03 02 [01:49:25]Write to MH i2c: E2 08 00 AA 3F 80 0D 03 02 00 00 00 00 64 [01:49:25]Write i2c OK [01:49:25]MH_I2C_Read... [01:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:49:25]Read from MH i2c: E2 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 0B 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 0B 00 AA 3F 00 54 FA B1 1E 85 04 D5 58 90 00 38 [01:49:25]RAPDU: 54 FA B1 1E 85 04 D5 58 90 00 [01:49:25]wFMCommunicate OK [01:49:25]SAM_PROTO_SignData done [01:49:25]FM_MakeSignedData done [01:49:25]CreateOFDProtocolMessage [01:49:25]wFMCommunicate request_size=4 [01:49:25]MH_SAM_APDU [01:49:25]CAPDU: 80 11 00 00 [01:49:25]Write to MH i2c: E2 08 00 AB 3F 80 11 00 00 00 00 00 00 64 [01:49:25]Write i2c OK [01:49:25]MH_I2C_Read... [01:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:49:25]Read from MH i2c: E2 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 17 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 17 00 AB 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 BB [01:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:49:25]wFMCommunicate OK [01:49:25]CreateOFDProtocolMessage done [01:49:25]OFDSenderStorePacket 92558 [01:49:25]StoreOFDPacket docnum=92558 [01:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 2F 52 07 01 84 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 29 3D E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8E 69 01 00 35 04 06 00 D5 5D F6 D3 BD 5C 54 FA B1 1E 85 04 D5 58 [01:49:25]CheckFolder [01:49:25]dirname=/storage/ofd_packets [01:49:25]CheckFolder done [01:49:25]ProducePacketName [01:49:25]name=ofd_packets/00092558 [01:49:25]NVStorageSaveData ofd_packets/00092558 [01:49:25]File name is /storage/ofd_packets/00092558 [01:49:25]Write 301 bytes [01:49:25]NVStorageSaveData done [01:49:25]OFDSenderStorePacket done [01:49:25]KKMCreateOFDPacket done [01:49:25]NVStorageSaveData kkm_last_timestamp [01:49:25]File name is /storage/kkm_last_timestamp [01:49:25]Write 4 bytes [01:49:25]NVStorageSaveData done [01:49:25]ExternCall_PrintAddStr [01:49:25]wPrintStart [01:49:25]Write to MH i2c: 01 00 00 AC 3F EB [01:49:25]Write i2c OK [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: 01 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: 01 07 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: 01 07 00 AC 3F 00 00 00 00 00 FF 0F 00 [01:49:25]RasterBufferAndPrint [01:49:25]line Счет N : (1)648153 [01:49:25]line ИНН: 02508201610067 [01:49:25]line Контрольно-Кассовый Чек [01:49:25]line ПРОДАЖА [01:49:25]line ТРК (МРК, ГНК) : 52 [01:49:25]line Товар: 2710124500 [01:49:25]line Аи-95-К-5 [01:49:25]line 6.770 * 73.90 [01:49:25]line = 500.30 [01:49:25]line НДС 12% НСП 1% [01:49:25]line > о реализуемом товаре [01:49:25]line ОКРУГЛЕНИЕ: -0.30 [01:49:25]line ИТОГО: 500.00 [01:49:25]line Внесено: 500.00 [01:49:25]line СДАЧА: 0.00 [01:49:25]line НСП 1% : 4.43 [01:49:25]line НДС 12% : 53.13 [01:49:25]line Наличными: 500.00 [01:49:25]line Безнал.: 0.00 [01:49:25]line Место: АЗС № 5 "Партнер Нефть" [01:49:25]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:49:25]line СНО: Общий режим [01:49:25]line Чек 6 15.09.2024 01:49 [01:49:25]line Смена: 507 ФФД: 1.0 [01:49:25]line ЗНМ: 03000000022 [01:49:25]line РНМ: 0000000000091423 [01:49:25]line Версия ККМ: 001 [01:49:25]line ФМ: 0000000000874692 [01:49:25]line ФД: 92558 [01:49:25]line ФПД: 234599549746524 [01:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T014929&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92558&fm=234599549746524&tin=02508201610067®Number=0000000000091423&sum=50000 [01:49:25]OFD Sender: Processing packet 92558 [packets to send 63, broken 62] [01:49:25]ProducePacketName [01:49:25]name=ofd_packets/00092558 [01:49:25]OFD Sender: To server: pG, [01:49:25]CommunicateWithHost lk.salyk.kg:30040 [01:49:25]ConnectInit lk.salyk.kg [01:49:25]written 0, free lines is 4095 [01:49:25]Connected sock=10 [01:49:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 2F 52 07 01 84 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 29 3D E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8E 69 01 00 35 04 06 00 D5 5D F6 D3 BD 5C 54 FA B1 1E 85 04 D5 58 [01:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D0 45 47 00 DA 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 34 36 39 32 10 04 04 00 8E 69 01 00 F4 03 04 00 A3 E5 E5 66 B6 04 01 00 00 B2 58 4B 6D 81 8A B7 1E [01:49:25]CommunicateWithHost err = 0 [01:49:25]CheckOFDResponse [01:49:25]1017 (14) - 77093643461234 [01:49:25]1041 (16) - 0000000000874692 [01:49:25]1040 (4) - 92558 [01:49:25]1012 (4) - 14.09.2024 19:36 [01:49:25]1206 (1) - 0 [01:49:25]OFD Sender: Remove packet 92558 [01:49:25]ProducePacketName [01:49:25]name=ofd_packets/00092558 [01:49:25]NVStorageDeleteData [01:49:26]Write to MH i2c: 01 00 00 D7 3F 16 [01:49:26]Write i2c OK [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: 01 [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: 01 07 00 [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: 01 07 00 D7 3F 00 00 00 00 00 00 0D 2A [01:49:26]RasterBufferAndPrint [01:49:26]line [01:49:26]line [01:49:26]line [01:49:26]line [01:49:26]line [01:49:26]written 0, free lines is 3334 [01:49:26]MH_Cut [01:49:26]Write to MH i2c: D1 01 00 DE 3F 01 EF [01:49:26]Write i2c OK [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: D1 [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: D1 01 00 [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: D1 01 00 DE 3F 00 EE [01:49:26]Write to MH i2c: 01 00 00 DF 3F 1E [01:49:26]Write i2c OK [01:49:26]MH_I2C_Read... [01:49:26]OFD Sender: No OFD packet to send [01:49:26]*** Cut start [01:49:26]*** Purtial cut [01:49:26]*** Stage 1: CUTSNS_PIN = 1 [01:49:28]Read from MH i2c: 01 [01:49:28]MH_I2C_Read... [01:49:28]*** Stop cut motor [01:49:28]*** Cut end [01:49:28]Read from MH i2c: 01 07 00 [01:49:28]MH_I2C_Read... [01:49:28]Read from MH i2c: 01 07 00 DF 3F 00 00 00 00 00 FF 0F 33 [01:49:28]process_action close_receipt done [01:49:28]requested_data is exist [01:49:28]produce_requested_data [01:49:28]requested_item fm.sn is exist - process it [01:49:28]wFMCommunicate request_size=4 [01:49:28]MH_SAM_APDU [01:49:28]CAPDU: 80 11 00 00 [01:49:28]Write to MH i2c: E2 08 00 E0 3F 80 11 00 00 00 00 00 00 99 [01:49:28]Write i2c OK [01:49:28]MH_I2C_Read... [01:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:49:28]Read from MH i2c: E2 [01:49:28]MH_I2C_Read... [01:49:28]Read from MH i2c: E2 17 00 [01:49:28]MH_I2C_Read... [01:49:28]Read from MH i2c: E2 17 00 E0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 F0 [01:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:49:28]wFMCommunicate OK [01:49:28]requested_item fd.num is exist - process it [01:49:28]SAM_PROTO_GetFieldsCounters [01:49:28]wFMCommunicate request_size=4 [01:49:28]MH_SAM_APDU [01:49:28]CAPDU: 80 13 00 00 [01:49:28]Write to MH i2c: E2 08 00 E1 3F 80 13 00 00 00 00 00 00 9C [01:49:28]Write i2c OK [01:49:28]MH_I2C_Read... [01:49:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:49:28]Read from MH i2c: E2 [01:49:28]MH_I2C_Read... [01:49:28]Read from MH i2c: E2 62 00 [01:49:28]MH_I2C_Read... [01:49:28]Read from MH i2c: E2 62 00 E1 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8E 69 01 00 0E 04 04 00 FB 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 C1 [01:49:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8E 69 01 00 0E 04 04 00 FB 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:49:28]wFMCommunicate OK [01:49:28]SAM_PROTO_GetFieldsCounters done [01:49:28]requested_item shift.num is exist - process it [01:49:28]requested_item shift.opened is exist - process it [01:49:28]req_shift_opened [01:49:28]FM_GetShiftState [01:49:28]SAM_PROTO_GetShiftState [01:49:28]wFMCommunicate request_size=4 [01:49:28]MH_SAM_APDU [01:49:28]CAPDU: 80 13 01 00 [01:49:28]Write to MH i2c: E2 08 00 E2 3F 80 13 01 00 00 00 00 00 9E [01:49:28]Write i2c OK [01:49:28]MH_I2C_Read... [01:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:29]Read from MH i2c: E2 [01:49:29]MH_I2C_Read... [01:49:29]Read from MH i2c: E2 0E 00 [01:49:29]MH_I2C_Read... [01:49:29]Read from MH i2c: E2 0E 00 E2 3F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 20 [01:49:29]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [01:49:29]wFMCommunicate OK [01:49:29]SAM_PROTO_GetShiftState done [01:49:29]FM_GetShiftState done [01:49:29]req_shift_opened done [01:49:29]requested_item shift.open_date is exist - process it [01:49:29]req_shift_open_date [01:49:29]req_shift_open_date done [01:49:29]produce_requested_data done [01:49:29]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92558,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [01:49:29]process_action_free close_receipt [01:49:29]json_value_free [01:49:29]json_value_free done [01:49:29]process_json_proto returns [01:49:29]Send response to host [01:49:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92558,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [01:49:29]free response buf [01:49:29]execute_script done [01:49:29]execute_script returns [01:49:29]free content buf [01:49:29]Sock 9.Close socket [01:49:29]Sock 9.Thread stoped [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:17]accept exits with 8 [01:51:17]New connection [01:51:17]New thread 3066801508 created [01:51:17]Thread 3066658148 joined [01:51:17]Waiting for new connection... [01:51:17] Sock 8.Parse request [01:51:17]Sock 8.Check first char [01:51:17]Sock 8.First char is OK [01:51:17]request: POST /json_proto HTTP/1.0 [01:51:17]Method: POST [01:51:17]URL: /json_proto [01:51:17]Method is POST - this is cgi request [01:51:17]url: /json_proto [01:51:17]query_string will be loaded in cgi processing [01:51:17]execute_cgi json_proto POST (null) [01:51:17]execute_cgi path=json_proto method=POST [01:51:17]POST find Content-Length [01:51:17]Host: 172.17.57.71:8080 [01:51:17]Content-Length: 805 [01:51:17]Content-Type: application/json [01:51:17] [01:51:17]POST finish read [01:51:17]Found Content-Length = 805 [01:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648154", "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" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:17]execute_script... [01:51: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)648154", "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" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:17]POST & json_proto [01:51:17]process_json_proto [01:51:17]json parsed OK: [01:51:17]protocol is kg_v1.0 [01:51:17]action value=close_receipt [01:51:17]process_action close_receipt [01:51:17]cmd_close_receipt [01:51:17]MH_GetDate [01:51:17]Write to MH i2c: F0 00 00 E3 3F 11 [01:51:17]Write i2c OK [01:51:17]MH_I2C_Read... [01:51:17]Read from MH i2c: F0 [01:51:17]MH_I2C_Read... [01:51:17]Read from MH i2c: F0 09 00 [01:51:17]MH_I2C_Read... [01:51:17]Read from MH i2c: F0 09 00 E3 3F 00 9B 3D E6 66 33 3A A4 66 B5 [01:51:17]GetLastDocTimeStamp 1726364969 [01:51:17]current date 1726365083 [01:51:17]FM_GetShiftState [01:51:17]SAM_PROTO_GetShiftState [01:51:17]wFMCommunicate request_size=4 [01:51:17]MH_SAM_APDU [01:51:17]CAPDU: 80 13 01 00 [01:51:17]Write to MH i2c: E2 08 00 E4 3F 80 13 01 00 00 00 00 00 A0 [01:51:17]Write i2c OK [01:51:17]MH_I2C_Read... [01:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:17]Read from MH i2c: E2 [01:51:17]MH_I2C_Read... [01:51:17]Read from MH i2c: E2 0E 00 [01:51:17]MH_I2C_Read... [01:51:17]Read from MH i2c: E2 0E 00 E4 3F 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 22 [01:51:17]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [01:51:17]wFMCommunicate OK [01:51:17]SAM_PROTO_GetShiftState done [01:51:17]FM_GetShiftState done [01:51:17]opened in 1726359809 [01:51:17]opened+sec_in_day 1726446209 [01:51:17]quantity*price = 40053 [01:51:17]sum+1 = 40055 [01:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.54 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.54 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 7 15.09.2024 01:51 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92559 ФПД: 66589062686457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T015123&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92559&fm=66589062686457&tin=02508201610067®Number=0000000000091423&sum=40054 [01:51:18]StoreToDocumentArchive [01:51:18]shift 507 fd 92559 [01:51:18]save to /storage/0507/doc_00092559 [01:51:18]save last doc name /storage/0507/doc_00092559 to /storage/kkm_last_doc_name [01:51:18]save OK [01:51:18]Clear old archive folders... [01:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:51:18]tlvbuf is 00FC87E0 [01:51:18]SAM_PROTO_ClearQueue [01:51:18]wFMCommunicate request_size=4 [01:51:18]MH_SAM_APDU [01:51:18]CAPDU: 80 09 00 00 [01:51:18]Write to MH i2c: E2 08 00 F1 3F 80 09 00 00 00 00 00 00 A2 [01:51:19]Write i2c OK [01:51:19]MH_I2C_Read... [01:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:19]Read from MH i2c: E2 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 03 00 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 03 00 F1 3F 00 90 00 A4 [01:51:19]RAPDU: 90 00 [01:51:19]wFMCommunicate OK [01:51:19]SAM_PROTO_ClearQueue done [01:51:19]KKMCreateOFDPacket [01:51:19]OFDProtocolAddRootSTLVToBuf [01:51:19]FM_MakeSignedData [01:51:19]FM_MakeSignedData [01:51:19]SAM_PROTO_SignData [01:51:19]wFMCommunicate request_size=4 [01:51:19]MH_SAM_APDU [01:51:19]CAPDU: 80 0D 01 02 [01:51:19]Write to MH i2c: E2 08 00 F2 3F 80 0D 01 02 00 00 00 00 AA [01:51:19]Write i2c OK [01:51:19]MH_I2C_Read... [01:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:19]Read from MH i2c: E2 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 03 00 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 03 00 F2 3F 00 90 00 A5 [01:51:19]RAPDU: 90 00 [01:51:19]wFMCommunicate OK [01:51:19]wFMCommunicate request_size=255 [01:51:19]MH_SAM_APDU [01:51:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9B 3D E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 69 01 00 35 04 06 00 3C [01:51:19]Write to MH i2c: E2 02 01 F3 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9B 3D E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 69 01 00 35 04 06 00 3C 00 00 93 [01:51:19]Write i2c OK [01:51:19]MH_I2C_Read... [01:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:19]Read from MH i2c: E2 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 03 00 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 03 00 F3 3F 00 90 00 A6 [01:51:19]RAPDU: 90 00 [01:51:19]wFMCommunicate OK [01:51:19]wFMCommunicate request_size=10 [01:51:19]MH_SAM_APDU [01:51:19]CAPDU: 80 0D 02 02 05 8F F9 6D 66 F9 [01:51:19]Write to MH i2c: E2 0D 00 F4 3F 80 0D 02 02 05 00 8F F9 6D 66 F9 00 00 0B [01:51:19]Write i2c OK [01:51:19]MH_I2C_Read... [01:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:19]Read from MH i2c: E2 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 03 00 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 03 00 F4 3F 00 90 00 A7 [01:51:19]RAPDU: 90 00 [01:51:19]wFMCommunicate OK [01:51:19]wFMCommunicate request_size=4 [01:51:19]MH_SAM_APDU [01:51:19]CAPDU: 80 0D 03 02 [01:51:19]Write to MH i2c: E2 08 00 F5 3F 80 0D 03 02 00 00 00 00 AF [01:51:19]Write i2c OK [01:51:19]MH_I2C_Read... [01:51:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:19]Read from MH i2c: E2 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 0B 00 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 0B 00 F5 3F 00 E1 E5 15 07 AB A7 84 E3 90 00 4B [01:51:19]RAPDU: E1 E5 15 07 AB A7 84 E3 90 00 [01:51:19]wFMCommunicate OK [01:51:19]SAM_PROTO_SignData done [01:51:19]FM_MakeSignedData done [01:51:19]CreateOFDProtocolMessage [01:51:19]wFMCommunicate request_size=4 [01:51:19]MH_SAM_APDU [01:51:19]CAPDU: 80 11 00 00 [01:51:19]Write to MH i2c: E2 08 00 F6 3F 80 11 00 00 00 00 00 00 AF [01:51:19]Write i2c OK [01:51:19]MH_I2C_Read... [01:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:19]Read from MH i2c: E2 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 17 00 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: E2 17 00 F6 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 06 [01:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:51:19]wFMCommunicate OK [01:51:19]CreateOFDProtocolMessage done [01:51:19]OFDSenderStorePacket 92559 [01:51:19]StoreOFDPacket docnum=92559 [01:51:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 75 A1 07 01 B3 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9B 3D E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 69 01 00 35 04 06 00 3C 8F F9 6D 66 F9 E1 E5 15 07 AB A7 84 E3 [01:51:19]CheckFolder [01:51:19]dirname=/storage/ofd_packets [01:51:19]CheckFolder done [01:51:19]ProducePacketName [01:51:19]name=ofd_packets/00092559 [01:51:19]NVStorageSaveData ofd_packets/00092559 [01:51:19]File name is /storage/ofd_packets/00092559 [01:51:19]Write 301 bytes [01:51:19]NVStorageSaveData done [01:51:19]OFDSenderStorePacket done [01:51:19]KKMCreateOFDPacket done [01:51:19]NVStorageSaveData kkm_last_timestamp [01:51:19]File name is /storage/kkm_last_timestamp [01:51:19]Write 4 bytes [01:51:19]NVStorageSaveData done [01:51:19]ExternCall_PrintAddStr [01:51:19]wPrintStart [01:51:19]Write to MH i2c: 01 00 00 F7 3F 36 [01:51:19]Write i2c OK [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: 01 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: 01 07 00 [01:51:19]MH_I2C_Read... [01:51:19]Read from MH i2c: 01 07 00 F7 3F 00 00 00 00 00 FF 0F 4B [01:51:19]RasterBufferAndPrint [01:51:19]line Счет N : (1)648154 [01:51:19]line ИНН: 02508201610067 [01:51:19]line Контрольно-Кассовый Чек [01:51:19]line ПРОДАЖА [01:51:19]line ТРК (МРК, ГНК) : 52 [01:51:19]line Товар: 2710124500 [01:51:19]line Аи-95-К-5 [01:51:19]line 5.420 * 73.90 [01:51:19]line = 400.54 [01:51:19]line НДС 12% НСП 1% [01:51:19]line > о реализуемом товаре [01:51:19]line ИТОГО: 400.54 [01:51:19]line НСП 1% : 3.54 [01:51:19]line НДС 12% : 42.53 [01:51:19]line Наличными: 0.00 [01:51:19]line Безнал.: 400.54 [01:51:19]line Место: АЗС № 5 "Партнер Нефть" [01:51:19]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [01:51:19]line СНО: Общий режим [01:51:19]line Чек 7 15.09.2024 01:51 [01:51:19]line Смена: 507 ФФД: 1.0 [01:51:19]line ЗНМ: 03000000022 [01:51:19]line РНМ: 0000000000091423 [01:51:19]line Версия ККМ: 001 [01:51:19]line Платежная система: О! деньги [01:51:19]line ФМ: 0000000000874692 [01:51:19]line ФД: 92559 [01:51:19]line ФПД: 66589062686457 [01:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T015123&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92559&fm=66589062686457&tin=02508201610067®Number=0000000000091423&sum=40054 [01:51:19]OFD Sender: Processing packet 92559 [packets to send 63, broken 62] [01:51:19]ProducePacketName [01:51:19]name=ofd_packets/00092559 [01:51:19]OFD Sender: To server: pG, [01:51:19]CommunicateWithHost lk.salyk.kg:30040 [01:51:19]ConnectInit lk.salyk.kg [01:51:19]written 0, free lines is 4095 [01:51:19]Connected sock=10 [01:51:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0F 01 00 00 75 A1 07 01 B3 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9B 3D E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 69 01 00 35 04 06 00 3C 8F F9 6D 66 F9 E1 E5 15 07 AB A7 84 E3 [01:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 C5 D4 47 00 96 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 8F 69 01 00 F4 03 04 00 15 E6 E5 66 B6 04 01 00 00 1A DD A7 7D F5 41 1C 07 [01:51:20]CommunicateWithHost err = 0 [01:51:20]CheckOFDResponse [01:51:20]1017 (14) - 77093643461234 [01:51:20]1041 (16) - 0000000000874692 [01:51:20]1040 (4) - 92559 [01:51:20]1012 (4) - 14.09.2024 19:37 [01:51:20]1206 (1) - 0 [01:51:20]OFD Sender: Remove packet 92559 [01:51:20]ProducePacketName [01:51:20]name=ofd_packets/00092559 [01:51:20]NVStorageDeleteData [01:51:20]Write to MH i2c: 01 00 00 21 40 61 [01:51:20]Write i2c OK [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: 01 [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: 01 07 00 [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: 01 07 00 21 40 00 00 00 00 00 08 0D 7D [01:51:20]RasterBufferAndPrint [01:51:20]line [01:51:20]line [01:51:20]line [01:51:20]line [01:51:20]line [01:51:20]written 0, free lines is 3343 [01:51:20]MH_Cut [01:51:20]Write to MH i2c: D1 01 00 28 40 01 3A [01:51:20]Write i2c OK [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: D1 [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: D1 01 00 [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: D1 01 00 28 40 00 39 [01:51:20]Write to MH i2c: 01 00 00 29 40 69 [01:51:20]Write i2c OK [01:51:20]MH_I2C_Read... [01:51:20]OFD Sender: No OFD packet to send [01:51:20]*** Cut start [01:51:20]*** Purtial cut [01:51:20]*** Stage 1: CUTSNS_PIN = 1 [01:51:22]Read from MH i2c: 01 [01:51:22]MH_I2C_Read... [01:51:22]*** Stop cut motor [01:51:22]*** Cut end [01:51:22]Read from MH i2c: 01 07 00 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: 01 07 00 29 40 00 00 00 00 00 FF 0F 7E [01:51:22]process_action close_receipt done [01:51:22]requested_data is exist [01:51:22]produce_requested_data [01:51:22]requested_item fm.sn is exist - process it [01:51:22]wFMCommunicate request_size=4 [01:51:22]MH_SAM_APDU [01:51:22]CAPDU: 80 11 00 00 [01:51:22]Write to MH i2c: E2 08 00 2A 40 80 11 00 00 00 00 00 00 E4 [01:51:22]Write i2c OK [01:51:22]MH_I2C_Read... [01:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:23]Read from MH i2c: E2 [01:51:23]MH_I2C_Read... [01:51:23]Read from MH i2c: E2 17 00 [01:51:23]MH_I2C_Read... [01:51:23]Read from MH i2c: E2 17 00 2A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 3B [01:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [01:51:23]wFMCommunicate OK [01:51:23]requested_item fd.num is exist - process it [01:51:23]SAM_PROTO_GetFieldsCounters [01:51:23]wFMCommunicate request_size=4 [01:51:23]MH_SAM_APDU [01:51:23]CAPDU: 80 13 00 00 [01:51:23]Write to MH i2c: E2 08 00 2B 40 80 13 00 00 00 00 00 00 E7 [01:51:23]Write i2c OK [01:51:23]MH_I2C_Read... [01:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:23]Read from MH i2c: E2 [01:51:23]MH_I2C_Read... [01:51:23]Read from MH i2c: E2 62 00 [01:51:23]MH_I2C_Read... [01:51:23]Read from MH i2c: E2 62 00 2B 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8F 69 01 00 0E 04 04 00 FB 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 10 [01:51:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 8F 69 01 00 0E 04 04 00 FB 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 [01:51:23]wFMCommunicate OK [01:51:23]SAM_PROTO_GetFieldsCounters done [01:51:23]requested_item shift.num is exist - process it [01:51:23]requested_item shift.opened is exist - process it [01:51:23]req_shift_opened [01:51:23]FM_GetShiftState [01:51:23]SAM_PROTO_GetShiftState [01:51:23]wFMCommunicate request_size=4 [01:51:23]MH_SAM_APDU [01:51:23]CAPDU: 80 13 01 00 [01:51:23]Write to MH i2c: E2 08 00 2C 40 80 13 01 00 00 00 00 00 E9 [01:51:23]Write i2c OK [01:51:23]MH_I2C_Read... [01:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:23]Read from MH i2c: E2 [01:51:23]MH_I2C_Read... [01:51:23]Read from MH i2c: E2 0E 00 [01:51:23]MH_I2C_Read... [01:51:23]Read from MH i2c: E2 0E 00 2C 40 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 6B [01:51:23]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [01:51:23]wFMCommunicate OK [01:51:23]SAM_PROTO_GetShiftState done [01:51:23]FM_GetShiftState done [01:51:23]req_shift_opened done [01:51:23]requested_item shift.open_date is exist - process it [01:51:23]req_shift_open_date [01:51:23]req_shift_open_date done [01:51:23]produce_requested_data done [01:51:23]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92559,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [01:51:23]process_action_free close_receipt [01:51:23]json_value_free [01:51:23]json_value_free done [01:51:23]process_json_proto returns [01:51:23]Send response to host [01:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92559,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [01:51:23]free response buf [01:51:23]execute_script done [01:51:23]execute_script returns [01:51:23]free content buf [01:51:23]Sock 8.Close socket [01:51:23]Sock 8.Thread stoped [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14: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:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:19:58]accept exits with 9 [02:19:58]New connection [02:19:58]New thread 3066658148 created [02:19:58]Thread 3066801508 joined [02:19:58]Waiting for new connection... [02:19:58] Sock 9.Parse request [02:19:58]Sock 9.Check first char [02:19:58]Sock 9.First char is OK [02:19:58]request: POST /json_proto HTTP/1.0 [02:19:58]Method: POST [02:19:58]URL: /json_proto [02:19:58]Method is POST - this is cgi request [02:19:58]url: /json_proto [02:19:58]query_string will be loaded in cgi processing [02:19:58]execute_cgi json_proto POST (null) [02:19:58]execute_cgi path=json_proto method=POST [02:19:58]POST find Content-Length [02:19:58]Host: 172.17.57.71:8080 [02:19:58]Content-Length: 809 [02:19:58]Content-Type: application/json [02:19:58] [02:19:58]POST finish read [02:19:58]Found Content-Length = 809 [02:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)648162", "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" : 36.90, "quantity" : 19.520, "sum" : 720.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 720.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:58]execute_script... [02:19: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)648162", "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" : 36.90, "quantity" : 19.520, "sum" : 720.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 720.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:58]POST & json_proto [02:19:58]process_json_proto [02:19:58]json parsed OK: [02:19:58]protocol is kg_v1.0 [02:19:58]action value=close_receipt [02:19:58]process_action close_receipt [02:19:58]cmd_close_receipt [02:19:58]MH_GetDate [02:19:58]Write to MH i2c: F0 00 00 2D 40 5C [02:19:58]Write i2c OK [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: F0 [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: F0 09 00 [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: F0 09 00 2D 40 00 54 44 E6 66 33 3A A4 66 C0 [02:19:58]GetLastDocTimeStamp 1726365083 [02:19:58]current date 1726366804 [02:19:58]FM_GetShiftState [02:19:58]SAM_PROTO_GetShiftState [02:19:58]wFMCommunicate request_size=4 [02:19:58]MH_SAM_APDU [02:19:58]CAPDU: 80 13 01 00 [02:19:58]Write to MH i2c: E2 08 00 2E 40 80 13 01 00 00 00 00 00 EB [02:19:58]Write i2c OK [02:19:58]MH_I2C_Read... [02:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:58]Read from MH i2c: E2 [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: E2 0E 00 [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: E2 0E 00 2E 40 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 6D [02:19:58]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [02:19:58]wFMCommunicate OK [02:19:58]SAM_PROTO_GetShiftState done [02:19:58]FM_GetShiftState done [02:19:58]opened in 1726359809 [02:19:58]opened+sec_in_day 1726446209 [02:19:58]quantity*price = 72028 [02:19:58]sum+1 = 72030 [02:19:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 720.29 НСП 1% : 6.37 НДС 12% : 76.49 Наличными: 0.00 Безнал.: 720.29 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 8 15.09.2024 02:20 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874692 ФД: 92560 ФПД: 86393241415492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T022004&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92560&fm=86393241415492&tin=02508201610067®Number=0000000000091423&sum=72029 [02:19:59]StoreToDocumentArchive [02:19:59]shift 507 fd 92560 [02:19:59]save to /storage/0507/doc_00092560 [02:19:59]save last doc name /storage/0507/doc_00092560 to /storage/kkm_last_doc_name [02:19:59]save OK [02:19:59]Clear old archive folders... [02:19:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:19:59]tlvbuf is 010B4D20 [02:19:59]SAM_PROTO_ClearQueue [02:19:59]wFMCommunicate request_size=4 [02:19:59]MH_SAM_APDU [02:19:59]CAPDU: 80 09 00 00 [02:19:59]Write to MH i2c: E2 08 00 3B 40 80 09 00 00 00 00 00 00 ED [02:19:59]Write i2c OK [02:19:59]MH_I2C_Read... [02:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:59]Read from MH i2c: E2 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 03 00 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 03 00 3B 40 00 90 00 EF [02:19:59]RAPDU: 90 00 [02:19:59]wFMCommunicate OK [02:19:59]SAM_PROTO_ClearQueue done [02:19:59]KKMCreateOFDPacket [02:19:59]OFDProtocolAddRootSTLVToBuf [02:19:59]FM_MakeSignedData [02:19:59]FM_MakeSignedData [02:19:59]SAM_PROTO_SignData [02:19:59]wFMCommunicate request_size=4 [02:19:59]MH_SAM_APDU [02:19:59]CAPDU: 80 0D 01 02 [02:19:59]Write to MH i2c: E2 08 00 3C 40 80 0D 01 02 00 00 00 00 F5 [02:19:59]Write i2c OK [02:19:59]MH_I2C_Read... [02:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:59]Read from MH i2c: E2 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 03 00 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 03 00 3C 40 00 90 00 F0 [02:19:59]RAPDU: 90 00 [02:19:59]wFMCommunicate OK [02:19:59]wFMCommunicate request_size=255 [02:19:59]MH_SAM_APDU [02:19:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 40 4C 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 5D 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 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 E1 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 54 44 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 90 69 01 00 35 04 06 00 4E 92 [02:19:59]Write to MH i2c: E2 02 01 3D 40 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 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 40 4C 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 5D 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 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 E1 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 54 44 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 90 69 01 00 35 04 06 00 4E 92 00 00 4C [02:19:59]Write i2c OK [02:19:59]MH_I2C_Read... [02:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:59]Read from MH i2c: E2 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 03 00 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 03 00 3D 40 00 90 00 F1 [02:19:59]RAPDU: 90 00 [02:19:59]wFMCommunicate OK [02:19:59]wFMCommunicate request_size=9 [02:19:59]MH_SAM_APDU [02:19:59]CAPDU: 80 0D 02 02 04 FE 77 2F 44 [02:19:59]Write to MH i2c: E2 0C 00 3E 40 80 0D 02 02 04 00 FE 77 2F 44 00 00 E8 [02:19:59]Write i2c OK [02:19:59]MH_I2C_Read... [02:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:59]Read from MH i2c: E2 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 03 00 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 03 00 3E 40 00 90 00 F2 [02:19:59]RAPDU: 90 00 [02:19:59]wFMCommunicate OK [02:19:59]wFMCommunicate request_size=4 [02:19:59]MH_SAM_APDU [02:19:59]CAPDU: 80 0D 03 02 [02:19:59]Write to MH i2c: E2 08 00 3F 40 80 0D 03 02 00 00 00 00 FA [02:19:59]Write i2c OK [02:19:59]MH_I2C_Read... [02:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:59]Read from MH i2c: E2 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 0B 00 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 0B 00 3F 40 00 7B 4B D2 E2 7B AA 04 D2 90 00 70 [02:19:59]RAPDU: 7B 4B D2 E2 7B AA 04 D2 90 00 [02:19:59]wFMCommunicate OK [02:19:59]SAM_PROTO_SignData done [02:19:59]FM_MakeSignedData done [02:19:59]CreateOFDProtocolMessage [02:19:59]wFMCommunicate request_size=4 [02:19:59]MH_SAM_APDU [02:19:59]CAPDU: 80 11 00 00 [02:19:59]Write to MH i2c: E2 08 00 40 40 80 11 00 00 00 00 00 00 FA [02:19:59]Write i2c OK [02:19:59]MH_I2C_Read... [02:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:59]Read from MH i2c: E2 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 17 00 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: E2 17 00 40 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 51 [02:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:19:59]wFMCommunicate OK [02:19:59]CreateOFDProtocolMessage done [02:19:59]OFDSenderStorePacket 92560 [02:19:59]StoreOFDPacket docnum=92560 [02:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 1B CB 06 01 27 38 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 40 4C 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 5D 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 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 E1 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 54 44 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 90 69 01 00 35 04 06 00 4E 92 FE 77 2F 44 7B 4B D2 E2 7B AA 04 D2 [02:19:59]CheckFolder [02:19:59]dirname=/storage/ofd_packets [02:19:59]CheckFolder done [02:19:59]ProducePacketName [02:19:59]name=ofd_packets/00092560 [02:19:59]NVStorageSaveData ofd_packets/00092560 [02:19:59]File name is /storage/ofd_packets/00092560 [02:19:59]Write 300 bytes [02:19:59]NVStorageSaveData done [02:19:59]OFDSenderStorePacket done [02:19:59]KKMCreateOFDPacket done [02:19:59]NVStorageSaveData kkm_last_timestamp [02:19:59]File name is /storage/kkm_last_timestamp [02:19:59]Write 4 bytes [02:19:59]NVStorageSaveData done [02:19:59]ExternCall_PrintAddStr [02:19:59]wPrintStart [02:19:59]Write to MH i2c: 01 00 00 41 40 81 [02:19:59]Write i2c OK [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: 01 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: 01 07 00 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: 01 07 00 41 40 00 00 00 00 00 FF 0F 96 [02:19:59]RasterBufferAndPrint [02:19:59]line Счет N : (1)648162 [02:19:59]line ИНН: 02508201610067 [02:19:59]line Контрольно-Кассовый Чек [02:19:59]line ПРОДАЖА [02:19:59]line ТРК (МРК, ГНК) : 71 [02:19:59]line Товар: 2711190000 [02:19:59]line ГАЗ-К-5 [02:19:59]line 19.520 * 36.90 [02:19:59]line = 720.29 [02:19:59]line НДС 12% НСП 1% [02:19:59]line > о реализуемом товаре [02:19:59]line ИТОГО: 720.29 [02:19:59]line НСП 1% : 6.37 [02:19:59]line НДС 12% : 76.49 [02:19:59]line Наличными: 0.00 [02:19:59]line Безнал.: 720.29 [02:19:59]line Место: АЗС № 5 "Партнер Нефть" [02:19:59]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:19:59]line СНО: Общий режим [02:19:59]line Чек 8 15.09.2024 02:20 [02:19:59]line Смена: 507 ФФД: 1.0 [02:19:59]line ЗНМ: 03000000022 [02:19:59]line РНМ: 0000000000091423 [02:19:59]line Версия ККМ: 001 [02:19:59]line Платежная система: О! деньги [02:19:59]line ФМ: 0000000000874692 [02:19:59]line ФД: 92560 [02:19:59]line ФПД: 86393241415492 [02:19:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T022004&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92560&fm=86393241415492&tin=02508201610067®Number=0000000000091423&sum=72029 [02:19:59]written 0, free lines is 4095 [02:19:59]OFD Sender: Processing packet 92560 [packets to send 63, broken 62] [02:19:59]ProducePacketName [02:19:59]name=ofd_packets/00092560 [02:19:59]OFD Sender: To server: pG, [02:19:59]CommunicateWithHost lk.salyk.kg:30040 [02:19:59]ConnectInit lk.salyk.kg [02:19:59]Connected sock=8 [02:19:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0E 01 00 00 1B CB 06 01 27 38 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 40 4C 00 00 00 00 00 37 04 06 00 6A 0E 00 00 00 00 13 04 06 00 5D 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 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 E1 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 54 44 E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 90 69 01 00 35 04 06 00 4E 92 FE 77 2F 44 7B 4B D2 E2 7B AA 04 D2 [02:20:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 4D 1E 47 00 87 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 90 69 01 00 F4 03 04 00 CD EC E5 66 B6 04 01 00 00 2B 42 8F 1A AF 55 E8 95 [02:20:00]CommunicateWithHost err = 0 [02:20:00]CheckOFDResponse [02:20:00]1017 (14) - 77093643461234 [02:20:00]1041 (16) - 0000000000874692 [02:20:00]1040 (4) - 92560 [02:20:00]1012 (4) - 14.09.2024 20:06 [02:20:00]1206 (1) - 0 [02:20:00]OFD Sender: Remove packet 92560 [02:20:00]ProducePacketName [02:20:00]name=ofd_packets/00092560 [02:20:00]NVStorageDeleteData [02:20:00]Write to MH i2c: 01 00 00 6B 40 AB [02:20:00]Write i2c OK [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: 01 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: 01 07 00 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: 01 07 00 6B 40 00 00 00 00 00 14 0D D3 [02:20:00]RasterBufferAndPrint [02:20:00]line [02:20:00]line [02:20:00]line [02:20:00]line [02:20:00]line [02:20:00]written 0, free lines is 3356 [02:20:00]MH_Cut [02:20:00]Write to MH i2c: D1 01 00 72 40 01 84 [02:20:00]Write i2c OK [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: D1 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: D1 01 00 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: D1 01 00 72 40 00 83 [02:20:00]Write to MH i2c: 01 00 00 73 40 B3 [02:20:00]Write i2c OK [02:20:00]MH_I2C_Read... [02:20:00]OFD Sender: No OFD packet to send [02:20:00]*** Cut start [02:20:00]*** Purtial cut [02:20:00]*** Stage 1: CUTSNS_PIN = 1 [02:20:02]Read from MH i2c: 01 [02:20:02]MH_I2C_Read... [02:20:02]*** Stop cut motor [02:20:02]*** Cut end [02:20:02]Read from MH i2c: 01 07 00 [02:20:02]MH_I2C_Read... [02:20:02]Read from MH i2c: 01 07 00 73 40 00 00 00 00 00 FF 0F C8 [02:20:02]process_action close_receipt done [02:20:02]requested_data is exist [02:20:02]produce_requested_data [02:20:02]requested_item fm.sn is exist - process it [02:20:02]wFMCommunicate request_size=4 [02:20:02]MH_SAM_APDU [02:20:02]CAPDU: 80 11 00 00 [02:20:02]Write to MH i2c: E2 08 00 74 40 80 11 00 00 00 00 00 00 2E [02:20:02]Write i2c OK [02:20:02]MH_I2C_Read... [02:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:02]Read from MH i2c: E2 [02:20:02]MH_I2C_Read... [02:20:02]Read from MH i2c: E2 17 00 [02:20:02]MH_I2C_Read... [02:20:02]Read from MH i2c: E2 17 00 74 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 85 [02:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:20:02]wFMCommunicate OK [02:20:02]requested_item fd.num is exist - process it [02:20:02]SAM_PROTO_GetFieldsCounters [02:20:02]wFMCommunicate request_size=4 [02:20:02]MH_SAM_APDU [02:20:02]CAPDU: 80 13 00 00 [02:20:02]Write to MH i2c: E2 08 00 75 40 80 13 00 00 00 00 00 00 31 [02:20:02]Write i2c OK [02:20:02]MH_I2C_Read... [02:20:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:20:03]Read from MH i2c: E2 [02:20:03]MH_I2C_Read... [02:20:03]Read from MH i2c: E2 62 00 [02:20:03]MH_I2C_Read... [02:20:03]Read from MH i2c: E2 62 00 75 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 90 69 01 00 0E 04 04 00 FB 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 5E [02:20:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 90 69 01 00 0E 04 04 00 FB 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:20:03]wFMCommunicate OK [02:20:03]SAM_PROTO_GetFieldsCounters done [02:20:03]requested_item shift.num is exist - process it [02:20:03]requested_item shift.opened is exist - process it [02:20:03]req_shift_opened [02:20:03]FM_GetShiftState [02:20:03]SAM_PROTO_GetShiftState [02:20:03]wFMCommunicate request_size=4 [02:20:03]MH_SAM_APDU [02:20:03]CAPDU: 80 13 01 00 [02:20:03]Write to MH i2c: E2 08 00 76 40 80 13 01 00 00 00 00 00 33 [02:20:03]Write i2c OK [02:20:03]MH_I2C_Read... [02:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:03]Read from MH i2c: E2 [02:20:03]MH_I2C_Read... [02:20:03]Read from MH i2c: E2 0E 00 [02:20:03]MH_I2C_Read... [02:20:03]Read from MH i2c: E2 0E 00 76 40 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B5 [02:20:03]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [02:20:03]wFMCommunicate OK [02:20:03]SAM_PROTO_GetShiftState done [02:20:03]FM_GetShiftState done [02:20:03]req_shift_opened done [02:20:03]requested_item shift.open_date is exist - process it [02:20:03]req_shift_open_date [02:20:03]req_shift_open_date done [02:20:03]produce_requested_data done [02:20:03]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92560,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [02:20:03]process_action_free close_receipt [02:20:03]json_value_free [02:20:03]json_value_free done [02:20:03]process_json_proto returns [02:20:03]Send response to host [02:20:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92560,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [02:20:03]free response buf [02:20:03]execute_script done [02:20:03]execute_script returns [02:20:03]free content buf [02:20:03]Sock 9.Close socket [02:20:03]Sock 9.Thread stoped [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]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:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:19]accept exits with 10 [02:54:19]New connection [02:54:19]New thread 3066801508 created [02:54:19]Thread 3066658148 joined [02:54:19]Waiting for new connection... [02:54:19] Sock 10.Parse request [02:54:19]Sock 10.Check first char [02:54:19]Sock 10.First char is OK [02:54:19]request: POST /json_proto HTTP/1.0 [02:54:19]Method: POST [02:54:19]URL: /json_proto [02:54:19]Method is POST - this is cgi request [02:54:19]url: /json_proto [02:54:19]query_string will be loaded in cgi processing [02:54:19]execute_cgi json_proto POST (null) [02:54:19]execute_cgi path=json_proto method=POST [02:54:19]POST find Content-Length [02:54:19]Host: 172.17.57.71:8080 [02:54:19]Content-Length: 957 [02:54:19]Content-Type: application/json [02:54:19] [02:54:19]POST finish read [02:54:19]Found Content-Length = 957 [02:54:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127452", "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": "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:19]execute_script... [02:54: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)127452", "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": "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:19]POST & json_proto [02:54:19]process_json_proto [02:54:19]json parsed OK: [02:54:19]protocol is kg_v1.0 [02:54:19]action value=close_receipt [02:54:19]process_action close_receipt [02:54:19]cmd_close_receipt [02:54:19]MH_GetDate [02:54:19]Write to MH i2c: F0 00 00 77 40 A6 [02:54:19]Write i2c OK [02:54:19]MH_I2C_Read... [02:54:19]Read from MH i2c: F0 [02:54:19]MH_I2C_Read... [02:54:19]Read from MH i2c: F0 09 00 [02:54:19]MH_I2C_Read... [02:54:19]Read from MH i2c: F0 09 00 77 40 00 61 4C E6 66 33 3A A4 66 1F [02:54:19]GetLastDocTimeStamp 1726366804 [02:54:19]current date 1726368865 [02:54:19]FM_GetShiftState [02:54:19]SAM_PROTO_GetShiftState [02:54:19]wFMCommunicate request_size=4 [02:54:19]MH_SAM_APDU [02:54:19]CAPDU: 80 13 01 00 [02:54:19]Write to MH i2c: E2 08 00 78 40 80 13 01 00 00 00 00 00 35 [02:54:19]Write i2c OK [02:54:19]MH_I2C_Read... [02:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:19]Read from MH i2c: E2 [02:54:19]MH_I2C_Read... [02:54:19]Read from MH i2c: E2 0E 00 [02:54:19]MH_I2C_Read... [02:54:19]Read from MH i2c: E2 0E 00 78 40 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 B7 [02:54:19]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [02:54:19]wFMCommunicate OK [02:54:19]SAM_PROTO_GetShiftState done [02:54:19]FM_GetShiftState done [02:54:19]opened in 1726359809 [02:54:19]opened+sec_in_day 1726446209 [02:54:19]quantity*price = 10000 [02:54:19]sum+1 = 10001 [02:54:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.23 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 9 15.09.2024 02:54 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92561 ФПД: 135255444352636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T025425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92561&fm=135255444352636&tin=02508201610067®Number=0000000000091423&sum=14000 0 [02:54:20]StoreToDocumentArchive [02:54:20]shift 507 fd 92561 [02:54:20]save to /storage/0507/doc_00092561 [02:54:20]save last doc name /storage/0507/doc_00092561 to /storage/kkm_last_doc_name [02:54:20]save OK [02:54:20]Clear old archive folders... [02:54:20]ProcessDocumentItem done err = 0, tmpTLVsize=405 [02:54:20]tlvbuf is 00FEBDC0 [02:54:20]SAM_PROTO_ClearQueue [02:54:20]wFMCommunicate request_size=4 [02:54:20]MH_SAM_APDU [02:54:20]CAPDU: 80 09 00 00 [02:54:20]Write to MH i2c: E2 08 00 85 40 80 09 00 00 00 00 00 00 37 [02:54:20]Write i2c OK [02:54:20]MH_I2C_Read... [02:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:20]Read from MH i2c: E2 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 03 00 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 03 00 85 40 00 90 00 39 [02:54:20]RAPDU: 90 00 [02:54:20]wFMCommunicate OK [02:54:20]SAM_PROTO_ClearQueue done [02:54:20]KKMCreateOFDPacket [02:54:20]OFDProtocolAddRootSTLVToBuf [02:54:20]FM_MakeSignedData [02:54:20]FM_MakeSignedData [02:54:20]SAM_PROTO_SignData [02:54:20]wFMCommunicate request_size=4 [02:54:20]MH_SAM_APDU [02:54:20]CAPDU: 80 0D 01 02 [02:54:20]Write to MH i2c: E2 08 00 86 40 80 0D 01 02 00 00 00 00 3F [02:54:20]Write i2c OK [02:54:20]MH_I2C_Read... [02:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:20]Read from MH i2c: E2 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 03 00 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 03 00 86 40 00 90 00 3A [02:54:20]RAPDU: 90 00 [02:54:20]wFMCommunicate OK [02:54:20]wFMCommunicate request_size=255 [02:54:20]MH_SAM_APDU [02:54:20]CAPDU: 80 0D 02 02 FA 03 00 95 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 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 B0 36 [02:54:20]Write to MH i2c: E2 02 01 87 40 80 0D 02 02 FA 00 03 00 95 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 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 B0 36 00 00 1F [02:54:20]Write i2c OK [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 [02:54:20]MH_I2C_Read... [02:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:20]Read from MH i2c: E2 03 00 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 03 00 87 40 00 90 00 3B [02:54:20]RAPDU: 90 00 [02:54:20]wFMCommunicate OK [02:54:20]wFMCommunicate request_size=164 [02:54:20]MH_SAM_APDU [02:54:20]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 7B 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 09 00 00 00 F4 03 04 00 61 4C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 69 01 00 35 04 06 00 7B 03 9C B6 EE 7C [02:54:20]Write to MH i2c: E2 A7 00 88 40 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 7B 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 09 00 00 00 F4 03 04 00 61 4C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 69 01 00 35 04 06 00 7B 03 9C B6 EE 7C 00 00 23 [02:54:20]Write i2c OK [02:54:20]MH_I2C_Read... [02:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:20]Read from MH i2c: E2 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 03 00 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 03 00 88 40 00 90 00 3C [02:54:20]RAPDU: 90 00 [02:54:20]wFMCommunicate OK [02:54:20]wFMCommunicate request_size=4 [02:54:20]MH_SAM_APDU [02:54:20]CAPDU: 80 0D 03 02 [02:54:20]Write to MH i2c: E2 08 00 89 40 80 0D 03 02 00 00 00 00 44 [02:54:20]Write i2c OK [02:54:20]MH_I2C_Read... [02:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:20]Read from MH i2c: E2 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 0B 00 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 0B 00 89 40 00 4E 43 65 90 13 F0 A2 F3 90 00 63 [02:54:20]RAPDU: 4E 43 65 90 13 F0 A2 F3 90 00 [02:54:20]wFMCommunicate OK [02:54:20]SAM_PROTO_SignData done [02:54:20]FM_MakeSignedData done [02:54:20]CreateOFDProtocolMessage [02:54:20]wFMCommunicate request_size=4 [02:54:20]MH_SAM_APDU [02:54:20]CAPDU: 80 11 00 00 [02:54:20]Write to MH i2c: E2 08 00 8A 40 80 11 00 00 00 00 00 00 44 [02:54:20]Write i2c OK [02:54:20]MH_I2C_Read... [02:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:20]Read from MH i2c: E2 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 17 00 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: E2 17 00 8A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 9B [02:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:54:20]wFMCommunicate OK [02:54:20]CreateOFDProtocolMessage done [02:54:20]OFDSenderStorePacket 92561 [02:54:20]StoreOFDPacket docnum=92561 [02:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A9 01 00 00 5B 43 A1 01 CE 98 5A 03 01 00 03 00 95 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 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 B0 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 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 09 00 00 00 F4 03 04 00 61 4C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 69 01 00 35 04 06 00 7B 03 9C B6 EE 7C 4E 43 65 90 13 F0 A2 F3 [02:54:20]CheckFolder [02:54:20]dirname=/storage/ofd_packets [02:54:20]CheckFolder done [02:54:20]ProducePacketName [02:54:20]name=ofd_packets/00092561 [02:54:20]NVStorageSaveData ofd_packets/00092561 [02:54:20]File name is /storage/ofd_packets/00092561 [02:54:20]Write 455 bytes [02:54:20]NVStorageSaveData done [02:54:20]OFDSenderStorePacket done [02:54:20]KKMCreateOFDPacket done [02:54:20]NVStorageSaveData kkm_last_timestamp [02:54:20]File name is /storage/kkm_last_timestamp [02:54:20]Write 4 bytes [02:54:20]NVStorageSaveData done [02:54:20]ExternCall_PrintAddStr [02:54:20]wPrintStart [02:54:20]Write to MH i2c: 01 00 00 8B 40 CB [02:54:20]Write i2c OK [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: 01 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: 01 07 00 [02:54:20]MH_I2C_Read... [02:54:20]Read from MH i2c: 01 07 00 8B 40 00 00 00 00 00 FF 0F E0 [02:54:20]RasterBufferAndPrint [02:54:20]line Счет N : (3)127452 [02:54:20]line ИНН: 02508201610067 [02:54:20]line Контрольно-Кассовый Чек [02:54:21]line ПРОДАЖА [02:54:21]line Товар: 5449000273680 [02:54:21]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [02:54:21]line 1.000 * 100.00 [02:54:21]line = 100.00 [02:54:21]line НДС 12% НСП 1% [02:54:21]line > о реализуемом товаре [02:54:21]line Товар: 4700000160211 [02:54:21]line Вода Легенда 0,5л [02:54:21]line 1.000 * 40.00 [02:54:21]line = 40.00 [02:54:21]line НДС 12% НСП 1% [02:54:21]line > о реализуемом товаре [02:54:21]line ИТОГО: 140.00 [02:54:21]line НСП 1% : 1.23 [02:54:21]line НДС 12% : 14.87 [02:54:21]line Наличными: 140.00 [02:54:21]line Безнал.: 0.00 [02:54:21]line Место: АЗС № 5 "Партнер Нефть" [02:54:21]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [02:54:21]line СНО: Общий режим [02:54:21]line Чек 9 15.09.2024 02:54 [02:54:21]line Смена: 507 ФФД: 1.0 [02:54:21]line ЗНМ: 03000000022 [02:54:21]line РНМ: 0000000000091423 [02:54:21]line Версия ККМ: 001 [02:54:21]line ФМ: 0000000000874692 [02:54:21]line ФД: 92561 [02:54:21]line ФПД: 135255444352636 [02:54:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T025425&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92561&fm=135255444352636&tin=02508201610067®Number=0000000000091423&sum=14000 [02:54:21]line 0 [02:54:21]OFD Sender: Processing packet 92561 [packets to send 63, broken 62] [02:54:21]ProducePacketName [02:54:21]name=ofd_packets/00092561 [02:54:21]OFD Sender: To server: pG, [02:54:21]CommunicateWithHost lk.salyk.kg:30040 [02:54:21]ConnectInit lk.salyk.kg [02:54:21]written 0, free lines is 4095 [02:54:21]Connected sock=9 [02:54:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 A9 01 00 00 5B 43 A1 01 CE 98 5A 03 01 00 03 00 95 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 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 B0 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 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 09 00 00 00 F4 03 04 00 61 4C E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 69 01 00 35 04 06 00 7B 03 9C B6 EE 7C 4E 43 65 90 13 F0 A2 F3 [02:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 D2 AA 47 00 0A 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 91 69 01 00 F4 03 04 00 DA F4 E5 66 B6 04 01 00 00 79 F3 44 71 FA 85 34 A9 [02:54:21]CommunicateWithHost err = 0 [02:54:21]CheckOFDResponse [02:54:21]1017 (14) - 77093643461234 [02:54:21]1041 (16) - 0000000000874692 [02:54:21]1040 (4) - 92561 [02:54:21]1012 (4) - 14.09.2024 20:40 [02:54:21]1206 (1) - 0 [02:54:21]OFD Sender: Remove packet 92561 [02:54:21]ProducePacketName [02:54:21]name=ofd_packets/00092561 [02:54:21]NVStorageDeleteData [02:54:21]Write to MH i2c: 01 00 00 BA 40 FA [02:54:21]Write i2c OK [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: 01 [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: 01 07 00 [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: 01 07 00 BA 40 00 00 00 00 00 B7 0C C4 [02:54:21]RasterBufferAndPrint [02:54:21]line [02:54:21]line [02:54:21]line [02:54:21]line [02:54:21]line [02:54:21]written 0, free lines is 3263 [02:54:21]MH_Cut [02:54:21]Write to MH i2c: D1 01 00 C1 40 01 D3 [02:54:21]Write i2c OK [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: D1 [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: D1 01 00 [02:54:21]MH_I2C_Read... [02:54:21]Read from MH i2c: D1 01 00 C1 40 00 D2 [02:54:21]Write to MH i2c: 01 00 00 C2 40 02 [02:54:21]Write i2c OK [02:54:21]MH_I2C_Read... [02:54:21]OFD Sender: No OFD packet to send [02:54:22]*** Cut start [02:54:22]*** Purtial cut [02:54:22]*** Stage 1: CUTSNS_PIN = 1 [02:54:24]Read from MH i2c: 01 [02:54:24]MH_I2C_Read... [02:54:24]*** Stop cut motor [02:54:24]*** Cut end [02:54:24]Read from MH i2c: 01 07 00 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: 01 07 00 C2 40 00 00 00 00 00 FF 0F 17 [02:54:24]process_action close_receipt done [02:54:24]requested_data is exist [02:54:24]produce_requested_data [02:54:24]requested_item fm.sn is exist - process it [02:54:24]wFMCommunicate request_size=4 [02:54:24]MH_SAM_APDU [02:54:24]CAPDU: 80 11 00 00 [02:54:24]Write to MH i2c: E2 08 00 C3 40 80 11 00 00 00 00 00 00 7D [02:54:24]Write i2c OK [02:54:24]MH_I2C_Read... [02:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:24]Read from MH i2c: E2 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: E2 17 00 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: E2 17 00 C3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 D4 [02:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [02:54:24]wFMCommunicate OK [02:54:24]requested_item fd.num is exist - process it [02:54:24]SAM_PROTO_GetFieldsCounters [02:54:24]wFMCommunicate request_size=4 [02:54:24]MH_SAM_APDU [02:54:24]CAPDU: 80 13 00 00 [02:54:24]Write to MH i2c: E2 08 00 C4 40 80 13 00 00 00 00 00 00 80 [02:54:24]Write i2c OK [02:54:24]MH_I2C_Read... [02:54:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:54:24]Read from MH i2c: E2 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: E2 62 00 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: E2 62 00 C4 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 91 69 01 00 0E 04 04 00 FB 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 B1 [02:54:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 91 69 01 00 0E 04 04 00 FB 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:54:24]wFMCommunicate OK [02:54:24]SAM_PROTO_GetFieldsCounters done [02:54:24]requested_item shift.num is exist - process it [02:54:24]requested_item shift.opened is exist - process it [02:54:24]req_shift_opened [02:54:24]FM_GetShiftState [02:54:24]SAM_PROTO_GetShiftState [02:54:24]wFMCommunicate request_size=4 [02:54:24]MH_SAM_APDU [02:54:24]CAPDU: 80 13 01 00 [02:54:24]Write to MH i2c: E2 08 00 C5 40 80 13 01 00 00 00 00 00 82 [02:54:24]Write i2c OK [02:54:24]MH_I2C_Read... [02:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:24]Read from MH i2c: E2 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: E2 0E 00 [02:54:24]MH_I2C_Read... [02:54:24]Read from MH i2c: E2 0E 00 C5 40 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 04 [02:54:24]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [02:54:24]wFMCommunicate OK [02:54:24]SAM_PROTO_GetShiftState done [02:54:24]FM_GetShiftState done [02:54:24]req_shift_opened done [02:54:24]requested_item shift.open_date is exist - process it [02:54:24]req_shift_open_date [02:54:24]req_shift_open_date done [02:54:24]produce_requested_data done [02:54:24]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92561,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [02:54:24]process_action_free close_receipt [02:54:24]json_value_free [02:54:24]json_value_free done [02:54:24]process_json_proto returns [02:54:24]Send response to host [02:54:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92561,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [02:54:24]free response buf [02:54:24]execute_script done [02:54:24]execute_script returns [02:54:24]free content buf [02:54:24]Sock 10.Close socket [02:54:24]Sock 10.Thread stoped [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:30]accept exits with 8 [03:07:30]New connection [03:07:30]New thread 3066658148 created [03:07:30]Thread 3066801508 joined [03:07:30]Waiting for new connection... [03:07:30] Sock 8.Parse request [03:07:30]Sock 8.Check first char [03:07:30]Sock 8.First char is OK [03:07:30]request: POST /json_proto HTTP/1.0 [03:07:30]Method: POST [03:07:30]URL: /json_proto [03:07:30]Method is POST - this is cgi request [03:07:30]url: /json_proto [03:07:30]query_string will be loaded in cgi processing [03:07:30]execute_cgi json_proto POST (null) [03:07:30]execute_cgi path=json_proto method=POST [03:07:30]POST find Content-Length [03:07:30]Host: 172.17.57.71:8080 [03:07:30]Content-Length: 891 [03:07:30]Content-Type: application/json [03:07:30] [03:07:30]POST finish read [03:07:30]Found Content-Length = 891 [03:07:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127453", "tax_sys" : 0, "items" : [ { "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": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.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" ] } } [03:07:30]execute_script... [03:07: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)127453", "tax_sys" : 0, "items" : [ { "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": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.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" ] } } [03:07:30]POST & json_proto [03:07:30]process_json_proto [03:07:30]json parsed OK: [03:07:30]protocol is kg_v1.0 [03:07:30]action value=close_receipt [03:07:30]process_action close_receipt [03:07:30]cmd_close_receipt [03:07:30]MH_GetDate [03:07:30]Write to MH i2c: F0 00 00 C6 40 F5 [03:07:30]Write i2c OK [03:07:30]MH_I2C_Read... [03:07:30]Read from MH i2c: F0 [03:07:30]MH_I2C_Read... [03:07:30]Read from MH i2c: F0 09 00 [03:07:30]MH_I2C_Read... [03:07:30]Read from MH i2c: F0 09 00 C6 40 00 78 4F E6 66 33 3A A4 66 88 [03:07:30]GetLastDocTimeStamp 1726368865 [03:07:30]current date 1726369656 [03:07:30]FM_GetShiftState [03:07:30]SAM_PROTO_GetShiftState [03:07:30]wFMCommunicate request_size=4 [03:07:30]MH_SAM_APDU [03:07:30]CAPDU: 80 13 01 00 [03:07:30]Write to MH i2c: E2 08 00 C7 40 80 13 01 00 00 00 00 00 84 [03:07:30]Write i2c OK [03:07:30]MH_I2C_Read... [03:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:30]Read from MH i2c: E2 [03:07:30]MH_I2C_Read... [03:07:30]Read from MH i2c: E2 0E 00 [03:07:30]MH_I2C_Read... [03:07:30]Read from MH i2c: E2 0E 00 C7 40 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 06 [03:07:30]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:07:30]wFMCommunicate OK [03:07:30]SAM_PROTO_GetShiftState done [03:07:30]FM_GetShiftState done [03:07:30]opened in 1726359809 [03:07:30]opened+sec_in_day 1726446209 [03:07:30]quantity*price = 13900 [03:07:30]sum+1 = 13901 [03:07:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154035 Напиток Lipton IceTea 0,5л перс 1.000 * 61.00 = 61.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 5 "Партнер Нефть" Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 СНО: Общий режим Чек 10 15.09.2024 03:07 Смена: 507 ФФД: 1.0 ЗНМ: 03000000022 РНМ: 0000000000091423 Версия ККМ: 001 ФМ: 0000000000874692 ФД: 92562 ФПД: 26543428382434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T030736&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92562&fm=26543428382434&tin=02508201610067®Number=0000000000091423&sum=20000 0 [03:07:31]StoreToDocumentArchive [03:07:31]shift 507 fd 92562 [03:07:31]save to /storage/0507/doc_00092562 [03:07:31]save last doc name /storage/0507/doc_00092562 to /storage/kkm_last_doc_name [03:07:31]save OK [03:07:31]Clear old archive folders... [03:07:31]ProcessDocumentItem done err = 0, tmpTLVsize=395 [03:07:31]tlvbuf is 00F92400 [03:07:31]SAM_PROTO_ClearQueue [03:07:31]wFMCommunicate request_size=4 [03:07:31]MH_SAM_APDU [03:07:31]CAPDU: 80 09 00 00 [03:07:31]Write to MH i2c: E2 08 00 D4 40 80 09 00 00 00 00 00 00 86 [03:07:31]Write i2c OK [03:07:31]MH_I2C_Read... [03:07:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:07:31]Read from MH i2c: E2 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 03 00 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 03 00 D4 40 00 90 00 88 [03:07:31]RAPDU: 90 00 [03:07:31]wFMCommunicate OK [03:07:31]SAM_PROTO_ClearQueue done [03:07:31]KKMCreateOFDPacket [03:07:31]OFDProtocolAddRootSTLVToBuf [03:07:31]FM_MakeSignedData [03:07:31]FM_MakeSignedData [03:07:31]SAM_PROTO_SignData [03:07:31]wFMCommunicate request_size=4 [03:07:31]MH_SAM_APDU [03:07:31]CAPDU: 80 0D 01 02 [03:07:31]Write to MH i2c: E2 08 00 D5 40 80 0D 01 02 00 00 00 00 8E [03:07:31]Write i2c OK [03:07:31]MH_I2C_Read... [03:07:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:07:31]Read from MH i2c: E2 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 03 00 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 03 00 D5 40 00 90 00 89 [03:07:31]RAPDU: 90 00 [03:07:31]wFMCommunicate OK [03:07:31]wFMCommunicate request_size=255 [03:07:31]MH_SAM_APDU [03:07:31]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 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 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 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 [03:07:31]Write to MH i2c: E2 02 01 D6 40 80 0D 02 02 FA 00 03 00 8B 01 1E 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 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 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 00 00 77 [03:07:31]Write i2c OK [03:07:31]MH_I2C_Read... [03:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:07:31]Read from MH i2c: E2 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 03 00 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 03 00 D6 40 00 90 00 8A [03:07:31]RAPDU: 90 00 [03:07:31]wFMCommunicate OK [03:07:31]wFMCommunicate request_size=154 [03:07:31]MH_SAM_APDU [03:07:31]CAPDU: 80 0D 02 02 95 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 0A 00 00 00 F4 03 04 00 78 4F E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 92 69 01 00 35 04 06 00 18 24 1F 9E AE E2 [03:07:31]Write to MH i2c: E2 9D 00 D7 40 80 0D 02 02 95 00 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 0A 00 00 00 F4 03 04 00 78 4F E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 92 69 01 00 35 04 06 00 18 24 1F 9E AE E2 00 00 01 [03:07:31]Write i2c OK [03:07:31]MH_I2C_Read... [03:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:07:31]Read from MH i2c: E2 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 03 00 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 03 00 D7 40 00 90 00 8B [03:07:31]RAPDU: 90 00 [03:07:31]wFMCommunicate OK [03:07:31]wFMCommunicate request_size=4 [03:07:31]MH_SAM_APDU [03:07:31]CAPDU: 80 0D 03 02 [03:07:31]Write to MH i2c: E2 08 00 D8 40 80 0D 03 02 00 00 00 00 93 [03:07:31]Write i2c OK [03:07:31]MH_I2C_Read... [03:07:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:07:31]Read from MH i2c: E2 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 0B 00 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 0B 00 D8 40 00 0A 58 8E 4B 4D B7 41 B6 90 00 CA [03:07:31]RAPDU: 0A 58 8E 4B 4D B7 41 B6 90 00 [03:07:31]wFMCommunicate OK [03:07:31]SAM_PROTO_SignData done [03:07:31]FM_MakeSignedData done [03:07:31]CreateOFDProtocolMessage [03:07:31]wFMCommunicate request_size=4 [03:07:31]MH_SAM_APDU [03:07:31]CAPDU: 80 11 00 00 [03:07:31]Write to MH i2c: E2 08 00 D9 40 80 11 00 00 00 00 00 00 93 [03:07:31]Write i2c OK [03:07:31]MH_I2C_Read... [03:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:31]Read from MH i2c: E2 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 17 00 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: E2 17 00 D9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 EA [03:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:07:31]wFMCommunicate OK [03:07:31]CreateOFDProtocolMessage done [03:07:31]OFDSenderStorePacket 92562 [03:07:31]StoreOFDPacket docnum=92562 [03:07:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9F 01 00 00 DB 00 97 01 E9 71 5A 03 01 00 03 00 8B 01 1E 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 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 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 0A 00 00 00 F4 03 04 00 78 4F E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 92 69 01 00 35 04 06 00 18 24 1F 9E AE E2 0A 58 8E 4B 4D B7 41 B6 [03:07:31]CheckFolder [03:07:31]dirname=/storage/ofd_packets [03:07:31]CheckFolder done [03:07:31]ProducePacketName [03:07:31]name=ofd_packets/00092562 [03:07:31]NVStorageSaveData ofd_packets/00092562 [03:07:31]File name is /storage/ofd_packets/00092562 [03:07:31]Write 445 bytes [03:07:31]NVStorageSaveData done [03:07:31]OFDSenderStorePacket done [03:07:31]KKMCreateOFDPacket done [03:07:31]NVStorageSaveData kkm_last_timestamp [03:07:31]File name is /storage/kkm_last_timestamp [03:07:31]Write 4 bytes [03:07:31]NVStorageSaveData done [03:07:31]ExternCall_PrintAddStr [03:07:31]wPrintStart [03:07:31]Write to MH i2c: 01 00 00 DA 40 1A [03:07:31]Write i2c OK [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: 01 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: 01 07 00 [03:07:31]MH_I2C_Read... [03:07:31]Read from MH i2c: 01 07 00 DA 40 00 00 00 00 00 FF 0F 2F [03:07:31]RasterBufferAndPrint [03:07:31]line Счет N : (3)127453 [03:07:31]line ИНН: 02508201610067 [03:07:31]line Контрольно-Кассовый Чек [03:07:31]line ПРОДАЖА [03:07:31]line Товар: 48741231 [03:07:32]line Сигареты Winston Super Slims Silver [03:07:32]line 1.000 * 139.00 [03:07:32]line = 139.00 [03:07:32]line НДС 12% НСП 1% [03:07:32]line > о реализуемом товаре [03:07:32]line Товар: 4870001154035 [03:07:32]line Напиток Lipton IceTea 0,5л перс [03:07:32]line 1.000 * 61.00 [03:07:32]line = 61.00 [03:07:32]line НДС 12% НСП 1% [03:07:32]line > о реализуемом товаре [03:07:32]line ИТОГО: 200.00 [03:07:32]line НСП 1% : 1.77 [03:07:32]line НДС 12% : 21.24 [03:07:32]line Наличными: 200.00 [03:07:32]line Безнал.: 0.00 [03:07:32]line Место: АЗС № 5 "Партнер Нефть" [03:07:32]line Адрес: 720001, с. Кок Жар, ул. Шабдан Баатыра 2/1, 42.802404, 74.648498 [03:07:32]line СНО: Общий режим [03:07:32]line Чек 10 15.09.2024 03:07 [03:07:32]line Смена: 507 ФФД: 1.0 [03:07:32]line ЗНМ: 03000000022 [03:07:32]line РНМ: 0000000000091423 [03:07:32]line Версия ККМ: 001 [03:07:32]line ФМ: 0000000000874692 [03:07:32]line ФД: 92562 [03:07:32]line ФПД: 26543428382434 [03:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240915T030736&type=1&operation_type=1&fn_number=0000000000874692&fd_number=92562&fm=26543428382434&tin=02508201610067®Number=0000000000091423&sum=20000 [03:07:32]line 0 [03:07:32]OFD Sender: Processing packet 92562 [packets to send 63, broken 62] [03:07:32]ProducePacketName [03:07:32]name=ofd_packets/00092562 [03:07:32]OFD Sender: To server: pG, [03:07:32]CommunicateWithHost lk.salyk.kg:30040 [03:07:32]ConnectInit lk.salyk.kg [03:07:32]written 0, free lines is 4095 [03:07:32]Connected sock=10 [03:07:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 9F 01 00 00 DB 00 97 01 E9 71 5A 03 01 00 03 00 8B 01 1E 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 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 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 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 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 0A 00 00 00 F4 03 04 00 78 4F E6 66 0E 04 04 00 FB 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 10 04 04 00 92 69 01 00 35 04 06 00 18 24 1F 9E AE E2 0A 58 8E 4B 4D B7 41 B6 [03:07:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 4F 00 00 00 FB AD 47 00 00 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 34 36 39 32 10 04 04 00 92 69 01 00 F4 03 04 00 F1 F7 E5 66 B6 04 01 00 00 D4 DE 58 AC 17 5D 77 AE [03:07:32]CommunicateWithHost err = 0 [03:07:32]CheckOFDResponse [03:07:32]1017 (14) - 77093643461234 [03:07:32]1041 (16) - 0000000000874692 [03:07:32]1040 (4) - 92562 [03:07:32]1012 (4) - 14.09.2024 20:54 [03:07:32]1206 (1) - 0 [03:07:32]OFD Sender: Remove packet 92562 [03:07:32]ProducePacketName [03:07:32]name=ofd_packets/00092562 [03:07:32]NVStorageDeleteData [03:07:32]Write to MH i2c: 01 00 00 0A 41 4B [03:07:32]Write i2c OK [03:07:32]MH_I2C_Read... [03:07:32]Read from MH i2c: 01 [03:07:32]MH_I2C_Read... [03:07:32]Read from MH i2c: 01 07 00 [03:07:32]MH_I2C_Read... [03:07:32]Read from MH i2c: 01 07 00 0A 41 00 00 00 00 00 BB 0C 19 [03:07:32]RasterBufferAndPrint [03:07:32]line [03:07:32]line [03:07:32]line [03:07:32]line [03:07:32]line [03:07:32]written 0, free lines is 3268 [03:07:32]MH_Cut [03:07:32]Write to MH i2c: D1 01 00 11 41 01 24 [03:07:32]Write i2c OK [03:07:32]MH_I2C_Read... [03:07:32]Read from MH i2c: D1 [03:07:32]MH_I2C_Read... [03:07:32]Read from MH i2c: D1 01 00 [03:07:32]MH_I2C_Read... [03:07:32]Read from MH i2c: D1 01 00 11 41 00 23 [03:07:32]Write to MH i2c: 01 00 00 12 41 53 [03:07:32]Write i2c OK [03:07:32]MH_I2C_Read... [03:07:32]OFD Sender: No OFD packet to send [03:07:33]*** Cut start [03:07:33]*** Purtial cut [03:07:33]*** Stage 1: CUTSNS_PIN = 1 [03:07:35]Read from MH i2c: 01 [03:07:35]MH_I2C_Read... [03:07:35]*** Stop cut motor [03:07:35]*** Cut end [03:07:35]Read from MH i2c: 01 07 00 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: 01 07 00 12 41 00 00 00 00 00 FF 0F 68 [03:07:35]process_action close_receipt done [03:07:35]requested_data is exist [03:07:35]produce_requested_data [03:07:35]requested_item fm.sn is exist - process it [03:07:35]wFMCommunicate request_size=4 [03:07:35]MH_SAM_APDU [03:07:35]CAPDU: 80 11 00 00 [03:07:35]Write to MH i2c: E2 08 00 13 41 80 11 00 00 00 00 00 00 CE [03:07:35]Write i2c OK [03:07:35]MH_I2C_Read... [03:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:35]Read from MH i2c: E2 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: E2 17 00 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: E2 17 00 13 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 25 [03:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 90 00 [03:07:35]wFMCommunicate OK [03:07:35]requested_item fd.num is exist - process it [03:07:35]SAM_PROTO_GetFieldsCounters [03:07:35]wFMCommunicate request_size=4 [03:07:35]MH_SAM_APDU [03:07:35]CAPDU: 80 13 00 00 [03:07:35]Write to MH i2c: E2 08 00 14 41 80 13 00 00 00 00 00 00 D1 [03:07:35]Write i2c OK [03:07:35]MH_I2C_Read... [03:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:07:35]Read from MH i2c: E2 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: E2 62 00 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: E2 62 00 14 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 92 69 01 00 0E 04 04 00 FB 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 06 [03:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 34 32 33 10 04 04 00 92 69 01 00 0E 04 04 00 FB 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 [03:07:35]wFMCommunicate OK [03:07:35]SAM_PROTO_GetFieldsCounters done [03:07:35]requested_item shift.num is exist - process it [03:07:35]requested_item shift.opened is exist - process it [03:07:35]req_shift_opened [03:07:35]FM_GetShiftState [03:07:35]SAM_PROTO_GetShiftState [03:07:35]wFMCommunicate request_size=4 [03:07:35]MH_SAM_APDU [03:07:35]CAPDU: 80 13 01 00 [03:07:35]Write to MH i2c: E2 08 00 15 41 80 13 01 00 00 00 00 00 D3 [03:07:35]Write i2c OK [03:07:35]MH_I2C_Read... [03:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:35]Read from MH i2c: E2 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: E2 0E 00 [03:07:35]MH_I2C_Read... [03:07:35]Read from MH i2c: E2 0E 00 15 41 00 09 00 01 01 29 E6 66 00 00 00 00 90 00 55 [03:07:35]RAPDU: 09 00 01 01 29 E6 66 00 00 00 00 90 00 [03:07:35]wFMCommunicate OK [03:07:35]SAM_PROTO_GetShiftState done [03:07:35]FM_GetShiftState done [03:07:35]req_shift_opened done [03:07:35]requested_item shift.open_date is exist - process it [03:07:35]req_shift_open_date [03:07:35]req_shift_open_date done [03:07:35]produce_requested_data done [03:07:35]produce_requested_data return {"fm.sn":"0000000000874692","fd.num":92562,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809} [03:07:35]process_action_free close_receipt [03:07:35]json_value_free [03:07:35]json_value_free done [03:07:35]process_json_proto returns [03:07:35]Send response to host [03:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874692","fd.num":92562,"shift.num":507,"shift.opened":1,"shift.open_date":1726359809}}} [03:07:35]free response buf [03:07:35]execute_script done [03:07:35]execute_script returns [03:07:35]free content buf [03:07:35]Sock 8.Close socket [03:07:35]Sock 8.Thread stoped [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send